Step-by-Step Math Tutorials · 5 min read

How to solve quadratic equations step by step

Every quadratic equation can be solved by one of three standard methods: factoring, completing the square or the quadratic formula. The skill tests actually measure is choosing the fastest one. This guide to how to solve quadratic equations works through all three with real examples and a simple rule for picking between them.

Graph of y = x² + 3x − 10 crossing the x-axis at x = −5 and x = 2, with its vertex at (−1.5, −12.25) and the factored form (x + 5)(x − 2) = 0.

Step 0: get the equation into standard form

Every method starts from ax2+bx+c=0ax^2 + bx + c = 0. Move every term to one side so the other side is zero, and write the terms in order of power. Then note a, b and c with their signs — a lost minus sign here is the most common reason a correct method gives a wrong answer.

If all three coefficients share a factor, divide it out first. 3x2+9x−30=03x^2 + 9x - 30 = 0 becomes x2+3x−10=0x^2 + 3x - 10 = 0: the same roots, smaller numbers.

Method 1: factoring

Factoring is fastest when the roots are whole numbers. For x2+bx+cx^2 + bx + c, look for two numbers that multiply to c and add to b. Write the quadratic as two brackets, then use the zero-product rule: if a product is zero, one of its factors is zero.

For x2+3x−10=0x^2 + 3x - 10 = 0, the numbers are 5 and −2 (5 × −2 = −10 and 5 + (−2) = 3).

Example 1 · Factoring

x2+3x−10=0x^{2} + 3x - 10 = 0
Solve it live

Find the pair, write the brackets, set each to zero.

  1. Identify a, b and c
    a=1,b=3,c=−10\displaystyle a = 1,\allowbreak b = 3,\allowbreak c = -10
    The coefficients decide which method works best.
  2. Factor the quadratic
    (x−2)(x+5)=0(x - 2)(x + 5) = 0
    The discriminant is a perfect square, so the quadratic splits into two linear factors.
  3. Set each factor to zero
    x=2,x=−5\displaystyle x = 2,\allowbreak x = -5
    A product is zero exactly when one of its factors is zero.
x=2,x=−5\displaystyle x = 2,\allowbreak x = -5
✓ Verified

Method 2: completing the square

Completing the square rewrites the left side as a perfect square plus a constant. It works on every quadratic, and it is how the quadratic formula is derived — which is why many teachers insist you learn it.

  1. Move the constant to the right: x2+6x=7x^2 + 6x = 7.
  2. Halve the coefficient of x and square it: (6/2)2=9(6/2)^2 = 9. Add it to both sides: x2+6x+9=16x^2 + 6x + 9 = 16.
  3. Write the left side as a square: (x+3)2=16(x + 3)^2 = 16.
  4. Take square roots — both signs: x+3=±4x + 3 = \pm 4, so x=1x = 1 or x=−7x = -7.

The solver uses this method when you choose Completing the square from the Method menu on the quadratic calculator. Below is the same equation in its default working.

Example 2 · One equation, any method

x2+6x−7=0x^{2} + 6x - 7 = 0
Solve it live

Compare the solver’s steps with the completing-the-square working above: the roots are the same.

  1. Identify a, b and c
    a=1,b=6,c=−7\displaystyle a = 1,\allowbreak b = 6,\allowbreak c = -7
    The coefficients decide which method works best.
  2. Factor the quadratic
    (x−1)(x+7)=0(x - 1)(x + 7) = 0
    The discriminant is a perfect square, so the quadratic splits into two linear factors.
  3. Set each factor to zero
    x=1,x=−7\displaystyle x = 1,\allowbreak x = -7
    A product is zero exactly when one of its factors is zero.
x=1,x=−7\displaystyle x = 1,\allowbreak x = -7
✓ Verified

Method 3: the quadratic formula

When nothing factors neatly, the formula always works:

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

Substitute carefully, with brackets around negatives, and simplify the square root if you can. The quantity under the root, b2−4acb^2 - 4ac, is the discriminant: if it is not a perfect square, the roots are irrational and should be left in exact form.

Example 3 · The formula

x2−3x−1=0x^{2} - 3x - 1 = 0
Solve it live

Here b2−4ac=9+4=13b^2 - 4ac = 9 + 4 = 13, not a perfect square — so the roots involve 13\sqrt{13}.

  1. Identify a, b and c
    a=1,b=−3,c=−1\displaystyle a = 1,\allowbreak b = -3,\allowbreak c = -1
    The coefficients decide which method works best.
  2. Apply the quadratic formula
    x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}
    The formula gives the exact values for any quadratic.
  3. Calculate the discriminant
    D=−32−4(1)(−1)=13D = -3^{2} - 4(1)(-1) = 13
    The discriminant sits under the square root.
  4. Substitute and simplify
    x=3±132=3±132x = \frac{3 \pm \sqrt{13}}{2} = \frac{3 \pm \sqrt{13}}{2}
    Simplify the square root (pull out square factors). As decimals: x ≈ 3.302775638, -0.3027756377.
x=3+132,x=3−132\displaystyle x = \frac{3 + \sqrt{13}}{2},\allowbreak x = \frac{3 - \sqrt{13}}{2}
✓ Verified

How to solve quadratic equations: which method to use

When you decide how to solve quadratic equations on a test, a quick decision rule helps:

  • No x-term (x2−25=0x^2 - 25 = 0)? Isolate x2x^2 and take square roots, or use the difference of squares.
  • Small whole-number coefficients, and you can spot the pair within ten seconds? Factor.
  • Discriminant not a perfect square, or large coefficients? Use the formula.
  • Asked for vertex form or told to complete the square? Complete the square.

Whatever you choose, check by substituting each root into the original equation. Our equation solver does exactly that before it marks an answer verified.

FAQ

Questions about this guide

What is the easiest way to solve a quadratic equation?

Factoring, when the roots are whole numbers. If you cannot see the factors quickly, the quadratic formula is the most reliable route.

Do I always get two answers?

Up to two real answers. A zero discriminant gives one repeated root; a negative discriminant gives no real roots (two complex ones).

Why does my teacher want completing the square?

Because it shows where the quadratic formula comes from and gives vertex form, which tells you the turning point of the parabola.

How do I check my answer?

Substitute each root into the original equation. Both sides must be equal. The sum of the roots should also equal −b/a.

Put the method to work

Try the technique from this guide on a problem of your own — with every step shown and checked.