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 Trinomials

Factoring a trinomial turns ax2+bx+c back into two binomials.

For x2+bx+c: find p+q=b and pq=c, then (x+p)(x+q). For ax2+bx+c (AC method): find p+q=b and pq=ac.

Quick Answer

Factoring a trinomial turns ax2+bx+c back into two binomials. Use it when a three-term quadratic has to be written as a product, usually to solve ax2+bx+c=0 or to cancel factors in a fraction. When a=1, find two numbers that multiply to c and add to b: x2+7x+12=(x+3)(x+4) because 3⋅4=12 and 3+4=7. When a≠1, the pair must multiply to ac; split the middle term with it and group. Not every trinomial factors with integers.

Why This Matters

Factoring is the quickest way to solve most textbook quadratics: x2−x−12=0 becomes (x−4)(x+3)=0, so x=4 or x=−3, in one line. It also exposes common factors in rational expressions and gives the x-intercepts of a parabola. Use c instead of ac, or the wrong signs, and the factors multiply back to a different quadratic.

Intuitive Explanation

Run the multiplication forward first: (x+3)(x+5)=x2+5x+3x+15=x2+8x+15. The middle coefficient 8 is the sum 3+5, and the constant 15 is the product 3×5. Factoring runs this backward: given x2+8x+15, look for the pair with product 15 and sum 8. The pairs with product 15 are 1 and 15, and 3 and 5; only 3 and 5 add to 8.

The signs follow from the same two facts. If c is positive, both numbers have the same sign, the sign of b: x2−8x+15=(x−3)(x−5). If c is negative, the signs differ and the larger number takes the sign of b: x2+2x−15=(x+5)(x−3), since 5⋅(−3)=−15 and 5+(−3)=2.

When a≠1, the leading coefficient gets mixed into the cross terms. For 3x2+10x+8, multiply a⋅c=24 and find a pair with product 24 and sum 10: 4 and 6. Split the middle term with them, 3x2+4x+6x+8, and group: x(3x+4)+2(3x+4)=(3x+4)(x+2). Using c=8 alone would look for a pair with product 8 and sum 10, and none exists.

Some trinomials do not factor over the integers at all. For x2+3x+1, no integer pair has product 1 and sum 3, and the discriminant 9−4=5 is not a perfect square. That is the signal to use the quadratic formula instead of searching longer.

Think of it like this. Factoring a trinomial is a two-clue number riddle: "Two numbers have product 15 and sum 8; what are they?" The product clue gives a short list of candidates and the sum clue picks the winner. When a≠1 the product clue becomes ac, and some riddles have no whole-number answer at all.

Core idea. Reverse FOIL by finding the pair whose product is ac and whose sum is b.


When to Use

Factor a trinomial when you have a three-term quadratic ax2+bx+c and need it as a product: to solve it set equal to 0, to simplify a fraction, or to find x-intercepts. Pull out any GCF first. With two terms, check for a difference of squares; with four, try grouping. If no integer pair works, or b2−4ac is not a perfect square, switch to the quadratic formula or completing the square.

Tip. Ask: Can I find two numbers that multiply to c (or ac) and add to b?

How to Recognize It

Before searching for the number pair, count the terms, take out any common factor, and look at the signs of b and c.

  1. Is the leading coefficient 1 once any common factor is out?

    Yes means the pair multiplies to c and goes straight into (x+p)(x+q). For 6x2+x−2 the pair must multiply to ac=−12: 4 and −3, and grouping then gives (2x−1)(3x+2).

  2. What do the signs of b and c tell you about the pair?

    If c>0, both numbers have the sign of b. If c<0, their signs differ, and the one farther from zero takes the sign of b: for x2−2x−15 the pair is −5 and 3.

  3. Are there only two terms, with no x term in the middle or no constant?

    Then there is no pair to find: x2−49 is a difference of squares, and x2+7x just needs the common factor x. The pair search is for three-term quadratics.

  4. Have several pairs failed already?

    Compute b2−4ac. If it is not a perfect square, as for x2+3x+1 with 5, no integer pair exists, and the quadratic formula is the way forward.

