Quadratic Equation Solver
Solve quadratic equations using formula.
How it works
A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its graph is a parabola, and the solutions (roots) are where that parabola crosses the x-axis. Enter a, b and c and the solver returns the roots, including complex roots when the parabola never touches the axis.
The quadratic formula always works, even when the equation does not factorise neatly.
Worked example: x² − 5x + 6 = 0
- a = 1, b = −5, c = 6. Discriminant: (−5)² − 4(1)(6) = 25 − 24 = 1.
- Check: 3² − 5(3) + 6 = 0 and 2² − 5(2) + 6 = 0. It also factorises as (x − 2)(x − 3) = 0.
What the discriminant tells you
If b² − 4ac is positive there are two different real roots. If it is zero there is one repeated root (x² + 6x + 9 = 0 gives x = −3 twice). If it is negative there are no real roots; the roots are a pair of complex numbers.
Complex roots
For 2x² + 4x + 5 = 0 the discriminant is 16 − 40 = −24, so the roots are −1 ± 1.2247i. The parabola sits entirely above the x-axis.
When a is zero
If a = 0 the equation is linear (bx + c = 0), with the single solution x = −c / b. Use the Linear Equation solver instead.
Common questions
Why are there two answers?
A parabola can cross the x-axis twice. The ± in the formula gives both crossing points.
Do I need to rearrange the equation first?
Yes. Move everything to one side so it reads ax² + bx + c = 0, then read off a, b and c, keeping their signs.
Where is the vertex?
At x = −b / (2a), halfway between the roots. For x² − 5x + 6 that is x = 2.5, where y = −0.25.
Use it with
- Linear Equation Solver: solve straight-line equations
- Pythagorean Calculator: find a side of a right triangle
- Kinematics Calculator: see quadratics in motion problems
- Linear Equation Solver Solve linear equations
- Second-Order System Calculator Damping ratio, overshoot and settling time from a characteristic polynomial
- Logarithm Calculator Log of a number in any base, natural and common logs, change of base
- Arithmetic and Geometric Series Calculator nth term, sum of n terms and sum to infinity
- Complex Number Calculator Complex arithmetic, polar form and nth roots (de Moivre)
- Numerical Integration Calculator Definite integrals by the trapezoid and Simpson's rules
- Root Finder (Bisection and Newton) Solve f(x) = 0 with bisection and Newton's method
- Differential Equation Solver (Euler and RK4) Solve y' = f(x, y) step by step