Math / Quadratic Equation

Quadratic Equation calculator

Solve any quadratic equation and see exactly why it has real or complex roots.

Your answer will appear here.

Formula: x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant Δ = b² − 4ac decides whether the roots are real, repeated, or complex.

The basics

Read the discriminant first

Before calculating the roots, look at Δ. Its sign tells you whether the parabola crosses the x-axis twice, touches it once, or misses it entirely. The vertex in the results is the turning point of the parabola, which makes the shape easy to sketch. The sum and product of the roots are a quick check against Vieta's formulas: sum = −b/a and product = c/a.

In practice

Worked examples

Input

x² − 5x + 6 = 0

Answer

x = 3 or x = 2 · Δ = 1

Input

x² + 1 = 0

Answer

x = 0 + 1i or x = 0 − 1i · Δ = −4

Good to know

Frequently asked questions

The discriminant Δ = b² − 4ac decides the root type. A positive value gives two distinct real roots, zero gives one repeated real root, and a negative value gives a pair of complex conjugates.

Keep going