S/Shortutorial
Home / Math / Solve for x
Math · Algebra

Solve for x: Algebra Basics

Algebra sounds scary, but solving for x is just undoing what's been done to it. Learn the one rule that makes it all work.

~10 min4 lessonsInteractive solver5-question quiz
01

x is just a mystery number

An equation says two things are equal. The letter (often x) stands for a number you don't know yet. “Solving” means finding the number that makes the equation true.

x + 7 = 12which number plus 7 makes 12? x = 5

You can guess small ones like this. The method below works for any equation, including ones you can't guess.

02

The balance rule

Think of an equation as a balanced scale. You can do anything to one side, as long as you do exactly the same to the other. It stays balanced.

x + 7 12
Take 7 off both sides and it stays balanced: x = 5

Your goal is to get x on its own on one side. To remove something, do the opposite:

If x has…Do this to both sides
+ 7subtract 7
− 4add 4
× 3 (written 3x)divide by 3
÷ 2 (written x/2)multiply by 2
03

Two-step equations

When x has two things done to it, undo them in reverse: add or subtract first, then multiply or divide.

Example · 3x + 5 = 20
  1. Subtract 5 from both sides: 3x = 15
  2. Divide both sides by 3: x = 5
  3. x = 5
Example · x/4 − 2 = 3
  1. Add 2 to both sides: x/4 = 5
  2. Multiply both sides by 4: x = 20
  3. x = 20
04

Always check your answer

Put your answer back into the original equation. If both sides match, you're right.

Check · 3x + 5 = 20 with x = 5
  1. 3 × 5 + 5 = 15 + 5 = 20
  2. 20 = 20 ✓

x on both sides? Move all the x terms to one side first. For 5x + 2 = 3x + 10: subtract 3x from both sides to get 2x + 2 = 10, then solve as normal (x = 4).

Try it · equation solver

Solve a·x + b = c. Change the numbers and watch the steps.

NEXTKeep learning