Equation solver with steps
Type an equation in x and get every solution with the working shown. Linear equations are solved by isolating x, quadratics by factoring or the quadratic formula, and higher-degree polynomials by the rational root test. Any other equation, like cos(x) = x, is solved numerically to twelve digits.
- Rational root test: x = 1 is a solution, so (x − 1) is a factor
- Synthetic division leaves x² − 5x + 6 = 0
- Find two numbers that multiply to 6 and add to −5: −3 and −2
- Factored: (x − 3)(x − 2) = 0
- Zero product property: each factor can be zero
How to use it
- 1Type the equation with one equals sign:
3x + 5 = 2x - 7,x^2 - 2x - 1 = 0,cos(x) = x. - 2Press Solve. Exact solutions are shown as fractions and square roots where possible; other equations get decimal solutions.
- 3Use the graph link to see both sides of the equation as curves: the solutions are where they cross.
Linear equations
A linear equation is solved by doing the same thing to both sides until x is alone. For 3x + 5 = 2x − 7:
- Subtract 2x from both sides: x + 5 = −7.
- Subtract 5 from both sides: x = −12.
Check by substituting: 3(−12) + 5 = −31 and 2(−12) − 7 = −31. Both sides agree, so x = −12 is the solution.
Quadratic equations
Move everything to one side to get ax² + bx + c = 0. If it factors, the zero product property finishes the job: x² − 5x + 6 = (x − 2)(x − 3) = 0 means x = 2 or x = 3. If it doesn’t, the quadratic formula always works:
The quadratic equation solver page goes through the formula and the discriminant in detail.
Cubic and higher-degree polynomials
For x³ − 6x² + 11x − 6 = 0, the rational root test lists the possible rational solutions, the divisors of 6: ±1, ±2, ±3, ±6. Trying x = 1 gives 0, so it is a solution. Synthetic division by (x − 1) reduces the cubic to x² − 5x + 6 = 0, which gives x = 2 and x = 3.
Every polynomial equation of degree n has at most n real solutions. When a polynomial has no rational roots the calculator finds its real roots numerically instead.
Equations with no formula
Most equations that mix kinds of functions, like cos(x) = x or eˣ = 3 − x, have no solution in closed form. For those the calculator scans [−50, 50] for every sign change of the difference between the two sides, plus places where it touches zero without changing sign, and refines each one with Brent’s method to about twelve significant digits.
For cos(x) = x that gives x ≈ 0.739085133215, the only real solution.
Examples to try
y = x^3 - 6x^2 + 11x - 6y = 0y = 3x + 5y = 2x - 7Frequently asked questions
Does the equation solver show steps?
Can it solve equations with fractions or decimals?
Does it find complex solutions?
How do I solve a system of equations?
Why does it only search between −50 and 50?
Related tools and guides
Solve ax² + bx + c = 0 by factoring or the quadratic formula.
Factor polynomials with every method shown step by step.
Limits by substitution, factoring, L’Hôpital and at infinity.
Symbolic derivatives with the rules shown step by step.
Graph both sides of any equation and every crossing point is marked with its coordinates.