Quadratic Equation Solver
A quadratic equation has the form ax² + bx + c = 0. This quadratic equation solver uses the discriminant and the quadratic formula to find the roots exactly, simplifying square roots where possible. It handles rational, irrational and complex roots, and also gives the vertex and axis of symmetry of the parabola.
How to use the quadratic equation solver
- Rearrange your equation to ax² + bx + c = 0.
- Enter a, b and c (fractions and decimals are fine).
- Press Calculate to see the roots, discriminant and vertex.
Formula
Worked example: x² − 5x + 6 = 0
- a (x² coefficient): 1
- b (x coefficient): -5
- c (constant): 6
✓ Answer checked
- Roots
- Two different rational roots
- Discriminant
- Vertex
- Axis of symmetry
Step-by-step working (6 steps)
Write the equation
Make sure it is in the form ax² + bx + c = 0.
Identify a, b and c
Compare with ax² + bx + c = 0.
Work out the discriminant Discriminant
The discriminant tells you how many real solutions there are.
Use the quadratic formula Quadratic formula
Substitute a, b and the discriminant into the formula.
Simplify
The discriminant is a perfect square, so the roots are rational.
Two solutions
Take the + and − signs separately.
Formulas used
How this was checked
- ✓ Substituting each root into the equation gives exactly 0.
- ✓ Sum of roots = −b/a and product = c/a (Vieta's formulas).
Frequently asked questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) / 2a. It gives the solutions of any quadratic equation ax² + bx + c = 0.
What does the discriminant tell me?
If b² − 4ac is positive there are two real roots, if it is zero there is one repeated root, and if it is negative the roots are complex.
What are complex roots?
When the discriminant is negative, the roots involve i, where i² = −1. For x² + 2x + 5 = 0 the roots are −1 ± 2i.
Related calculators
Linear Equation Solver
Solve linear equations of the form ax + b = cx + d, including fractions, with every balancing step shown and the answer checked by substitution.
Square Root Calculator
Find the square root of any number, simplified exactly (like √50 = 5√2) with the decimal value.
Factor Calculator
List all the factors and factor pairs of a number, with its prime factorisation, number of factors and sum of factors.
