Math calculators
Quadratic Equation Calculator
Enter the coefficients a, b and c. The calculator applies the quadratic formula and shows both roots, the discriminant and the vertex.
Quick answer: x = (−b ± √(b² − 4ac)) ÷ 2a. For example, with a of 1, b of -5 and c of 6, the roots is x₁ = 3, x₂ = 2.
How the Quadratic Equation calculation works
Using the quadratic formula
For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant b² − 4ac is 25 − 24 = 1, so there are two real roots: x = (5 ± 1) ÷ 2, giving 3 and 2.
The vertex of the parabola is at x = −b ÷ 2a = 2.5, where y = −0.25 — the lowest point of the curve because a is positive.
Checking your answer
- Substitute each root back into the equation: 3² − 5 × 3 + 6 = 0.
- The roots add to −b/a (5) and multiply to c/a (6) — Vieta’s formulas.
- If the discriminant is negative, the parabola never crosses the x-axis and the roots are complex.
For the square roots themselves, see the Square Root Calculator.
How to use the Quadratic Equation Calculator
- Check the Region line at the top of the calculator. Your country, currency and units are detected automatically; change them if needed.
- Enter a, b and c. Example values are filled in so you can see how it works.
- Read your result: the roots appears instantly, with discriminant (b² − 4ac) and vertex (x, y) underneath.
- Use Copy result, Share link or Print to keep the answer. Nothing you type is sent to our servers.
Quadratic Equation calculation example
Using the calculator’s example values (shown in US dollars and metric units — the calculator itself adapts to your country):
Results| Roots | x₁ = 3, x₂ = 2 |
|---|
| Discriminant (b² − 4ac) | 1 |
|---|
| Vertex (x, y) | (2.5, -0.25) |
|---|
Assumptions and limitations of the Quadratic Equation Calculator
- Real coefficients; complex roots are shown as p ± qi.
Limitations
- Results are estimates based on the numbers you enter. Check important decisions with a qualified professional.
Quadratic Equation Calculator FAQs
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) / 2a. For x² − 5x + 6 = 0 it gives x = 3 and x = 2.
What does the discriminant tell you?
If b² − 4ac is positive there are two real solutions, if zero one repeated solution, and if negative two complex solutions.
How else can a quadratic be solved?
By factoring (x² − 5x + 6 = (x − 2)(x − 3)) or completing the square; the formula works for every case.
What if a is zero?
Then the equation is linear (bx + c = 0) with the single solution x = −c ÷ b; the quadratic formula does not apply.
What formula does the Quadratic Equation Calculator use?
x = (−b ± √(b² − 4ac)) ÷ 2a. Discriminant > 0: two real roots; = 0: one repeated root; < 0: two complex roots. Vertex = (−b ÷ 2a, c − b² ÷ 4a).
What do I need to use the Quadratic Equation Calculator?
You need a, b and c. Example values are pre-filled, and the calculator converts between metric and imperial units and any currency.
Embed this calculator on your website
Free for any website or blog. Paste this code where the calculator should appear — it resizes itself and needs no sign-up.