CalcVind

Quadratic Equation Calculator

Solve ax² + bx + c = 0 with steps

ax² + bx + c = 0

Coefficients

Two distinct rational roots

3x₁
2x₂
1
Discriminant (D)
(2.5, −0.25)
Vertex
5
Sum of roots (−b/a)
6
Product (c/a)
(x − 3)(x − 2)
Factored form

Working

  1. x² − 5x + 6 = 0
  2. D = b² − 4ac = (−5)² − 4 × 1 × 6 = 1
  3. x = (−b ± √D) ÷ 2a = (5 ± √1) ÷ 2
  4. x₁ = 3, x₂ = 2
  1. 1
    Write it as ax² + bx + c = 0
    Move everything to one side
  2. 2
    Enter a, b and c
    Use negatives where needed
  3. 3
    Press Solve
    Roots, vertex and working

What is the quadratic formula?

Every quadratic equation can be solved with the quadratic formula. The discriminant D = b² − 4ac decides what kind of roots it has.

x = (−b ± √(b² − 4ac)) ÷ 2a

D > 0: two real roots · D = 0: one repeated root · D < 0: two complex roots

Sum of roots = −b/a · Product of roots = c/a

Nature of roots

When D is a perfect square and a, b, c are whole numbers, the roots are rational and the equation can be factorised. When D is positive but not a perfect square, the roots are irrational, like (5 ± √13)/2.

The vertex

The graph of y = ax² + bx + c is a parabola. Its turning point (vertex) is at x = −b/2a. It opens upward when a > 0, so the vertex is the minimum, and downward when a < 0.

Related calculators

Frequently asked questions

How do I solve x² − 5x + 6 = 0?

D = 25 − 24 = 1, so x = (5 ± 1)/2, giving x = 3 and x = 2. It factors as (x − 3)(x − 2).

What if the discriminant is negative?

There are no real roots; the parabola doesn't cross the x-axis. The roots are complex: x² + 2x + 5 = 0 gives x = −1 ± 2i.

What if a is 0?

Then it's not a quadratic but a linear equation bx + c = 0, with the single answer x = −c/b.

Last reviewed: October 2026