The quadratic formula is one of the most powerful tools in algebra. It solves any quadratic equation, even when factoring isn’t possible. But where does this formula come from?
In this guide, you’ll learn how to derive the quadratic formula by completing the square. Once you see how it works, you’ll understand the formula more deeply and use it with confidence.
What Is a Quadratic Equation?
A quadratic equation is any equation in the form:
ax² + bx + c = 0
Where:
-
a, b, and c are constants
-
x is the variable
-
a ≠ 0
The goal is to solve for x.
The Quadratic Formula
The formula you will end up with is:
x = (-b ± √(b² – 4ac)) / 2a
This works for all quadratic equations. But instead of just using it, let’s see how it’s built.

Step-by-Step Derivation
Let’s start with the general form of a quadratic equation:
ax² + bx + c = 0
Step 1: Divide All Terms by a
We want the coefficient of x² to be 1. So divide the whole equation by a:
x² + (b/a)x + (c/a) = 0
Step 2: Move the Constant to the Right Side
Get ready to complete the square:
x² + (b/a)x = -c/a
Now the left side has just the variable terms.
Step 3: Complete the Square
To complete the square, take half of the coefficient of x, then square it.
Half of (b/a) is b/2a.
Now square it: (b/2a)² = b²/4a²
Add this term to both sides:
x² + (b/a)x + (b²/4a²) = -c/a + b²/4a²
Now the left side is a perfect square.
Step 4: Write as a Square
Now write the left side as a squared binomial:
(x + b/2a)² = -c/a + b²/4a²
To combine the right side, find a common denominator:
-c/a = -4ac/4a²
So:
(x + b/2a)² = (b² – 4ac) / 4a²
Step 5: Take the Square Root of Both Sides
Now take the square root of both sides:
x + b/2a = ±√(b² – 4ac) / 2a
Note: The square root of the denominator √(4a²) = 2a.
Step 6: Solve for x
Now subtract b/2a from both sides:
x = (-b ± √(b² – 4ac)) / 2a
This is the quadratic formula.
Why This Works
This formula works because it comes directly from the general quadratic equation. It uses completing the square, a method that works for any expression of the form ax² + bx + c.
By breaking the process into small steps and using basic algebra, you get a universal tool that works every time.
When to Use the Quadratic Formula
Use this formula when:
-
The equation doesn’t factor easily
-
You want exact answers, including irrational or complex numbers
-
You want to check your work from another method
It gives two possible answers using the ± symbol. These are the roots or solutions of the quadratic equation.
Final Thoughts
Now that you’ve seen how to derive the quadratic formula, you understand where it comes from and why it works. This helps you use it with more confidence and accuracy.
Practice each step until it feels natural. The more you understand the method, the easier solving quadratics will be.
