Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve a Linear Equation

A linear equation has the unknown only to the first power. Clean up each side, gather the unknown on one side and the numbers on the other, then divide by the coefficient. Every move is done to both sides, so the equation stays balanced.

Recognize the task

The unknown appears only as xx, never as x2x^2, 1x\frac{1}{x} or x\sqrt{x}, possibly inside brackets and on both sides: 5x−3=2x+95x - 3 = 2x + 9, 3(x−2)+5=2x+73(x - 2) + 5 = 2x + 7, 4(2x+1)=3(x−2)+204(2x + 1) = 3(x - 2) + 20. Test: after expanding, is the highest power of xx equal to 11?
The moves are the properties of equality; the lesson works through multi-step equations and equations with parentheses.

Steps

StepOn 3(x−2)+5=2x+73(x - 2) + 5 = 2x + 7
1Simplify each side separately. Expand brackets with the distributive law and combine like terms. Do not move anything across the equals sign yet.3x−6+5=2x+7  ⇒  3x−1=2x+73x - 6 + 5 = 2x + 7 \;\Rightarrow\; 3x - 1 = 2x + 7
2Collect the unknown on one side. Subtract the smaller xx-term from both sides, so the coefficient stays positive.Addition property of equality ↗x−1=7x - 1 = 7
3Collect the numbers on the other side. Add or subtract the constant from both sides.Addition property of equality ↗x=8x = 8
4Divide by the coefficient, then check. Here the coefficient is already 11. Substitute the answer into the original equation.Multiplication property of equality ↗3(6)+5=233(6) + 5 = 23 and 2(8)+7=232(8) + 7 = 23 ✓

Worked examples

Example 1 · variables on both sides

basic
5x−3=2x+9  ⇒  3x−3=95x - 3 = 2x + 9 \;\Rightarrow\; 3x - 3 = 9
subtract 2x2x
3x=12  ⇒  x=43x = 12 \;\Rightarrow\; x = 4
add 33, divide by 33

Example 2 · brackets on both sides

expand first
4(2x+1)=3(x−2)+20  ⇒  8x+4=3x+144(2x + 1) = 3(x - 2) + 20 \;\Rightarrow\; 8x + 4 = 3x + 14
expand, combine
5x=10  ⇒  x=25x = 10 \;\Rightarrow\; x = 2
check: 20=2020 = 20

Example 3 · the special cases

no solution, every x
2(x+3)=2x+5  ⇒  6=52(x + 3) = 2x + 5 \;\Rightarrow\; 6 = 5
the xx terms cancel to a false statement
2(x+3)=2x+6  ⇒  6=62(x + 3) = 2x + 6 \;\Rightarrow\; 6 = 6
they cancel to a true statement
first: no solution; second: every real xx
Both cases are explained under special cases in the linear equations lesson.
Check any answer step by step in the linear equation calculator.

See it happen

Picture a balance with 3x−13x - 1 on one pan and 2x+72x + 7 on the other. Taking 2x2x off both pans, then adding 11 to both, keeps the balance level at every step, until one pan holds a single xx and the other its value.

Common mistakes

Distributing to the first term only

✗ 3(x−2)=3x−23(x - 2) = 3x - 2
✓ 3(x−2)=3x−63(x - 2) = 3x - 6

Changing sign without moving across

✗ 3x−1=2x+7⇒3x=2x+7−13x - 1 = 2x + 7 \Rightarrow 3x = 2x + 7 - 1
✓ adding 11 to both sides gives 3x=2x+83x = 2x + 8

A minus sign before a bracket

✗ 5−(x−3)=5−x−35 - (x - 3) = 5 - x - 3
✓ 5−(x−3)=5−x+35 - (x - 3) = 5 - x + 3

Reading 0 = 0 as x = 0

✗ "6=66 = 6, so x=0x = 0"
✓ a true statement with no xx means every xx is a solution