Factoring Trinomials compared with Factoring difference of squares, Factoring by grouping, and Quadratic formula

All four rows can solve or rewrite a quadratic-looking expression, and the AC method borrows grouping as its last step. Ask how many terms you have and whether a whole-number pair exists, since the quadratic formula takes over when it does not.

Factoring Trinomials

Meaning
Use this when you have a three-term quadratic ax2+bx+c to rewrite as a product of two binomials.
Key test
Can I find two numbers that multiply to c (or ac) and add to b?
Formula
For x2+bx+c: find p+q=b and pq=c, then (x+p)(x+q). For ax2+bx+c (AC method): find p+q=b and pq=ac.
Example
Factor x2+7x+12.

Factoring difference of squares

Meaning
Factors a two-term a2−b2, no middle term.
Key test
Use when there are only two terms, both perfect squares, with a minus sign.
Formula
a2−b2=(a+b)(a−b)
Example
x2−49=(x+7)(x−7)

Factoring by grouping

Meaning
Handles four or more terms by grouping into pairs.
Key test
Use when there are four terms, or as the finishing step of the AC method when a≠1.
Formula
(a+b)(c+d)
Example
x3+2x2+3x+6=(x2+3)(x+2)

Quadratic formula

Meaning
Solves any quadratic, even when it does not factor with integers.
Key test
Use when no integer pair works or roots are irrational/complex.
Formula
x=−b±b2−4ac2a
Example
x2+x−1=0 has no integer factors

Formula & Notation

For x2+bx+c: find p+q=b and pq=c, then (x+p)(x+q). For ax2+bx+c (AC method): find p+q=b and pq=ac.
For ax2+bx+c with a=1: find p,q∈Z with p+q=b and pq=c, then x2+bx+c=(x+p)(x+q). For a≠1 (AC method): find p+q=b and pq=ac, then split: ax2+px+qx+c and factor by grouping.

How to read it: AC method: multiply a⋅c, find factor pairs of ac that sum to b. The trinomial ax2+bx+c has three terms: quadratic, linear, constant.

Worked Examples

Example 1 — Factor a basic trinomial

Easy

Factor x2+7x+12.
Show the steps and the answer
  1. List the factor pairs of c=12: 1 and 12, 2 and 6, 3 and 4.

    The two numbers in (x+p)(x+q) must multiply to the constant term.

  2. Pick the pair that adds to b=7: 3+4=7.

    The middle coefficient is the sum of the pair; the other pairs add to 13 and 8.

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

    Both numbers are positive because c and b are both positive.

  4. Check: (x+3)(x+4)=x2+4x+3x+12=x2+7x+12.

    Expanding returns the original trinomial, so the factoring is right.

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

Takeaway: List the factor pairs of c, choose the one that sums to b, and expand to check.

Example 2 — Leading coefficient not 1

Standard

Factor 2x2+7x+3. Can you just split the constant?
Show the steps and the answer
  1. Try splitting the constant alone: the only pair for 3 is 1 and 3, which adds to 4, not 7.

    With a=2 the leading coefficient takes part in the cross terms, so the plain rule for c fails.

  2. Use the AC method: a⋅c=2⋅3=6, and the pair with product 6 and sum 7 is 1 and 6.

    When the x2 term has a coefficient, the hidden pair multiplies to ac.

  3. Split the middle term and group: 2x2+x+6x+3=x(2x+1)+3(2x+1).

    Writing 7x as x+6x makes each pair share the binomial (2x+1).

  4. Factor out (2x+1) to get (2x+1)(x+3). Check: 2x2+6x+x+3=2x2+7x+3.

    The expansion matches, which confirms both binomials.

Answer: (2x+1)(x+3)

Takeaway: When a≠1, find the pair for ac, split the middle term with it, and group.

Example 3 — Find the mistake: the sign of the pair

Application

