Calculators

Quadratic Formula Calculator

Solve quadratic equations ax² + bx + c = 0 using the quadratic formula, showing real and complex roots with full working.

Loading interactive tool…

Embed this tool on your site

About this tool

The Quadratic Formula Calculator finds the roots of any quadratic equation in the form ax² + bx + c = 0 using the quadratic formula: x = (-b ± √(b² - 4ac)) / 2a. The tool calculates the discriminant (b² - 4ac) and determines whether the equation has two distinct real roots (discriminant > 0), one repeated real root (discriminant = 0), or two complex conjugate roots (discriminant < 0). As you type, it rewrites your equation, shows the discriminant with your coefficients substituted, then the quadratic formula with your numbers, and finally the roots as decimals (up to 8 significant digits) or as a ± bi for complex roots. If a = 0 it solves the resulting linear equation instead. The quadratic formula is one of the oldest closed-form algebraic results, attributable to Babylonian and Indian mathematicians millennia before its modern symbolic form.

Why use it

  • Handles all three discriminant cases: two real roots, one root, and complex roots.

  • Step-by-step working helps students follow the quadratic formula.

  • Live equation preview catches sign mistakes before you rely on the answer.

  • Instant calculation — no form submission needed.

  • Falls back to solving bx + c = 0 when a is 0, so linear inputs still get an answer.

  • Privacy-first: coefficients are processed entirely in your browser.

How to use

  1. Enter the coefficients a, b, and c in the respective fields.
  2. Check the equation preview above the fields to confirm the signs are right.
  3. Read the step-by-step box: the discriminant with your values, then the quadratic formula with your numbers.
  4. Read the roots below — two real roots, one repeated root, or a complex pair a ± bi.
  5. Verify the result by substituting each root back into ax² + bx + c — both should yield 0 (within floating-point tolerance).
  6. Use the discriminant first if you only need to know whether real roots exist — full computation is unnecessary for that question.

When it helps

  • Solving quadratic equations in algebra coursework.
  • Checking hand-calculated roots for errors.
  • Finding roots of physics, engineering, or economics quadratic models.
  • Learning the quadratic formula with step-by-step examples.
  • Solving projectile motion or trajectory problems in physics (x represents time or distance).
  • Computing break-even points in business and economics where revenue equals cost.

Examples

Two real roots: x² - 5x + 6 = 0

Input

a = 1, b = -5, c = 6

Expected result

Δ = 1; x₁ = 3, x₂ = 2 (two distinct real roots)

Repeated root: x² - 4x + 4 = 0

Input

a = 1, b = -4, c = 4

Expected result

Δ = 0; x = 2 (one repeated real root)

Complex roots: x² + x + 1 = 0

Input

a = 1, b = 1, c = 1

Expected result

Δ = -3; x = -0.5 ± 0.8660254i

Tips

  • Always check whether your equation is in standard form (ax² + bx + c = 0) before entering coefficients — moving terms across the equals sign changes signs.
  • If the discriminant is a perfect square, the roots are rational and can also be found by factoring — try factoring first for cleaner answers.
  • For physics problems (projectile motion, kinematics), the negative root is often physically meaningless (negative time) — pick the positive one.
  • When |b| is much larger than |c|, beware floating-point cancellation; the alternative formula x = -2c / (b + sign(b)√(b²-4ac)) gives more accurate small roots.
  • The sum of the roots equals -b/a and the product equals c/a — use these as a sanity check after computing.
  • Complex roots always come in conjugate pairs (a + bi and a - bi) for real-coefficient quadratics — if one root is complex, the other is its conjugate.

Frequently Asked Questions

What is the quadratic formula?
x = (-b ± √(b² - 4ac)) / 2a, where a, b, c are the coefficients of ax² + bx + c = 0.
What is the discriminant?
The discriminant is b² - 4ac. If > 0: two distinct real roots. If = 0: one repeated real root. If < 0: two complex conjugate roots.
Can a be zero?
If a = 0 the equation is linear (bx + c = 0), not quadratic. The tool notes this and returns the single solution x = −c/b. If a and b are both 0 there is no x to solve for.
What are complex roots?
When the discriminant is negative, the roots include √(negative number) = i × √(|discriminant|/4a²). The roots are a ± bi where a and b are real numbers.
How do I convert the answer to factored form?
If roots are x₁ and x₂, factored form is a(x − x₁)(x − x₂) = 0. The tool gives the roots; write the factors yourself from them.
How does this compare to a graphing calculator's solver?
Identical math, but this tool shows the discriminant and the substituted quadratic formula in plain text — useful for homework explanations. A TI-84 just gives numerical roots.
How accurate are the decimal approximations?
The tool computes with double-precision floats and displays roots to 8 significant digits. For extremely small/large coefficients or near-zero discriminants, precision can degrade, so verify such cases by substitution.
Does this handle non-real coefficients?
No — coefficients must be real. Complex coefficients require fundamentally different handling (the discriminant itself becomes complex). For real-coefficient cases with complex roots, this tool works correctly.

Explore the category

Glossary

Quadratic equation
An equation of the form ax² + bx + c = 0 with a ≠ 0. Has at most two solutions (roots).
Discriminant
Δ = b² - 4ac. The expression under the square root in the quadratic formula. Sign determines the nature of the roots.
Quadratic formula
x = (-b ± √(b² - 4ac)) / 2a. Gives both roots of any quadratic; provable by completing the square.
Roots / zeros
Values of x where the quadratic equals zero. Geometrically, where the parabola crosses the x-axis.
Vertex
The maximum or minimum point of the parabola; located at x = -b/2a, y = c - b²/4a.
Complex conjugate
If a + bi is a root of a real-coefficient quadratic, so is a - bi. They mirror across the real axis in the complex plane.
Completing the square
Algebraic technique that rewrites ax² + bx + c as a(x + b/2a)² + (c - b²/4a) — the geometric basis of the quadratic formula.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities