Quadratic Equation Solver

Coefficients of ax² + bx + c = 0
a · x2
b · x
c
—

Enter a, b and c, then press Solve. The answer and the working behind it will show up here.

— —
Working out

What is a quadratic equation?

A quadratic equation has an x² in it and nothing higher. Written in standard form:

ax² + bx + c = 0
  • a = the number in front of x² (it cannot be 0)
  • b = the number in front of x
  • c = the number on its own
  • x = the unknown we are solving for

Its graph: a parabola

x₁x₂vertexxy = ax² + bx + c

The graph is a U-shaped curve called a parabola. The answers to the equation are called the roots. They are the x-values where the curve crosses the x-axis, marked x₁ and x₂ in the picture. The turning point at the bottom is the vertex.

The quadratic formula

This works for every quadratic, even when factorising looks impossible.

x = ( −b ± √(b² − 4ac) ) ÷ 2a
  • x = the answer. The ± gives you two of them, one with plus and one with minus
  • a = number in front of x²
  • b = number in front of x
  • c = the number on its own
  • √ = square root

Try x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6. Under the root: (−5)² − 4 × 1 × 6 = 25 − 24 = 1. So x = (5 ± 1) ÷ 2, which gives x = 3 or x = 2.

The discriminant tells you what to expect

The part under the root, b² − 4ac, is the discriminant. Look at it first.

  • More than 0: two different real roots. The curve cuts the x-axis twice.
  • Exactly 0: one repeated root. The curve just touches the axis.
  • Less than 0: no real roots. The curve never reaches the axis, and the roots are complex numbers. For x² + 2x + 5 = 0 the discriminant is 4 − 20 = −16, and the roots are −1 ± 2i.

Factorising and checking

Sometimes you can factorise by finding two numbers that multiply to c and add to b. For x² − 5x + 6 those are −2 and −3, so (x − 2)(x − 3) = 0.

A quick check for any quadratic: the two roots add up to −b ÷ a and multiply to c ÷ a. For our example 2 + 3 = 5 and 2 × 3 = 6. A lost minus sign shows up here straight away.

The vertex and where quadratics appear

The turning point of the curve is the vertex, at x = −b ÷ 2a. If a is positive the parabola opens upwards and the vertex is the lowest point. If a is negative it opens downwards and the vertex is the highest.

That is why quadratics describe the height of a thrown ball, the best price for the most profit, or the dimensions of a rectangle with the most area for a fixed fence.