How to solve equations step by step

Learn the one method that solves most equations, see it worked through, then pick the guide for your equation type. Each guide solves a real example by hand and with ScientifiCalc, so you can check every step.

13 guidesBy Hira Noor, mathematicianUpdated
Short answerTo solve an equation step by step, simplify each side, move every term with the variable to one side and every number to the other, then undo the remaining operations in reverse order until the variable stands alone. Do the same thing to both sides at every step, and finish by substituting your answer into the original equation to check it.

The general method: simplify, isolate, check

An equation is a balance: both sides have the same value. Any operation you apply to the whole of one side, you apply to the whole of the other, and the balance holds. Linear equations in one variable need nothing more than these five steps. The other equation types below add one idea each, such as a formula, a sign chart or elimination.

Taking 3x from both pans keeps the beam level: 3x−2=5x−83x - 2 = 5x - 8 becomes −2=2x−8-2 = 2x - 8.
  1. Simplify each side

    Expand brackets with the distributive property and combine like terms, so each side has at most one variable term and one number.

  2. Collect the variable on one side

    Add or subtract the same variable term on both sides. Moving it toward the side with the larger coefficient avoids negative coefficients.

  3. Collect the numbers on the other side

    Add or subtract the same number on both sides.

  4. Divide by the coefficient

    Divide both sides by the number in front of the variable. The variable is now on its own.

  5. Check the answer

    Substitute the value into the original equation, not your rearranged one. Both sides must give the same number.

Fractions? Clear them first

Multiply every term on both sides by the lowest common denominator before step 1. For x3+12=56\frac{x}{3} + \frac{1}{2} = \frac{5}{6}, multiplying by 6 gives 2x+3=52x + 3 = 5, so x=1x = 1.

Words the guides use

Variable
The unknown you are solving for, usually x.
Coefficient
The number multiplying the variable. In 5x5x, the coefficient is 5.
Like terms
Terms with the same variable part, such as 3x3x and −x-x, or 4 and −6. Only like terms can be combined.
Inverse operation
The operation that undoes another: subtraction undoes addition, and division undoes multiplication.

Worked example: variables on both sides

Solve 3(x−2)+4=5x−83(x - 2) + 4 = 5x - 8.

Solving 3(x − 2) + 4 = 5x − 8 one step at a time
WorkingWhat was done
3x−6+4=5x−83x - 6 + 4 = 5x - 8Expanded the bracket
3x−2=5x−83x - 2 = 5x - 8Combined −6 + 4
−2=2x−8-2 = 2x - 8Took 3x from both sides
6=2x6 = 2xAdded 8 to both sides
x=3x = 3Divided both sides by 2

Check: the left side is 3(3−2)+4=73(3 - 2) + 4 = 7 and the right side is 5(3)−8=75(3) - 8 = 7. Both sides agree, so x=3x = 3 is correct. To compare your working with a full set of numbered steps, type 3(x-2)+4=5x-8 into the math solver.

Which method for which equation

Start by recognizing the type of equation; the type decides the method. This table matches each common type to its method, a step-by-step guide and a calculator that shows the working.

Equation types, methods, guides and calculators
EquationMethodLearn it
Linear, one variable: 4x−7=134x - 7 = 13Simplify, collect terms, divideLinear equation guide
Linear inequality: 2x−5<72x - 5 < 7As for equations; flip the sign when multiplying or dividing by a negativeLinear equation guide, inequality calculator
Quadratic: 3x2+2x−4=03x^2 + 2x - 4 = 0Factor, or use the discriminant and quadratic formulaQuadratic guide
Cubic and higher: x3−7x+6=0x^3 - 7x + 6 = 0Rational root theorem, divide out a factor, solve what remainsCubic guide
Two linear equations: x+y=10x + y = 10 and x−y=4x - y = 4Elimination or substitutionTwo-equation guide
Three linear equations: x, y and z in three equationsElimination or row reductionThree-equation guide
Quadratic inequality: x2−5x+6<0x^2 - 5x + 6 < 0Find the roots, then a sign chartQuadratic inequality guide
Mixed functions: 2x=3x2^x = 3xRearrange to f(x) = 0 and find roots numericallyNumerical method guide

Mistakes that change the answer

  • Changing the sign of only one term. When you subtract 3x3x from a side, subtract it from that whole side, then simplify.
  • Multiplying out a bracket partly. −2(x−4)-2(x - 4) is −2x+8-2x + 8, not −2x−4-2x - 4 or −2x−8-2x - 8.
  • Dividing by an expression that can be zero. Dividing x2=3xx^2 = 3x by xx loses the solution x=0x = 0. Move everything to one side and factor instead: x(x−3)=0x(x - 3) = 0.
  • Forgetting to flip an inequality. Multiplying or dividing both sides by a negative number reverses << and >>.
  • Skipping the check. Squaring both sides or multiplying by an expression can add solutions that do not satisfy the original equation. Substituting back catches them.

