Algebra

The Quadratic Formula

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
Electrical

Voltage drop, wire sizing, load balancing

🌡️
HVAC

Refrigerant charging, airflow, system sizing

The quadratic formula is a single formula that solves every quadratic equation — no factoring required, no completing the square required. It works whether the solutions are integers, fractions, irrational numbers, or even complex numbers. If you learn one universal method for solving quadratics, this is it.

The formula is derived from completing the square on the general equation ax2+bx+c=0ax^2 + bx + c = 0, so the technique you learned in the previous section is the mathematical foundation for what follows here.

The Formula

For any quadratic equation in standard form ax2+bx+c=0ax^2 + bx + c = 0 (where a0a \neq 0):

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

This formula produces two solutions (because of the ±\pm):

x1=b+b24ac2ax2=bb24ac2ax_1 = \frac{-b + \sqrt{b^2 - 4ac}}{2a} \qquad x_2 = \frac{-b - \sqrt{b^2 - 4ac}}{2a}

The expression under the square root, b24acb^2 - 4ac, is called the discriminant. It determines the nature of the solutions — you will study it in detail in the next section.

Step-by-Step Process

  1. Write the equation in standard form: ax2+bx+c=0ax^2 + bx + c = 0.
  2. Identify aa, bb, and cc.
  3. Substitute into the formula.
  4. Simplify under the square root first (compute the discriminant).
  5. Evaluate both solutions (the ++ case and the - case).
  6. Simplify radicals and fractions if possible.

Examples with Integer Solutions

Example 1: x2+5x+6=0x^2 + 5x + 6 = 0

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

Substitute:

x=5±524(1)(6)2(1)x = \frac{-5 \pm \sqrt{5^2 - 4(1)(6)}}{2(1)}

Compute the discriminant:

b24ac=2524=1b^2 - 4ac = 25 - 24 = 1

Solve:

x=5±12=5±12x = \frac{-5 \pm \sqrt{1}}{2} = \frac{-5 \pm 1}{2}

x=5+12=42=2x=512=62=3x = \frac{-5 + 1}{2} = \frac{-4}{2} = -2 \qquad x = \frac{-5 - 1}{2} = \frac{-6}{2} = -3

Answer: x=2x = -2 or x=3x = -3

This equation also factors as (x+2)(x+3)=0(x + 2)(x + 3) = 0, confirming the result. The quadratic formula works even when factoring would have been quicker — it just takes a few more steps.

Example 2: 2x27x+3=02x^2 - 7x + 3 = 0

Identify: a=2a = 2, b=7b = -7, c=3c = 3.

Substitute:

x=(7)±(7)24(2)(3)2(2)x = \frac{-(-7) \pm \sqrt{(-7)^2 - 4(2)(3)}}{2(2)}

x=7±49244=7±254=7±54x = \frac{7 \pm \sqrt{49 - 24}}{4} = \frac{7 \pm \sqrt{25}}{4} = \frac{7 \pm 5}{4}

x=7+54=124=3x=754=24=12x = \frac{7 + 5}{4} = \frac{12}{4} = 3 \qquad x = \frac{7 - 5}{4} = \frac{2}{4} = \frac{1}{2}

Answer: x=3x = 3 or x=12x = \dfrac{1}{2}

Examples with Irrational Solutions

Example 3: x24x+1=0x^2 - 4x + 1 = 0

Identify: a=1a = 1, b=4b = -4, c=1c = 1.

x=4±1642=4±122x = \frac{4 \pm \sqrt{16 - 4}}{2} = \frac{4 \pm \sqrt{12}}{2}

Simplify the radical: 12=43=23\sqrt{12} = \sqrt{4 \cdot 3} = 2\sqrt{3}.

x=4±232=2±3x = \frac{4 \pm 2\sqrt{3}}{2} = 2 \pm \sqrt{3}

Answer: x=2+33.732x = 2 + \sqrt{3} \approx 3.732 or x=230.268x = 2 - \sqrt{3} \approx 0.268

Notice we simplified the fraction by dividing every term in the numerator by 2. Always check if you can reduce.

Example 4: 3x2+2x4=03x^2 + 2x - 4 = 0

Identify: a=3a = 3, b=2b = 2, c=4c = -4.

x=2±44(3)(4)2(3)=2±4+486=2±526x = \frac{-2 \pm \sqrt{4 - 4(3)(-4)}}{2(3)} = \frac{-2 \pm \sqrt{4 + 48}}{6} = \frac{-2 \pm \sqrt{52}}{6}

Simplify: 52=413=213\sqrt{52} = \sqrt{4 \cdot 13} = 2\sqrt{13}.

x=2±2136=1±133x = \frac{-2 \pm 2\sqrt{13}}{6} = \frac{-1 \pm \sqrt{13}}{3}

Answer: x=1+1330.869x = \dfrac{-1 + \sqrt{13}}{3} \approx 0.869 or x=11331.535x = \dfrac{-1 - \sqrt{13}}{3} \approx -1.535

When the Equation Is Not in Standard Form

You must rearrange before identifying aa, bb, and cc.

