Home » Math Theory » Algebra » Factoring

Factoring

Quick answer

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

Difference of two squares as areasa² − b² = (a + b)(a − b)ab²a² − b²a + ba − bMove the side strip and the leftover shape makes a rectangle.
A square of side a with a small square of side b cut away. Moving the side strip turns the leftover area into a rectangle (a + b) long and (a − b) wide.

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.

Area model: a rectangle x plus 2 wide and x plus 3 tall split into x squared, 2x, 3x and 6x²2x3x6x+ 2x+ 3x² + 2x + 3x + 6= x² + 5x + 6= (x + 2)(x + 3)
An area model of (x + 2)(x + 3). The four pieces x², 2x, 3x and 6 add to x² + 5x + 6. Factoring finds the side lengths from the total area.

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).

56
Quadratic factoring tool

x² + 5x + 6: 2 × 3 = 6 and 2 + 3 = 5, so x² + 5x + 6 = (x + 2)(x + 3).

Try it: set b and c in x² + bx + c. The tool searches for two whole numbers that multiply to c and add to b, then shows the factors and an area model. Some choices do not factor with whole numbers.

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.

  1. Factor 6x + 9.

  2. Factor x² + 7x + 12.

  3. Factor x² − 25.

  4. Factor x² − 6x + 9.

Answered 0 of 4.

Each answer shows a short explanation. Press Try again to reset the quiz.

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.

Practice with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Factoring". Helping with Math. Accessed on November 12, 2026. https://helpingwithmath.com/factoring/.

  • "Factoring". Helping with Math, https://helpingwithmath.com/factoring/. Accessed 12 November, 2026.

  • Factoring. Helping with Math. Retrieved from https://helpingwithmath.com/factoring/.