Quadratic Equation Solver: Solve ax² + bx + c = 0 with Steps, Roots and a Graph
Type the three coefficients a, b and c of ax² + bx + c = 0. You get the discriminant, both roots (real or complex), the vertex, the factorised form when it exists and a graph, all with the quadratic formula worked out step by step.
x² + x + = 0
- PriceFree, no login or sign-up needed
- Your dataCalculated in your browser; nothing is saved
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published24 November 2026
- Last updated24 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Quadratic equation solver [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/quadratic-equation-solver/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.
How to use the quadratic equation solver
- Rearrange your equation so one side is 0, in the form ax² + bx + c = 0.
- Type a, b and c. Use a minus sign for negative values and 0 for a missing term (for x² − 9 = 0, b = 0).
- Read the roots, discriminant, vertex and factorised form. The graph shows where the curve crosses the x-axis.
- Follow the step-by-step quadratic formula working, or press Copy result.
The quadratic formula
A quadratic equation is an equation of the form ax² + bx + c = 0 with a ≠ 0, and its solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. The part under the square root, D = b² − 4ac, is called the discriminant. It tells you what kind of roots to expect before you finish the working.
| Discriminant | Roots | Graph |
|---|---|---|
| D > 0, perfect square | Two different rational roots; it factorises | Crosses the x-axis twice |
| D > 0, not a perfect square | Two different irrational roots | Crosses the x-axis twice |
| D = 0 | One repeated real root | Touches the x-axis at the vertex |
| D < 0 | Two complex roots p ± qi | Does not touch the x-axis |
Worked example: 2x² − 4x − 6 = 0
- Read the coefficients: a = 2, b = −4, c = −6.
- Discriminant: D = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64.
- √64 = 8, so x = (4 ± 8) ÷ 4.
- x₁ = 12 ÷ 4 = 3 and x₂ = −4 ÷ 4 = −1.
- Factorised form: 2(x − 3)(x + 1). Check: 2(x² − 2x − 3) = 2x² − 4x − 6.
- Vertex: h = 4 ÷ 4 = 1, k = 2 − 4 − 6 = −8, so the lowest point is (1, −8).
Vertex, axis and the shape of the parabola
The graph of y = ax² + bx + c is a parabola. If a > 0 it opens upwards and the vertex is the minimum. If a < 0 it opens downwards and the vertex is the maximum. The axis of symmetry is the vertical line x = −b ÷ 2a, exactly halfway between the two roots. The curve crosses the y-axis at (0, c).
Common mistakes
- Forgetting brackets when b is negative: (−4)² is 16, not −16.
- Dividing only √D by 2a. The whole top, −b ± √D, is divided by 2a.
- Not moving every term to one side first. For x² = 5x − 6, rewrite as x² − 5x + 6 = 0.
- Using the formula when a = 0. Then the equation is linear: x = −c ÷ b.
Frequently asked questions
What is the quadratic formula?
For ax² + bx + c = 0 with a ≠ 0, x = (−b ± √(b² − 4ac)) ÷ 2a. The ± gives the two roots.
What does the discriminant tell you?
D = b² − 4ac. If D > 0 there are two real roots, if D = 0 there is one repeated root, and if D < 0 there are two complex roots and the graph does not cross the x-axis.
How do I know if a quadratic can be factorised?
With whole-number coefficients, it factorises into whole-number brackets when the discriminant is a perfect square, such as 64 or 1. Then the roots are rational.
How do I find the vertex of a quadratic?
The x-coordinate is h = −b ÷ 2a. Put it back into the equation to get k. For 2x² − 4x − 6, h = 1 and k = −8, so the vertex is (1, −8).
What are complex roots?
When D < 0, the square root of a negative number appears. The roots are written p ± qi, where i = √−1. For x² + 2x + 5 = 0 the roots are −1 ± 2i.
Does this solver save my equations?
No. Everything is calculated in your browser and nothing is saved or uploaded. When you close the page, your numbers are gone.
Do I need to log in or create an account to use the quadratic equation solver?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Quadratic equation solver [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/quadratic-equation-solver/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel