Quadratic formula calculator
For an equation of the form ax² + bx + c = 0, enter the coefficients a, b and c and this calculator solves for x.
Results
Enter your values to see the result.
About this tool
It shows the discriminant and both roots, using the quadratic formula. Students use it to check homework, and it also helps in problems about projectile paths or areas where a squared term appears.
- How it is calculated
- x = (−b ± √(b² − 4ac)) ÷ 2a; the discriminant is b² − 4ac
- Worked example
- With a: 1; b: -3; c: 2, the result is: Discriminant: 1; Root x₁: 2; Root x₂: 1.
- Good to know
- The coefficient a cannot be zero. When the discriminant is negative the roots are complex numbers, shown with an i. For real roots, x₁ is the larger value and x₂ the smaller.
Frequently asked questions
What does the discriminant tell me?
It is b² − 4ac. If it is positive there are two different real roots, if zero there is one repeated root, and if negative the roots are complex and shown with the letter i.
Why is a not allowed to be zero?
With a equal to zero the equation is no longer quadratic, and the formula would divide by 2a, which is zero. A linear equation bx + c = 0 should be solved separately.
How should I read a result like 1.5 + 0.8i?
It is a complex root: 1.5 is the real part and 0.8 is the imaginary part multiplied by i. The two roots appear as a pair with opposite signs on the imaginary part.