How to Factor Quadratics: Step-by-Step With Examples
To factor a quadratic, you write ax² + bx + c as a product of two brackets, such as x² + 5x + 6 = (x + 2)(x + 3). Work through the checks in this order:
- Take out any common factor.
- Look for a special pattern, such as a difference of squares.
- If a = 1, find two numbers that multiply to c and add to b.
- If a isn’t 1, use the ac method.
If no pair of whole numbers works, the quadratic doesn’t factor over the integers. There’s a quick test for that, so you don’t have to search forever. Type any quadratic below to see its factored form and roots:
First, Take Out the Common Factor
Skipping this step makes everything after it harder. Look for a number, or an x, that divides every term:
- 3x² + 12x + 12 = 3(x² + 4x + 4) = 3(x + 2)²
- 4x² − 36 = 4(x² − 9) = 4(x − 3)(x + 3)
- 5x² − 20x = 5x(x − 4)
If the x² term is negative, take out −1 as well. −x² + 5x − 6 = −(x² − 5x + 6) = −(x − 2)(x − 3). Inside the bracket, every sign flips.
The common factor stays in the final answer. Writing 3x² + 12x + 12 = (x + 2)² loses the 3, and the two sides are no longer equal.
When a = 1: Let the Signs Do Half the Work
For x² + bx + c, you need two numbers that multiply to c and add to b. The signs of b and c tell you the signs of those numbers before you start:
| Quadratic | c is… | So the numbers are… | Pair | Factored |
|---|---|---|---|---|
| x² + 7x + 12 | positive | both the sign of b: both + | 3, 4 | (x + 3)(x + 4) |
| x² − 7x + 12 | positive | both the sign of b: both − | −3, −4 | (x − 3)(x − 4) |
| x² + x − 12 | negative | opposite signs, bigger one + | 4, −3 | (x + 4)(x − 3) |
| x² − x − 12 | negative | opposite signs, bigger one − | −4, 3 | (x − 4)(x + 3) |
When c is negative, the bigger number takes the sign of b.
Searching for the pair. List the factor pairs of c in order and stop when one fits. For x² − 2x − 48, the signs are opposite, so you need two factors of 48 that differ by 2: 1 × 48, 2 × 24, 3 × 16, 4 × 12, 6 × 8. Only 6 and 8 work. The bigger one, 8, takes the minus sign, so the answer is (x − 8)(x + 6).
When a ≠ 1: The ac Method
Guessing gets slow once a isn’t 1, because both brackets change. The ac method turns the problem back into a search for one pair of numbers. Take 6x² − 7x − 3:
- Multiply a by c. 6 × (−3) = −18.
- Find two numbers that multiply to ac and add to b. You need a product of −18 and a sum of −7. That’s 2 and −9.
- Split the middle term using those numbers: 6x² + 2x − 9x − 3.
- Group in pairs and factor each one: 2x(3x + 1) − 3(3x + 1).
- Take out the shared bracket: (3x + 1)(2x − 3).
Why it works. In step 4, both groups contain (3x + 1). Pulling it out is the distributive property in reverse, just like 2y − 3y = (2 − 3)y with y = (3x + 1). The pair from step 2 is what guarantees the brackets match.
The order of the split doesn’t matter. Writing 6x² − 9x + 2x − 3 instead gives 3x(2x − 3) + 1(2x − 3), and the same answer. If the brackets in step 4 don’t match, check the signs first. When the second group starts with a minus, the sign inside its bracket changes too.
The Box Method
Some people find a grid easier than grouping. It uses the same pair of numbers. For 6x² − 7x − 3, put 6x² in the top-left cell and −3 in the bottom-right. Put the split terms, 2x and −9x, in the other two cells:
| 3x | +1 | |
|---|---|---|
| 2x | 6x² | 2x |
| −3 | −9x | −3 |
Now take the common factor of each row and each column. The top row shares 2x, and the bottom row shares −3. The first column shares 3x, and the second shares 1. The headings read off the answer: (3x + 1)(2x − 3).
Special Patterns to Spot First
Difference of two squares: a² − b² = (a − b)(a + b). There’s no middle term, and both terms are perfect squares with a minus between them.
- x² − 49 = (x − 7)(x + 7)
- 9x² − 25 = (3x − 5)(3x + 5)
- x⁴ − 16 = (x² − 4)(x² + 4) = (x − 2)(x + 2)(x² + 4). Keep going until nothing more factors.
Perfect square trinomial: a² ± 2ab + b² = (a ± b)². Check three things: the first term is a square, the last term is a square, and the middle term is twice the product of their roots.
- x² + 10x + 25: 25 = 5², and 10x = 2 × x × 5, so it’s (x + 5)².
- 4x² − 12x + 9: 4x² = (2x)², 9 = 3², and 12x = 2 × 2x × 3, so it’s (2x − 3)².
Sum of two squares. x² + 9 doesn’t factor using real numbers. Neither does x² + 4 in the last step above, which is why x⁴ − 16 stops there.
How to Tell a Quadratic Won’t Factor
Work out the discriminant, b² − 4ac. With whole-number coefficients, the quadratic factors over the integers only if the discriminant is a perfect square: 0, 1, 4, 9, 16 and so on.
| Quadratic | b² − 4ac | Factors? |
|---|---|---|
| x² + 5x + 6 | 25 − 24 = 1 | Yes: (x + 2)(x + 3) |
| 6x² − 7x − 3 | 49 + 72 = 121 = 11² | Yes: (3x + 1)(2x − 3) |
| x² + 6x + 6 | 36 − 24 = 12 | No |
| x² + 5x + 7 | 25 − 28 = −3 | No, and it has no real roots |
x² + 6x + 6 is a common trap. 1 × 6 = 6 looks promising, but (x + 1)(x + 6) = x² + 7x + 6. Its roots are −3 ± √3, so it only splits with square roots in the brackets: (x + 3 − √3)(x + 3 + √3). For a quadratic like that, use the Quadratic Equation Solver, which gives the exact roots by formula. Completing the square reaches the same roots by hand.
Using the Factors to Solve an Equation
Once an equation reads (factor)(factor) = 0, at least one factor must be 0. That’s the zero product property. Two rules keep it honest:
- Get 0 on one side first. For x² + x − 2 = 5, factoring the left side as (x − 1)(x + 2) and setting it to 5 proves nothing. Move the 5 across instead to get x² + x − 7 = 0. Its discriminant is 29, so it doesn’t factor, and the roots are (−1 ± √29) ÷ 2.
- Don’t divide by x. In x² = 5x, dividing by x gives x = 5 and loses the other root. Factor instead: x² − 5x = x(x − 5) = 0, so x = 0 or x = 5.
From 6x² − 7x − 3 = 0, the factors give 3x + 1 = 0 or 2x − 3 = 0, so x = −1/3 or x = 3/2.
Check Your Answer in Ten Seconds
Expanding the brackets is the full check. A quicker one is to put the same number into both versions. x = 1 works well, and trying x = 2 as well makes a lucky match far less likely.
- For 6x² − 7x − 3 at x = 1: 6 − 7 − 3 = −4. And (3 + 1)(2 − 3) = 4 × (−1) = −4. ✓
- A swapped answer, (2x + 3)(3x − 1), gives 5 × 2 = 10 at x = 1. Since 10 isn’t −4, it’s wrong. Expanding it gives 6x² + 7x − 3, the right numbers with the wrong sign in the middle.
Getting the middle sign backwards is an easy slip to make, and the number check catches it without any expanding.
