🔬
Math

The Quadratic Formula: When to Use It and Why It Works

A plain-English guide to solving quadratic equations — including when factoring is faster and when you really need the formula.

9 min read · Last updated April 29, 2026

The quadratic formula is the universal solver for any equation of the form ax² + bx + c = 0. It always works, regardless of the coefficients, regardless of whether the solutions are clean integers or messy decimals or even imaginary numbers. Understanding why it works — not just how to plug numbers into it — turns it from a memorization exercise into a tool you can use confidently for the rest of your life.

What a quadratic equation is

A quadratic equation is any equation that can be rearranged into this standard form:

Standard formax² + bx + c = 0, where a ≠ 0

The “quadratic” name comes from quadratus, Latin for square, because the highest power of the variable is 2. The coefficients a, b, and c can be any real numbers — positive, negative, or zero (except a, which must be nonzero, otherwise the equation is just linear).

Some examples:

  • x² - 5x + 6 = 0 (here a=1, b=-5, c=6)
  • 2x² + 3x - 5 = 0 (a=2, b=3, c=-5)
  • x² - 9 = 0 (a=1, b=0, c=-9)
  • 3x² + 6x = 0 (a=3, b=6, c=0)

Solving a quadratic means finding the values of x that make the equation true. These values are called the roots or solutions or zeros of the equation. Geometrically, they are the points where the parabola y = ax² + bx + c crosses the x-axis.

The formula itself

The quadratic formula is:

Quadratic formulax = (-b ± √(b² - 4ac)) ÷ 2a

The ”±” symbol is a shorthand: it produces two solutions, one with + and one with -. Most quadratics have two distinct solutions, though some have one repeated solution and some have two complex (non-real) solutions. The piece under the square root, b² - 4ac, is called the discriminant, and it’s the single most important number in the formula because it tells you which case you’re in before you finish solving.

What the discriminant tells you

Before plugging into the full formula, calculate b² - 4ac first. The result tells you what kind of solutions to expect:

Discriminant valueWhat it meansNumber of real solutions
PositiveThe parabola crosses the x-axis at two points2 distinct real solutions
ZeroThe parabola just touches the x-axis at its vertex1 repeated real solution
NegativeThe parabola never touches the x-axis0 real solutions (2 complex)

If the discriminant is a perfect square (1, 4, 9, 16, 25…), the solutions will be rational — clean fractions or integers. If it’s positive but not a perfect square, the solutions will involve irrational numbers like √7 or (1 + √13)/2. This is useful because it tells you in advance whether to expect a tidy answer or not.

Worked example, start to finish

Let’s solve 2x² - 7x + 3 = 0 step by step.

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

Step 2: Calculate the discriminant. b² - 4ac = (-7)² - 4(2)(3) = 49 - 24 = 25.

The discriminant is 25, which is positive AND a perfect square. We expect two clean rational solutions.

Step 3: Take the square root. √25 = 5.

Step 4: Plug into the formula.

Substituting valuesx = (7 ± 5) ÷ 4

Step 5: Compute both solutions.

  • x = (7 + 5) ÷ 4 = 12/4 = 3
  • x = (7 - 5) ÷ 4 = 2/4 = 1/2

The solutions are x = 3 and x = 1/2. You can verify by substituting back: 2(3)² - 7(3) + 3 = 18 - 21 + 3 = 0 ✓ and 2(0.5)² - 7(0.5) + 3 = 0.5 - 3.5 + 3 = 0 ✓.

Why the formula works

The quadratic formula isn’t magic. It comes from a technique called completing the square applied to the general form ax² + bx + c = 0. Here’s the derivation in five compressed steps.

Start with: ax² + bx + c = 0

Step 1: Divide both sides by a. x² + (b/a)x + c/a = 0

Step 2: Move c/a to the right. x² + (b/a)x = -c/a

Step 3: Add (b/2a)² to both sides (this completes the square on the left). x² + (b/a)x + (b/2a)² = (b/2a)² - c/a

Step 4: Rewrite the left side as a perfect square. (x + b/2a)² = b²/(4a²) - c/a = (b² - 4ac) / 4a²

Step 5: Take the square root of both sides and solve for x. x + b/2a = ±√(b² - 4ac) / 2a x = (-b ± √(b² - 4ac)) / 2a

That’s the quadratic formula. It works because completing the square is just algebraic identity — and it works for any a, b, c (as long as a ≠ 0). This means the formula always gives you the right answer, no matter what the coefficients are.

When to use the quadratic formula vs. other methods

