On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 9-12

Factoring

Factoring turns a sum like x2+5x+6 into a product (x+2)(x+3) — distribution in reverse.

Key patterns: a2−b2=(a+b)(a−b), a2+2ab+b2=(a+b)2, a2−2ab+b2=(a−b)2

Quick Answer

Factoring turns a sum like x2+5x+6 into a product (x+2)(x+3) — distribution in reverse. Use it when you need to solve a polynomial equation, simplify a fraction such as x2−9x−3, or find where a graph crosses the x-axis. A product can be zero only if one of its factors is zero, so once x2+5x+6=0 is written as (x+2)(x+3)=0, the solutions x=−2 and x=−3 can be read straight off.

Why This Matters

Factored form shows what the expanded form hides: the inputs that make an expression zero. That turns solving x2−x−12=0 into reading off x=4 and x=−3 from (x−4)(x+3)=0, and it lets you cancel common factors, as in x2−x−12x−4=x+3 for x≠4. Without it, you are left guessing roots or running the quadratic formula on every problem, even easy ones.

Intuitive Explanation

Start with numbers. Writing 12 as 3×4 is factoring: you replace a total with pieces that multiply to it. Algebra does the same with expressions. Take algebra tiles: one x-by-x square, five x-by-1 strips and six unit squares. They fit together exactly into a rectangle x+2 wide and x+3 tall, so x2+5x+6=(x+2)(x+3). The sum lists the pieces; the product gives the rectangle's sides.

For a trinomial x2+bx+c, you need two numbers that multiply to c and add to b, because (x+p)(x+q)=x2+(p+q)x+pq. For x2−5x+6, the product 6 is positive, so both numbers have the same sign, and the sum −5 is negative, so both are negative: −2 and −3, giving (x−2)(x−3). Some shapes have shortcuts: x2−49=(x+7)(x−7) is a difference of squares, and x2+10x+25=(x+5)2 is a perfect square. Take out any common factor first: 4x2+20x+24=4(x2+5x+6).

Expanding looks similar because it uses the same equation read the other way: expanding turns a product into a sum, factoring turns a sum into a product. Collecting like terms, as in 3x2+2x+x2=4x2+2x, is neither; it shortens a sum without creating factors. And some expressions don't factor over the integers. The only integer pairs with product −1 are 1 and −1, which sum to 0, not 1, so x2+x−1 stays as it is; to solve x2+x−1=0, reach for the quadratic formula.

Think of it like this. Picture a pile of tiles, one big square, some strips and some small squares, that you must arrange into a single rectangle. Expanding goes forward, multiplying a rectangle's sides to get its area; factoring goes backward, from the pile to the side lengths. The picture strains with negative terms, which no real tile can show.

Core idea. Factoring rewrites an expression as a product of simpler factors that multiply back to the original.


When to Use

Factor when a polynomial is set equal to zero, when a fraction has polynomials on top and bottom that might cancel, or when a question asks for roots, x-intercepts or a fully factored form. First look for a common factor, then for a difference of squares or a trinomial pair. If no integer pair works once you have checked the factor pairs of c, use the Quadratic Formula; if the task is to remove parentheses, you are expanding, not factoring.

Tip. Ask: Am I rewriting an expression as a product of simpler factors that multiply back to it?

How to Recognize It

Before you factor, check whether a product will actually help with what is asked and which kind of factoring the expression allows.

  1. Is the polynomial set equal to zero, or does the question ask for roots or x-intercepts?

    If yes, factoring lets you use the zero-product rule. If the polynomial equals another number, as in x2+5x=6, move the 6 across first: a product equal to 6 does not pin down either factor.

  2. Do all the terms share a factor, like the 3x in 6x3−9x?

    If yes, take it out first: 6x3−9x=3x(2x2−3). Then look inside the brackets for a further step. If there is no common factor, go straight to the special forms or the trinomial search.

  3. Is it two squares with a minus sign between them, like x2−49?

    If yes, it is a difference of squares, (x+7)(x−7). A plus sign between the squares, as in x2+49, does not give this form, so look for another method or leave it as it is.

  4. For a trinomial x2+bx+c, is there a factor pair of c that adds to b?

    If one pair works, such as 3 and −5 for x2−2x−15, the factors are (x+3)(x−5). If no pair works, the roots are not integers; switch to the quadratic formula.

