Math
How to factor quadratics
5 min read · Updated October 21, 2026
Factoring means writing an expression as a product, like turning x² − 5x + 6 into (x − 2)(x − 3). It is the reverse of multiplying brackets out. Once you can factor, solving many quadratic equations takes just one more step.
What factoring means
When you multiply (x + 2)(x + 3), you get x² + 5x + 6. Factoring goes the other way: you start with x² + 5x + 6 and find the brackets. You can always check a factoring answer by multiplying it back out. If you get the original expression, you are right.
Checking by multiplying out
(x + 2)(x + 3)
= x × x + 3 × x + 2 × x + 2 × 3
= x² + 3x + 2x + 6
= x² + 5x + 6
Take out the GCF first
Before anything else, look for a greatest common factor: a number or variable that goes into every term. Pulling it out first makes everything after it smaller and easier. Students who skip this step often get stuck on a problem that would have been simple.
Factor 3x² − 12x − 15
Every term divides by 3: 3(x² − 4x − 5)
Two numbers that multiply to −5 and add to −4: −5 and 1
3x² − 12x − 15 = 3(x − 5)(x + 1)
Factoring x² + bx + c
When the x² term has no number in front, look for two numbers that multiply to c and add to b. Those two numbers go in the brackets.
The signs tell you where to look. If c is positive, both numbers have the same sign as b. If c is negative, one number is positive and one is negative, and the bigger one has the same sign as b.
| Expression | Multiply to | Add to | The numbers | Factored |
|---|---|---|---|---|
| x² + 7x + 12 | 12 | 7 | 3 and 4 | (x + 3)(x + 4) |
| x² − 7x + 12 | 12 | −7 | −3 and −4 | (x − 3)(x − 4) |
| x² + x − 12 | −12 | 1 | 4 and −3 | (x + 4)(x − 3) |
| x² − x − 12 | −12 | −1 | −4 and 3 | (x − 4)(x + 3) |
Factoring ax² + bx + c by grouping
When there is a number other than 1 in front of x², and no GCF to pull out, use grouping, also called the ac method. Instead of looking for numbers that multiply to c, you look for numbers that multiply to a × c.
- Multiply a and c.
- Find two numbers that multiply to ac and add to b.
- Split the middle term into those two pieces.
- Group the first two terms and the last two terms, and take the GCF out of each group.
- Both groups now share a bracket. Take that bracket out as a factor.
- Check by multiplying back out.
Factor 6x² − x − 2
a × c = 6 × (−2) = −12
Two numbers that multiply to −12 and add to −1: −4 and 3
6x² − 4x + 3x − 2
= 2x(3x − 2) + 1(3x − 2)
= (2x + 1)(3x − 2)
Check: 6x² − 4x + 3x − 2 = 6x² − x − 2
Special patterns
Two patterns come up so often that it pays to spot them on sight. A difference of squares is one square minus another, with no middle term. A perfect square trinomial has a first and last term that are squares and a middle term that is twice their product.
- A sum of squares like x² + 9 does not factor using real numbers. Do not write (x + 3)², which multiplies out to x² + 6x + 9.
| Pattern | Rule | Example |
|---|---|---|
| Difference of squares | a² − b² = (a − b)(a + b) | x² − 49 = (x − 7)(x + 7) |
| Difference of squares | a² − b² = (a − b)(a + b) | 4x² − 9 = (2x − 3)(2x + 3) |
| Perfect square | a² + 2ab + b² = (a + b)² | x² + 6x + 9 = (x + 3)² |
| Perfect square | a² − 2ab + b² = (a − b)² | x² − 10x + 25 = (x − 5)² |
Solving by factoring
Factoring is how you solve many quadratic equations. The key fact is the zero product property: if two things multiply to 0, at least one of them must be 0. This only works when one side of the equation is 0, so move everything to one side first.
- Do not divide both sides by x. In x² = 5x, dividing by x gives only x = 5 and loses the answer x = 0. Instead write x² − 5x = 0, so x(x − 5) = 0, and x = 0 or x = 5.
- Plug each answer back into the original equation to check it.
Solve x² + x = 12
Move 12 over: x² + x − 12 = 0
Factor: (x + 4)(x − 3) = 0
x + 4 = 0 or x − 3 = 0
x = −4 or x = 3
When to use the quadratic formula
Not every quadratic factors nicely. If you have tried for a minute and cannot find the two numbers, use the quadratic formula, which works on every quadratic: x = (−b ± √(b² − 4ac))/(2a).
The part under the square root, b² − 4ac, is called the discriminant, and it tells you what to expect before you start. If a, b and c are whole numbers and the discriminant is a perfect square like 1, 4, 9 or 16, the quadratic factors. If it is positive but not a perfect square, the answers have square roots in them, so use the formula. If it is negative, there are no real solutions.
Solve x² + 4x − 1 = 0
a = 1, b = 4, c = −1
b² − 4ac = 16 − 4 × 1 × (−1) = 16 + 4 = 20
20 is not a perfect square, so it will not factor nicely
x = (−4 ± √20)/2
√20 = 2√5, so x = −2 ± √5