Linear Equations: How to Solve Them Step by Step

Algebra · about 1 min read · updated October 2026

A linear equation is an equation where the variable has a power of $1$. Examples: $2x + 3 = 11$, $\;4x - 1 = 2x + 7$, $\;\dfrac{x}{2} + 1 = 4$.

Its general form is:

$$ ax + b = 0 \qquad (a \neq 0) $$

The golden rule

Whatever you do to one side of the equation, you must do to the other side. This keeps the equation balanced.

A worked example

Solve $\; 2x + 3 = 11$.

Step 1. Subtract $3$ from both sides:

$$ 2x + 3 - 3 = 11 - 3 \;\;\Longrightarrow\;\; 2x = 8 $$

Step 2. Divide both sides by $2$:

$$ x = \frac{8}{2} = 4 $$

Step 3. Check: $\;2(4) + 3 = 8 + 3 = 11.$ ✅

So $\; x = 4$.

When the variable appears on both sides

Solve $\; 4x + 1 = 2x + 9$.

Step 1. Subtract $2x$ from both sides:

$$ 4x - 2x + 1 = 9 \;\;\Longrightarrow\;\; 2x + 1 = 9 $$

Step 2. Subtract $1$ from both sides:

$$ 2x = 8 $$

Step 3. Divide by $2$:

$$ x = 4 $$

Step 4. Check: left $4(4) + 1 = 17$; right $2(4) + 9 = 17$. ✅

Special cases

  • No solution. If the variables cancel and you get a false statement like $1 = 2$, the equation has no solution.

Example. $\; x + 1 = x + 2 \;\Longrightarrow\; 1 = 2$ ✗

  • Infinite solutions. If you get a true statement like $0 = 0$, every number is a solution.

Example. $\; 2x = 2x \;\Longrightarrow\; 0 = 0$ ✓

The shortcut formula

Once the equation is written as $ax + b = 0$, the answer is always:

$$ x = -\frac{b}{a} $$

Practice

Open the MathPilot AI Equation Solver, paste a linear equation such as $4x + 1 = 2x + 9$, and compare your steps with the ones shown. Then try the Quiz to test yourself.

Practice it: try the equation solver or generate a practice set on this topic.

More algebra guides