How to use the Quadratic Equation Solver
- 1
Rearrange to = 0
Get the equation into ax² + bx + c = 0 first, e.g. x² = 3x + 10 becomes x² − 3x − 10 = 0.
- 2
Enter a, b and c
Use negative numbers for minus signs and 0 for a missing term.
- 3
Read the roots
Two real roots, one repeated root, or a complex pair p ± qi.
- 4
Use the extras
Discriminant, vertex, axis of symmetry, factored form and the worked substitution.
Features
Quadratic formula
Both roots from x = (−b ± √D) ÷ 2a, up to 10 decimal places.
Discriminant
Shows D and says which kind of roots to expect.
Vertex and axis
The turning point (h, k) and the line x = h.
Factored form
Written as a(x − r₁)(x − r₂) for real roots.
Complex roots
Negative discriminants give p ± qi instead of an error.
Working shown
The substitution into the formula is printed for you to copy.
Who uses it — and for what
Students
Check board-exam, SAT and A-level quadratic questions.
Physics learners
Find when a thrown object lands and how high it goes.
Business students
Locate break-even points and maximum profit in quadratic models.
Teachers
Generate answers with full working for worksheets.
The quadratic formula
x = (−b ± √(b² − 4ac)) ÷ 2a
The discriminant D = b² − 4ac tells you what kind of roots to expect: if D > 0 there are two different real roots, if D = 0 there is one repeated root, and if D < 0 the roots are a pair of complex numbers written as p ± qi. For x² − 3x − 10 = 0, D = 9 + 40 = 49, so x = (3 ± 7) ÷ 2, giving x = 5 and x = −2, and the factored form (x − 5)(x + 2).
Vertex and graph
Every quadratic graphs as a parabola. Its turning point, the vertex, is at x = −b ÷ 2a, and the vertical line through it is the axis of symmetry. If a > 0 the parabola opens upwards and the vertex is a minimum; if a < 0 it opens downwards and the vertex is a maximum. The real roots are where the parabola crosses the x-axis. The step-by-step working below the results shows the substitution so you can follow or copy the method.
Every result is calculated in your browser the moment you type, so you can change a number and see the effect instantly — ideal for checking homework, worksheets and exam practice. Results are shown to a sensible number of decimal places; very large or tiny values switch to scientific notation.
Step-by-step: three methods on one equation
Solve 2x² − 4x − 6 = 0.
1. Factorising. Take out 2: 2(x² − 2x − 3) = 0. Find two numbers that multiply to −3 and add to −2: −3 and +1. So 2(x − 3)(x + 1) = 0, giving x = 3 or x = −1.
2. Completing the square. 2(x² − 2x) − 6 = 2[(x − 1)² − 1] − 6 = 2(x − 1)² − 8. Set to 0: (x − 1)² = 4, so x − 1 = ±2 and x = 3 or −1. This form also gives the vertex (1, −8) directly.
3. The formula. D = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64; x = (4 ± 8) ÷ 4 = 3 or −1.
The calculator shows roots 3 and −1, vertex (1, −8) and factored form 2(x − 3)(x + 1) — every method agrees. Factorising is fastest when it works, completing the square explains the vertex, and the formula always works.
Common mistakes
- Not rearranging first. In x² = 3x + 10, b is −3 and c is −10 once everything is on one side, not +3 and +10.
- Sign of −b. When b is negative, −b is positive: for b = −3, −b = +3.
- Squaring a negative b. (−3)² = +9. Typing −3² on a calculator gives −9, a frequent source of wrong discriminants.
- Dividing only the square root by 2a. The whole numerator −b ± √D is divided by 2a.
- Dropping a root. Unless D = 0 there are two answers; in word problems, reject one only for a real reason (like negative time).
- Calling a negative D “no solution”. There are no real solutions, but there are two complex ones, which the solver shows.
A floating-point caution
The solver works in ordinary decimal arithmetic, so coefficients like 0.1, 0.3 and 0.225 (which describe 0.1(x + 1.5)², a perfect square) leave a tiny rounding error in D of about −1.4 × 10⁻¹⁷. The result shows −1.5 ± 1.86e-8i instead of a double root. If you see a microscopic imaginary part, multiply all coefficients by a power of ten or a common factor — 4, 12 and 9 give the clean double root −1.5.
Where quadratics appear
Anything that rises and falls symmetrically is quadratic: projectiles, the shape of a satellite dish or headlight reflector, profit that grows with price then drops as customers leave, and the area of a rectangle with a fixed perimeter. Plot the parabola in the Function Graph Plotter to see the roots and vertex, and paste complex roots into the Complex Number Calculator to work with them further.
Worked examples
A ball thrown upwards
Height h = −4.9t² + 20t + 1.5 (metres, seconds). Enter −4.9, 20, 1.5: roots −0.073670308 and 4.1553029611, so the ball lands after about 4.16 s (ignore the negative time). Vertex (2.0408, 21.9082): it peaks at about 21.9 m after 2.04 s.
Non-monic factorising: 2x² + 7x + 3
Roots −0.5 and −3, factored form 2(x + 0.5)(x + 3), which is the same as (2x + 1)(x + 3). Sum of roots −3.5 = −b/a; product 1.5 = c/a.
The golden ratio hiding in x² + x − 1
Enter 1, 1, −1: x₁ = 0.6180339887, x₂ = −1.6180339887, D = 5. These are 1/φ and −φ, the golden ratio from the Fibonacci sequence.
Pro tips
- Quick check: the two roots should add to −b/a and multiply to c/a.
- If D is a perfect square (like 49 or 64), the quadratic factorises with rational numbers.
- The vertex x-value is always the average of the two real roots.
Glossary
- Discriminant
- D = b² − 4ac, which decides whether roots are real and distinct, repeated or complex.
- Vertex
- The turning point of the parabola, at x = −b/2a.
- Monic quadratic
- One whose x² coefficient is 1, such as x² − 5x + 6.
- Completing the square
- Rewriting ax² + bx + c as a(x − h)² + k to reveal the vertex.
Frequently asked questions
What if a is 0?
Then the equation is linear (bx + c = 0) and has the single solution x = −c/b.
What does a negative discriminant mean?
There are no real roots; the solutions are complex numbers.
Can I enter decimals?
Yes, any real coefficients work.
Why does the working show “+ -3x”?
The steps substitute your numbers exactly as entered, so a negative b appears as + -3x. Read it as − 3x.
Can it solve cubic equations?
No, only degree 2. For a cubic, plot it in the graph plotter and read where it crosses the x-axis.
Why is the factored form blank for complex roots?
Complex roots do not give factors with real numbers, so “—” is shown.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Math & Science (42 tools)