MathIsimple
Grades 9–11
quadratics
11 min read

How to Solve Quadratic Equations: 4 Methods with Step-by-Step Examples

A complete walkthrough of the four standard ways to solve quadratic equations — factoring, the square root method, completing the square, and the quadratic formula — with worked examples for grades 9–11.

What is a quadratic equation?

A quadratic equation is any equation you can rewrite in the form

ax2+bx+c=0ax^2 + bx + c = 0

where aa, bb, and cc are numbers and a0a \ne 0. The graph of y=ax2+bx+cy = ax^2 + bx + c is a parabola, and the solutions of the equation — also called the roots or zeros — are exactly the xx-values where that parabola crosses the xx-axis. A quadratic always has 0, 1, or 2 real solutions.

There are four standard ways to solve them. The right one depends on what the equation looks like.

Method 1: Factoring

If the quadratic factors into a product of two linear pieces, factoring is fastest.

The idea. Rewrite

ax2+bx+c=(px+r)(qx+s)=0ax^2 + bx + c = (px + r)(qx + s) = 0

and use the zero-product property: if a product equals zero, at least one factor equals zero. So set each factor to zero and solve.

Example 1. Solve x25x+6=0x^2 - 5x + 6 = 0.

  1. Look for two numbers that multiply to 66 and add to 5-5. Those are 2-2 and 3-3.
  2. Factor: (x2)(x3)=0(x - 2)(x - 3) = 0.
  3. Set each factor to zero: x2=0x - 2 = 0 or x3=0x - 3 = 0.
  4. So x=2x = 2 or x=3x = 3.

When to use it. When cc has small integer factors that visibly add to bb. If you cannot guess the factors after a few seconds, switch methods.

Method 2: The square root method

If the equation has the form x2=kx^2 = k — no xx term — take the square root of both sides.

Example 2. Solve 3x227=03x^2 - 27 = 0.

  1. Isolate the x2x^2: 3x2=273x^2 = 27, so x2=9x^2 = 9.
  2. Take the square root of both sides: x=±9=±3x = \pm \sqrt{9} = \pm 3.
  3. So x=3x = 3 or x=3x = -3.

Don't forget the ±\pm — both the positive and negative roots are valid.

When to use it. Whenever the linear coefficient bb is zero, or whenever the quadratic is already in the form (x+h)2=k(x + h)^2 = k.

Method 3: Completing the square

This method rewrites the quadratic so you can apply the square root method. It is also the derivation behind the quadratic formula.

The recipe for x2+bx+c=0x^2 + bx + c = 0 (when a=1a = 1):

  1. Move cc to the right side: x2+bx=cx^2 + bx = -c.
  2. Take half of bb, square it, and add (b2)2\left(\dfrac{b}{2}\right)^2 to both sides.
  3. The left side is now a perfect square: (x+b2)2=c+(b2)2\left(x + \dfrac{b}{2}\right)^2 = -c + \left(\dfrac{b}{2}\right)^2.
  4. Take the square root of both sides and solve for xx.

Example 3. Solve x2+6x+5=0x^2 + 6x + 5 = 0 by completing the square.

  1. Rearrange: x2+6x=5x^2 + 6x = -5.
  2. Half of 66 is 33; squared is 99. Add 99 to both sides: x2+6x+9=4x^2 + 6x + 9 = 4.
  3. The left side is (x+3)2(x + 3)^2, so (x+3)2=4(x + 3)^2 = 4.
  4. Square root: x+3=±2x + 3 = \pm 2, giving x=1x = -1 or x=5x = -5.

If a1a \ne 1, divide both sides by aa first, then complete the square as above.

When to use it. Useful when factoring fails and you want a clean exact answer. Completing the square is also the standard way to convert ax2+bx+cax^2 + bx + c into vertex form a(xh)2+ka(x - h)^2 + k, which gives you the parabola's vertex directly.

Method 4: The quadratic formula

The quadratic formula always works. For ax2+bx+c=0ax^2 + bx + c = 0 with a0a \ne 0:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The expression under the square root, b24acb^2 - 4ac, is called the discriminant Δ\Delta. It tells you how many real solutions the equation has before you finish the calculation:

