How to Solve Quadratic Equations: Formula & Examples

By Toolinga Editorial Team · Updated · 7 min read

If you have ever wondered how to solve quadratic equations without guesswork, you are in the right place. A quadratic equation is one of the most common equations in school math, standardized tests, and real-world problems like projectile motion and profit optimization. The good news: there is a reliable method that works every time, plus a faster shortcut for the easy cases. This guide walks you through both with fully worked examples so you can follow and check every step.

What Makes an Equation Quadratic

An equation is quadratic when its highest exponent is 2. The standard form looks like this:

ax2 + bx + c = 0, where a ≠ 0.

The letters a, b, and c are just the numbers sitting in front of each term. In x2 + 4x − 21 = 0, for example, a = 1, b = 4, and c = −21. The condition a ≠ 0 matters: if a were zero, the x2 term would vanish and you would be left with a plain linear equation, which is a different (and easier) animal. The "quadratic" name comes from the Latin word for square, since the variable is squared.

A quadratic equation can have at most two solutions, also called roots or zeros. Why two? Because the degree of the equation is 2, a second-degree polynomial graph is a parabola that can cross the x-axis at most twice. We will see exactly how to tell these cases apart later.

The Quadratic Formula: How to Solve Quadratic Equations Step by Step

The quadratic formula is the universal method: it solves every quadratic equation, even the ones that refuse to factor neatly. Here it is:

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

Here is the step-by-step process:

  1. Write the equation in standard form ax2 + bx + c = 0 and identify a, b, and c, keeping their signs.
  2. Plug the values into the formula carefully, watching the minus signs.
  3. Simplify under the square root first (this part is called the discriminant).
  4. Split into two calculations, one with + and one with −, then simplify each fraction.
  5. Check your answers by plugging them back into the original equation.

Let us work through a real example: x2 + 4x − 21 = 0.

First, a = 1, b = 4, c = −21. Substituting into the formula:

x = (−4 ± √(42 − 4(1)(−21))) / (2 × 1)
x = (−4 ± √(16 + 84)) / 2
x = (−4 ± √100) / 2
x = (−4 ± 10) / 2

Now split it in two: x = (−4 + 10) / 2 = 6 / 2 = 3, and x = (−4 − 10) / 2 = −14 / 2 = −7.

Check: 32 + 4(3) − 21 = 9 + 12 − 21 = 0 ✓, and (−7)2 + 4(−7) − 21 = 49 − 28 − 21 = 0 ✓. Both solutions work. If hand arithmetic is not your favorite, you can also solve it with our quadratic equation solver and compare the steps with your own.

