About the Quadratic Equation Solver
Quadratic Equation Solver finds the solutions of ax² + bx + c = 0. Enter the three coefficients and it calculates the discriminant D = b² − 4ac, tells you whether there are two distinct real roots, one repeated root or a pair of complex-conjugate roots, and gives the roots, the vertex, the axis of symmetry and the y-intercept.
The quadratic formula is shown with your coefficients substituted. If a is 0 the equation is solved as a linear equation, and if a and b are both 0 the tool says whether there is no solution or infinitely many. A graph of the parabola is drawn with labelled axes, with real roots marked on the x-axis. You can set your own x-range; any root outside it is listed as off-screen rather than drawn, and a text summary of the graph is provided for screen readers.
How to use
- Enter coefficients a, b and c (use 0 for a missing term and a minus sign for negatives).
- Choose the decimal places to display.
- Leave the graph range on Automatic, or set a custom x-range.
- Press Calculate to see the roots, working and graph.
- Copy or download the summary, or press Reset.
Key features
- Two real, repeated and complex-conjugate roots.
- Discriminant, root type, vertex, axis of symmetry and y-intercept.
- Quadratic formula with your values substituted.
- Linear and constant cases when a = 0.
- Numerically stable root calculation to reduce rounding error.
- Graph with labelled axes, root markers and a text summary.
- Off-screen roots are stated, never drawn in the wrong place.
Best practices
- Rearrange your equation into the form ax² + bx + c = 0 first.
- Enter 0 for any missing term rather than leaving the box empty.
- Check the discriminant sign to predict the type of roots.
- Use a custom range to zoom in on roots that are close together.
- Substitute a root back into the equation to check it.
Benefits
- Step-by-step working for checking homework.
- Handles every case, including complex and degenerate equations.
- The graph links the algebra to the shape of the parabola.
- Private: runs entirely in your browser.
Frequently asked questions
How are the roots calculated?
With the quadratic formula x = (−b ± √(b² − 4ac)) ÷ (2a). To avoid losing precision when b² is much larger than 4ac, the tool uses the equivalent stable form: q = −(b + sign(b)√D) ÷ 2, x₁ = q ÷ a and x₂ = c ÷ q.
What does the discriminant tell me?
D = b² − 4ac. If D > 0 there are two different real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex-conjugate roots of the form p ± qi.
What happens when a is 0?
The equation is no longer quadratic. If b is not 0 it is solved as the linear equation bx + c = 0, giving x = −c ÷ b. If b is also 0, there is no solution when c ≠ 0 and infinitely many when c = 0.
Why does it say a root is off-screen?
With a custom x-range, a root outside that range cannot be drawn in its true position, so it is listed as off-screen instead. Widen the range or switch back to Automatic to see it.
Why might a discriminant be treated as 0?
With decimal coefficients, a discriminant that should be exactly 0 can come out as a tiny number such as 1e-17 because of floating-point rounding. Values that small relative to b² and 4ac are treated as 0, and the working says so.
What coefficient values are accepted?
Plain numbers, including negatives, zero and decimals, between −1,000,000,000 and 1,000,000,000. A custom graph range can be from −1,000,000 to 1,000,000, and “x to” must be greater than “x from”.
How precise are the answers?
Calculations use double-precision arithmetic (about 15–16 significant digits) and are rounded to the decimal places you choose. Irrational roots are shown as rounded decimals, not exact surds.
Is anything I enter saved or sent anywhere?
No. Every calculation runs in your browser on your device. Inputs, settings and results are not uploaded and are not saved in browser storage. Reset clears them from the page.