Quadratic equation solver (ax² + bx + c = 0)
Enter your values. The answer and the full worked solution update as you type.
Result
Solve any quadratic equation ax² + bx + c = 0. The calculator works out the discriminant, uses the quadratic formula and gives the roots both as decimals and in exact form, as fractions or simplified square roots such as 2 ± √3, including complex roots. It also finds the vertex, the axis of symmetry and the factored form, and checks the roots with Vieta’s formulas.
Step-by-step solution
Identify a, b and c
Discriminant
Quadratic formula
Vertex and axis of symmetry
Factored form
Check with Vieta’s formulas
Key formulas
- Quadratic with p² < 4q
- z = −p/2 ± j√(q − p²/4)
How to solve a quadratic equation
- Write the equation in the standard form ax² + bx + c = 0 and read off a, b and c, with their signs.
- Calculate the discriminant Δ = b² − 4ac. If Δ > 0 there are two real roots, if Δ = 0 one repeated root, and if Δ < 0 two complex conjugate roots.
- Use the quadratic formula x = (−b ± √Δ)/(2a). Simplify the square root by taking out square factors: √12 = 2√3.
- For Δ < 0 write √Δ = i·√|Δ|, so the roots are −b/(2a) ± i·√|Δ|/(2a).
- The vertex of the parabola y = ax² + bx + c is at x = −b/(2a); substitute it to find the y-coordinate.
- Check: the roots add up to −b/a and multiply to c/a.
Questions and answers
When can I factor instead of using the formula?
When the discriminant is a perfect square and the coefficients are whole numbers, the roots are rational and the quadratic factors over the integers, as 2x² − 3x − 5 = (2x − 5)(x + 1). Otherwise the quadratic formula is the reliable method.
What does a negative discriminant mean?
The parabola does not cross the x-axis, so there are no real roots. The two roots are complex conjugates p ± qi, which matter for example in damped vibrations and in circuit analysis.
What is the vertex form?
y = a(x − h)² + k, where (h, k) is the vertex. It shows the minimum (a > 0) or maximum (a < 0) of the parabola directly and is found by completing the square.
What if a = 0?
Then the equation is linear, bx + c = 0, with the single solution x = −c/b. The quadratic formula would divide by zero, so the calculator asks for a non-zero a.
Why does the calculator give exact roots?
Exams often ask for answers such as (3 ± √17)/4 rather than decimals. When a, b and c are whole numbers or decimals, the calculator works with exact fractions and simplifies the square root.
Practise it yourself
Practise Complex numbers
A calculator gives the answer. In the exam you need the method: practise it with new problems, hints and worked solutions.