Math calculators

Equation solver

Enter the coefficients to see the roots of a linear (ax + b = 0) or quadratic (ax² + bx + c = 0) equation step by step.

Enter your details
Equation type
Coefficients
Result
–

Advertisement
About this calculator

How is it calculated?

For a quadratic equation the discriminant is calculated first: Δ = b² − 4ac. If Δ > 0 there are two distinct real roots, if Δ = 0 two equal roots, and if Δ < 0 no real roots (the roots are complex).

The roots are x = (−b ± √Δ) ÷ 2a. The sum of the roots is −b/a and their product is c/a.

Example

x² − 5x + 6 = 0: Δ = 25 − 24 = 1, roots x₁ = 3, x₂ = 2.