Skip to content
Family Table Math
Auto

The Quadratic Formula

Factoring is quick, but many quadratic equations don’t factor nicely: try finding two integers that multiply to −4-4 and add to 22. The quadratic formula solves every quadratic equation, whether it factors or not. It comes from completing the square once, in general, so you never have to do it again.

For any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \ne 0:

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

The ±\pm means there are usually two answers: one using ++ and one using −-.

The formula comes from completing the square on ax2+bx+c=0ax^2 + bx + c = 0. You don’t need to reproduce this general development yourself, but it’s worth following once so the formula isn’t magic. On the left is a numerical example, 2x2+8x+3=02x^2 + 8x + 3 = 0; on the right, the same steps with letters.

StepExampleGeneral case
Start2x2+8x+3=02x^2 + 8x + 3 = 0ax2+bx+c=0ax^2 + bx + c = 0
Divide by aax2+4x+32=0x^2 + 4x + \tfrac{3}{2} = 0x2+bax+ca=0x^2 + \tfrac{b}{a}x + \tfrac{c}{a} = 0
Move the constantx2+4x=−32x^2 + 4x = -\tfrac{3}{2}x2+bax=−cax^2 + \tfrac{b}{a}x = -\tfrac{c}{a}
Add (half of the xx-coefficient)² to both sidesx2+4x+4=4−32x^2 + 4x + 4 = 4 - \tfrac{3}{2}x2+bax+b24a2=b24a2−cax^2 + \tfrac{b}{a}x + \tfrac{b^2}{4a^2} = \tfrac{b^2}{4a^2} - \tfrac{c}{a}
Write as a square(x+2)2=52(x + 2)^2 = \tfrac{5}{2}(x+b2a)2=b2−4ac4a2\left(x + \tfrac{b}{2a}\right)^2 = \tfrac{b^2 - 4ac}{4a^2}
Square root both sidesx+2=±52x + 2 = \pm\sqrt{\tfrac{5}{2}}x+b2a=±b2−4ac2ax + \tfrac{b}{2a} = \pm\tfrac{\sqrt{b^2 - 4ac}}{2a}
Solve for xxx=−2±52x = -2 \pm \sqrt{\tfrac{5}{2}}x=−b±b2−4ac2ax = \tfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}

In the “write as a square” step of the general case, the right side was put over the common denominator 4a24a^2: b24a2−4ac4a2=b2−4ac4a2\tfrac{b^2}{4a^2} - \tfrac{4ac}{4a^2} = \tfrac{b^2 - 4ac}{4a^2}.

Now check that the formula gives the same answer for the example, with a=2a = 2, b=8b = 8, c=3c = 3:

x=−8±82−4(2)(3)2(2)=−8±404x = \frac{-8 \pm \sqrt{8^2 - 4(2)(3)}}{2(2)} = \frac{-8 \pm \sqrt{40}}{4}

Both give x≈−0.42x \approx -0.42 or x≈−3.58x \approx -3.58. ✓

  1. Rearrange the equation into the form ax2+bx+c=0ax^2 + bx + c = 0.
  2. Write down aa, bb and cc, including their signs.
  3. Substitute, using brackets around negative numbers.
  4. Simplify b2−4acb^2 - 4ac (the part under the square root) first.
  5. Write the two exact answers, then round to decimals if the question asks.

An exact answer keeps the square root, like −1+5-1 + \sqrt{5}. A decimal answer is rounded, like 1.241.24. If b2−4acb^2 - 4ac is a perfect square, the roots are rational and the equation could also have been solved by factoring.

MethodBest whenNotes
Factoringthe quadratic factors easilyfastest; gives exact roots
Quadratic formulait doesn’t factor, or you can’t see howalways works; gives exact roots
Graphingyou want to see the roots or check themwith technology (such as Desmos), read the xx-intercepts; usually approximate

A good habit: try factoring for a few seconds; if it doesn’t work, use the formula; then check with a graph if you can.

The expression b2−4acb^2 - 4ac is called the discriminant. If it’s negative, the formula asks for the square root of a negative number, and no real number squares to give a negative. So the equation has no real roots, and the graph of y=ax2+bx+cy = ax^2 + bx + c doesn’t cross the xx-axis at all. You’ll use the discriminant to count roots in zeros and the discriminant.

