Math & Learning

The Quadratic Formula, Explained Step by Step

quadratic formula algebra discriminant completing the square math help equations
The Quadratic Formula, Explained Step by Step
Photo by roland via flickr (CC0)

If algebra ever made you groan, odds are the quadratic formula was somewhere in the room. It's the one equation that shows up on nearly every Algebra I and Algebra II test, on the SAT and ACT, and in countless real-world problems involving area, projectile motion, and profit. The good news: once you understand what each piece of it does, the formula stops being a wall of symbols to memorize and becomes a reliable tool you can use on autopilot.

This guide breaks the quadratic formula down step by step. We'll define what a quadratic equation actually is, walk through every part of the formula, show how the discriminant tells you how many solutions you'll get before you even finish solving, run a fully worked example with real numbers, trace where the formula comes from (completing the square), and finish with the mistakes that trip students up most often.

What Is a Quadratic Equation?

A quadratic equation is any equation you can write in the standard form:

ax2 + bx + c = 0

Here a, b, and c are numbers (called coefficients), x is the variable you're solving for, and the one rule that makes it quadratic is that a cannot be zero. If a were zero, the x2 term would vanish and you'd just have a straight-line (linear) equation. The word "quadratic" comes from quadratus, the Latin for "square," because the highest power of x is two.

A few quick examples of equations in standard form:

  • 2x2 + 5x − 3 = 0  (a = 2, b = 5, c = −3)
  • x2 − 4 = 0  (a = 1, b = 0, c = −4)
  • 3x2 + x = 0  (a = 3, b = 1, c = 0)

Notice that b or c can be zero, just not a. The graph of a quadratic is always a U-shaped curve called a parabola, and the solutions you're hunting for, the values of x that make the equation equal zero, are exactly the points where that parabola crosses the horizontal x-axis.

The Quadratic Formula Itself

Some quadratics factor easily, but many don't. The beauty of the quadratic formula is that it solves every quadratic equation, no factoring or guessing required. Here it is:

x = ( −b ± √(b2 − 4ac) ) / 2a

Read it slowly, piece by piece, and it's far less intimidating:

  • −b — take the b coefficient and flip its sign.
  • ± ("plus or minus") — this is why a quadratic usually has two answers. You work the formula once with a plus sign and once with a minus sign.
  • √(b2 − 4ac) — the square root of the discriminant, the part that determines how many real solutions exist (more on that below).
  • 2a — the entire top of the fraction is divided by 2 times the a coefficient.

To use it, you simply identify a, b, and c from your equation in standard form, drop them into the formula, and simplify. Because every quadratic on Earth fits this template, the formula is a true universal solver. If you'd rather skip the arithmetic and just check your work, our quadratic formula calculator shows the full step-by-step solution for any a, b, and c you enter.

The Discriminant: Predicting Your Roots

The expression under the square root, b2 − 4ac, has a special name: the discriminant, often written with the Greek letter delta (Δ). Calculating it first is one of the smartest habits in algebra, because it tells you exactly how many solutions to expect before you finish solving:

  • If b2 − 4ac > 0 (positive): the equation has two distinct real solutions. The parabola crosses the x-axis in two separate places.
  • If b2 − 4ac = 0 (zero): the equation has exactly one real solution (a "repeated" or "double" root). The parabola just touches the x-axis at a single point, its vertex.
  • If b2 − 4ac < 0 (negative): the equation has no real solutions, but two complex (imaginary) solutions. The parabola never touches the x-axis. Because you can't take the real square root of a negative number, the answers involve i, the imaginary unit where i = √(−1).

One more handy bonus: when the discriminant is a perfect square (like 4, 9, 16, or 25), the equation has clean rational roots and could have been factored. When it's a positive non-perfect-square (like 5 or 12), your answers will be irrational and stay in square-root form. Computing the discriminant first saves you from grinding through arithmetic only to discover there were no real answers all along.

A Fully Worked Example

Let's solve a real equation from start to finish: 2x2 + 3x − 5 = 0.

Step 1 — Identify the coefficients. Compared with ax2 + bx + c = 0, we have a = 2, b = 3, and c = −5.

Step 2 — Calculate the discriminant first.

  • b2 − 4ac = (3)2 − 4(2)(−5)
  • = 9 − (−40)
  • = 9 + 40 = 49

The discriminant is 49, which is positive and a perfect square (72). So we expect two clean, rational solutions.

Step 3 — Plug everything into the formula.

  • x = ( −b ± √(b2 − 4ac) ) / 2a
  • x = ( −3 ± √49 ) / (2 × 2)
  • x = ( −3 ± 7 ) / 4

Step 4 — Split into the two cases.

  • Plus case: x = ( −3 + 7 ) / 4 = 4 / 4 = 1
  • Minus case: x = ( −3 − 7 ) / 4 = −10 / 4 = −2.5

Step 5 — Check your answers. Substitute each solution back into the original equation. For x = 1: 2(1)2 + 3(1) − 5 = 2 + 3 − 5 = 0. ✓ For x = −2.5: 2(−2.5)2 + 3(−2.5) − 5 = 12.5 − 7.5 − 5 = 0. ✓ Both check out. Notice that step 3 needed a square root; if you ever want to compute one of those by hand or verify it, a square root calculator handles the messy irrational cases instantly.

