Quadratic Formula
What is the Quadratic Formula?
The quadratic formula solves any equation of the form ax² + bx + c = 0 for x, regardless of whether it factors neatly. It comes from completing the square on the general quadratic — a derivation worth doing once by hand, since it explains why the formula has the shape it does (see below).
The expression under the square root, b² − 4ac, is called the discriminant. Its sign tells you what kind of solutions to expect before you finish the calculation: positive means two distinct real roots, zero means one repeated real root, and negative means no real roots (the parabola never crosses the x-axis).
What Each Variable Means
When to Use It
- Solving any equation in the form ax² + bx + c = 0
- When factoring by inspection isn't obvious or possible
- Checking whether a quadratic has real or complex roots before graphing it
Where This Formula Comes From
Every quadratic equation can be written in this standard form.
ax² + bx + c = 0This makes the x² coefficient 1, which is required to complete the square.
x² + (b/a)x + c/a = 0Isolate the x terms.
x² + (b/a)x = -c/aAdd (b/2a)² to both sides — the amount needed to make the left side a perfect square trinomial.
x² + (b/a)x + (b/2a)² = (b/2a)² - c/aThe left side is now a perfect square; simplify the right side over a common denominator.
(x + b/2a)² = (b² - 4ac) / 4a²Remember both the positive and negative root.
x + b/2a = ± √(b² - 4ac) / 2aSubtract b/2a from both sides to get the final formula.
x = (-b ± √(b² - 4ac)) / 2aStep-by-Step Examples
Example 1: Two real roots
Problem: x² - 5x + 6 = 0
Match the equation to the general form ax² + bx + c = 0.
a = 1, b = -5, c = 6b² - 4ac tells you how many real solutions exist.
(-5)² - 4(1)(6) = 25 - 24 = 1Plug a, b, and the discriminant into x = (-b ± √(b²-4ac)) / 2a.
x = (5 ± √1) / 2 = (5 ± 1) / 2Solve once with + and once with −.
x₁ = (5 + 1) / 2 = 3 x₂ = (5 - 1) / 2 = 2Example 2: No real roots
Problem: 2x² + 4x + 5 = 0
Match the equation to the general form.
a = 2, b = 4, c = 5Check its sign before going further.
4² - 4(2)(5) = 16 - 40 = -24Interactive Calculator
Common Mistakes
Mistake: Forgetting the ± and reporting only one root.
Fix: A positive discriminant always gives two roots — compute both (-b+√disc)/2a and (-b-√disc)/2a.
Mistake: Dividing only the square-root term by 2a instead of the whole numerator.
Fix: The entire numerator, -b ± √(b²-4ac), is divided by 2a — not just the radical.
Mistake: Losing the sign of b when substituting.
Fix: If the equation is x² - 5x + 6 = 0, then b = -5. Substitute the coefficient's actual sign, not its magnitude.
Practice Questions
Solve x² - 3x - 10 = 0 using the quadratic formula.
Hint: a = 1, b = -3, c = -10.
How many real solutions does 2x² + 4x + 5 = 0 have?
Hint: Compute the discriminant before trying to solve.
Frequently Asked Questions
What if a = 0?
Then it isn't a quadratic equation — it's linear (bx + c = 0), and the quadratic formula doesn't apply. Solve linear equations directly instead.
Does the quadratic formula work for every quadratic equation?
Yes — unlike factoring, which only works cleanly for equations with rational roots, the quadratic formula solves any quadratic, including ones with irrational or complex roots.
Why does a negative discriminant mean no real solutions?
Because the formula requires taking the square root of the discriminant, and no real number squares to a negative value. The parabola simply never crosses the x-axis.
Related Formulas
Pythagorean Theorem
Relates the three sides of a right triangle, letting you find any one side from the other two.
Learn more →Slope-Intercept Form
The most common way to write the equation of a straight line, revealing its slope and y-intercept directly.
Learn more →Distance Formula
Calculates the straight-line distance between two points on a coordinate plane.
Learn more →