Math

Quadratic Formula Calculator

Solve a quadratic equation for its roots.


Quadratic Formula Calculator

Advertisement

Solves any quadratic equation of the form ax² + bx + c = 0 for its roots, using the quadratic formula.

How it works

The discriminant (b² − 4ac) is computed first to check how many real roots exist, then the quadratic formula gives the root or roots directly.

What this does not include

This does not include converting the equation to vertex form to reveal the parabola’s vertex — for that, use this site’s vertex form calculator instead.

How to use this calculator

  1. Enter the a, b, and c coefficients from your equation.

A worked example

For x² − 5x + 6 = 0 (a=1, b=−5, c=6): discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1. Roots = (5 ± 1) ÷ 2 = 3 and 2.

For x² + 2x + 5 = 0 (a=1, b=2, c=5): discriminant = 4 − 20 = −16 — no real roots.

What the variables mean

Variable Meaning
a, b, c Coefficients from ax² + bx + c = 0
Discriminant (b² − 4ac) Predicts the number and type of roots before solving

Edge cases worth knowing

A discriminant of exactly zero gives one repeated root, not two distinct ones — the parabola just touches the x-axis at a single point.

A of zero isn’t a quadratic equation at all. Without the x² term the equation is linear, and the quadratic formula doesn’t apply — this calculator requires a nonzero a.

Frequently asked questions

What does the discriminant tell you?

Its sign predicts the type of roots: positive means two distinct real roots, zero means exactly one repeated real root, and negative means no real roots (only complex ones).

Why can’t a be zero?

If a is zero, the a x² term disappears and the equation becomes linear (bx + c = 0), not quadratic — the quadratic formula no longer applies.

What does “no real roots” mean graphically?

The parabola never crosses the x-axis — it stays entirely above or entirely below it.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

T. Okafor

Calculator reviewer — mathematics

T. Okafor reviews the mathematics calculators, verifying algebraic correctness and, just as importantly, behaviour at the edges — division by zero, undefined results, and the floating-point cases where a formula technically returns a number that should be reported as undefined. Every test case is recomputed independently rather than taken on trust.

How we write and review

Related calculators