Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library
← Back to calculators

Quadratic Formula Calculator

Solve quadratic formula problems with clear steps, notation, and a final check.

Calculate without using AI.

Evaluate the governing formula locally in your browser. Define each known quantity once, then change values to test another case instantly.

Local result

Choose an example or enter a formula.

Show your work Step-by-step method
  1. No account, AI request, or paid token is used.

Recent calculations

No calculations yet.

General math

Quadratic Formula Calculator explained

The short version

  • The quadratic formula solves every equation of the form ax² + bx + c = 0, even the ones that will not factor.
  • The part under the square root, b² − 4ac, is called the discriminant, and its sign tells you the answer's shape before you finish.
  • The whole top line, −b plus or minus the root, gets divided by 2a. That fraction bar covers everything.

The formula this page uses

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

What each part means

SymbolWhat it means
a — Coefficient of x²Must not be zero, or the equation is a straight line instead. Its sign says whether the parabola opens up or down.
b — Coefficient of xCopy its sign into the formula. A −5 in the equation becomes −(−5) = +5 on top.
c — Constant termThe number with no x. It is also the height where the parabola crosses the y-axis.
b² − 4ac — DiscriminantA single number that decides whether you get two roots, one root, or a complex pair.

Show your work: a full example

  1. The equation2x² + 5x − 12 = 0, so a = 2, b = 5, c = −12
  2. Discriminant first5² − 4(2)(−12) = 25 + 96 = 121
  3. Square-root it√121 = 11, a whole number, so the roots will be tidy
  4. Build the fractionx = (−5 ± 11) / (2 × 2) = (−5 ± 11) / 4
  5. Take the plus branch(−5 + 11) ÷ 4 = 6 ÷ 4 = 1.5
  6. Take the minus branch(−5 − 11) ÷ 4 = −16 ÷ 4 = −4
  7. Check both in the original2(1.5)² + 5(1.5) − 12 = 4.5 + 7.5 − 12 = 0 and 2(−4)² + 5(−4) − 12 = 32 − 20 − 12 = 0

A second, different case

  1. A different case: the discriminant goes negative2x² + 3x + 6 = 0, so a = 2, b = 3, c = 6
  2. Discriminant3² − 4(2)(6) = 9 − 48 = −39
  3. A negative under the root means no real answer√(−39) = i√39, where i is the square root of −1
  4. Build the fraction anywayx = (−3 ± i√39) / 4
  5. Put it in decimal form√39 ≈ 6.245, so x ≈ −0.75 + 1.561i and x ≈ −0.75 − 1.561i
  6. Read the graphthe parabola opens upward and its lowest point sits above the x-axis, so it never crosses
Copy-ready example

2x² + 5x − 12 = 0, so a = 2, b = 5, c = −12

The equation

What the discriminant b² − 4ac tells you before you finish the calculation

DiscriminantExample equationRootsWhat the graph does
Positive and a perfect square2x² + 5x − 12 = 0, D = 121two rational roots: 1.5 and −4crosses the x-axis twice at exact values
Positive, not a perfect squarex² − 4x + 1 = 0, D = 12two irrational roots: 2 + √3 and 2 − √3crosses twice at messy values
Exactly zerox² − 6x + 9 = 0, D = 0one repeated root: x = 3touches the x-axis once and turns around
Negative2x² + 3x + 6 = 0, D = −39two complex roots: (−3 ± i√39)/4never touches the x-axis

Three mistakes to check for

What students writeWhy it's wrongDo this instead
x = −b ± √(b² − 4ac) ÷ 2a, dividing only the rootThe 2a sits under the entire top line, not just under the square root.Bracket the whole numerator: (−5 + 11) ÷ 4 = 1.5, not −5 + (11 ÷ 4).
For 2x² + 5x − 12 = 0, using c = 12The minus sign is part of c. Dropping it flips the discriminant from +121 to −71 and invents complex roots.Read c straight off with its sign: c = −12.
The discriminant is negative, so there are no solutionsThere are no real solutions. Two complex solutions still exist and still satisfy the equation.Write them as a ± bi: x = (−3 ± i√39)/4.

Questions about the Quadratic Formula Calculator

Do I always have to use the quadratic formula?

No. Try factoring first, because 2x² + 5x − 12 splits neatly into (2x − 3)(x + 4) and takes ten seconds. Reach for the formula when nothing factors, when the coefficients are decimals, or when the discriminant turns out negative.

What can I learn from the discriminant before I finish?

Its sign alone answers most multiple-choice questions. Positive means the parabola cuts the x-axis twice, zero means it grazes it once, negative means it misses entirely. You often never need the roots themselves.

Why is the denominator 2a and not just a?

The formula comes from completing the square on ax² + bx + c. Halving b/a during that step is where the 2 appears, and it stays in the final denominator.

What happens if a = 0?

Then there is no x² term, the equation is linear, and 2a in the denominator becomes zero. Solve bx + c = 0 directly instead: x = −c/b.

Where to go next

Continue from this result

Turn one calculation into understanding.

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.