Skip to content

Quadratic Formula Calculator

Enter the coefficients a, b and c to solve a quadratic equation. You get real or complex roots, the discriminant, the vertex and the axis of symmetry with the working.

Formulas last reviewed: September 2026

Disclaimer: Results are calculated with standard formulas and are meant for learning and quick checks. Please double-check important work, especially anything used for exams, engineering, finance or safety.

Solving ax² + bx + c = 0

A quadratic equation has the form ax² + bx + c = 0 with a not equal to zero. Its graph is a parabola, and the solutions (roots) are the points where the parabola crosses the x-axis.

The quadratic formula always finds them. This calculator gives real or complex roots, the discriminant that decides which kind you get, the vertex of the parabola and its axis of symmetry.

How it is calculated

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

Worked example

x² − 3x + 2 = 0

Discriminant
1
Roots
2 and 1
Vertex
(1.5, −0.25)

What the discriminant tells you

DiscriminantRootsGraph
D > 0Two different real rootsCrosses the x-axis twice
D = 0One repeated real rootTouches the x-axis once
D < 0Two complex rootsNever touches the x-axis

Frequently asked questions

What if a is zero?

Then the equation is not quadratic; it is linear (bx + c = 0) with a single solution x = −c ÷ b. The calculator asks for a non-zero a.

What are complex roots?

When the discriminant is negative the roots involve the square root of a negative number, written with i. They always come in a matching pair.

How do I find the vertex?

The vertex is at x = −b ÷ 2a. Put that x back into the equation to get the y-value.

Can I factor instead?

Yes, when the roots are whole numbers factoring is quicker, but the formula works for every quadratic, including those that do not factor neatly.