keencalculator
  1. Home
  2. Math
  3. Quadratic Formula Calculator

Quadratic Formula Calculator

Solve any quadratic equation ax² + bx + c = 0. Enter the three coefficients to get both solutions — real or complex — along with the discriminant, the type of roots and the vertex of the parabola.

Quick examples

Cannot be 0 — that would be a linear equation.

Your numbers stay in your browser. They are never uploaded.
Solutionsx = 3 or x = 2
Quadratic Formula Calculatora (coefficient of x²) 1, b (coefficient of x) −5, c (constant) 6 → Solutions x = 3 or x = 2(2.5, −0.25)x = 2x = 3
x₁
3
x₂
2
Discriminant (b² − 4ac)
1
Type of roots
Two distinct real roots
Vertex
(2.5, -0.25)

Step by step

Worked through with your numbers

  1. Formulax = (−b ± √(b² − 4ac)) ÷ 2a
  2. Firstb² − 4ac = (−5)² − 4 × 1 × 6 = 1
  3. Plug inx = (5 ± √1) ÷ 2
  4. Answerx = 3 or x = 2

Saved setups

Save a set of inputs you reuse — your usual rate, your loan, your room sizes — and load it back in one tap.

    Your recent calculations

    Results you calculate here are kept on this device so you can come back to them.

      Also free on iPhone and Mac

      Formula

      x = (−b ± √(b² − 4ac)) ÷ (2a)
      Discriminant D = b² − 4ac
      Vertex = (−b ÷ 2a, c − b² ÷ 4a)

      How to use it

      1. Rearrange your equation so one side is zero: ax² + bx + c = 0.
      2. Enter a, b and c, keeping their signs. Use 0 for a missing term.
      3. Read the solutions. The discriminant line tells you why there are two, one or no real roots.

      Worked examples

      x² − 5x + 6 = 0

      Solutions
      x = 3 or x = 2
      Discriminant (b² − 4ac)
      1
      Type of roots
      Two distinct real roots
      Vertex
      (2.5, -0.25)

      x² − 4x + 13 = 0, which has no real solutions

      Solutions
      x = 2 + 3i or x = 2 - 3i
      Discriminant (b² − 4ac)
      -36
      Vertex
      (2, 9)

      x² + 6x + 9 = 0

      Solutions
      x = -3 (double root)
      Discriminant (b² − 4ac)
      0

      What the discriminant tells you

      If D is positive there are two different real solutions and the parabola crosses the x-axis twice. If D is zero there is one repeated solution and the parabola just touches the axis at its vertex. If D is negative there are no real solutions; the two roots are complex conjugates p ± qi, where p = −b ÷ 2a and q = √(−D) ÷ 2a.

      A worked example and a quick check

      For x² − 5x + 6 = 0: D = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2.

      To check any answer, the two roots must add up to −b ÷ a and multiply to c ÷ a. Here 3 + 2 = 5 and 3 × 2 = 6.

      Questions people ask

      What are the solutions of x² − 5x + 6 = 0?

      x = 3 and x = 2. The equation factors as (x − 3)(x − 2) = 0.

      What happens when the discriminant is negative?

      There are no real solutions, only a pair of complex ones. For x² − 4x + 13 = 0 the discriminant is −36 and the solutions are x = 2 + 3i and x = 2 − 3i.

      Why can a not be zero?

      With a = 0 the x² term disappears and the equation is linear, bx + c = 0, with the single solution x = −c ÷ b. The quadratic formula would divide by zero.

      Keep exploring