Quadratic Equation Calculator

A quadratic equation has the form ax² + bx + c = 0. The quadratic formula, also taught in India as Sridharacharya’s formula, gives both roots directly.

Results update as you type.

Roots

x = 3, x = 2

Discriminant (b² − 4ac)
1two real roots
Vertex
(2.5, −0.25)minimum point
Sum and product of roots
5 and 6

About this calculator

When the discriminant is negative, the roots are complex and shown with i.

How to use it

  1. Enter a, b and c.
  2. Read the roots and other details.

The formula

x = (−b ± √(b² − 4ac)) ÷ 2a
b² − 4ac
discriminant
vertex
(−b ÷ 2a, c − b² ÷ 4a)

Worked example

x² − 5x + 6 = 0

  1. Discriminant = 25 − 24 = 1.
  2. x = (5 ± 1) ÷ 2, so x = 3 or x = 2.
  3. Vertex at (2.5, −0.25).

What the result means

Sum of roots = −b/a and product = c/a, a quick check.

Assumptions

  • All lengths in the same unit.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

What is the quadratic formula?

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

What if the discriminant is negative?

The roots are complex: real part −b/2a and imaginary part √(−D)/2a.

Can a be zero?

No; then it is a linear equation.

Last reviewed on 3 October 2026. Found a mistake? Tell us.