How to Solve Quadratic Equations: 4 Methods with Step-by-Step Examples
A complete walkthrough of the four standard ways to solve quadratic equations — factoring, the square root method, completing the square, and the quadratic formula — with worked examples for grades 9–11.
What is a quadratic equation?
A quadratic equation is any equation you can rewrite in the form
where , , and are numbers and . The graph of is a parabola, and the solutions of the equation — also called the roots or zeros — are exactly the -values where that parabola crosses the -axis. A quadratic always has 0, 1, or 2 real solutions.
There are four standard ways to solve them. The right one depends on what the equation looks like.
Method 1: Factoring
If the quadratic factors into a product of two linear pieces, factoring is fastest.
The idea. Rewrite
and use the zero-product property: if a product equals zero, at least one factor equals zero. So set each factor to zero and solve.
Example 1. Solve .
- Look for two numbers that multiply to and add to . Those are and .
- Factor: .
- Set each factor to zero: or .
- So or .
When to use it. When has small integer factors that visibly add to . If you cannot guess the factors after a few seconds, switch methods.
Method 2: The square root method
If the equation has the form — no term — take the square root of both sides.
Example 2. Solve .
- Isolate the : , so .
- Take the square root of both sides: .
- So or .
Don't forget the — both the positive and negative roots are valid.
When to use it. Whenever the linear coefficient is zero, or whenever the quadratic is already in the form .
Method 3: Completing the square
This method rewrites the quadratic so you can apply the square root method. It is also the derivation behind the quadratic formula.
The recipe for (when ):
- Move to the right side: .
- Take half of , square it, and add to both sides.
- The left side is now a perfect square: .
- Take the square root of both sides and solve for .
Example 3. Solve by completing the square.
- Rearrange: .
- Half of is ; squared is . Add to both sides: .
- The left side is , so .
- Square root: , giving or .
If , divide both sides by first, then complete the square as above.
When to use it. Useful when factoring fails and you want a clean exact answer. Completing the square is also the standard way to convert into vertex form , which gives you the parabola's vertex directly.
Method 4: The quadratic formula
The quadratic formula always works. For with :
The expression under the square root, , is called the discriminant . It tells you how many real solutions the equation has before you finish the calculation:
- : two distinct real solutions.
- : one repeated real solution (the parabola just touches the -axis).
- : no real solutions (the parabola misses the -axis).
Example 4. Solve .
- Identify , , .
- Compute the discriminant: .
- Plug into the formula: .
- So or .
When to use it. When the equation does not factor nicely and you don't want to bother completing the square. Many textbooks recommend always checking the discriminant first — if , you know the answer is "no real solutions" and you can stop.
Choosing a method quickly
| Situation | Best method | |---|---| | Coefficients are small integers and you can factor mentally | Factoring | | No term, or already in form | Square root | | Need vertex form, or coefficients are messy fractions | Completing the square | | Anything else, especially with irrational solutions | Quadratic formula |
If you are stuck, the quadratic formula always works — it just costs a little more arithmetic.
Common mistakes
- Forgetting when taking a square root. gives a positive number, but has two solutions: and .
- Sign errors inside the discriminant. — the flips sign whenever or is negative.
- Dividing by something containing . Never divide both sides by to "simplify"; you will lose the solution . Always move everything to one side and solve a quadratic.
- Using the formula on a non-quadratic. The quadratic formula needs . If the leading coefficient is zero, you actually have a linear equation.
Practice Yourself
Try each one on paper first, then click Show answer to check your work.
- 1Practice problem 1
Solve by factoring: .
Show answerHide answer
Find two numbers that multiply to and add to — they are and . Factor: , so or .
- 2Practice problem 2
Solve by the square root method: .
Show answerHide answer
Divide both sides by : . Take the square root: .
- 3Practice problem 3
Solve by completing the square: .
Show answerHide answer
Move the constant: . Half of is ; squared is . Add to both sides: . So , giving or .
- 4Practice problem 4
Solve using the quadratic formula: .
Show answerHide answer
Here , , . Discriminant . So , giving or .
- 5Practice problem 5
Without solving, decide how many real solutions has.
Show answerHide answer
Compute the discriminant: . Since , the equation has no real solutions.
Related Topics
Frequently Asked Questions
When should I factor a quadratic versus use the formula?
Try factoring first if the coefficients are small integers — it is faster and gives exact answers. If you cannot spot the factors quickly or the solutions look irrational, jump to the quadratic formula.
What if the discriminant is negative?
A negative discriminant means there are no real solutions. There are still two complex solutions involving , which you will see in Algebra II or pre-calculus.
Is the quadratic formula always exact?
Yes. The formula gives an exact algebraic answer, including any radicals. If you want a decimal, evaluate the formula on a calculator.
How is completing the square related to the quadratic formula?
The quadratic formula is what you get when you complete the square on the general equation . Doing the algebra once gives the formula, so you do not have to redo it for every problem.
Can a quadratic have only one solution?
Yes. When the discriminant is exactly , the formula gives as a single (repeated) root. Geometrically, the parabola just touches the -axis at its vertex.
Want to keep going?
Try a different problem with the AI Math Solver, browse the practice library, or return to High School Math.