Skip to content · 跳到主要内容

Quadratic Formula Calculator

Solve ax² + bx + c = 0 and show both real or complex roots

Enter a valid coefficient

Enter a valid coefficient

Enter a valid coefficient

Root 1
--
--
Root 2
--
Discriminant
--
Axis of symmetry

Quadratic Formula Calculator

Solve a quadratic equation in standard form. The sign of the discriminant determines whether the roots are distinct real, repeated real or complex.

x = (−b ± √(b² − 4ac)) ÷ 2a
discriminant = b² − 4ac
axis of symmetry = −b ÷ 2a

Worked example

Solve 2x² − 5x − 3 = 0. The discriminant is b² − 4ac = 25 + 24 = 49, whose square root is exactly 7, so the roots are (5 + 7) ÷ 4 = 3 and (5 − 7) ÷ 4 = −0.5. Substituting either root back into the original equation gives zero, which is the fastest possible check. When the discriminant is a perfect square like this, the roots are rational and the quadratic factors cleanly.

Three discriminant cases

A positive discriminant yields two distinct real roots, zero yields one repeated root (−b ÷ 2a, touching the x-axis at a single point), and a negative value yields a complex conjugate pair whose real part is −b ÷ 2a. Complex results are reported with the imaginary part kept exact, so engineering work can consume them directly rather than rounding through intermediate steps.

Getting into standard form

The formula only fits ax² + bx + c = 0. Move every term to one side first: x² = 3x + 10 becomes x² − 3x − 10 = 0 with a = 1, b = −3, c = −10. If a turns out to be zero, the equation is linear, not quadratic — divide through and solve directly instead. Sign slips on b and c are the most common input error, so re-read the equation once after typing.

Frequently Asked Questions

What does the discriminant tell me?

A positive discriminant gives two real roots, zero gives a repeated real root, and a negative discriminant gives a complex conjugate pair.

Can a equal zero?

No. If a is zero, the equation is linear rather than quadratic.

How do I read complex roots?

They appear as a real part plus or minus an imaginary part times i, where i is the square root of −1. They mean the parabola never crosses the x-axis.

What is the axis of symmetry used for?

It is the vertical line through the vertex at x equals −b divided by 2a. The two roots are mirrored across it.

Do I need the equation in standard form?

Yes. Rearrange into ax² + bx + c = 0 first, moving every term to one side before entering the coefficients.

Can I enter decimal coefficients?

Yes. Decimals are accepted, and the discriminant is computed at full precision before the roots are rounded for display.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision