Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 using the quadratic formula — with full step-by-step working. Enter the values of a, b and c to find the roots instantly. The calculator shows the discriminant, square root and both solutions clearly.
Solving: 1x² -5x +6 = 0
1x² -5x +6 = 0
x₁
3
x₂
2
How it works
Write the equation in standard form
The equation is already in ax² + bx + c = 0 form. Here a = 1, b = -5, c = 6.
Write the quadratic formula
For any quadratic ax² + bx + c = 0, the solutions are given by the quadratic formula.
Calculate the discriminant
The discriminant b² − 4ac = 1. Since it is positive, there are two distinct real roots.
Result:Discriminant = 1Calculate the square root of the discriminant
1 is a perfect square. √1 = 1.
Result:√1 = 1Calculate x₁ (using +)
Using the + sign: x₁ = (−-5 + 1) ÷ 2 = 3.
Result:x₁ = 3Calculate x₂ (using −)
Using the − sign: x₂ = (−-5 − 1) ÷ 2 = 2.
Result:x₂ = 2
The quadratic formula
Example substitution
a=1, b=−5, c=6. Discriminant = 25−24 = 1. Roots: x = (5+1)/2 = 3 and x = (5−1)/2 = 2.
Worked examples
Solve x² − 5x + 6 = 0
- 1a=1, b=−5, c=6:
- 2Discriminant: (−5)² − 4(1)(6) = 25 − 24 = 1
- 3x₁: (5 + 1)/2 = 3
- 4x₂: (5 − 1)/2 = 2
Solve 2x² + 5x − 3 = 0
- 1a=2, b=5, c=−3:
- 2Discriminant: 25 − 4(2)(−3) = 25 + 24 = 49
- 3√49: = 7
- 4x₁: (−5+7)/4 = 0.5
- 5x₂: (−5−7)/4 = −3
Solve x² + 4x + 4 = 0
- 1Discriminant: 16 − 4(1)(4) = 0
- 2One root: x = −4/2 = −2
Frequently asked questions
What is the quadratic formula?+
For ax² + bx + c = 0, the solutions are x = (−b ± √(b²−4ac)) / 2a.
What is the discriminant?+
The discriminant is b² − 4ac. If positive: two real roots. If zero: one repeated root. If negative: no real roots.
How do I use the quadratic formula step by step?+
Identify a, b, c. Calculate the discriminant. Take the square root. Apply ± to get two answers. Divide by 2a.
What does "no real roots" mean?+
When the discriminant is negative, the quadratic has no real solutions — the parabola does not cross the x-axis.
When should I use the quadratic formula?+
Use it when the quadratic cannot be factorised easily, or when you need exact decimal answers.
How do I check my quadratic answer?+
Substitute each root back into ax² + bx + c — the result should equal zero.