Quadratic formula calculator — discriminant and roots

Enter a, b and c: the quadratic formula calculator works out the discriminant Δ = b² − 4ac and the roots of ax² + bx + c = 0 with full working, checks them using the sum and product of the roots, and plots the graph with its turning point. It also gives the completed square form and the factorised form.

2x² − 3x + 1 = 0
Examples:
−1.5 −1 −0.5 0.5 1 1.5 2 2.5 1 2 xy x = 0.75 (0.75, −0.125) (0.5, 0) (1, 0) (0, 1)

Enter whole numbers, decimals (0.5) or fractions (1/2). If a term is missing from the equation, enter 0.

Roots
x₁ = 1/2; x₂ = 1

The equation 2x² − 3x + 1 = 0 has two roots: x₁ = 1/2; x₂ = 1 (Δ = 1).

Step-by-step breakdown
  1. DiscriminantΔ = 1
  2. Turning point(3/4, −1/8)
  3. Completed square formy = 2(x − 3/4)² − 1/8
  4. Factorised formy = 2(x − 1/2)(x − 1)

Step-by-step working

  1. The coefficients of the equation are a = 2, b = −3, c = 1.

  2. Work out the discriminant:

    Δ = b² − 4ac = (−3)² − 4 · 2 · 1 = 1
  3. Δ > 0, so the equation has two roots:

    x₁,₂ = (−b ± √Δ) / 2a = (3 ± 1) / 4x₁ = 1/2x₂ = 1
  4. Check them using the sum and product of the roots:

    x₁ + x₂ = −b/a = 3/2x₁ · x₂ = c/a = 1/2
  5. The turning point of the graph:

    x = −b / 2a = 3/4y = −Δ / 4a = −1/8

Formula

x₁,₂=−b ± √Δ2a

The quadratic formula, with the discriminant Δ = b² − 4ac under the square root. If Δ > 0, there are two roots; if Δ = 0, there is one (repeated) root; if Δ < 0, there are no real roots.

How we got there

2x² − 3x + 1 = 0 → x₁ = 1/2; x₂ = 1

The calculator gives the roots exactly — as fractions or surds, the way you would write them in your exercise book. You can enter the coefficients as fractions too: 1/2.

How to solve a quadratic equation with the quadratic formula

  1. Write down a, b and c

    In 2x² − 3x + 1 = 0: a = 2, b = −3, c = 1. If a term is missing, its coefficient is zero.

  2. Work out the discriminant

    Δ = b² − 4ac = (−3)² − 4 · 2 · 1 = 9 − 8 = 1.

  3. Find the roots

    x = (−b ± √Δ) / 2a = (3 ± 1) / 4, so x₁ = 1/2 and x₂ = 1.

  4. Check with the sum and product of the roots

    x₁ + x₂ = −b/a = 3/2 and x₁ · x₂ = c/a = 1/2 — both are true.

Quadratics still catching you out? Find a maths tutor for Year 9

Why the formula works

Completing the square turns ax² + bx + c = 0 into a(x + b/2a)² = Δ/4a. This shows that roots exist only when Δ ≥ 0, and that they are (−b ± √Δ) / 2a.

That is why it is called the discriminant: its sign tells the cases apart, so you know how many roots there are before you work them out.

The discriminant and the graph

The roots of the equation are where the graph y = ax² + bx + c crosses the x-axis. If Δ > 0, there are two such points; if Δ = 0, the turning point touches the axis; if Δ < 0, the whole graph lies above or below it.

The sign of a gives the shape: the graph is ∪-shaped if a > 0 and ∩-shaped if a < 0.

Common mistakes

  • Losing the sign when b < 0: (−3)² = 9, not −9.
  • Dividing by 2 instead of 2a: x = (−b ± √Δ) / 2a.
  • Writing √Δ when Δ < 0: a negative number has no real square root.

Frequently asked questions

For ax² + bx + c = 0, the discriminant is Δ = b² − 4ac: the expression under the square root in the quadratic formula x = (−b ± √Δ) / 2a. At GCSE it is usually just written as b² − 4ac; at A level it has its own name.

Two if Δ > 0, one (repeated) root if Δ = 0, and no real roots if Δ < 0. On the graph, the parabola crosses the x-axis twice, touches it once or misses it altogether.

For the roots of ax² + bx + c = 0, the sum is x₁ + x₂ = −b/a and the product is x₁ · x₂ = c/a (Vieta’s formulas). When a = 1, as in x² + px + q = 0, the sum is −p and the product is q. That makes it quick to check roots, and to spot them in your head when factorising quadratics.

You don’t need the formula. If c = 0, take x out as a factor: x(ax + b) = 0, so x = 0 or x = −b/a. If b = 0, then x² = −c/a, and there are two roots when −c/a > 0.

There are no real roots: the parabola does not cross the x-axis. The calculator still shows the turning point and the graph.

Its x-coordinate is −b / 2a, and its y-coordinate is −Δ / 4a (or substitute the x-coordinate into the equation). For y = 2x² − 3x + 1, the turning point is (3/4, −1/8). Completing the square gives the same answer: y = 2(x − 3/4)² − 1/8.

Quadratic equations not working out?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.