Home › Guides

How to solve for x, step by step

Solving for x just means finding the number that x stands for. The secret: whatever you do to one side, do to the other side too.

Think of a balance scale

An equation is like a balance. The left side and the right side weigh the same. If you take 3 away from one side, you must take 3 away from the other side, or it tips over.

One-step equations

Undo what's happening to x by doing the opposite.

x + 5 = 12

5 is being added to x, so subtract 5 from both sides: x + 5 − 5 = 12 − 5, so x = 7.

4x = 20

x is being multiplied by 4, so divide both sides by 4: x = 5.

If x is…Undo it by…
plus a numbersubtracting it
minus a numberadding it
times a numberdividing by it
divided by a numbermultiplying by it

Two-step equations

Undo the adding or subtracting first, then the multiplying or dividing.

  1. Start with: 3x + 4 = 19
  2. Subtract 4 from both sides: 3x = 15
  3. Divide both sides by 3: x = 5
  4. Check it: 3 × 5 + 4 = 15 + 4 = 19. ✓ It works!

Try one yourself

2x − 6 = 10

Hint: what's happening to 2x? Undo that first, then deal with the 2.

Common mistakes

Stuck on a problem right now?

Snap a photo or type it in. ThinkStep's free AI tutor will walk you through it, step by step.

🚀 Get free homework help

More free guides

📸 Take a picture of your homework for free help ➗ How to add fractions, step by step 🧮 Long division, step by step ✖️ Times tables tricks that make multiplication easy 📏 Area and perimeter, made easy ✍️ How to write a great paragraph 💯 How to find a percentage of a number 🤖 A free AI homework helper that helps you learn 🏠 ThinkStep: free AI homework help for kids