Try it with your numbers
Show every step
Seeing the derivation makes the formula far easier to remember, and it explains the plus-or-minus sign, the discriminant and the link to parabolas. The steps below are all short algebra moves. If you want the formula as a ready-to-use tool first, see the quadratic formula page, then come back here for the reason it works.
How do you derive the quadratic formula step by step?
Start with where . The idea is to force the left side into the shape , because a squared quantity can be undone with a square root. That is exactly what completing the square does.
First divide every term by , then move the constant to the right:
Now take half of the coefficient and square it. Half of is , and its square is . Add that to both sides:
The left side is now . On the right, rewrite as so both terms share a denominator:
Take the square root of both sides. Since is in absolute value, and the covers both signs anyway, you get . Subtract and combine the fractions:
Quick check
Answer:
Can you derive the quadratic formula without fractions?
Yes, and it is shorter. Multiply the whole equation by before doing anything else:
The first term is now and the middle term is . A perfect square needs only a final . Move to the right and add to both sides:
Now the square root method finishes the job: , so . No and no common denominators, which means fewer places to slip.
It makes the first term a perfect square, , and turns the middle term into . The only piece missing from a perfect square is then .
Why does the quadratic formula have a plus-or-minus sign?
Squaring erases signs, so undoing a square must give back both possibilities. Since equals a single positive number (when the discriminant is positive), can be either the positive or the negative root of it. Those are your two solutions.
The same fact explains why a negative causes no trouble. Strictly, , but a in front makes the absolute value bars unnecessary. The formula holds for every nonzero .
Most lost points come from three slips when substituting:
- Forgetting that is positive when is negative: for , .
- Squaring a negative without brackets: , never . The order of operations is the culprit here.
- Dividing only the radical by : the fraction bar sits under the entire numerator.
Worked example 1: solve . Here , , .
So or . Test : . It works.
How does the derivation connect to the axis of symmetry?
Look at the finished formula as two pieces: and . The first piece is a fixed center. The second is a distance you step left and right from it. That center is the axis of symmetry of the parabola , and the roots sit equally far on either side.
The derivation also contains vertex form in disguise. Multiply the squared line by and move everything to one side:
So the vertex of the parabola is . Both vertex coordinates fall out of the same algebra that produced the roots.
Worked example 2: solve . Here , , , so the center is . The discriminant is , so the half-width is . The roots are , which is and . The vertex height is , and indeed .
Quick check
Answer:
Where does the discriminant come from in the derivation?
The expression is not chosen, it is forced. It is what remains when and are put over the same denominator. Because the denominator is always positive, the sign of the right side of depends only on .
That one fact is the whole story of the discriminant. A real number squared cannot be negative, so a negative value means no real solution. Zero gives a single repeated root, and a positive value gives two.
When the discriminant is negative, the formula still works if you allow complex numbers, using . Worked example 3: solve .
Check with : . Adding gives … more carefully, , and . It holds.
When , and are real, the turns into and . The two solutions are always conjugates, like and .
How can you check quadratic roots without plugging in?

Add the two roots from the formula. The parts cancel and you are left with:
Multiply them and the difference of squares gives , so . These two facts let you check an answer in seconds, and they also show why equals the original quadratic, which links straight back to solving by factoring.
Test it on example 1, where the roots were and . Their sum is , and . Their product is , and . Both match, so the roots are right. If either check fails, the error is almost always a dropped sign on .
Try this: Solve with the formula, then check your two roots using only and before you substitute anything back.
When does the quadratic formula break or simplify?
The formula has exactly one hard failure: . Then the denominator is zero, and the equation is linear, not quadratic. Everything else works, and several cases collapse into something quicker.
- If : the equation is and the formula reduces to .
- If : one root is always , and the other is , because .
- If : the formula becomes , often written with and as .
- If is a perfect square: and , , are integers, the roots are rational and the quadratic factors over the integers.
That last case is a fast test for whether factoring is worth trying. Compute the discriminant first. If it is not a perfect square, skip factoring and finish with the formula.
Quick check
Answer:
Where is the quadratic formula used in real life?
Any time something is launched, thrown or dropped, its height follows a quadratic in time, and the formula tells you when it lands. A ball thrown upward at feet per second from a height of feet has height . It lands when . Divide by to simplify: .
Since , the two values are and . The negative time is before the throw, so the ball lands after about seconds. The peak comes at second, where feet, the same axis-of-symmetry center from the derivation.
The same method handles areas, revenue and break-even models, as shown in quadratic word problems. To lock in the pattern with your own numbers, work through quadratic formula practice problems and compare each answer with the sum and product check above.
Practice problems
0 of 5 solved
- Use the quadratic formula to solve .
Answer:
Here , , . Then . So , which gives or . - Solve .
Answer:
Here , , . Then . So , which gives or . - Solve .
Answer:
Here , , . Then . So , which gives or . - Solve . Give complex solutions.
Answer:
Here , , . Then . So , which gives . - Solve and give the exact simplified answers.
Answer:
Here , , . Then and . So . Divide the top and bottom by to get .
Common questions
What is the easiest way to derive the quadratic formula?
Multiply by , add to both sides to get , then take square roots and solve for . This avoids fractions entirely.
Why do you divide by a when deriving the quadratic formula?
Completing the square works cleanly when the term has coefficient . Dividing by gives that, and it is allowed because in any quadratic.
Why is the quadratic formula plus or minus?
Taking a square root of both sides of produces two values, one positive and one negative. Each gives a different solution, which matches the two x-intercepts of a parabola.
Where does b squared minus 4ac come from?
It is the numerator that appears when and are put over the common denominator . It is called the discriminant because its sign decides how many real solutions exist.
Can the quadratic formula be derived without completing the square?
Yes. Substituting removes the linear term and leaves , which you solve for . Using the vertex of the parabola gives the same result.
Does the quadratic formula work when a is negative?
Yes. The plus-or-minus sign absorbs the sign of , so the formula holds for every nonzero , positive or negative. Just keep the sign of in the denominator.