➗ Quadratic Equation Solver — ax² + bx + c

Enter a, b and c to see the discriminant, real roots when they exist, and the vertex of the parabola.

Math Free · no sign-up Reviewed 2026-11-03
Input
Result
Summary

Private by design. This tool runs entirely in your browser — nothing you enter or add is uploaded to any server.

What this tool does

The quadratic solver takes the coefficients a, b and c from ax² + bx + c = 0 and computes the discriminant, the real roots when they exist, and the vertex of the corresponding parabola. It is a direct way to check homework, inspect a model or understand why an equation has no real solution.

When the discriminant is negative, the page explains that the roots are complex rather than pretending there is no answer. The vertex coordinates give additional context about the graph's turning point.

When to use it

  • Solving a quadratic equation from a textbook or exam question.
  • Checking whether a projectile or profit model has real break-even points.
  • Finding the vertex before sketching a parabola.
  • Understanding the effect of the discriminant on the number of real roots.

How it works

  1. Enter the coefficients of ax² + bx + c = 0. a must not be zero.
  2. Press Solve. The discriminant is b² − 4ac.
  3. Copy the real roots, or the note that the roots are complex when the discriminant is negative.

Worked example

With a = 1, b = -3 and c = 2, the discriminant is 9 minus 8, which is 1. The square root is 1, so the roots are (3 ± 1) / 2, giving 2 and 1. The vertex lies at x = 1.5 and y = -0.25, below the x-axis because the parabola opens upward and crosses at both roots.

  • 1, -3, 2 gives roots 1 and 2.
  • 1, 0, -4 gives roots -2 and 2.
  • 1, 0, 1 has a negative discriminant, so no real roots.

Accuracy and limitations

  • The coefficient a cannot be zero; that would make the equation linear and is rejected.
  • Only real roots are listed. When the discriminant is negative, the page reports that the roots are complex but does not print complex numbers.
  • Coefficients are floating-point values, so irrational or very large results may show rounding.

Privacy and data handling

Coefficients are evaluated locally in JavaScript. No equation is uploaded or stored.

Frequently asked questions

What if a is zero?

The equation is linear, not quadratic. The tool asks you to enter a non-zero a instead of silently switching formulas.

Are complex roots calculated?

No. A negative discriminant is reported as no real roots. Only real roots are printed.

Is any coefficient uploaded?

No. The quadratic formula runs in the page.

What does a negative discriminant mean?

The parabola does not cross the x-axis, so the equation has no real roots. The roots are complex conjugates.

What if a is negative?

The formula still works; the parabola opens downward. The vertex calculation uses the same coefficients and remains valid.

More Math tools →