=Calculator24

Math calculator

Quadratic Formula Calculator

Solve real or complex roots and inspect the discriminant, vertex and axis of symmetry.

Inputs

Your numbers

Live

Instant result. Updates while you type.

Your result

Updated now

Enter your numbers.

Complete guide

Quadratic formula calculator for real and complex roots

Enter a, b and c for ax²+bx+c=0. Calculator24 reports both roots, discriminant, root type, vertex, symmetry axis and a substitution check.

Editorial checkRoot, discriminant and vertex identities checked against OpenStax algebra.Updated September 10, 2026
The discriminant selects the root typePositive gives two real roots, zero gives one repeated root and negative gives a complex-conjugate pair.1Coefficients2Discriminant3Roots
The discriminant selects the root typePositive gives two real roots, zero gives one repeated root and negative gives a complex-conjugate pair.

Standard quadratic form

A quadratic equation has ax²+bx+c=0 with a not equal to zero. If a were zero, the equation would be linear.

Quadratic formula

The formula solves every quadratic in standard form. Its square-root term contains the discriminant.

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

Worked factorable example

For a=1, b=−5 and c=6, D=25−24=1. The two signs produce (5−1)/2=2 and (5+1)/2=3.

Reading the discriminant

When D is positive there are two distinct real roots; when zero the same real root repeats; when negative the roots contain imaginary parts.

Vertex and symmetry

The vertex x-coordinate and axis of symmetry are −b/(2a). Substituting that x-value into the polynomial gives the vertex y-coordinate.

Numerical precision

Very large or nearly cancelling coefficients can magnify floating-point rounding. Symbolic algebra or higher precision may be required for sensitive work.

Discriminant guide

Root behavior for real coefficients.
DRoots
D > 0Two distinct real roots
D = 0One repeated real root
D < 0Two complex conjugate roots

Frequently asked questions

What if a equals zero?

The equation is linear, so the quadratic formula does not apply.

What does a negative discriminant mean?

The equation has a complex-conjugate root pair.

Can a quadratic have one root?

It can have one repeated real root when the discriminant is zero.

What is the axis of symmetry?

x=−b/(2a).

How can I check a real root?

Substitute it into ax²+bx+c; the result should be near zero.

Why are decimals rounded?

The display rounds while the calculation retains floating-point precision.

What to keep in mind

Coefficient a must be nonzero. Extremely ill-conditioned coefficients can lose decimal precision in standard floating-point arithmetic.

Results display up to 8 decimal places; exported numbers preserve calculation precision. This is a calculation summary, not an official certificate.

Sources and references

Keep exploring