The quadratic formula is one of the most powerful tools in algebra. It allows us to find the solutions (or roots) of any quadratic equation of the form:
ax² + bx + c = 0
You may have memorized the formula:
x = (-b ± √(b² – 4ac)) / 2a
But where does it come from? Why does it work? In this post, we’ll walk you through the step-by-step derivation of the quadratic formula using the method of completing the square, and explain why it’s universally applicable.
Understanding the derivation helps you not just memorize the formula—but truly grasp how and why it works.
🧮 Step-by-Step Derivation of the Quadratic Formula
Let’s begin with the standard form of a quadratic equation:
ax² + bx + c = 0, where a ≠ 0
Step 1: Divide through by ‘a’
We want the coefficient of x² to be 1 to make completing the square easier. So divide both sides of the equation by a:
x² + (b/a)x + (c/a) = 0
Step 2: Move the constant to the other side
Subtract c/a from both sides:
x² + (b/a)x = -c/a
Step 3: Complete the square
To complete the square, add and subtract the square of half the coefficient of x to the left-hand side.
Take the coefficient of x, which is b/a, divide by 2:
(b/2a)
Now square it:
(b² / 4a²)
Add this value to both sides of the equation:
x² + (b/a)x + (b² / 4a²) = -c/a + (b² / 4a²)
Step 4: Write the left-hand side as a perfect square
Now the left-hand side becomes:
(x + b/2a)²
So we have:
(x + b/2a)² = -c/a + b² / 4a²
To combine the terms on the right-hand side, rewrite -c/a with denominator 4a²:

-c/a = -4ac / 4a²
Now add the two terms:
(x + b/2a)² = (b² – 4ac) / 4a²
Step 5: Take the square root of both sides
Apply the square root to both sides:
x + b/2a = ±√(b² – 4ac) / (2a)
Note: We take the positive and negative square roots, hence the ± symbol.
Step 6: Solve for x
Subtract b/2a from both sides:
x = (-b ± √(b² – 4ac)) / 2a
✅ And there it is! You’ve just derived the quadratic formula:
x = (-b ± √(b² – 4ac)) / 2a
🔍 Why This Derivation Works
This method works for all quadratic equations because it’s based on algebraic identities and the properties of equations. It doesn’t depend on specific values of a, b, or c, and is valid for:
-
Real and complex roots
-
Rational or irrational solutions
-
Any standard quadratic equation
That’s why the quadratic formula is universal—unlike factoring, which only works in select cases.
🧠 The Role of the Discriminant
You may have noticed the part under the square root:
b² – 4ac
This is called the discriminant. It determines what type of solutions the quadratic equation will have:
-
Positive discriminant → two real, distinct roots
-
Zero discriminant → one real, repeated root
-
Negative discriminant → two complex roots
So during the derivation, this expression naturally emerges—giving us insight into the nature of the equation’s solutions.
📚 Real-World Importance
Understanding this derivation isn’t just for passing exams. It deepens your comprehension of:
-
Algebraic manipulation
-
Completing the square
-
Symbolic logic
-
Mathematical structure and proofs
Plus, this logic forms the basis for solving problems in physics, finance, architecture, and computer science—anywhere quadratic equations arise.
✍️ Practice Problem: Try Deriving It Yourself
Try deriving the formula again starting from:
3x² – 12x + 6 = 0
Follow each step: divide by 3, complete the square, take square roots, and isolate x. You’ll see the power of the process in action.
🎯 Conclusion
The quadratic formula might seem like magic when you first learn it—but now you know it’s just a result of smart algebraic steps. By completing the square, we transformed a standard quadratic into a universal solution method.
Knowing how to derive the formula means you can rebuild it anytime, understand its limitations, and appreciate the math behind the memorization. Whether you’re prepping for exams or teaching others, this foundation will serve you well.