Factoring compared with Expanding/distributing, Quadratic formula, and Simplifying

Factoring, expanding, simplifying and the quadratic formula all rewrite or solve the same polynomials, and one problem may use several of them. Ask whether you need a product, a sum without brackets, a tidier sum, or roots that might not be whole numbers.

Factoring

Meaning
Use this when you must rewrite a polynomial as a product to find roots, simplify a fraction, or expose structure.
Key test
Am I rewriting an expression as a product of simpler factors that multiply back to it?
Formula
Key patterns: a2−b2=(a+b)(a−b), a2+2ab+b2=(a+b)2, a2−2ab+b2=(a−b)2
Example
Factor x2+7x+12.

Expanding/distributing

Meaning
The forward direction: turns a product into a sum.
Key test
Use when you want to remove parentheses, not create them.
Formula
(x+2)(x+3)=x2+5x+6
Example
Multiply out

Quadratic formula

Meaning
Solves any quadratic, even ones that don't factor over integers.
Key test
Use when no integer factors exist.
Formula
x=−b±b2−4ac2a
Example
Irrational roots

Simplifying

Meaning
Combines like terms within a sum; doesn't create factors.
Key test
Use when you just tidy an expression, not break it into a product.
Example
3x+2x=5x

Formula & Notation

Key patterns: a2−b2=(a+b)(a−b), a2+2ab+b2=(a+b)2, a2−2ab+b2=(a−b)2
Factoring a polynomial P(x)∈R[x] means writing P(x)=an∏i=1k(x−ri)mi⋅Q(x) where ri are real roots with multiplicities mi and Q(x) is irreducible over R.

How to read it: Factored form uses parentheses for each factor: (x+a)(x+b). The original expression and its factored form are connected by =.

Worked Examples

Example 1 — Factor a trinomial

Easy

Factor x2+7x+12.
Show the steps and the answer
  1. Match x2+7x+12 to (x+p)(x+q)=x2+(p+q)x+pq: you need pq=12 and p+q=7.

    Expanding the general product shows that the constant is the product of the two numbers and the middle coefficient is their sum.

  2. List factor pairs of 12: 1⋅12 (sum 13), 2⋅6 (sum 8), 3⋅4 (sum 7).

    Both 12 and 7 are positive, so only positive pairs need checking.

  3. Write (x+3)(x+4).

    3 and 4 are the pair with product 12 and sum 7.

  4. Expand to check: (x+3)(x+4)=x2+4x+3x+12=x2+7x+12.

    Multiplying back recovers the original expression, so the factoring is right.

Answer: (x+3)(x+4)

Takeaway: For x2+bx+c, list the factor pairs of c and pick the one that adds to b; expanding afterwards confirms it.

Example 2 — Reverse direction asked

Standard

Expand (x+3)(x+4).
Show the steps and the answer
  1. Notice the direction: the expression is already a product, and the task asks for a sum.

    'Expand' means multiply out the parentheses, the opposite of factoring, so no factor pairs are needed.

  2. Distribute each term: x⋅x+x⋅4+3⋅x+3⋅4=x2+4x+3x+12.

    Every term in the first bracket multiplies every term in the second, giving four products.

  3. Combine like terms: 4x+3x=7x, so the result is x2+7x+12.

    The two middle terms are both multiples of x and merge into one.

Answer: x2+7x+12

Takeaway: Expanding and factoring are the same equation read in opposite directions; the instruction word tells you which way to go.

Example 3 — Find the mistake: skipping the common factor

Application

Factor 3x2+15x+18 completely. Ana writes: "I need two numbers that multiply to 18 and add to 15. The pairs 1⋅18, 2⋅9 and 3⋅6 add to 19, 11 and 9, so it doesn't factor." Find the mistake and correct it.
Show the steps and the answer
  1. Look for a common factor: 3, 15 and 18 are all multiples of 3.

    The product-and-sum search works directly only when the x2 coefficient is 1, and here it is 3.

  2. Take it out: 3x2+15x+18=3(x2+5x+6).

    Dividing each term by 3 leaves a trinomial whose leading coefficient is 1.

  3. Factor the inside: 2⋅3=6 and 2+3=5, so x2+5x+6=(x+2)(x+3).

    Now the pair search runs on the right numbers.

  4. Check: 3(x+2)(x+3)=3(x2+5x+6)=3x2+15x+18.

    It multiplies back to the original, so Ana's 'doesn't factor' was wrong.

