Skip to content
hateitall

Quadratic Equation Solver

Solve any quadratic, see the discriminant and get exact roots with the full working.

Processed locallyIn: NumberOut: Roots, Steps

Loading tool…

How to use quadratic equation solver

  1. Enter a, b and c. Fractions such as 1/2 and decimals work.

  2. Read the type of roots from the discriminant.

  3. See the roots in exact form (fraction or surd) and as decimals.

  4. Check the vertex, axis of symmetry and the step by step working.

What this tool does

  • Exact discriminant and exact rational roots using fractions.
  • Simplest surd form such as (2 +/- sqrt(10)) / 2 for whole-number coefficients.
  • Complex roots with real and imaginary parts when the discriminant is negative.
  • A numerically stable formula, so roots stay accurate when b is huge compared with a and c.
  • Handles a = 0 as a linear equation instead of failing.

How the result is verified

The last step checks Vieta's formulas: the roots must add up to -b/a and multiply to c/a. Substituting a root back into ax^2 + bx + c gives 0 (or very close for decimal roots).

Frequently asked questions

What does the discriminant tell me?

D = b^2 - 4ac. If D is positive there are two different real roots, if it is 0 there is one repeated root, and if it is negative the roots are a pair of complex numbers. If D is a perfect square the real roots are rational.

Why not just use the usual formula?

When b^2 is much larger than 4ac, -b + sqrt(D) subtracts two almost equal numbers and loses most of its digits in floating point. The tool computes the larger root first and gets the other from c / q, which keeps full accuracy.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Trig, logs, powers and factorials with memory, history and keyboard input

Expression→ NumberLight on device

Exact fraction and mixed number maths with steps and repeating decimals

Fraction · Mixed number · Decimal→ FractionLight on device

log in any base, ln, log10 and log2, antilog, with exact checks

Number→ NumberLight on device