Example 4. Solve 2x2+3x5=02x^2 + 3x - 5 = 0.

  1. Identify a=2a = 2, b=3b = 3, c=5c = -5.
  2. Compute the discriminant: Δ=324(2)(5)=9+40=49\Delta = 3^2 - 4(2)(-5) = 9 + 40 = 49.
  3. Plug into the formula: x=3±494=3±74x = \dfrac{-3 \pm \sqrt{49}}{4} = \dfrac{-3 \pm 7}{4}.
  4. So x=44=1x = \dfrac{4}{4} = 1 or x=104=52x = \dfrac{-10}{4} = -\dfrac{5}{2}.

When to use it. When the equation does not factor nicely and you don't want to bother completing the square. Many textbooks recommend always checking the discriminant first — if Δ<0\Delta < 0, you know the answer is "no real solutions" and you can stop.

Choosing a method quickly

| Situation | Best method | |---|---| | Coefficients are small integers and you can factor mentally | Factoring | | No xx term, or already in (xh)2=k(x - h)^2 = k form | Square root | | Need vertex form, or coefficients are messy fractions | Completing the square | | Anything else, especially with irrational solutions | Quadratic formula |

If you are stuck, the quadratic formula always works — it just costs a little more arithmetic.

Common mistakes

Practice Yourself

Try each one on paper first, then click Show answer to check your work.

  1. 1Practice problem 1

    Solve by factoring: x2+7x+12=0x^2 + 7x + 12 = 0.

    Show answer

    Find two numbers that multiply to 1212 and add to 77 — they are 33 and 44. Factor: (x+3)(x+4)=0(x + 3)(x + 4) = 0, so x=3x = -3 or x=4x = -4.

  2. 2Practice problem 2

    Solve by the square root method: 4x2=1004x^2 = 100.

    Show answer

    Divide both sides by 44: x2=25x^2 = 25. Take the square root: x=±5x = \pm 5.

  3. 3Practice problem 3

    Solve by completing the square: x28x+7=0x^2 - 8x + 7 = 0.

    Show answer

    Move the constant: x28x=7x^2 - 8x = -7. Half of 8-8 is 4-4; squared is 1616. Add 1616 to both sides: (x4)2=9(x - 4)^2 = 9. So x4=±3x - 4 = \pm 3, giving x=7x = 7 or x=1x = 1.

  4. 4Practice problem 4

    Solve using the quadratic formula: 3x24x4=03x^2 - 4x - 4 = 0.

    Show answer

    Here a=3a = 3, b=4b = -4, c=4c = -4. Discriminant =16+48=64= 16 + 48 = 64. So x=4±86x = \dfrac{4 \pm 8}{6}, giving x=2x = 2 or x=23x = -\dfrac{2}{3}.

  5. 5Practice problem 5

    Without solving, decide how many real solutions 5x2+2x+3=05x^2 + 2x + 3 = 0 has.

    Show answer

    Compute the discriminant: Δ=224(5)(3)=460=56\Delta = 2^2 - 4(5)(3) = 4 - 60 = -56. Since Δ<0\Delta < 0, the equation has no real solutions.

Related Topics

Frequently Asked Questions

When should I factor a quadratic versus use the formula?

Try factoring first if the coefficients are small integers — it is faster and gives exact answers. If you cannot spot the factors quickly or the solutions look irrational, jump to the quadratic formula.

What if the discriminant is negative?

A negative discriminant means there are no real solutions. There are still two complex solutions involving i=1i = \sqrt{-1}, which you will see in Algebra II or pre-calculus.

Is the quadratic formula always exact?

Yes. The formula gives an exact algebraic answer, including any radicals. If you want a decimal, evaluate the formula on a calculator.

How is completing the square related to the quadratic formula?

The quadratic formula is what you get when you complete the square on the general equation ax2+bx+c=0ax^2 + bx + c = 0. Doing the algebra once gives the formula, so you do not have to redo it for every problem.

Can a quadratic have only one solution?

Yes. When the discriminant is exactly 00, the formula gives x=b2ax = -\dfrac{b}{2a} as a single (repeated) root. Geometrically, the parabola just touches the xx-axis at its vertex.

Want to keep going?

Try a different problem with the AI Math Solver, browse the practice library, or return to High School Math.

Ask AI ✨