ΣCalcSolver
Algebra

Equation Solver with Steps

Type an equation, press Solve, and see how to solve for x step by step. Linear and quadratic equations are solved with algebra, one step at a time. Harder ones, like 3^x = 20 or x = cos(x), are solved numerically. Every answer is put back into the equation so you can see it works.

Quick start

  1. Type the equation with one = sign, for example 3(x − 2) + 4 = 2x + 7 or x^2 = 2x + 1. Use ^ for powers, sqrt() for square roots and ln() or log() for logarithms.
  2. Press Solve. Linear and quadratic equations are solved by algebra, with every step written out. Other equations, like 3^x = 20, are solved numerically between the two search limits (−100 to 100 by default).
  3. Every answer ends with a check, so you can see both sides come out equal.

How to solve an equation for x, step by step

The goal is to get x alone on one side. Whatever you do to one side, do the same to the other, so the two sides stay equal. Take 9x + 7 = −7:

  1. Subtract 7 from both sides: 9x = −14.
  2. Divide both sides by 9: x = −14/9.
  3. Check: 9 × (−14/9) + 7 = −14 + 7 = −7 ✓

With brackets or x on both sides, tidy each side first. For 3(x − 2) + 4 = 2x + 7: expand to 3x − 2 = 2x + 7, subtract 2x to get x − 2 = 7, then add 2 to get x = 9.

Solving quadratic equations

When x² appears, move everything to one side to get ax² + bx + c = 0, then use the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 7x + 12 = 0: a = 1, b = −7, c = 12, the discriminant is 49 − 48 = 1, so x = (7 ± 1) ÷ 2, which gives x = 3 or x = 4. If the discriminant is negative there is no real solution. For factored form and the graph, use the Quadratic Equation Solver.

Equations with 2 or 3 variables

This page solves one equation in x. For several equations at once, such as 2x + y = 7 and x − y = 2, use the 2 variable system of equations solver, which shows elimination and substitution. For x, y and z, use the 3 variable equation solver.

Examples with answers

EquationAnswer
2x + 5 = 15x = 5
9x + 7 = −7x = −14/9
x/2 + 3 = 5x = 4
5x − 4 = 2x + 11x = 5
2x + 1 = 2x + 3no solution
x² − 7x + 12 = 0x = 3 or x = 4
x² = 2x + 1x = 1 ± √2
3^x = 20x ≈ 2.7268
x = cos(x)x ≈ 0.7391

Other ways to solve equations

  • TI-84 Plus: press MATH, scroll to the bottom and choose Solver. Enter the equation as 0 = left side − right side, type a guess for x, then press ALPHA and ENTER (SOLVE).
  • Excel: put a guess for x in one cell and the formula in another, then use Data → What-If Analysis → Goal Seek to make the formula equal your target.
  • Python: with the SymPy library, from sympy import symbols, solve; x = symbols("x"); solve(9*x + 7 + 7, x) returns [-14/9].

These tools give the answer. This page also shows the steps, which is what teachers ask for.

Writing equations it understands

  • Multiplication can be written 4x, 4*x or 4(x − 1).
  • Fractions: x/2 or (2/3)x.
  • Trig functions work in radians. For degrees, write sin(x*pi/180).
  • Use e^x or exp(x) for the exponential function.

Related calculators

Common questions

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

Subtract 7 from both sides to get 9x = −14, then divide by 9. The answer is x = −14/9, about −1.556.

What is an equation solver?

A tool that finds the value of x that makes both sides of an equation equal. This one also shows the algebra steps and checks the answer.

How do I use the equation solver?

Type the equation with one = sign, such as 2x + 5 = 15, and press Solve. Use ^ for powers, for example x^2.

Does it show the steps?

Yes. Linear and quadratic equations are solved by algebra with every step shown. Other equations are solved numerically, with a check of each answer.

Can it solve equations with 2 or 3 variables?

Use the 2×2 or 3×3 system of equations solvers for those. This page solves one equation in x.

What math equation says I love you?

9x − 7i > 3(3x − 7u). Expand the right side to 9x − 21u, cancel 9x, and divide by −7 to get i < 3u, which reads as "i <3 u".

It says no real solution. What now?

Some equations have none, such as x² + 4 = 0. Otherwise the answer may sit outside the search window, so try a wider range.

Can it solve x = cos(x)?

Yes. There is no exact formula, but the solver finds x ≈ 0.7391 numerically.

Does it give complex answers?

No. It only finds real values of x. For complex roots of a quadratic, use the Quadratic Equation Solver.

How many solutions can it show?

Up to 25 in one search. If an equation like sin(x) = 0.5 has more, narrow the range to see the rest.