Where the Formula Comes From: Completing the Square

The quadratic formula isn't magic, it's the result of a technique called completing the square applied to the general equation ax2 + bx + c = 0. You don't have to memorize the derivation, but seeing it once makes the formula feel earned rather than arbitrary. Here is the outline:

  • Start: ax2 + bx + c = 0.
  • Divide everything by a so the leading coefficient is 1: x2 + (b/a)x + (c/a) = 0.
  • Move the constant over: x2 + (b/a)x = −c/a.
  • Complete the square by adding (b/2a)2 to both sides, which turns the left side into a perfect square: (x + b/2a)2.
  • Take the square root of both sides (this is where the ± appears, since a square root can be positive or negative), then solve for x.

When you carefully combine the fractions at the end, everything collapses into the familiar x = ( −b ± √(b2 − 4ac) ) / 2a. The historical roots run deep: Babylonian mathematicians solved quadratic-style problems nearly 4,000 years ago, and the geometric idea of "completing the square" was formalized by the Persian scholar al-Khwarizmi around 820 CE, whose work gave us the very word algebra. The compact formula we use today took its modern symbolic shape in the 16th and 17th centuries.

Common Mistakes to Avoid

The quadratic formula is mechanical once you know it, but a handful of slip-ups cause the majority of wrong answers. Watch out for these:

  • Sign errors with negative coefficients. The biggest culprit. When c is negative, the −4ac term becomes positive (a negative times a negative). In our example, −4(2)(−5) became +40, not −40. Write out the signs explicitly.
  • Forgetting it's −b, not b. The formula starts with the opposite sign of b. If b = 3, the formula uses −3; if b = −6, it uses +6.
  • Dividing only part of the numerator by 2a. The entire top, both −b and the square-root term, gets divided by 2a. A common error is dividing only the square-root piece.
  • Not writing the equation in standard form first. If your equation looks like 2x2 + 3x = 5, move the 5 over to get 2x2 + 3x − 5 = 0 before reading off a, b, and c. Otherwise you'll grab the wrong c.
  • Squaring b incorrectly. b2 means b times itself, and the result is always positive (or zero), even when b is negative. (−4)2 = 16, not −16.
  • Stopping after one solution. Remember the ±. Unless the discriminant is exactly zero, a quadratic has two answers, and many word problems require both before you pick the one that fits the context.

The quadratic formula also powers more advanced topics. For instance, when you work with right triangles and end up with a squared distance, the Pythagorean theorem calculator often leaves you with a quadratic to finish solving, so these skills compound nicely.

The Bottom Line

The quadratic formula, x = ( −b ± √(b2 − 4ac) ) / 2a, solves any equation you can write as ax2 + bx + c = 0. Master three habits and you'll get it right almost every time: write the equation in standard form, identify a, b, and c carefully (signs included), and compute the discriminant first so you know whether to expect two real roots, one repeated root, or a pair of complex roots. Everything after that is plug-and-simplify.

Work through a few examples by hand to build the muscle memory, then use a calculator to check your answers and catch sign slips. The formula has survived four thousand years of math precisely because it always works, and once it clicks, it never leaves you.

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (−b ± √(b² − 4ac)) / 2a. It solves any quadratic equation written in standard form ax² + bx + c = 0, where a is not zero. You identify the coefficients a, b, and c, substitute them into the formula, and simplify to find the values of x.

What does the discriminant tell you?

The discriminant is the part under the square root, b² − 4ac, and it predicts how many solutions you'll get. If it's positive, there are two distinct real solutions; if it's exactly zero, there's one repeated real solution; and if it's negative, there are no real solutions but two complex (imaginary) ones.

How do you find a, b, and c in a quadratic equation?

First rearrange the equation into standard form, ax² + bx + c = 0, with everything on one side and zero on the other. Then a is the number multiplying x², b is the number multiplying x, and c is the constant term. Be sure to include any negative signs as part of the coefficient.

Why does a quadratic equation usually have two solutions?

The ± symbol in the formula means you solve it twice: once adding the square root and once subtracting it. Graphically, a parabola normally crosses the x-axis in two places, and each crossing is one solution. The exception is when the discriminant equals zero, which gives a single repeated root.

Can the quadratic formula give complex or imaginary answers?

Yes. When the discriminant b² − 4ac is negative, you'd need the square root of a negative number, which has no real value. The answers then involve i, the imaginary unit equal to √(−1), and come as a pair of complex conjugates. The parabola in that case never touches the x-axis.

When should I use the quadratic formula instead of factoring?

Use factoring when the equation factors quickly with nice whole numbers. Use the quadratic formula when factoring is hard, the coefficients are messy, or the answers are irrational or complex. Since the formula works for every quadratic, it's a reliable fallback whenever factoring stalls.

Where does the quadratic formula come from?

It is derived by applying a technique called completing the square to the general equation ax² + bx + c = 0. After dividing by a, completing the square, and taking the square root of both sides, the algebra collapses into the standard formula. The ± appears because a square root can be positive or negative.

What is the most common mistake when using the quadratic formula?

Sign errors are by far the most common, especially with the −4ac term, which becomes positive when a or c is negative. Other frequent slips include forgetting that the formula uses −b rather than b, and dividing only part of the numerator by 2a instead of the whole top of the fraction.

Calculators mentioned in this article

Comments