Example 5: x2=6x5x^2 = 6x - 5

Step 1 — Move all terms to one side:

x26x+5=0x^2 - 6x + 5 = 0

Identify: a=1a = 1, b=6b = -6, c=5c = 5.

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

x=102=5x=22=1x = \frac{10}{2} = 5 \qquad x = \frac{2}{2} = 1

Answer: x=5x = 5 or x=1x = 1

Example 6: 4x2+9=12x4x^2 + 9 = 12x

Rearrange: 4x212x+9=04x^2 - 12x + 9 = 0.

Identify: a=4a = 4, b=12b = -12, c=9c = 9.

x=12±1441448=12±08=128=32x = \frac{12 \pm \sqrt{144 - 144}}{8} = \frac{12 \pm \sqrt{0}}{8} = \frac{12}{8} = \frac{3}{2}

Answer: x=32x = \dfrac{3}{2} (one repeated solution). The discriminant is zero, meaning the parabola touches the xx-axis at exactly one point.

Choosing the Best Method

You now have four methods for solving quadratics. Here is when to use each:

MethodBest when…
FactoringThe equation factors easily over the integers
Square root methodNo linear xx term — equation has the form (expression)2=k(expression)^2 = k
Completing the squareYou need vertex form, or the equation almost forms a perfect square
Quadratic formulaThe equation does not factor easily, or you want a guaranteed method

The quadratic formula always works, but it can be slower than factoring for simple problems. Develop the judgment to pick the fastest approach for each equation.

Real-World Application: Electrician — Calculating Power in a Circuit

In electrical work, the power formula for a resistive circuit is:

P=I2RP = I^2 R

where PP is power in watts, II is current in amps, and RR is resistance in ohms. An electrician is designing a circuit where the total power must not exceed 1,800 watts and the resistance is 8 ohms. What is the maximum current?

Setting up the equation:

I28=1800I^2 \cdot 8 = 1800

I2=225I^2 = 225

I=15 ampsI = 15 \text{ amps}

Now consider a more complex scenario. The power consumed by two series components is modeled by:

P=2I2+5IP = 2I^2 + 5I

If the total power dissipated is 63 watts, find the current:

2I2+5I=632I^2 + 5I = 63

2I2+5I63=02I^2 + 5I - 63 = 0

Identify: a=2a = 2, b=5b = 5, c=63c = -63.

I=5±25+5044=5±5294=5±234I = \frac{-5 \pm \sqrt{25 + 504}}{4} = \frac{-5 \pm \sqrt{529}}{4} = \frac{-5 \pm 23}{4}

I=184=4.5orI=284=7I = \frac{18}{4} = 4.5 \qquad \text{or} \qquad I = \frac{-28}{4} = -7

Current cannot be negative in this context, so I=4.5I = 4.5 amps.

Answer: The current is 4.5 amps. The electrician would verify this is within the ampacity rating of the conductor and the breaker size.

An HVAC Application: Sizing a Heat Exchanger

An HVAC engineer models the heat transfer rate QQ (in BTU/hr) through a heat exchanger as:

Q=0.5T2+30T+200Q = -0.5T^2 + 30T + 200

where TT is the temperature difference in degrees Fahrenheit between the hot and cold fluids. At what temperature difference does the heat transfer rate reach 500 BTU/hr?

0.5T2+30T+200=500-0.5T^2 + 30T + 200 = 500

0.5T2+30T300=0-0.5T^2 + 30T - 300 = 0

Multiply by 2-2 to clear the decimal:

T260T+600=0T^2 - 60T + 600 = 0

Identify: a=1a = 1, b=60b = -60, c=600c = 600.

T=60±360024002=60±12002T = \frac{60 \pm \sqrt{3600 - 2400}}{2} = \frac{60 \pm \sqrt{1200}}{2}

Simplify: 1200=4003=20334.64\sqrt{1200} = \sqrt{400 \cdot 3} = 20\sqrt{3} \approx 34.64.

T=60±2032=30±103T = \frac{60 \pm 20\sqrt{3}}{2} = 30 \pm 10\sqrt{3}

T30+17.32=47.32orT3017.32=12.68T \approx 30 + 17.32 = 47.32 \quad \text{or} \quad T \approx 30 - 17.32 = 12.68

Answer: The heat transfer rate reaches 500 BTU/hr at temperature differences of approximately 12.7 degrees F and 47.3 degrees F. The technician would operate the system near the lower value for energy efficiency.

