ax² + bx + c = 0 · Full working shown

Quadratic Equation Solver

Enter a, b and c to get the roots of ax² + bx + c = 0 — real, repeated or complex — with every step of the working written out.

Equation: 1x² + -5x + 6 = 0

Roots

x1 = 3

x2 = 2

Discriminant

D = 1

D > 0 — two distinct real roots

Step-by-step working

  1. 1Discriminant D = b² − 4ac = (-5)² − 4(1)(6) = 25 − 24 = 1.
  2. 2D > 0, so there are two distinct real roots: x = (−b ± √D) / 2a.
  3. 3√D = √1 = 1.
  4. 4x₁ = (−(-5) + 1) / 2 = 3.
  5. 5x₂ = (−(-5) − 1) / 2 = 2.
  6. 6Factored form: 1(x − 3)(x − 2) = 0.

Read D first

The discriminant predicts the answer: positive → two crossings, zero → one touch, negative → no real crossing. Many exam questions only ask for D itself.

Watch the signs

Most mistakes come from sign errors in −b ± √D, especially when b is negative. The written steps above keep every sign explicit so you can copy them safely.

Vertex bonus

The roots are symmetric about the vertex at x = −b/2a. For real roots, the midpoint of x₁ and x₂ always equals −b/2a — a quick sanity check on your answer.

How to use the quadratic solver

  1. Enter a, b and c

    The coefficients of ax² + bx + c = 0. Decimals and negatives are fine.

  2. Read the discriminant

    D = b² − 4ac appears instantly and tells you how many real roots to expect.

  3. Copy the roots

    Real, repeated or complex (a+bi) roots are shown, ready to use in further working.

  4. Follow the steps

    Each line of the derivation is written out so you can show your own working in homework or exams.

A study aid — always show your own working where an exam requires it; answers alone rarely earn full marks.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: results are rounded to 6 decimal places for display. Exact surd forms (e.g. (5 ± √13)/2) may be required where an exam asks for them.