On the SAT, graph y=ax2+bx+cy = ax^2 + bx + c in Desmos and click the x-intercepts to get the roots as decimals. Answer choices are often exact, so convert them: for 2x2+3x−7=02x^2 + 3x - 7 = 0, Desmos shows x≈1.266x \approx 1.266 and x≈−2.766x \approx -2.766, which match −3±654\dfrac{-3 \pm \sqrt{65}}{4}. If the parabola doesn’t cross the x-axis, there are no real roots (b2−4ac<0b^2 - 4ac \lt 0). When a question asks for a root in exact form, use the formula by hand. See using Desmos on the SAT.

Solve x2−3x−10=0x^2 - 3x - 10 = 0 using the quadratic formula. Check by factoring.

Solution. a=1a = 1, b=−3b = -3, c=−10c = -10.

x=−(−3)±(−3)2−4(1)(−10)2(1)=3±9+402=3±492=3±72\begin{aligned} x &= \frac{-(-3) \pm \sqrt{(-3)^2 - 4(1)(-10)}}{2(1)} \\ &= \frac{3 \pm \sqrt{9 + 40}}{2} \\ &= \frac{3 \pm \sqrt{49}}{2} \\ &= \frac{3 \pm 7}{2} \end{aligned}

So x=3+72=5x = \dfrac{3 + 7}{2} = 5 or x=3−72=−2x = \dfrac{3 - 7}{2} = -2.

Check by factoring: x2−3x−10=(x−5)(x+2)x^2 - 3x - 10 = (x - 5)(x + 2), which gives the same roots. ✓ Since 4949 is a perfect square, factoring was possible.

Solve x2+2x−4=0x^2 + 2x - 4 = 0. Give exact answers and decimals to two places.

Solution. a=1a = 1, b=2b = 2, c=−4c = -4.

x=−2±22−4(1)(−4)2(1)=−2±4+162=−2±202\begin{aligned} x &= \frac{-2 \pm \sqrt{2^2 - 4(1)(-4)}}{2(1)} \\ &= \frac{-2 \pm \sqrt{4 + 16}}{2} \\ &= \frac{-2 \pm \sqrt{20}}{2} \end{aligned}

The exact roots are x=−2+202x = \dfrac{-2 + \sqrt{20}}{2} and x=−2−202x = \dfrac{-2 - \sqrt{20}}{2}. (If you know how to simplify radicals, 20=25\sqrt{20} = 2\sqrt{5}, and these become −1±5-1 \pm \sqrt{5}.)

With a calculator, 20≈4.472\sqrt{20} \approx 4.472:

x≈−2+4.4722≈1.24orx≈−2−4.4722≈−3.24x \approx \frac{-2 + 4.472}{2} \approx 1.24 \qquad \text{or} \qquad x \approx \frac{-2 - 4.472}{2} \approx -3.24
The parabola y = x squared + 2x - 4 crossing the x-axis at about -3.24 and 1.24 ≈ −3.24 ≈ 1.24 y = x² + 2x − 4 −4 −2 2 −4 −2 2 4
The graph of y=x2+2x−4y = x^2 + 2x - 4 crosses the xx-axis at the two roots, confirming the answer.

Solve 3x2=5−4x3x^2 = 5 - 4x. Round to two decimal places.

Solution. Get 00 on one side by adding 4x4x and subtracting 55:

3x2+4x−5=03x^2 + 4x - 5 = 0

So a=3a = 3, b=4b = 4, c=−5c = -5.

x=−4±42−4(3)(−5)2(3)=−4±16+606=−4±766\begin{aligned} x &= \frac{-4 \pm \sqrt{4^2 - 4(3)(-5)}}{2(3)} \\ &= \frac{-4 \pm \sqrt{16 + 60}}{6} \\ &= \frac{-4 \pm \sqrt{76}}{6} \end{aligned}

With 76≈8.718\sqrt{76} \approx 8.718:

x≈−4+8.7186≈0.79orx≈−4−8.7186≈−2.12x \approx \frac{-4 + 8.718}{6} \approx 0.79 \qquad \text{or} \qquad x \approx \frac{-4 - 8.718}{6} \approx -2.12

Check x≈0.79x \approx 0.79 in the original: 3(0.79)2≈1.873(0.79)^2 \approx 1.87 and 5−4(0.79)=1.845 - 4(0.79) = 1.84. These are close; the small difference comes from rounding. ✓

Solve x2−4x+7=0x^2 - 4x + 7 = 0.

