How to use it
- Enter a, b and c (negative numbers are fine).
- If b or c is 0, you can leave it blank.
- You get the roots, the discriminant and the vertex of the parabola.
What this calculates
A quadratic equation is solved with the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. If the discriminant b² − 4ac 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 complex. The vertex is the lowest or highest point of the parabola.
The formulas
- Discriminant D = b² − 4ac
- Roots x = (−b ± √D) ÷ 2a
- Vertex (−b ÷ 2a, c − b² ÷ 4a)
Reference table
| Equation | Discriminant D | Solutions | Vertex |
|---|---|---|---|
| x² − 5x + 6 = 0 | 1 | x = 3, 2 | (2.5, -0.25) |
| x² − 2x + 1 = 0 | 0 | x = 1 (double root) | (1, 0) |
| x² + 2x + 5 = 0 | -16 | x = -1 ± 2i | (-1, 4) |
| 2x² − 3x − 2 = 0 | 25 | x = 2, -0.5 | (0.75, -3.125) |
Worked examples
- x² − 3x + 2 = 0 → x = 2, 1
- x² − 4x + 4 = 0 → repeated root 2
- x² + 2x + 5 = 0 → −1 ± 2i
Frequently asked questions
What if a is 0?
Then it is not a quadratic equation (it is linear). Enter a value other than 0 for a.
What about fraction coefficients?
Turn them into decimals. ½ is 0.5.
What is the i in a complex root?
It is the imaginary unit, where i² = −1.
The roots have a long decimal.
Results are rounded to 6 significant digits.
Is there a special way it calculates?
It uses a stable formula so the error stays small even when large and small numbers are mixed.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Good to know
- For general expressions, use the Scientific Calculator.
- Find triangle side lengths with the Right Triangle Calculator.
Sources
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.