Algebra · 2 min read

How to solve quadratic equations

To solve a quadratic equation, write it as ax² + bx + c = 0, then factor it, complete the square, or use the quadratic formula, which works every time. Example: x² − 5x + 6 = 0 factors to (x − 2)(x − 3) = 0, so x = 2 or x = 3.

Step 0: get it into standard form

Move every term to one side so the other side is 0: . Example: becomes .

Method 1: factoring

Best when and you can spot two numbers quickly. Solve

  1. Find two numbers that multiply to and add to : and .
  2. Factor:
  3. Set each factor to 0: or .

Method 2: the quadratic formula

Works for every quadratic. Solve (, , )

  1. Discriminant:
  2. or

The discriminant tells you what to expect: positive means two real roots, zero means one repeated root, negative means no real roots (two complex roots).

Method 3: completing the square

Useful when is even and for finding the vertex. Solve

  1. Move :
  2. Add to both sides:
  3. Write as a square:
  4. Square root:
  5. or

Which method should I use?

Situation Use
Easy-to-spot factors Factoring
Messy numbers, decimals, or no clear factors Quadratic formula
Asked for vertex form, or is even Completing the square
No term, e.g. Square root both sides:

Common mistakes

  • Not setting the equation to 0 first.
  • Losing the : most quadratics have two answers.
  • Sign errors with when is negative.
  • Dividing only part of the top by in the formula.

Check your answers

Substitute each root back into the original equation. Or use the quadratic formula calculator, which shows every step, including complex roots. For word problems that turn into quadratics, see the word problem solver.

Worked example

x = 2 or x = 3

Step by step

  1. Write the equation in standard form
  2. Write the quadratic formula
  3. Work out the discriminant
  4. Δ > 0, so there are two real roots

    .

  5. Put the values in the formula
  6. Work out both roots

FAQ

What are the 3 ways to solve a quadratic equation?

Factoring, the quadratic formula and completing the square. A fourth shortcut, taking square roots, works when there is no term.

When should I use the quadratic formula?

When the quadratic doesn't factor easily. The formula works for every quadratic, including ones with decimal or complex answers.

How many solutions does a quadratic equation have?

Up to two real solutions. The discriminant tells you: positive means two, zero means one, negative means none that are real.

How do I solve a quadratic equation by factoring?

Write it as , factor the left side into two brackets, then set each bracket equal to 0 and solve.