Common Mistakes to Avoid

  1. Getting the sign of bb wrong. In the formula, the first term in the numerator is b-b. If b=7b = -7, then b=7-b = 7 (positive). If b=5b = 5, then b=5-b = -5. Be meticulous with the negative sign.

  2. Forgetting to write the equation in standard form. The values of aa, bb, and cc come from ax2+bx+c=0ax^2 + bx + c = 0. If your equation is x2=3x+10x^2 = 3x + 10, you must rearrange to x23x10=0x^2 - 3x - 10 = 0 first.

  3. Computing b24acb^2 - 4ac incorrectly. This is the most error-prone step. Remember that (7)2=49(-7)^2 = 49 (not 49-49), and 4(2)(3)=+24-4(2)(-3) = +24 (two negatives make a positive). Write out the arithmetic carefully.

  4. Putting the ±\pm only on part of the numerator. The formula is b±b24ac2a\dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}. The entire numerator is divided by 2a2a, not just the square root term. Use parentheses to keep everything together.

  5. Not simplifying the final answer. Always reduce fractions and simplify radicals. The answer 4±232\dfrac{4 \pm 2\sqrt{3}}{2} should be simplified to 2±32 \pm \sqrt{3}.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Solve x23x10=0x^2 - 3x - 10 = 0 using the quadratic formula

a=1a = 1, b=3b = -3, c=10c = -10

x=3±9+402=3±492=3±72x = \frac{3 \pm \sqrt{9 + 40}}{2} = \frac{3 \pm \sqrt{49}}{2} = \frac{3 \pm 7}{2}

x=5orx=2x = 5 \quad \text{or} \quad x = -2

Answer: x=5x = 5 or x=2x = -2

Problem 2: Solve 2x2+3x5=02x^2 + 3x - 5 = 0

a=2a = 2, b=3b = 3, c=5c = -5

x=3±9+404=3±494=3±74x = \frac{-3 \pm \sqrt{9 + 40}}{4} = \frac{-3 \pm \sqrt{49}}{4} = \frac{-3 \pm 7}{4}

x=44=1orx=104=52x = \frac{4}{4} = 1 \quad \text{or} \quad x = \frac{-10}{4} = -\frac{5}{2}

Answer: x=1x = 1 or x=52x = -\dfrac{5}{2}

Problem 3: Solve x2+2x7=0x^2 + 2x - 7 = 0

a=1a = 1, b=2b = 2, c=7c = -7

x=2±4+282=2±322=2±422=1±22x = \frac{-2 \pm \sqrt{4 + 28}}{2} = \frac{-2 \pm \sqrt{32}}{2} = \frac{-2 \pm 4\sqrt{2}}{2} = -1 \pm 2\sqrt{2}

Answer: x=1+221.83x = -1 + 2\sqrt{2} \approx 1.83 or x=1223.83x = -1 - 2\sqrt{2} \approx -3.83

Problem 4: Solve 3x2=5x+23x^2 = 5x + 2

Rearrange: 3x25x2=03x^2 - 5x - 2 = 0

a=3a = 3, b=5b = -5, c=2c = -2

x=5±25+246=5±496=5±76x = \frac{5 \pm \sqrt{25 + 24}}{6} = \frac{5 \pm \sqrt{49}}{6} = \frac{5 \pm 7}{6}

x=126=2orx=26=13x = \frac{12}{6} = 2 \quad \text{or} \quad x = \frac{-2}{6} = -\frac{1}{3}

Answer: x=2x = 2 or x=13x = -\dfrac{1}{3}

Problem 5: An electrician models the power consumption of a motor circuit as P=3I2+10IP = 3I^2 + 10I. If the power reading is 48 watts, find the current II.

3I2+10I=483I^2 + 10I = 48

3I2+10I48=03I^2 + 10I - 48 = 0

a=3a = 3, b=10b = 10, c=48c = -48

I=10±100+5766=10±6766=10±266I = \frac{-10 \pm \sqrt{100 + 576}}{6} = \frac{-10 \pm \sqrt{676}}{6} = \frac{-10 \pm 26}{6}

I=166=832.67orI=366=6I = \frac{16}{6} = \frac{8}{3} \approx 2.67 \quad \text{or} \quad I = \frac{-36}{6} = -6

Current is positive, so I=832.67I = \dfrac{8}{3} \approx 2.67 amps.

Answer: The current is approximately 2.67 amps.

Problem 6: Solve x28x+16=0x^2 - 8x + 16 = 0 and explain what the result means geometrically

a=1a = 1, b=8b = -8, c=16c = 16

x=8±64642=8±02=4x = \frac{8 \pm \sqrt{64 - 64}}{2} = \frac{8 \pm 0}{2} = 4

Only one solution: x=4x = 4 (a repeated root).

Geometric meaning: The parabola y=x28x+16y = x^2 - 8x + 16 touches the xx-axis at exactly one point, (4,0)(4, 0). The vertex sits right on the xx-axis.

Answer: x=4x = 4 (double root)

Key Takeaways

  • The quadratic formula x=b±b24ac2ax = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} solves any quadratic equation in standard form
  • Always write the equation as ax2+bx+c=0ax^2 + bx + c = 0 first, then read off aa, bb, and cc — be careful with signs
  • The discriminant b24acb^2 - 4ac tells you the nature of the solutions before you finish calculating
  • Simplify your answer: reduce fractions and simplify radicals like 12=23\sqrt{12} = 2\sqrt{3}
  • Factoring is faster when it works, but the quadratic formula is the guaranteed universal method
  • In applied problems, check whether negative solutions make physical sense — often only the positive root applies

Return to Algebra 1 for more topics in this section.

Last updated: March 29, 2026