About Quadratic Equation Solver
Enter the coefficients a, b and c of ax² + bx + c = 0 to get both roots, whether they are two real numbers, one repeated root or a pair of complex conjugates. The discriminant, the vertex of the parabola, its axis of symmetry, y-intercept and factored form are listed too, with the quadratic formula worked through using your numbers.
Coefficients are used exactly as typed, so the tool never mistakes a zero discriminant for a tiny positive one, and rational roots are given exactly, as fractions where they do not end.
How it works
- The discriminant Δ = b² − 4ac is computed exactly from the coefficients as typed. Its sign decides whether there are two real roots, one repeated root or two complex roots.
- When Δ is a perfect square of a fraction, the roots (−b ± √Δ) / 2a are worked out exactly. Otherwise they are computed in a rearranged form that avoids losing digits when b is much larger than the other coefficients.
- The vertex is at x = −b / 2a, where the parabola turns. If a is 0 the equation is linear and its single root is given instead.
- Inputs are kept in the page address, so an equation can be bookmarked or shared as a link.
Questions
What does the discriminant tell me?
If Δ is positive the parabola crosses the x-axis twice, giving two real roots. If Δ is zero it touches the axis once. If Δ is negative it never reaches the axis and the roots are complex.
Why do my roots show as fractions?
When the roots are rational but their decimals never end, such as 1/3, the exact fraction is shown with a rounded decimal beside it, so you lose nothing.
How accurate are irrational roots?
They are rounded to 15 significant digits. The formula is rearranged so that subtracting two nearly equal numbers, the usual source of error, never happens.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.