Omar factors x2−2x−15 and writes: "(x+5)(x−3)." Find the mistake and correct it.
Show the steps and the answer
  1. Expand Omar's answer: (x+5)(x−3)=x2−3x+5x−15=x2+2x−15.

    The constant is right, but the middle term comes out +2x instead of −2x.

  2. Use the sign of c: −15 is negative, so the two numbers have opposite signs.

    Only a positive times a negative gives a negative product.

  3. Give the larger number the sign of b: b=−2, so use −5 and +3, since (−5)(3)=−15 and −5+3=−2.

    The sum is negative only when the number with the larger size is the negative one.

  4. Write (x−5)(x+3) and check: x2+3x−5x−15=x2−2x−15.

    This time the expansion matches the original exactly.

Answer: (x−5)(x+3)

Takeaway: When c<0 the signs differ and the larger number carries the sign of b; expand to confirm the middle term.

Where You'll See It

  • When a launched ball lands

    A ball launched from a 40 m cliff has height h=−5t2+10t+40 metres. Taking out the GCF and factoring the trinomial gives h=−5(t2−2t−8)=−5(t−4)(t+2), so h=0 at t=4 s. The root t=−2 is before the launch and is discarded.

  • Reading a patio's side lengths

    A patio made of one x-by-x square of tiles plus extra strips has area x2+7x+10 square metres. Factoring gives (x+2)(x+5), so its sides are x+2 and x+5 metres; with x=3 it is 5 m by 8 m, and 5×8=40=9+21+10.

Common Mistakes

  1. The slip: Using c instead of ac when a≠1

    Instead: the AC method needs the product a⋅c, then split the middle and group.

  2. The slip: Getting the signs of p and q wrong

    Instead: match signs to c (same sign if c>0, opposite if c<0) and to b.

  3. The slip: Forgetting to pull a GCF first

    Instead: factor out the common factor before searching for the pair, e.g. 2x2+10x+12=2(x2+5x+6).


Mini Practice

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

  1. Factor the trinomial x2+9x+20.

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

  2. Factor the trinomial x2−2x−15.

    Hint: The product is negative, so the two numbers have opposite signs.

  3. Factor 2x2+10x+12 completely.

    Hint: Check for a common factor before looking for a pair.

  4. Factor 3x2+10x+8 using the AC method.

    Hint: Find two numbers that multiply to 3×8 and add to 10.

  5. Is x2−64 best factored with the trinomial method or as a difference of squares?

    Hint: Count the terms. Is there an x term?

  6. A student writes x2+x−12=(x−4)(x+3). Check by expanding and correct it.

    Hint: The two numbers must add to +1.

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 list the pairs without missing one?

Start at 1 and count up, writing each divisor with its partner, and stop when the pairs meet. For 36 that gives 1⋅361 \cdot 36, 2⋅182 \cdot 18, 3⋅123 \cdot 12, 4⋅94 \cdot 9 and 6⋅66 \cdot 6, five pairs in all. Then use the signs of bb and cc to decide which signs the pair takes. A short ordered list beats random guessing, and it shows clearly when no pair works.

Why does splitting the middle term in the AC method work?

Take 6x2+x−26x^2 + x - 2 with the pair 44 and −3-3, written as 6x2+4x−3x−26x^2 + 4x - 3x - 2. Because 4⋅(−3)=6⋅(−2)4 \cdot (-3) = 6 \cdot (-2), the first two terms and the last two have the same ratio: 6x2:4x6x^2 : 4x and −3x:−2-3x : -2 both equal 3x:23x : 2. Equal ratios mean each pair leaves the same bracket, 2x(3x+2)−1(3x+2)2x(3x + 2) - 1(3x + 2), and grouping finishes the job.

Is (x+5)(x−3) the same answer as (x−3)(x+5)?

Yes, multiplication can be done in either order. Even (3−x)(−x−5)(3 - x)(-x - 5) is the same product, because each bracket is −1-1 times one of the others and (−1)(−1)=1(-1)(-1) = 1. So an answer that looks different from the key may still be right. Expand it: if you get the original trinomial back, it is correct.

Learning Path

Factoring Trinomials

You are here

You need Factoring (rewriting sums as products) and Polynomial Multiplication (how (x+p)(x+q) expands) first. This concept reverses that expansion by finding the pair of numbers hidden in b and c, or in b and ac. Next, Factoring by Grouping is the second half of the AC method when a≠1, and Solving Rational Equations relies on factored denominators to find excluded values and common factors.

See Also