The quadratic formula is a single equation that solves every quadratic equation. A quadratic equation is any equation of the form ax² + bx + c = 0, where a, b, and c are numbers and a is not zero. The formula is x = (−b ± √(b² − 4ac)) / 2a. It looks intimidating at first glance, but each part has a clear job, and once the steps are practiced, solving a quadratic takes less than a minute.
Quadratic equations appear wherever a quantity depends on the square of another quantity: the height of a thrown ball over time, the area of a rectangle with a fixed perimeter, the path of a projectile, and the profit of a business as price changes. The formula gives the exact answers in all of these cases, including cases where factoring is difficult or impossible.

The Standard Form
Before the formula can be used, the equation must be written in standard form: ax² + bx + c = 0. The three coefficients are read off directly: a is the number in front of x², b is the number in front of x, and c is the constant term.
In the equation x² − 3x − 4 = 0, the coefficients are a = 1, b = −3, and c = −4. In 2x² + 4x − 6 = 0, they are a = 2, b = 4, and c = −6. In 3x² − 2x − 1 = 0, they are a = 3, b = −2, and c = −1.
Two cautions matter here. First, the signs travel with the numbers: in x² − 3x − 4 = 0, b is −3, not 3, and c is −4, not 4. Dropping a minus sign is the most common source of wrong answers. Second, if a term is missing, its coefficient is zero: in x² − 9 = 0, b = 0 and c = −9. If the equation is not already equal to zero, move everything to one side first. The equation 2x² = 8x − 6 becomes 2x² − 8x + 6 = 0 before the formula is applied.
Reading the Formula
The formula x = (−b ± √(b² − 4ac)) / 2a has four parts. The −b at the front flips the sign of b. The ± symbol means the calculation is done twice, once with a plus and once with a minus, producing two answers. The expression under the square root, b² − 4ac, is called the discriminant, and it decides how many real answers exist. The denominator 2a divides the whole top, not just part of it.
The formula works because it is derived by completing the square on the general equation ax² + bx + c = 0. That derivation is worth seeing once, because it shows the formula is not a magic trick but a logical consequence of algebra. In practice, though, the formula is used as a tool: identify a, b, and c, substitute, and simplify.
A scientific calculator handles the square root and the arithmetic, and a graphing calculator plots the parabola so the two solutions can be seen as the points where the curve crosses the x-axis.
Worked Example: x² − 3x − 4 = 0
Identify the coefficients: a = 1, b = −3, c = −4.
Compute the discriminant: b² − 4ac = (−3)² − 4(1)(−4) = 9 + 16 = 25. The square root of 25 is 5.
Apply the formula: x = (−(−3) ± 5) / (2 × 1) = (3 ± 5) / 2.
Two answers follow. With the plus sign: (3 + 5) / 2 = 8 / 2 = 4. With the minus sign: (3 − 5) / 2 = (−2) / 2 = −1.
The solutions are x = 4 and x = −1. Check them by substitution. For x = 4: 16 − 12 − 4 = 0. For x = −1: 1 + 3 − 4 = 0. Both check out.
Worked Example: 2x² + 4x − 6 = 0
Identify the coefficients: a = 2, b = 4, c = −6.
Discriminant: b² − 4ac = 16 − 4(2)(−6) = 16 + 48 = 64. The square root of 64 is 8.
Formula: x = (−4 ± 8) / 4. With the plus sign: (−4 + 8) / 4 = 4 / 4 = 1. With the minus sign: (−4 − 8) / 4 = (−12) / 4 = −3.
The solutions are x = 1 and x = −3. Checking x = 1: 2 + 4 − 6 = 0. Checking x = −3: 18 − 12 − 6 = 0. Both are correct.
A shortcut exists here: dividing the whole equation by 2 first gives x² + 2x − 3 = 0, which factors as (x + 3)(x − 1) = 0, giving the same answers. The formula is the reliable route when factoring is not obvious.
Worked Example: 3x² − 2x − 1 = 0
Coefficients: a = 3, b = −2, c = −1.
Discriminant: (−2)² − 4(3)(−1) = 4 + 12 = 16. The square root is 4.
Formula: x = (2 ± 4) / 6. With the plus sign: 6 / 6 = 1. With the minus sign: (−2) / 6 = −1/3.
The solutions are x = 1 and x = −1/3. Check the fraction: 3 × (1/9) − 2 × (−1/3) − 1 = 1/3 + 2/3 − 1 = 0. Correct.
The Discriminant: How Many Solutions?
The discriminant, b² − 4ac, is the part under the square root, and its sign tells the whole story before the rest of the calculation is done.
When the discriminant is positive, the equation has two different real solutions. The parabola crosses the x-axis at two points. The example x² − 3x − 4 = 0 has a discriminant of 25, positive, and two solutions, 4 and −1.
When the discriminant is zero, the equation has exactly one real solution, counted twice. The parabola just touches the x-axis at its vertex. The equation x² + 6x + 9 = 0 has a discriminant of 36 − 36 = 0, and the formula gives x = −6 / 2 = −3 as the only solution. Indeed, x² + 6x + 9 = (x + 3)², which is zero only at x = −3. Similarly, x² − 10x + 25 = 0 has a discriminant of 100 − 100 = 0 and the single solution x = 5, since the equation is (x − 5)² = 0.
When the discriminant is negative, the equation has no real solutions, because the square root of a negative number is not a real number. The parabola never crosses the x-axis. The equation x² + 4x + 5 = 0 has a discriminant of 16 − 20 = −4. It has two complex solutions, x = −2 + i and x = −2 − i, where i is the square root of −1, but no real ones. In practical problems, a negative discriminant usually means the situation described has no solution: a ball that never reaches a given height, or a rectangle with an impossible area.
| Discriminant | Real solutions | Parabola |
|---|---|---|
| Positive | Two | Crosses the x-axis twice |
| Zero | One | Touches the x-axis at the vertex |
| Negative | None | Never reaches the x-axis |
Factoring Versus the Formula
Factoring is faster when it works, but it only works when the roots are simple numbers. The equation x² − 5x + 6 = 0 factors as (x − 2)(x − 3) = 0, giving roots 2 and 3 at a glance. The quadratic formula gives the same result: the discriminant is 25 − 24 = 1, the square root is 1, and x = (5 ± 1) / 2 gives 3 and 2.
But many equations do not factor neatly. The equation x² − 7x + 10 = 0 factors as (x − 2)(x − 5), which is manageable. The equation 5x² + 3x − 2 = 0 is harder to factor by inspection, yet the formula handles it directly: the discriminant is 9 + 40 = 49, the square root is 7, and x = (−3 ± 7) / 10 gives 0.4 and −1. Check x = 0.4: 5 × 0.16 + 3 × 0.4 − 2 = 0.8 + 1.2 − 2 = 0. Correct.
The practical rule is simple: try factoring for a few seconds, and if the factors are not obvious, use the formula. The formula never fails, and it always gives exact answers, including irrational ones that factoring can never produce.
Completing the Square
Completing the square is the method the formula is built from, and it is worth knowing for equations where the structure is visible. Take x² + 6x + 5 = 0. Move the constant: x² + 6x = −5. Add the square of half the x coefficient, 9, to both sides: x² + 6x + 9 = 4. The left side is now a perfect square: (x + 3)² = 4. Take the square root: x + 3 = ±2. So x = −1 or x = −5.
Completing the square is elegant, but it is fiddly when the leading coefficient is not 1 or when fractions appear. The formula is completing the square done once, in general, for all equations. Students who understand completing the square understand why the formula works; students who only memorize the formula can still use it correctly every time.
A Projectile Problem
A ball is thrown straight up with an initial speed of 64 feet per second from ground level. Its height after t seconds is h = −16t² + 64t. When does the ball hit the ground?
Set h = 0: −16t² + 64t = 0. The coefficients are a = −16, b = 64, c = 0. The discriminant is 64² − 0 = 4,096, and its square root is 64. The formula gives t = (−64 ± 64) / (−32). With the plus sign: 0 / (−32) = 0, the launch moment. With the minus sign: (−128) / (−32) = 4. The ball hits the ground after 4 seconds.
The vertex of the parabola gives the peak. The time of the peak is −b / (2a) = −64 / (−32) = 2 seconds. The height at 2 seconds is −16 × 4 + 64 × 2 = −64 + 128 = 64 feet. The ball rises for 2 seconds to 64 feet, then falls for 2 seconds back to the ground. The two roots, 0 and 4, are symmetric around the peak time of 2 seconds, which is always true for a parabola.
A Rectangle Area Problem
A rectangle is 3 feet longer than it is wide, and its area is 40 square feet. What are its dimensions?
Let the width be w. The length is w + 3, and the area is w(w + 3) = 40. Expand: w² + 3w − 40 = 0. The coefficients are a = 1, b = 3, c = −40. The discriminant is 9 + 160 = 169, and its square root is 13. The formula gives w = (−3 ± 13) / 2. The plus sign gives 10 / 2 = 5. The minus sign gives −16 / 2 = −8, which is rejected because a width cannot be negative.
The width is 5 feet and the length is 8 feet. Check: 5 × 8 = 40 square feet. Correct.
Notice how the negative root is discarded for a clear physical reason. In pure algebra both roots are valid solutions of the equation, but in a word problem only the root that fits the situation counts. Always read the answer back against the problem to catch this.
The Vertex Form and the Graph
Every quadratic equation corresponds to a parabola, a U-shaped curve, and the solutions are the x-intercepts of that curve. The vertex, the lowest or highest point, sits at x = −b / (2a). For x² − 3x − 4, the vertex is at x = 3 / 2 = 1.5, and the height there is 2.25 − 4.5 − 4 = −6.25. The parabola opens upward because a is positive, so the vertex is a minimum.
When a is positive, the parabola opens upward; when a is negative, it opens downward. The sign of a also tells whether the vertex is a minimum or a maximum, which matters in optimization problems: a business modeling profit as a downward-opening parabola finds its best price at the vertex.
The two roots are symmetric around the vertex. For x² − 3x − 4, the roots −1 and 4 average to 1.5, exactly the vertex x-coordinate. This symmetry is a fast check: if the roots do not average to −b / (2a), something went wrong in the arithmetic.
Common Mistakes to Avoid
The most common mistake is mishandling the signs of b and c. In the formula, −b flips the sign of b, so when b is −3, −b is +3. Forgetting this flip produces roots with the wrong signs.
The second mistake is dividing only part of the numerator by 2a. The entire expression (−b ± √(b² − 4ac)) is divided by 2a. Writing the answer as −b ± √(b² − 4ac) / 2a, with only the square root divided, is wrong.
The third mistake is computing the discriminant incorrectly, especially the −4ac term. When a and c have opposite signs, −4ac is positive, which increases the discriminant. In x² − 3x − 4, the term is −4(1)(−4) = +16, not −16.
The fourth mistake is forgetting the ± and reporting only one root. A quadratic equation has two solutions except when the discriminant is zero, and both must be reported, even if one is later rejected by the context of a word problem.
The fifth mistake is using the formula before putting the equation in standard form. If the equation is 2x² = 8x − 6, the coefficients cannot be read off until it is rewritten as 2x² − 8x + 6 = 0.
Why the Formula Matters
The quadratic formula is one of the oldest results in algebra, known in some form to Babylonian mathematicians nearly 4,000 years ago and written in its modern form in the 16th century. It matters because it is complete: it solves every quadratic equation, exactly, with no guessing and no special cases. Factoring is a shortcut that sometimes works; the formula is the road that always arrives.
Beyond the classroom, quadratics model anything with acceleration, area, or optimization: the trajectory of a ball, the shape of a satellite dish, the profit curve of a product, the stopping distance of a car. The formula turns those models into answers, and the discriminant tells at a glance whether an answer exists at all.
Frequently Asked Questions
What is the quadratic formula? x = (−b ± √(b² − 4ac)) / 2a. It solves any quadratic equation ax² + bx + c = 0, where a, b, and c are the coefficients and a is not zero.
How many solutions does a quadratic equation have? Two real solutions when the discriminant b² − 4ac is positive, one real solution when it is zero, and no real solutions when it is negative.
What are the solutions of x² − 3x − 4 = 0? x = 4 and x = −1. The discriminant is 25, its square root is 5, and (3 ± 5) / 2 gives 4 and −1.
What is the discriminant? The expression b² − 4ac under the square root in the quadratic formula. Its sign tells how many real solutions the equation has.
When should factoring be used instead of the formula? Factoring is faster when the roots are simple whole numbers, such as x² − 5x + 6 = (x − 2)(x − 3). When factoring is not obvious, the formula always works.
What if the discriminant is negative? The equation has no real solutions. It has two complex solutions involving i, the square root of −1. For x² + 4x + 5 = 0, the solutions are x = −2 ± i.