Quadratic Formula: Step-by-Step Solution Guide
In this article
The solution formula for a quadratic equation is the quadratic formula: x = (-b ± √(b² − 4ac)) / 2a, applied to an equation written in standard form ax² + bx + c = 0 with a ≠ 0. You plug in the three coefficients a, b and c, work out the discriminant b² − 4ac under the square root, and then compute the two possible values of x using the plus sign and the minus sign. That gives you both roots in one go, whether the equation factors neatly or not. All you need is the equation rearranged into standard form and a little care with signs and order of operations.
What You'll Need
- The quadratic equation itself, rearranged into the form ax² + bx + c = 0 (everything on one side, zero on the other).
- The values of a, b and c, copied with their signs. Remember a is the number in front of x², b the number in front of x, and c the constant term with no x.
- Paper and a pencil, or a calculator that handles square roots and signed numbers. A scientific calculator saves time on the discriminant.
- A basic grip on squaring a negative number and on the order of operations, since most errors come from those two places.
Step-by-Step
- Write the equation in standard form. Move every term to the left side so the right side reads 0. For example, 3x² + 4x = 7 becomes 3x² + 4x − 7 = 0. Keep the terms in descending powers of x: x² term first, then x term, then the constant.
- Identify a, b and c carefully. Read each coefficient together with its sign. In 3x² + 4x − 7 = 0, a = 3, b = 4 and c = −7. If a term is missing, its coefficient is 0: in x² − 9 = 0, b = 0 and c = −9. If there is no visible number in front of x², a = 1. Watch for a minus sign hiding in front of x, as in 2x² − x − 5 = 0, where b = −1, not 1.
- Find b². Square the b value, negatives included: with b = −1, b² = 1; with b = 4, b² = 16. Parentheses matter here, because (−4)² is 16 while −4² is −16 depending on how your calculator interprets it.
- Compute 4ac. Multiply 4 × a × c, signs and all. With a = 3 and c = −7, 4ac = 4 × 3 × (−7) = −84, so 4ac equals −84.
- Calculate the discriminant, b² − 4ac. Subtract the second result from the first. Continuing the example, 16 − (−84) = 100. This single number tells you what kind of answers to expect: positive means two distinct real roots, zero means one repeated real root, and negative means the two roots are complex (they contain i, the square root of −1).
- Take the square root of the discriminant. Here √100 = 10. If the discriminant is not a perfect square, round or keep the radical form (for example √8 = 2√2) rather than inventing a tidy number.
- Work out −b. Flip the sign of b. With b = 4, −b = −4; with b = −1, −b = 1. Do this as its own small step so it does not get tangled with the square root.
- Fill in the full formula. Write x = (−b ± √(b² − 4ac)) / 2a with your numbers in place: x = (−4 ± 10) / (2 × 3) = (−4 ± 10) / 6. The whole numerator sits over the whole denominator, so draw the fraction bar long enough to cover −4 ± 10.
- Split into the two roots. Use plus for one value and minus for the other: x = (−4 + 10) / 6 = 6 / 6 = 1, and x = (−4 − 10) / 6 = −14 / 6 = −7/3. So the solutions are x = 1 and x = −7/3. Reduce fractions where possible.
- Check by substitution. Put each root back into the original equation. For x = 1 in 3x² + 4x = 7: 3(1)² + 4(1) = 7, which is correct. For x = −7/3: 3(49/9) + 4(−7/3) = 49/3 − 28/3 = 21/3 = 7, also correct. If a value fails, the error is almost always a sign or an arithmetic slip.
Common Mistakes
Most wrong answers come from a small set of slips rather than misunderstanding the formula. Losing a minus sign when copying a, b or c is the most frequent. Putting only part of the numerator over the denominator is another: the entire −b ± √(b² − 4ac) is divided by 2a, not just the square root. Forgetting that the denominator is 2a rather than a doubles every result. Forgetting to move all terms to one side before reading off a, b and c leads to wrong coefficients entirely. Dropping the ± and reporting a single root hides the second solution. Finally, squaring b without its sign, or treating (−7)² as −49, changes the discriminant; square the signed value inside brackets.
Tips
- Write the coefficients in a small box before substituting, so each one is used consistently.
- Compute the discriminant first. If it is negative, you know the roots are complex and can stop with the real-number answer; if it is a perfect square, the equation would also have factored with whole or rational numbers.
- Try factoring first when a, b and c are small integers. If you spot the factors quickly, it is faster, and the formula gives you a way to confirm.
- Keep the fraction bar wide and use brackets around every substituted value, especially negatives, when typing into a calculator.
- For decimal answers, keep extra digits through the calculation and round only at the end.
- Use the sum-and-product check: the two roots should add to −b/a and multiply to c/a. For roots 1 and −7/3, the sum is −4/3 = −b/a and the product is −7/3 = c/a, confirming both values.
Troubleshooting
If the discriminant comes out negative, the equation has no real solutions; the two roots are complex conjugates, written with i. That is a correct answer, not an error, so report it as such rather than forcing a real number. If you get the same value twice, the discriminant was zero, meaning both roots coincide at x = −b/2a; that is also normal.
If successive attempts give different answers, redo the equation in standard form from scratch, then recompute 4ac and b² separately on paper instead of chaining mental arithmetic. A quick unit check helps: substitute each root into the original equation and confirm both sides agree. If one root works and the other does not, suspect the minus branch of the formula and a dropped sign there. If the arithmetic will not settle, try the alternative derivation x = −b/2a ± √(b² − 4ac)/2a, which often makes the centre point and the offset clearer and catches place-value errors. When results look plausible but not exact, check whether the original equation has been copied incorrectly, particularly a term that should be negative.
Frequently Asked Questions
What if a is zero?
Then it is not a quadratic equation at all; the x² term vanishes and you solve it as a linear equation. The quadratic formula only applies when a ≠ 0, because otherwise the denominator 2a is zero.
Do I always get two answers?
You always get two roots when counting complex numbers, but they may be identical (discriminant zero) or both complex (discriminant negative). Real, distinct, equal and complex are the four possible outcomes.
Can I use the formula if the equation is already factored?
Yes, but it is unnecessary. Expanding back to standard form and applying the formula works, though reading the roots directly from the factors is quicker and less error-prone.
How do I avoid sign errors when b is negative?
Substitute with brackets: replace −b with the full signed value in parentheses, and square b inside brackets too. Writing each substitution on its own line makes the signs visible.
What does the discriminant tell me before I finish?
Its sign decides the type of roots: positive gives two real roots, zero gives one repeated real root, and negative gives two complex roots. Its value also hints whether the equation could have factored neatly.