Practice problems with answers

1. Solve 5x−7=185x - 7 = 18

x=5x = 5. Add 7 to both sides: 5x=255x = 25. Divide by 5: x=5x = 5. Check: 5(5)−7=185(5) - 7 = 18.

2. Solve 4(x+3)=2x+204(x + 3) = 2x + 20

x=4x = 4. Expand: 4x+12=2x+204x + 12 = 2x + 20. Take 2x from both sides: 2x+12=202x + 12 = 20. Take 12: 2x=82x = 8, so x=4x = 4. Check: both sides equal 28.

3. Solve 7−2x=3x−87 - 2x = 3x - 8

x=3x = 3. Add 2x to both sides: 7=5x−87 = 5x - 8. Add 8: 15=5x15 = 5x, so x=3x = 3. Check: both sides equal 1.

4. Solve x4+23=56\frac{x}{4} + \frac{2}{3} = \frac{5}{6}

x=23x = \frac{2}{3}. Multiply every term by 12: 3x+8=103x + 8 = 10. Take 8: 3x=23x = 2, so x=23x = \frac{2}{3}. Check: 16+46=56\frac{1}{6} + \frac{4}{6} = \frac{5}{6}.

5. Solve 3(2x−1)−2(x+4)=93(2x - 1) - 2(x + 4) = 9

x=5x = 5. Expand: 6x−3−2x−8=96x - 3 - 2x - 8 = 9. Combine like terms: 4x−11=94x - 11 = 9. Add 11: 4x=204x = 20, so x=5x = 5. Check: 27−18=927 - 18 = 9.

6. Solve the inequality −3x+5>17-3x + 5 > 17

x<−4x < -4. Take 5 from both sides: −3x>12-3x > 12. Divide by −3 and flip the sign: x<−4x < -4. Check with x = −5: 15+5=2015 + 5 = 20, which is greater than 17.

7. Solve x2−7x+10=0x^2 - 7x + 10 = 0

x=2x = 2 or x=5x = 5. Find two numbers that multiply to 10 and add to −7: −2 and −5. So (x−2)(x−5)=0(x - 2)(x - 5) = 0. The quadratic guide covers equations that do not factor.

8. Solve the system x+y=10x + y = 10 and x−y=4x - y = 4

x=7x = 7, y=3y = 3. Add the equations to eliminate y: 2x=142x = 14, so x=7x = 7. Substitute into the first: 7+y=107 + y = 10, so y=3y = 3. The two-equation guide explains elimination and substitution.

Linear equations and inequalities

Equations where the variable appears only to the first power, such as 4x−7=134x - 7 = 13, including brackets, fractions and inequalities.

Quadratic, cubic and other polynomial equations

Equations where the variable appears with whole-number powers, such as x2x^2 or x3x^3.

Systems of linear equations

Two or three equations that share their unknowns and must all be true at once.

Inequalities and equations with no formula

Answers that are intervals rather than single numbers, and equations that need a numerical method.

How to solve any equation

Pick the method by type: linear, quadratic, radical, exponential and numerical, with practice.

8 minutes read

Complex numbers

Arithmetic with numbers of the form a+bia + bi, where i2=−1i^2 = -1, in rectangular and polar form.

Units and measurement

Changing a measurement from one unit to another with conversion factors, including area, volume and temperature.

How to convert units

Conversion factors, dimensional analysis, area, volume, temperature and practice problems.

6 minutes read

Calculator skills for multi-step work

Ways to keep long calculations accurate and the calculator one tap away.

Frequently asked questions

What are the steps to solve an equation?

Simplify both sides, move the variable terms to one side and the numbers to the other, divide by the coefficient of the variable, then substitute the answer back into the original equation to check it. Apply every operation to both sides.

What is a 3-step equation?

An equation that takes three inverse operations to solve, usually combining like terms, then adding or subtracting, then dividing. For example, 4x+3−x=184x + 3 - x = 18 becomes 3x+3=183x + 3 = 18, then 3x=153x = 15, then x=5x = 5.

How do you solve 9x + 7 = −7?

Subtract 7 from both sides to get 9x=−149x = -14, then divide both sides by 9: x=−14/9x = -14/9, about −1.556. Check: 9(−14/9)+7=−14+7=−79(-14/9) + 7 = -14 + 7 = -7.

How do you solve an equation with variables on both sides?

Expand any brackets, then add or subtract a variable term on both sides so the variable appears on one side only. After that it is a normal two-step equation. The worked example on this page shows each step.

How do I know my answer is right?

Substitute it into the original equation. If both sides give the same value, the answer is correct. If they differ, compare your working with the numbered steps in the math solver to find the line where it went wrong.