Quadratic Equation Solver
Solve ax² + bx + c = 0 for real or complex roots and see the discriminant, vertex, factored form and the working.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Enter the coefficients a, b and c, or press one of the examples.
- Read the roots and the discriminant.
- Check the vertex, axis of symmetry and y-intercept of the parabola.
- Follow the working to see how the quadratic formula gives the answer.
Example
Input: x² − 5x + 6 = 0
Output: x = 2 and x = 3, factored as (x − 2)(x − 3)
How it works
The discriminant b² − 4ac decides the kind of roots. A positive value gives two real roots, zero gives one repeated root and a negative value gives two complex roots. The roots come from the quadratic formula, written in a form that avoids subtracting two nearly equal numbers so the answer stays accurate.
x = (−b ± √(b² − 4ac)) ÷ 2a. Stable form: q = −(b + sign(b) × √D) ÷ 2, then x₁ = q ÷ a and x₂ = c ÷ q.
For x² − 5x + 6 = 0, D = (−5)² − 4 × 1 × 6 = 1, so x = (5 ± 1) ÷ 2, which is 2 or 3. The vertex is at x = 5 ÷ 2 = 2.5, where y = −0.25.
Limits and edge cases
- The coefficients are real numbers up to about 1e150. Complex coefficients are not supported.
- Complex roots are shown in the form a + bi.
- A factored form is shown only when the roots are whole numbers.
- If a is 0 the equation is linear. If a and b are both 0 there is either no solution or every x is a solution.
- A negative discriminant gives complex roots that are conjugates of each other, such as −1 + 2i and −1 − 2i.
- A zero discriminant means the parabola just touches the x axis and the single root is −b ÷ 2a.
- With a = 0 the equation is bx + c = 0 and the single root is −c ÷ b.
- Roots such as x² − 1e8x + 1 = 0 would lose digits with the textbook formula. The stable form keeps the small root accurate.
Privacy
Everything is calculated in this browser tab. The numbers and dates you enter are never sent to a server or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Related tools
Questions about Quadratic Equation Solver
How do I solve a quadratic equation?
Write it as ax² + bx + c = 0, then use the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. Enter a, b and c and the tool shows the roots with the working.
What is the discriminant?
It is b² − 4ac, the part under the square root. If it 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 numbers.
Can it solve equations with complex roots?
Yes. When the discriminant is negative, the tool shows the two roots as a + bi and a − bi, and shows the real and imaginary parts in the working.
What is the vertex of a parabola?
It is the turning point, at x = −b ÷ 2a. It is the lowest point when a is positive and the highest point when a is negative. The tool also shows the axis of symmetry through it.
What if a is zero?
Then there is no x² term and the equation is linear, bx + c = 0, with the single solution x = −c ÷ b. If b is also 0, there is either no solution or every number is a solution.