Skip to content
Brainlag

Theme

Colour

Equation Solver

Solve linear, quadratic and simultaneous equations and see every step of the working.

See it happen: Quadratic graphs: roots and vertex

Formulas

  • Quadratic formula x = (−b ± √(b² − 4ac)) / 2a
  • Discriminant b² − 4ac: two roots if it is positive, one if it is 0, no real roots if it is negative
  • Linear ax + b = c gives x = (c − b) / a

Worked example

Solve 2x² − 3x − 5 = 0.

  1. a = 2, b = −3 and c = −5.
  2. Discriminant: (−3)² − 4 × 2 × (−5) = 9 + 40 = 49.
  3. √49 = 7, so x = (3 ± 7) / 4.
  4. x = 10/4 = 5/2, or x = −4/4 = −1.

Answer: x = 5/2 (2.5) or x = −1.

Common mistakes

  • Losing the sign of b: with b = −3, −b is +3 and b² is +9, never −9.
  • Dividing by 2 instead of 2a at the end of the quadratic formula.
  • Reading off a, b and c before the equation equals 0: x² = 5x − 6 must become x² − 5x + 6 = 0 first.
  • Cancelling x from both sides of x² = 3x, which loses the root x = 0. Factorise instead: x(x − 3) = 0.

About this tool

This equation solver handles the three kinds of equation you meet most in school maths: linear equations in x, quadratics, and pairs of simultaneous equations. It does more than give the answer. You see the working, from the discriminant and the quadratic formula to each step of elimination, and answers come as exact fractions where possible, with decimals alongside. It also solves linear and quadratic inequalities with a number line, and expands, factorises and simplifies expressions, showing each step.

Tips

  • When the roots are rational, the solver also shows the factorised form, for example (x - 2)(x - 3) for x² - 5x + 6. Use it to check your own factorising.
  • The vertex (turning point) is useful for sketching: it sits at x = -b / 2a, halfway between the two roots.
  • If simultaneous equations turn out to be parallel lines, there is no solution. If they are the same line, every point on it works. Both are valid answers, not mistakes.

FAQ

What if my equation has no solution?
The linear mode tells you when there is no solution (for example x + 1 = x + 2) or when every value of x works. It also tells you if the equation is not linear, such as one with x², so you can switch to the Quadratic mode.
What happens if a = 0 in a quadratic?
Then there is no x² term, so it is not a quadratic. The solver treats it as the linear equation bx + c = 0 and solves that instead.
Why are answers shown as fractions?
Exact answers are what most mark schemes want. A fraction such as 2/3 is exact, while 0.6667 is rounded. The solver shows both so you can use whichever the question asks for.