Solution. a=1a = 1, b=−4b = -4, c=7c = 7. Start with the part under the square root:

b2−4ac=(−4)2−4(1)(7)=16−28=−12b^2 - 4ac = (-4)^2 - 4(1)(7) = 16 - 28 = -12

The formula would need −12\sqrt{-12}, which isn’t a real number. So the equation has no real roots.

This makes sense graphically. Completing the square gives y=x2−4x+7=(x−2)2+3y = x^2 - 4x + 7 = (x - 2)^2 + 3: the parabola opens up from its vertex (2,3)(2, 3), which is above the xx-axis, so it never crosses the axis.

Using the formula before the equation equals 00. For 3x2=5−4x3x^2 = 5 - 4x, rearrange to 3x2+4x−5=03x^2 + 4x - 5 = 0 first. Otherwise you’ll use the wrong values of bb and cc.

Dropping the sign of bb or cc. In x2−3x−10=0x^2 - 3x - 10 = 0, b=−3b = -3 and c=−10c = -10. Then −b=3-b = 3, not −3-3.

Squaring a negative bb incorrectly. If b=−4b = -4, then b2=(−4)2=16b^2 = (-4)^2 = 16. On a calculator, type the brackets: (−4)2(-4)^2, not −42-4^2.

Dividing only part of the top by 2a2a. The whole numerator, −b±b2−4ac-b \pm \sqrt{b^2 - 4ac}, is divided by 2a2a. Draw the fraction bar all the way across.

Rounding too early. Keep the full calculator value of the square root until the last step, then round.

Writing “no solution” too quickly. A negative b2−4acb^2 - 4ac means no real roots. Double-check the signs in b2−4acb^2 - 4ac before you conclude that.

1. (Warm-up) State the values of aa, bb and cc for each equation. Rearrange first if needed.

  • (a) 4x2−x+7=04x^2 - x + 7 = 0
  • (b) 2x2=9−3x2x^2 = 9 - 3x
  • (c) x2−5=0x^2 - 5 = 0
Solution

(a) a=4a = 4, b=−1b = -1, c=7c = 7.

(b) Rearrange: 2x2+3x−9=02x^2 + 3x - 9 = 0, so a=2a = 2, b=3b = 3, c=−9c = -9.

(c) There’s no xx term, so a=1a = 1, b=0b = 0, c=−5c = -5.

2. (Warm-up) Solve x2+6x+5=0x^2 + 6x + 5 = 0 using the quadratic formula.

Solution

a=1a = 1, b=6b = 6, c=5c = 5:

x=−6±36−202=−6±162=−6±42x = \frac{-6 \pm \sqrt{36 - 20}}{2} = \frac{-6 \pm \sqrt{16}}{2} = \frac{-6 \pm 4}{2}

So x=−1x = -1 or x=−5x = -5.

3. (Core) Solve x2−6x+4=0x^2 - 6x + 4 = 0. Give exact answers and decimals to two places.

Solution

a=1a = 1, b=−6b = -6, c=4c = 4:

x=6±36−162=6±202x = \frac{6 \pm \sqrt{36 - 16}}{2} = \frac{6 \pm \sqrt{20}}{2}

Exact: x=6±202x = \dfrac{6 \pm \sqrt{20}}{2}, which simplifies to 3±53 \pm \sqrt{5}.

Decimals: x≈5.24x \approx 5.24 or x≈0.76x \approx 0.76.

4. (Core) Solve 2x2+3x−7=02x^2 + 3x - 7 = 0. Round to two decimal places.

Solution

a=2a = 2, b=3b = 3, c=−7c = -7:

x=−3±9−4(2)(−7)4=−3±9+564=−3±654x = \frac{-3 \pm \sqrt{9 - 4(2)(-7)}}{4} = \frac{-3 \pm \sqrt{9 + 56}}{4} = \frac{-3 \pm \sqrt{65}}{4}

With 65≈8.062\sqrt{65} \approx 8.062: x≈5.0624≈1.27x \approx \dfrac{5.062}{4} \approx 1.27 or x≈−11.0624≈−2.77x \approx \dfrac{-11.062}{4} \approx -2.77.

5. (Core) Solve −x2+4x+3=0-x^2 + 4x + 3 = 0. Give exact answers and decimals to two places.

Solution

Multiplying both sides by −1-1 makes aa positive, which is easier to work with (it doesn’t change the roots):

x2−4x−3=0x^2 - 4x - 3 = 0

