Skip to content

Math

Quadratic Equation Solver

Enter the coefficients a, b, and c for ax² + bx + c = 0. The solver returns the roots, the discriminant b² − 4ac, the vertex, and the axis of symmetry. A positive discriminant gives two real roots, zero gives one repeated root, and a negative discriminant gives two complex roots. If a = 0, the equation is linear.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its solutions come from the quadratic formula, and the discriminant b² − 4ac tells you how many real solutions exist before you solve anything. This calculator applies the formula for any coefficients you enter, including decimals and negative numbers, then reports the vertex and axis of symmetry so you can see the shape of the parabola as well as where it meets the x-axis.

How to use it

  1. Enter the coefficients a, b, and c from ax² + bx + c = 0.
  2. Use a minus sign for negative coefficients, such as b = −5.
  3. Select Solve to see the roots, discriminant, vertex, and axis of symmetry.
  4. If a = 0, expect a linear result with a single solution.

How it works

For ax² + bx + c = 0 with a ≠ 0, the roots are x = (−b ± √(b² − 4ac)) / (2a). The discriminant is D = b² − 4ac. If D > 0 there are two distinct real roots; if D = 0 there is one repeated real root at x = −b/(2a); if D < 0 the roots are complex and can be written as −b/(2a) ± (√|D|/(2a))i. The vertex is at h = −b/(2a) and k = c − b²/(4a), and the axis of symmetry is the vertical line x = h. When a = 0 the x² term disappears and the equation becomes bx + c = 0, which is linear with the single solution x = −c/b.

Example calculations

Example 1: two real roots

For x² − 5x + 6 = 0, a = 1, b = −5, and c = 6. The discriminant is 25 − 24 = 1, which is positive, so there are two real roots. The formula gives (5 ± 1)/2, so x = 3 and x = 2. The vertex is at h = 2.5 and k = 6 − 6.25 = −0.25, and the axis of symmetry is x = 2.5. The parabola opens upward because a is positive, so the vertex is its lowest point.

Example 2: one repeated root

For 2x² + 4x + 2 = 0, a = 2, b = 4, and c = 2. The discriminant is 16 − 16 = 0, so the two roots collapse into one repeated root at x = −4/4 = −1. The expression factors as 2(x + 1)², and the vertex sits on the x-axis at (−1, 0).

Example 3: two complex roots

For x² + 1 = 0, a = 1, b = 0, and c = 1. The discriminant is 0 − 4 = −4, which is negative, so there are no real roots. The roots are x = ±i, since i² = −1. The parabola opens upward with its vertex at (0, 1) and never touches the x-axis.

What the result means

The discriminant is the fastest way to read a quadratic. A positive value means the parabola crosses the x-axis twice, so both roots are real and different. Zero means it just touches the axis at the vertex, which is why the two roots collapse into one repeated value. A negative value means the parabola never reaches the x-axis, and the two roots are a conjugate pair written with i. The vertex is the turning point: for a positive a it is the lowest point, and for a negative a the highest. Its x-coordinate, −b/(2a), is also the axis of symmetry, the vertical line that splits the parabola into mirror images. Together, the roots and the vertex give you enough to sketch the curve by hand, even when the roots are complex and the curve never crosses the axis.

Common mistakes

  • Dropping the ± so only one root is reported.
  • Dividing only the square root by 2a instead of the whole numerator.
  • Losing a sign when b is negative and −b turns positive.
  • Treating a = 0 as a quadratic and dividing by zero.
  • Reporting complex roots as if they were real numbers on the x-axis.

Assumptions and limits

  • Coefficients are real numbers, including decimals and negatives.
  • The equation is already in standard form ax² + bx + c = 0.
  • a = 0 is solved as a linear equation, not a quadratic.
  • Complex roots are shown with i, where i² = −1.
  • Results are rounded for display.

Frequently asked questions

What does a negative discriminant mean?

It means the parabola does not cross the x-axis, so the equation has no real roots. The two roots are complex numbers that involve i, and the calculator shows them in the a ± bi form.

What happens if a is zero?

The x² term vanishes, so the equation is linear: bx + c = 0. The calculator says so and solves x = −c/b. If b is also zero, there is no solution unless c is zero too, in which case every x works.

Why is there only one root when the discriminant is zero?

The parabola touches the x-axis at a single point, the vertex. The formula returns the same value twice, so it is called a repeated or double root.

How do I find the vertex without graphing?

Use h = −b/(2a), then substitute h back into the equation to get k, or use k = c − b²/(4a). The axis of symmetry is the line x = h.

Can I enter decimals or fractions?

Decimals work directly. For fractions, enter the decimal value, or multiply the whole equation by the denominator so every coefficient becomes a whole number.

Does the order of the roots matter?

No. The two roots form a set, so x = 2 and x = 3 is the same answer as x = 3 and x = 2. The order of display does not change the solution.

Sources

Editorial review completed 2026-11-07. This is an educational estimate, not professional advice.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Quadratic Equations: Discriminant, Roots, and Real-World Checks
Math

Quadratic Equations: Discriminant, Roots, and Real-World Checks

Solve ax² + bx + c = 0, read the discriminant, and know when the answer is not physically meaningful.

6 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.