Quadratic Equation Solver

The quadratic equation solver finds the roots of ax² + bx + c = 0. Enter a, b and c to get both roots — real or complex — along with the discriminant, the vertex and axis of symmetry of the parabola, and the quadratic formula with your numbers in it. It's accurate even for awkward coefficients and runs in your browser.

Discriminant

b² − 4acRoots
> 0Two different real roots
= 0One repeated real root
< 0Two complex roots

When to use it

  1. Check homework answers for quadratic equations.
  2. Find the vertex of a parabola.
  3. See whether a quadratic has real roots.
  4. Solve projectile-motion problems.

How to Use

  1. Enter a, b and c.
  2. Read the two roots and the discriminant.
  3. Check the vertex and axis of symmetry.

Features

  1. Real and complex roots
  2. Discriminant and root type
  3. Vertex and axis of symmetry
  4. Formula with your numbers
  5. Numerically stable
  6. 100% client-side

FAQs

What is the quadratic formula?

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

What if the discriminant is negative?

There are no real roots; the two roots are complex, shown as a ± bi.

How do I find the vertex?

The x-coordinate is −b/2a; substitute it back for the y-coordinate. The solver shows both.

What if a is 0?

Then it's a linear equation. Switch to the linear option.

Is anything uploaded?

No. It runs in your browser.

Technical Details

The discriminant b² − 4ac decides the roots: positive gives two real roots, zero one repeated root, negative two complex conjugate roots −b/2a ± (√(4ac − b²)/2a)i. Real roots are computed with the numerically stable form q = −½(b + sign(b)√(b² − 4ac)), x₁ = q/a and x₂ = c/q, which avoids the catastrophic cancellation the usual formula suffers when b² is much larger than 4ac — so a root like −0.00000001 isn't lost. The vertex of the parabola is (−b/2a, c − b²/4a) and the axis of symmetry is x = −b/2a. If a is 0 the equation isn't quadratic, and you're told so. The same solver also handles linear and cubic equations and systems.

Calculators & Converters

Calculators & Converters

  • Exponent & Logarithm Calculator
  • Fraction Calculator
  • GCD & LCM Calculator
  • Matrix Calculator
  • Prime Number Checker
  • Ratio & Proportion Calculator
  • Roman Numeral Converter
  • Rounding Calculator