How to Solve Quadratic Equations by Factoring (When It's Faster)

Factoring is the shortcut. Instead of reaching for the formula, you rewrite the quadratic as two multiplied brackets and read the solutions straight off. It works beautifully when the equation factors into integers, which textbook problems often do.

The idea rests on the zero-product property: if two things multiply to zero, at least one of them is zero. So if (x − 2)(x − 3) = 0, then either x − 2 = 0 or x − 3 = 0, giving x = 2 or x = 3 instantly.

Let us factor x2 − 5x + 6 = 0. We need two numbers that multiply to +6 and add to −5. Those numbers are −2 and −3, because (−2) × (−3) = 6 and (−2) + (−3) = −5. So:

(x − 2)(x − 3) = 0 → x = 2 or x = 3.

Check: 22 − 5(2) + 6 = 4 − 10 + 6 = 0 ✓, and 32 − 5(3) + 6 = 9 − 15 + 6 = 0 ✓.

A handy pattern to try first: if a = 1, look for two numbers that multiply to c and add to b. If a is not 1, or the numbers refuse to cooperate after a minute of trying, stop guessing — that is exactly when the quadratic formula earns its keep. You can also verify a factored result with a free quadratic equation solver to make sure no sign slipped through.

What the Discriminant Tells You

The part of the formula under the square root, b2 − 4ac, is called the discriminant, often written as D or Δ. Before you even finish solving, it reveals how many real solutions the equation has:

  • D > 0 — two distinct real solutions. The parabola crosses the x-axis twice.
  • D = 0 — exactly one (repeated) solution. The parabola just touches the axis.
  • D < 0 — no real solutions. The parabola misses the axis entirely (the equation still has two complex solutions, but that is beyond a standard real-number class).

Three quick concrete examples:

1. D > 0: x2 + 3x − 4 = 0. D = 32 − 4(1)(−4) = 9 + 16 = 25 > 0, so two real solutions: x = (−3 ± 5) / 2, giving x = 1 or x = −4. Check x = 1: 1 + 3 − 4 = 0 ✓. Check x = −4: 16 − 12 − 4 = 0 ✓.

2. D = 0: x2 − 6x + 9 = 0. D = (−6)2 − 4(1)(9) = 36 − 36 = 0, so one repeated solution: x = 6 / 2 = 3. Indeed, x2 − 6x + 9 = (x − 3)2, so the root 3 counts twice.

3. D < 0: x2 + x + 1 = 0. D = 12 − 4(1)(1) = 1 − 4 = −3 < 0, so no real solutions. The formula would ask for √(−3), which has no real-number answer.

Computing the discriminant first is a smart habit on timed tests: it tells you how many answers to expect before you invest time in the full calculation.

Check Your Answer in Seconds

Even professionals verify their roots, because one dropped minus sign ruins everything. Here is a fast checking routine:

  1. Plug each solution back in. Substitute x into the original equation and simplify. Each side must balance to zero. This catches nearly every arithmetic slip.
  2. Match the solution count to the discriminant. If D > 0 you must have two different answers; if D = 0 the two answers should be identical; if D < 0 there are no real answers to plug in at all.
  3. Sanity-check the signs. Multiply your two roots: for ax2 + bx + c = 0, the product equals c / a and the sum equals −b / a. For x2 + 4x − 21 = 0, the roots 3 and −7 sum to −4 (that is −b) and multiply to −21 (that is c) ✓. This ten-second test is remarkably effective.

Get in the habit of checking and your accuracy on quadratic problems will jump almost immediately.

Frequently Asked Questions

What is the fastest way to solve a quadratic equation?

Try factoring first if the leading coefficient is 1 and the numbers look friendly — it takes seconds. If nothing factors cleanly within a minute, switch to the quadratic formula, which always works. For one-off homework checks, a quadratic equation solver gives the answer instantly.

When should I use the quadratic formula instead of factoring?

Use the formula whenever the equation does not factor into integers, when a ≠ 1 and the numbers get messy, or when the problem explicitly asks for it. Since the formula never fails, many teachers recommend defaulting to it on exams.

What does it mean if the discriminant is negative?

A negative discriminant (b2 − 4ac < 0) means the equation has no real-number solutions. Geometrically, the parabola never touches the x-axis. In advanced math you would say it has two complex solutions.

Can a quadratic equation have more than two solutions?

No. A quadratic is a degree-2 equation, and a degree-2 polynomial can have at most two roots. If you find three different "solutions," at least one of them is wrong — recheck your algebra.

Conclusion

Now you know how to solve quadratic equations two reliable ways: factoring for the quick wins and the quadratic formula for everything else, with the discriminant telling you in advance how many real answers to expect. Practice the worked examples above until the steps feel automatic, always verify by substituting back, and remember that the formula never fails you. Ready to test yourself? Try your next problem by hand, then confirm your answers with our free quadratic equation solver — it shows the steps so you can learn from every problem you solve.

Related guides

How to Write Scientific Notation: Easy Guide

Learn how to write scientific notation step by step — convert huge and tiny numbers with worked examples, clear rules, and a free…

November 6, 2026

How to Check If a Number Is Prime: Easy Hand Method

Learn how to check if a number is prime by hand with trial division, smart shortcuts, and worked examples — plus a free instant…

November 3, 2026

Slope Formula Explained With Examples: Rise Over Run

Learn the slope formula explained with examples: rise over run, worked calculations, slope types, and real uses on roads and…

October 31, 2026

Significant Figures Rules Examples: A Clear Guide

Learn significant figures rules examples with clear rules, zeros explained, and worked rounding examples for homework and lab…

October 28, 2026