Quadratic Equation Solver
Solve ax² + bx + c = 0 with whole-number coefficients. See the discriminant, real or complex roots, and the vertex of the parabola.
- Balance the equation
- Keep each sign
- Read the root type
Solve the quadratic
- Balance the equation
- Example
- x² − 5x + 6 = 0
Balance the equation
Move all terms to one side before copying the coefficients.
- Keep each sign
- Example
- b = -5
Keep each sign
Enter zero for a term that is missing from the equation.
- Read the root type
- Example
- Discriminant 1
Read the root type
The sign of the discriminant distinguishes two real roots, a repeated root or a complex pair.
Check two solutions
The polynomial factors as (x − 2)(x − 3). Substituting either reported root makes one factor zero. The vertex lies halfway between them at x = 2.5.
- x² − 5x + 6
- 2 and 3
Read a complex pair
Here b is zero and c is positive one. The real graph never reaches zero. The roots are imaginary because squaring i gives negative one.
Evaluate a root in another expression with the scientific calculator.
- x² + 1
- 0 ± 1i
Read the roots and the vertex
A double root
When b² equals 4ac the square root in the quadratic formula vanishes. The parabola touches the axis at its vertex.
Decimal coefficients
Multiply every term by the same power of ten to clear finite decimals. Keep each resulting coefficient within the input limit.
| Input | Result |
|---|---|
| x² − 5x + 6 | 2 and 3 |
| x² + 1 | 0 ± 1i |
Where does the calculation run?
The calculation runs in this tab. The values you enter stay on your device. Privacy policy.
- Balance the equation
- Keep each sign
- Read the root type
Quadratic Equation Solver questions
Can a be negative?
Yes. A negative coefficient opens the parabola downward.
What if a is zero?
The equation is linear or constant. Remove the x² term and solve that simpler equation.
Are irrational roots exact on the screen?
The discriminant is exact for the supported integer inputs. Displayed root values round to twelve significant digits.