Quadratic Equation Solver
Solve by factoring, completing the square or the formula — every step shown.
What a quadratic equation is
A quadratic equation has as its highest power and can be written as with . It has at most two solutions, called roots: the -values where the parabola meets the -axis.
How to use the quadratic equation solver
- Type or paste your problem into the box above — for example
x^2 - 5x + 6 = 0. Use^for powers,/for fractions andsqrt()for square roots, or describe it in words. - Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
- Ask a follow-up in the same chat — "why did you do that?" or "now check it" — and it answers with the earlier working in context.
The quadratic formula
Every quadratic equation can be solved with the formula
The expression under the root, , is the discriminant. If it's positive there are two real roots; if it's zero there is one repeated root; if it's negative the roots are a pair of complex numbers.
Choosing a method
- Rearrange so one side is zero, and read off , and .
- Try factoring first: look for two numbers that multiply to and add to . It's the fastest method when it works.
- If the numbers aren't tidy, use the formula or complete the square, then check each root in the original equation.
Worked example:
- Identify the coefficients, , .
- Find the discriminant. It's positive, so there are two real roots.
- Apply the formula
- Simplify both roots or .
- Check, and . Both roots work.
Common mistakes to avoid
Losing the sign of
With , is and is . Write the substitution in brackets: .
Dividing only part of the top
The whole of is divided by , not just the square root.
Not setting the equation to zero
For , the constant is , not . Move everything to one side first.
Related calculators
- FactoringGCF, trinomials and special products
- Solve for XLinear and multi-step equations
- GraphingPlot and compare functions
- InequalitiesIntervals and sign changes
Questions students ask
What if the discriminant is negative?
Then there are no real roots — the parabola never touches the -axis. The solver gives the two complex roots instead: gives .
Does it show factoring or just the formula?
It uses whichever method suits the equation and shows it in full. Ask for a specific method — solve by completing the square — and it uses that one.
Can it solve equations that aren't in standard form?
Yes. Type it as it is, such as (x + 1)(x - 3) = 5, and the first steps rearrange it into .
Can it find the vertex too?
Yes. Ask for the vertex, the axis of symmetry or a description of the parabola in the same chat.