March 2025

How to Solve for X: A Step-by-Step Guide

When you see an equation like 2x + 5 = 13, your job is to find what x equals. "Solving for x" means getting x alone on one side of the equals sign. Here's how.

The main idea

An equation is like a balance scale: whatever you do to one side, you must do to the other to keep it equal. To solve for x, we use inverse operations — operations that undo each other. Addition undoes subtraction; multiplication undoes division.

One-step equations

When only one operation is applied to x, undo it with the inverse.

Example 1: x + 7 = 12

7 is added to x. Subtract 7 from both sides:

x + 7 − 7 = 12 − 7
x = 5

Answer: x = 5

Example 2: 3x = 15

x is multiplied by 3. Divide both sides by 3:

3x ÷ 3 = 15 ÷ 3
x = 5

Answer: x = 5

Two-step equations

When two operations are applied, undo them in reverse order (undo addition/subtraction first, then multiplication/division).

Example: 2x + 5 = 13

Step 1: Subtract 5 from both sides to remove the +5.

2x + 5 − 5 = 13 − 5
2x = 8

Step 2: Divide both sides by 2 to get x alone.

2x ÷ 2 = 8 ÷ 2
x = 4

Answer: x = 4

Check: 2(4) + 5 = 8 + 5 = 13 ✓

Quick reference

Common mistakes

Forgetting to do both sides: Whatever you do to one side of the equation, you must do to the other. If you subtract 5 from the left, subtract 5 from the right too.

Sign errors: Moving a negative across the equals sign turns it positive, and vice versa. Double-check your signs at each step.

Dividing before subtracting: In two-step equations like 3x + 7 = 22, undo addition/subtraction first, then multiplication/division.

More examples

Example: 4x − 9 = 15

4x − 9 = 15
4x = 15 + 9
4x = 24
x = 24 ÷ 4 = 6

Example: x/3 + 2 = 8

x/3 + 2 = 8
x/3 = 6
x = 6 × 3 = 18

Example: −2x + 10 = 4

−2x + 10 = 4
−2x = 4 − 10
−2x = −6
x = −6 ÷ −2 = 3

Practice problems

1. Solve: 5x + 3 = 28

Show answer
5x = 25, x = 5

2. Solve: x/4 − 7 = 1

Show answer
x/4 = 8, x = 32

3. Solve: −3x = 21

Show answer
x = 21 ÷ −3 = −7

4. Solve: 2x + 1 = −9

Show answer
2x = −10, x = −5

Practice makes it stick. Games like Arithmia build the number sense that makes algebra easier — explore worlds and solve puzzles while you learn.

Try Arithmia