English
/

The Quadratic Formula, Step by Step

Last edited Nov 6, 2026 · 4 min read

For ax² + bx + c = 0 with a ≠ 0, the quadratic formula is x = (−b ± √(b² − 4ac)) / (2a). It solves equations that do not factor neatly as well as those that do. The three worked examples include a substitution check for every result.

On this page▾
  1. The formula and what each part means
  2. Example 1: a simple two-solution case
  3. Example 2: an equation with a leading coefficient other than 1
  4. Example 3: a repeated (double) root
  5. What a negative discriminant tells you
  6. A reliable process for any quadratic equation
Discriminant b² - 4ac, with real coefficients Solutions
Positive Two distinct real solutions
Zero One repeated real solution
Negative No real solutions; two nonreal complex solutions

The formula and what each part means

For any quadratic equation in the standard form ax² + bx + c = 0 (where a is not zero), the quadratic formula states:

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

The Common Core high school algebra standards group this under "Reasoning with Equations and Inequalities," specifically the expectation that students can "solve quadratic equations in one variable," including by using the quadratic formula. The three letters a, b, and c are not abstract; they are simply the numbers sitting in front of x², x, and the constant term in your specific equation, read off in that order.

The expression under the square root, b² − 4ac, is called the discriminant, and it tells you in advance what kind of answer to expect:

  • Positive discriminant: two different real solutions.
  • Zero discriminant: exactly one real solution (the two "±" branches give the same number).
  • Negative discriminant: no real solutions (the equation's graph does not cross the x-axis).

Example 1: a simple two-solution case

Solve x² − 5x + 6 = 0.

Here a = 1, b = −5, c = 6. Substitute directly into the formula:

x = (5 ± √((−5)² − 4·1·6)) / (2·1) = (5 ± √(25 − 24)) / 2 = (5 ± √1) / 2 = (5 ± 1) / 2

This gives two answers: x = (5+1)/2 = 3, and x = (5−1)/2 = 2.

Checking the answer: substituting x = 3 back into the original equation gives 3² − 5(3) + 6 = 9 − 15 + 6 = 0. Substituting x = 2 gives 2² − 5(2) + 6 = 4 − 10 + 6 = 0. Both check out exactly.

Factoring, which is faster when it works, is covered in How to Factor Quadratic Trinomials, Step by Step.

Example 2: an equation with a leading coefficient other than 1

Solve 2x² + 3x − 2 = 0.

Here a = 2, b = 3, c = −2. Substitute:

x = (−3 ± √(3² − 4·2·(−2))) / (2·2) = (−3 ± √(9 + 16)) / 4 = (−3 ± √25) / 4 = (−3 ± 5) / 4

This gives x = (−3+5)/4 = 0.5, and x = (−3−5)/4 = −2.

Checking the answer: 2(0.5)² + 3(0.5) − 2 = 2(0.25) + 1.5 − 2 = 0.5 + 1.5 − 2 = 0. For x = −2: 2(−2)² + 3(−2) − 2 = 2(4) − 6 − 2 = 8 − 6 − 2 = 0. Both confirmed.

A common mistake in this example is forgetting that subtracting a negative c flips the sign inside the formula; notice that −4ac became −4(2)(−2), which is +16, not −16. Watch the sign of c carefully whenever it is negative.

Example 3: a repeated (double) root

Solve x² + 4x + 4 = 0.

Here a = 1, b = 4, c = 4. Substitute:

x = (−4 ± √(4² − 4·1·4)) / (2·1) = (−4 ± √(16 − 16)) / 2 = (−4 ± 0) / 2 = −2

Because the discriminant is exactly zero, both branches of the "±" give the same number, so there is only one solution: x = −2. This matches the discriminant rule above (zero discriminant means exactly one real solution).

Checking the answer: (−2)² + 4(−2) + 4 = 4 − 8 + 4 = 0. Confirmed.

What a negative discriminant tells you

Not every quadratic equation has a real-number solution. Take x² + 2x + 5 = 0: here a = 1, b = 2, c = 5, so the discriminant is 2² − 4(1)(5) = 4 − 20 = −16, which is negative. Since you cannot take the square root of a negative number within the real numbers, this equation has no real solutions. Recognizing this before you start simplifying saves time; if your discriminant comes out negative, there is no real x value to report. If the problem asks for complex solutions, continue using i² = −1; here the solutions are −1 ± 2i.

A reliable process for any quadratic equation

  1. Rewrite the equation in standard form (ax² + bx + c = 0) if it is not already, moving every term to one side.
  2. Identify a, b, and c directly from the equation, paying close attention to signs.
  3. Calculate the discriminant (b² − 4ac) first, before plugging into the rest of the formula, so you immediately know whether to expect two solutions, one, or none.
  4. Substitute into the full formula and simplify carefully, handling the square root and the division by 2a as separate steps rather than trying to do everything at once.
  5. Check your answer by substituting it back into the original equation. If the left and right sides do not come out equal, go back and recheck your arithmetic, particularly your handling of negative signs.

Sources

  1. Common Core State Standards Initiative, High School Algebra, Reasoning with Equations and Inequalities
  2. Common Core State Standards Initiative, Standards for Mathematical Practice
  3. Common Core State Standards Initiative, The Complex Number System

About this guide

Howlane operator · Checked against the official sources listed above. It is general information, not professional advice.

AboutEditorial standardsCorrectionsReport an error

Edit history

  • Updated
  • Updated
  • Updated
  • Updated
  • Published