Algebra · 2 min read
How to solve quadratic equations
To solve a quadratic equation, write it as ax² + bx + c = 0, then factor it, complete the square, or use the quadratic formula, which works every time. Example: x² − 5x + 6 = 0 factors to (x − 2)(x − 3) = 0, so x = 2 or x = 3.
Step 0: get it into standard form
Move every term to one side so the other side is 0: . Example: becomes .
Method 1: factoring
Best when and you can spot two numbers quickly. Solve
- Find two numbers that multiply to and add to : and .
- Factor:
- Set each factor to 0: or .
Method 2: the quadratic formula
Works for every quadratic. Solve (, , )
- Discriminant:
- or
The discriminant tells you what to expect: positive means two real roots, zero means one repeated root, negative means no real roots (two complex roots).
Method 3: completing the square
Useful when is even and for finding the vertex. Solve
- Move :
- Add to both sides:
- Write as a square:
- Square root:
- or
Which method should I use?
| Situation | Use |
|---|---|
| Easy-to-spot factors | Factoring |
| Messy numbers, decimals, or no clear factors | Quadratic formula |
| Asked for vertex form, or is even | Completing the square |
| No term, e.g. | Square root both sides: |
Common mistakes
- Not setting the equation to 0 first.
- Losing the : most quadratics have two answers.
- Sign errors with when is negative.
- Dividing only part of the top by in the formula.
Check your answers
Substitute each root back into the original equation. Or use the quadratic formula calculator, which shows every step, including complex roots. For word problems that turn into quadratics, see the word problem solver.
Try it yourself
Open the full calculator →x = 2 or x = 3
Step by step
- Write the equation in standard form
- Write the quadratic formula
- Work out the discriminant
- Δ > 0, so there are two real roots
.
- Put the values in the formula
- Work out both roots
FAQ
What are the 3 ways to solve a quadratic equation?
Factoring, the quadratic formula and completing the square. A fourth shortcut, taking square roots, works when there is no term.
When should I use the quadratic formula?
When the quadratic doesn't factor easily. The formula works for every quadratic, including ones with decimal or complex answers.
How many solutions does a quadratic equation have?
Up to two real solutions. The discriminant tells you: positive means two, zero means one, negative means none that are real.
How do I solve a quadratic equation by factoring?
Write it as , factor the left side into two brackets, then set each bracket equal to 0 and solve.