Factoring means writing a number or an expression as a product of simpler parts (factors). It is the reverse of multiplying out brackets. 12 factors as 3 × 4, and x² + 5x + 6 factors as (x + 2)(x + 3). The main methods are taking out the greatest common factor, grouping, factoring quadratics, and using identities such as a² − b² = (a + b)(a − b).
Reviewed by the Helping with Math Team · Updated 22 October 2026
What is factoring?
With numbers, factoring is familiar: 12 = 2 × 6 = 3 × 4 = 2 × 2 × 3. Writing a number as a product of primes is called prime factorization. Factoring a polynomial works the same way: we split it into a product of smaller polynomials.
Factoring is the opposite of expanding. Expanding turns 3(x + 4) into 3x + 12; factoring turns 3x + 12 back into 3(x + 4). You can always check a factored answer by multiplying it out.
Ways to factor polynomials
1. Take out the greatest common factor
Find the greatest common factor (GCF) of all the terms, including variables, and write it outside a bracket. This is always the first step.
Example 1
Factor 6x² + 9x.
Solution
The common factors of 6 and 9 include 3, and both terms contain x. The GCF is 3x. 6x² + 9x = 3x(2x + 3).
2. Factor by grouping
With four terms, group them in pairs, take out a common factor from each pair, then take out the common bracket.
Example 2
Factor x³ + 2x² + 3x + 6.
Solution
Group: (x³ + 2x²) + (3x + 6) = x²(x + 2) + 3(x + 2). The common bracket is (x + 2), so the answer is (x + 2)(x² + 3).
3. Factor a quadratic x² + bx + c
Find two numbers that multiply to c and add to b. Those numbers go in the brackets.
Example 3
Factor x² + 5x + 6.
Solution
Two numbers that multiply to 6 and add to 5 are 2 and 3. So x² + 5x + 6 = (x + 2)(x + 3).
Example 4
Factor x² − x − 12.
Solution
Multiply to −12 and add to −1: −4 and 3. So x² − x − 12 = (x − 4)(x + 3).
For ax² + bx + c with a ≠ 1, find two numbers that multiply to a × c and add to b, split the middle term, then group. For 2x² + 7x + 3: a × c = 6, and 6 + 1 = 7, so 2x² + 6x + x + 3 = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3).
x² + 5x + 6: 2 × 3 = 6 and 2 + 3 = 5, so x² + 5x + 6 = (x + 2)(x + 3).
4. Use algebraic identities
- Difference of squares: a² − b² = (a + b)(a − b). Each term is a perfect square; see square root.
- Perfect square: a² + 2ab + b² = (a + b)² and a² − 2ab + b² = (a − b)².
- Sum and difference of cubes: a³ + b³ = (a + b)(a² − ab + b²) and a³ − b³ = (a − b)(a² + ab + b²).
Example 5
Factor x² − 49.
Solution
x² and 49 = 7² are both squares, so x² − 49 = (x + 7)(x − 7).
Example 6
Factor 4x² + 12x + 9.
Solution
4x² = (2x)², 9 = 3², and 12x = 2 × 2x × 3. So it is a perfect square: (2x + 3)².
Why factoring matters
- Solving equations: if (x + 2)(x + 3) = 0, then x = −2 or x = −3.
- Simplifying fractions with algebraic expressions, by canceling common factors.
- Finding where graphs cross the x-axis.
- Making calculations quicker: 99² − 1 = (99 + 1)(99 − 1) = 9,800.
Key facts and summary
- Factoring writes an expression as a product; it is the reverse of expanding.
- Always take out the GCF first.
- Use grouping for four terms.
- For x² + bx + c, find two numbers that multiply to c and add to b.
- Know the identities: difference of squares, perfect squares, sum and difference of cubes.
- Check by multiplying back out.
More practice: Factoring and Expanding Linear Expressions with Rational Coefficients 7th Grade Math Worksheets and Factors and Multiples (Ages 8-10) Worksheets (Space Themed).
Check yourself: factoring
4 quick questions. Tap an answer to see if you are right.
Factor 6x + 9.
The greatest common factor of 6 and 9 is 3. 6x ÷ 3 = 2x and 9 ÷ 3 = 3.
Factor x² + 7x + 12.
Find two numbers that multiply to 12 and add to 7: 3 and 4.
Factor x² − 25.
x² − 25 is a difference of squares: x² − 5² = (x + 5)(x − 5).
Factor x² − 6x + 9.
It is a perfect square: (x − 3)(x − 3) = x² − 6x + 9.
Answered 0 of 4.
Factoring FAQs
What does factoring mean in math?
Writing a number or expression as a product of its factors, such as 15 = 3 × 5 or x² − 9 = (x + 3)(x − 3).
What is the first step in factoring?
Take out the greatest common factor of all the terms, if there is one.
How do you factor x² + bx + c?
Find two numbers that multiply to c and add to b, then write (x + first)(x + second).
What is the difference of squares?
a² − b² = (a + b)(a − b). For example x² − 25 = (x + 5)(x − 5).
How do you check a factored answer?
Multiply the factors back out. You should get the original expression.