a=1a = 1, b=−4b = -4, c=−3c = -3:

x=4±16+122=4±282x = \frac{4 \pm \sqrt{16 + 12}}{2} = \frac{4 \pm \sqrt{28}}{2}

Exact: x=4±282x = \dfrac{4 \pm \sqrt{28}}{2}, which simplifies to 2±72 \pm \sqrt{7}.

Decimals: x≈4.65x \approx 4.65 or x≈−0.65x \approx -0.65.

6. (Core) Choose a method for each equation, explain your choice, and solve. Round to two decimal places where needed.

  • (a) x2−81=0x^2 - 81 = 0
  • (b) x2+5x−3=0x^2 + 5x - 3 = 0
Solution

(a) Factoring: it’s a difference of squares. (x−9)(x+9)=0(x - 9)(x + 9) = 0, so x=9x = 9 or x=−9x = -9.

(b) No two integers multiply to −3-3 and add to 55, so use the formula with a=1a = 1, b=5b = 5, c=−3c = -3:

x=−5±25+122=−5±372x = \frac{-5 \pm \sqrt{25 + 12}}{2} = \frac{-5 \pm \sqrt{37}}{2}

So x≈0.54x \approx 0.54 or x≈−5.54x \approx -5.54.

7. (Core) Solve each equation, or explain why it has no real roots. Round to two decimal places.

  • (a) 5x2−2x=15x^2 - 2x = 1
  • (b) 2x2+5x+4=02x^2 + 5x + 4 = 0
Solution

(a) Rearrange: 5x2−2x−1=05x^2 - 2x - 1 = 0, so a=5a = 5, b=−2b = -2, c=−1c = -1.

x=2±4+2010=2±2410x = \frac{2 \pm \sqrt{4 + 20}}{10} = \frac{2 \pm \sqrt{24}}{10}

So x≈0.69x \approx 0.69 or x≈−0.29x \approx -0.29.

(b) b2−4ac=25−4(2)(4)=25−32=−7b^2 - 4ac = 25 - 4(2)(4) = 25 - 32 = -7. This is negative, so there are no real roots. The graph of y=2x2+5x+4y = 2x^2 + 5x + 4 never crosses the xx-axis.

8. (Challenge) Solve 0.5x2−1.2x−3=00.5x^2 - 1.2x - 3 = 0. Round to two decimal places.

Solution

a=0.5a = 0.5, b=−1.2b = -1.2, c=−3c = -3:

b2−4ac=(−1.2)2−4(0.5)(−3)=1.44+6=7.44b^2 - 4ac = (-1.2)^2 - 4(0.5)(-3) = 1.44 + 6 = 7.44x=1.2±7.442(0.5)=1.2±7.441x = \frac{1.2 \pm \sqrt{7.44}}{2(0.5)} = \frac{1.2 \pm \sqrt{7.44}}{1}

With 7.44≈2.728\sqrt{7.44} \approx 2.728: x≈3.93x \approx 3.93 or x≈−1.53x \approx -1.53.

(You could also multiply the equation by 1010 first to get 5x2−12x−30=05x^2 - 12x - 30 = 0, which gives the same roots.)

9. (Challenge) Solve x2+10x+7=0x^2 + 10x + 7 = 0 by completing the square, following the steps in the table in Key ideas. Then solve it with the quadratic formula and show that the answers match.

Solution

Completing the square. Here a=1a = 1, so there’s nothing to divide.

x2+10x=−7x2+10x+25=−7+25(x+5)2=18x+5=±18x=−5±18\begin{aligned} x^2 + 10x &= -7 \\ x^2 + 10x + 25 &= -7 + 25 \\ (x + 5)^2 &= 18 \\ x + 5 &= \pm\sqrt{18} \\ x &= -5 \pm \sqrt{18} \end{aligned}

Formula. a=1a = 1, b=10b = 10, c=7c = 7:

x=−10±100−282=−10±722x = \frac{-10 \pm \sqrt{100 - 28}}{2} = \frac{-10 \pm \sqrt{72}}{2}

To compare, note that 72=4×18=218\sqrt{72} = \sqrt{4 \times 18} = 2\sqrt{18}, so

x=−10±2182=−5±18x = \frac{-10 \pm 2\sqrt{18}}{2} = -5 \pm \sqrt{18}

The answers match: x≈−0.76x \approx -0.76 or x≈−9.24x \approx -9.24.