Quadratic Equation Solver

Solve by factoring, completing the square or the formula — every step shown.

Try an example:

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

  1. Type or paste your problem into the box above — for example x^2 - 5x + 6 = 0. Use ^ for powers, / for fractions and sqrt() for square roots, or describe it in words.
  2. Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
  3. 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

  1. Rearrange so one side is zero, and read off , and .
  2. Try factoring first: look for two numbers that multiply to and add to . It's the fastest method when it works.
  3. If the numbers aren't tidy, use the formula or complete the square, then check each root in the original equation.

Worked example:

  1. Identify the coefficients, , .
  2. Find the discriminant. It's positive, so there are two real roots.
  3. Apply the formula
  4. Simplify both roots or .
  5. 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

Browse all calculators

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.