Skip to main content
🔢 Algebra

Quadratic Equation Calculator

Solve ax² + bx + c = 0 with the quadratic formula. Get both roots (real or complex), the discriminant that classifies them, and the vertex of the parabola.

Both roots
Discriminant
Vertex
Complex roots
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Quadratic — Quick answer

Use the quadratic formula; the discriminant b²−4ac says whether the roots are real, repeated or complex.

x = (−b ± √(b² − 4ac)) / (2a)
D = b² − 4ac · vertex x = −b/(2a)

Worked example: x² − 5x + 6 = 0 → roots 3 and 2 (D = 1).

Discriminant decides the roots

EquationDRoots
x² − 5x + 613, 2
x² − 4x + 402 (double)
x² − 2x − 3163, −1
x² + x + 1−3−0.5 ± 0.866i

Check: sum of roots = −b/a, product = c/a.

🔢 Quadratic Equation Calculator

Enter the coefficients of ax² + bx + c = 0 (a must not be 0).

Root 1
Root 2
Discriminant
Vertex

⚠️ Requires a ≠ 0 (otherwise the equation is linear). A negative discriminant gives complex-conjugate roots p ± qi. Check with sum = −b/a and product = c/a.

A quadratic equation ax² + bx + c = 0 is solved by the quadratic formula: x = (−b ± √(b²−4ac)) / (2a). The quantity under the root, the discriminant D = b²−4ac, classifies the solutions before you even finish: D > 0 gives two real roots, D = 0 a single repeated root, and D < 0 a pair of complex-conjugate roots. The vertex of the parabola sits at x = −b/(2a), halfway between the roots. Together these tell you everything about the equation's shape and solutions.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the quadratic formula and Vieta's relations.

The quadratic equations

Roots
x = (−b ± √(b² − 4ac)) / (2a)
Discriminant
D = b² − 4ac · D>0 two real · D=0 one repeated · D<0 two complex
Vertex & checks
vertex (−b/(2a), c − b²/(4a)) · sum = −b/a · product = c/a

The ± in the formula produces the two roots, symmetric about the vertical line x = −b/(2a). The discriminant is the deciding quantity: a positive value has a real square root (two crossings of the x-axis), zero means the root sits exactly on the axis, and a negative value forces an imaginary part, giving conjugate complex roots. Vieta's relations — sum = −b/a, product = c/a — provide a quick independent check on any answer.

Worked example — a factorable quadratic

Scenario: solve x² − 5x + 6 = 0 (a = 1, b = −5, c = 6).

Discriminant
D = (−5)² − 4·1·6 = 25 − 24 = 1
Roots & vertex
x = (5 ± 1) / 2 = 3 and 2 · vertex (2.5, −0.25)

With D = 1 the roots are real and distinct: 3 and 2. The vertex sits at x = 2.5 — exactly midway between them — with y = −0.25. The checks hold: the roots sum to 5 (= −b/a) and multiply to 6 (= c/a). Other equations show the other cases: x² − 4x + 4 has D = 0 and a single root of 2; x² + x + 1 has D = −3 and complex roots −0.5 ± 0.866i; and x² − 2x − 3 has D = 16 with roots 3 and −1.

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b²−4ac)) / (2a). x²−5x+6 → x = (5 ± 1)/2 = 3, 2.

What is the discriminant?

D = b²−4ac. >0 two real, =0 one repeated, <0 two complex roots.

Negative discriminant?

No real roots — two complex conjugates p ± qi. x²+x+1 → −0.5 ± 0.866i.

How to find the vertex?

x = −b/(2a), y = c − b²/(4a). x²−5x+6 → (2.5, −0.25).

Quick check?

Vieta: sum of roots = −b/a, product = c/a. 3+2=5, 3×2=6. ✓

Ready to perform complete calculations?

Use the full AI Calculator suite for algebra, equations and math with a professional PDF report.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export