The formula always works, but it’s not always the fastest tool. Three methods solve quadratics, each with a sweet spot:

Factoring is fastest when it works. If you can spot two numbers that multiply to ac and add to b, you can factor and solve in seconds. For example, x² - 5x + 6 = 0 factors to (x - 2)(x - 3) = 0, giving x = 2 and x = 3 immediately. Factoring works cleanly when the discriminant is a perfect square AND the coefficients are small. It fails or gets ugly otherwise.

Completing the square is rarely the fastest method, but it’s how you derive the vertex form y = a(x - h)² + k of a parabola. Useful when you need to find the vertex (the maximum or minimum point), not just the roots.

The quadratic formula is the workhorse. It always works, requires no insight or guessing, and handles ugly coefficients (like fractions or decimals) without complaint. The downside is that for clean factorable equations, it’s slower than just factoring.

A practical rule:

  1. Try factoring first if the coefficients are small whole numbers.
  2. If you can’t see a factoring within 10-15 seconds, use the quadratic formula.
  3. Use completing the square only when you need vertex form, not roots.

Complex roots: when the discriminant is negative

If b² - 4ac is negative, the parabola never crosses the x-axis, and there are no real solutions. But the quadratic formula still produces solutions — they’re just complex numbers involving the imaginary unit i = √-1.

For example, x² + x + 1 = 0 has discriminant 1 - 4 = -3.

Solving with complex rootsx = (-1 ± √-3) / 2 = (-1 ± i√3) / 2

The two solutions are complex conjugates: (-1 + i√3)/2 and (-1 - i√3)/2. They aren’t on the real number line, but they’re mathematically valid and crucial in many areas — quantum mechanics, electrical engineering, and signal processing all use complex solutions to quadratics routinely.

For most practical applications (physics problems, geometry, finance), a negative discriminant means “no real solution exists, this situation can’t actually happen.” If you’re designing a bridge and your equation has complex roots, that’s the math telling you your assumptions are inconsistent.

Common mistakes

A few errors come up over and over when students first learn the formula.

Sign errors with b. If b = -7, then -b = 7, not -7. Always rewrite the equation in standard form first and identify the signed coefficients carefully.

Forgetting the parentheses on . (-7)² = 49, but -7² (without parentheses) is sometimes interpreted as -49. Use parentheses every time you square b, especially when it’s negative.

Dividing only one term by 2a. The whole numerator gets divided. (-b ± √D) / 2a means both -b AND ±√D are divided. A common mistake is to compute (-b/2a) ± √D, which is wrong.

Missing the ±. Quadratics usually have two solutions. If you only compute the + case, you miss half the answer. Always state both unless one is clearly extraneous in context.

Ignoring the discriminant first. Calculating b² - 4ac before plugging into the full formula tells you in 5 seconds what to expect — clean rational, irrational, repeated, or complex. Skipping this step means you don’t notice when something has gone wrong with your computation.

Real-world applications

Quadratics aren’t just textbook exercises. They appear naturally any time you’re working with:

  • Projectile motion. A ball thrown up and falling back down follows a parabolic path. Solving for when it hits the ground means solving a quadratic.
  • Profit maximization. Revenue minus cost is often quadratic in quantity sold. The vertex of that parabola is the profit-maximizing quantity.
  • Area problems. A rectangle with fixed perimeter and a target area produces a quadratic in the side length.
  • Physics of springs and circuits. Energy stored in a spring or capacitor is quadratic in displacement or voltage.
  • Statistics. The variance of a distribution involves squared deviations — quadratic algebra is everywhere.

How to use the Quadratic Calculator

The calculator above takes the three coefficients (a, b, c) and returns the solutions, the discriminant, and the vertex of the parabola — with the steps shown so you can follow the logic. A few tips:

  • Enter coefficients exactly as they appear in standard form. If your equation is 3x² + 5 = 11x, rearrange to 3x² - 11x + 5 = 0 first, so a=3, b=-11, c=5.
  • Watch the signs. A subtraction in the original equation translates to a negative coefficient in standard form. Get this wrong and the answer will be way off.
  • The calculator handles complex roots. If your discriminant is negative, it returns complex conjugate solutions in the form p + qi and p - qi.

The quadratic formula is the most-used algebraic tool past basic arithmetic. Memorize it, understand its derivation, and you’ve got a key that unlocks a huge swath of math and science.

Try the Quadratic Equation Calculator
Apply what you just learned with our free, instant calculator.
Open Calculator →
Calculators for this topic