Quadratic Equation Calculator

Enter the coefficients a, b and c to solve ax² + bx + c = 0 using the quadratic formula.

Solve for x in: a·x² + b·x + c = 0

Formula

x = (−b ± √(b² − 4ac)) ÷ 2a

Example

x² − 5x + 6 = 0 solves to x = 2 or x = 3.

Frequently Asked Questions

What if there are no real roots?
When the discriminant (b² − 4ac) is negative, the equation has no real solutions — only complex ones, which this calculator doesn't compute.