Answer: 3x2+15x+18=3(x+2)(x+3)

Takeaway: Pull out the greatest common factor first; a trinomial that seems not to factor often does once that factor is gone.

Where You'll See It

  • When a thrown ball lands

    A ball thrown upward from a 25 m cliff has height h=−5t2+20t+25 metres after t seconds. Factoring gives h=−5(t−5)(t+1), so h=0 at t=5; the other root, t=−1, is before the throw. The ball hits the ground after 5 seconds.

  • Multiplying in your head

    The difference of squares turns 47×53 into (50−3)(50+3)=502−32=2500−9=2491. Any two numbers equally far from a round number can be multiplied this way.

  • Keeping online payments private

    RSA encryption multiplies two huge primes to make a public number. Multiplying takes a computer a fraction of a second, but factoring a 617-digit product back into its two primes is beyond any known method on today's computers, and that one-way difficulty protects the key.

Common Mistakes

  1. The slip: Forgetting to pull out the greatest common factor first

    Instead: factor out the GCF before any other pattern.

  2. The slip: Sign errors in the binomials

    Instead: for x2−5x+6 both factors are negative: (x−2)(x−3).

  3. The slip: Assuming every quadratic factors over integers

    Instead: if no integer pair works, switch to the quadratic formula.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Factor the trinomial x2+9x+20 into two binomials.

    Hint: Find two numbers that multiply to 20 and add to 9.

  2. Factor the trinomial x2−2x−24 into two binomials.

    Hint: The product is negative, so one number is positive and one is negative.

  3. Factor 49x2−16 as a product of two binomials.

    Hint: Both terms are perfect squares with a minus sign between them.

  4. Factor 3x2−12x−36 completely.

    Hint: Look for a number that divides all three terms.

  5. To solve x2+3x−5=0, should you try factoring over the integers, or go straight to the quadratic formula?

    Hint: List the integer pairs that multiply to −5 and check their sums.

  6. Factoring 4x2+20x+24, Sam writes (4x+8)(x+3) and stops. Is it fully factored?

    Hint: Is there a common factor still hiding inside one of the brackets?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

How do I factor when the x2 term has a coefficient, like 2x2+7x+3?

One reliable method is grouping. Multiply aa and cc: 2×3=62 \times 3 = 6. Find two numbers that multiply to 6 and add to 7, which are 6 and 1. Split the middle term with them: 2x2+6x+x+3=2x(x+3)+1(x+3)=(2x+1)(x+3)2x^2 + 6x + x + 3 = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3). Expanding the answer gives back 2x2+7x+32x^2 + 7x + 3, which confirms it.

Why can't x2+4 be factored?

If it factored as (x+p)(x+q)(x + p)(x + q) with real numbers pp and qq, then x=−px = -p would make it 0. But x2x^2 is never negative, so x2+4x^2 + 4 is at least 4 for every real xx and never reaches 0. So no real factors exist. With complex numbers it does factor, as (x+2i)(x−2i)(x + 2i)(x - 2i), which you will meet later.

Can I cancel the x in x+6x to get 6?

No. Cancelling divides the top and bottom by the same factor, and here xx is only one term of the top, not a factor of all of it. Test x=2x = 2: 2+62=4\frac{2 + 6}{2} = 4, not 6. Compare x(x+6)x\frac{x(x + 6)}{x}, where xx multiplies the whole top, so it cancels to x+6x + 6 for x≠0x \ne 0. Factoring first is what makes cancelling legal.

Is there a factoring rule for cubes, like x3−8?

Yes: a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2) and a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2). Unlike a sum of squares, a sum of cubes does factor. For example, x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4), and you can check that x=2x = 2 makes both sides 0. The quadratic factor left over has no real roots.

Learning Path

Factoring

You are here

You need Polynomials (terms, degree, like terms) and Multiplication, including the distributive law, first. Factoring adds the reverse move: rewriting a sum as a product, which turns an equation into the question 'which factor is zero?'. It leads to the Quadratic Formula, which solves the quadratics that don't factor neatly.

See Also