Factoring Trinomials

Break a trinomial into two binomials by finding two numbers that add to b and multiply to c; use when solving equations or simplifying.

x2+bx+c=(x+p)(x+q),p+q=b,;pq=cx^2 + bx + c = (x + p)(x + q), \quad p + q = b, ; pq = c

Solve a problem with Factoring Trinomials

Type the problem. The solver will use Factoring Trinomials where Factoring Trinomials is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Factoring Trinomials takes
bb
cc
pp
qq
xx
Factoring Trinomials
SymbolMeaning
bbThe coefficient of xx in the original trinomial x2+bx+cx^2 + bx + c; it must equal the sum p+qp + q of the two numbers you are looking for.
ccThe constant term in the trinomial; it must equal the product pqpq of the two numbers you are looking for, so if cc is negative, one of pp or qq must be negative.
ppOne of the two numbers whose sum is bb and whose product is cc; it appears in the binomial factor (x+p)(x + p), and sign matters.
qqThe other number whose sum is bb and whose product is cc; it appears in the binomial factor (x+q)(x + q), and switching the order does not change the result.
xxThe variable (unknown value) in the trinomial; confusing it with its coefficient changes the entire meaning of the expression.

When to use it

When you need to solve a quadratic equation or simplify a polynomial expression.

Level

Usually taught in: Algebra I

Worked examples

1. Factor a simple trinomial

Problem

Factor x2+5x+6x^2 + 5x + 6.
  1. x2+5x+6b=5,c=6x^2 + 5x + 6 \quad b = 5, \quad c = 6

    We identify the coefficients bb and cc in the form x2+bx+cx^2 + bx + c.

  2. 2+3=5and23=62 + 3 = 5 \quad \text{and} \quad 2 \cdot 3 = 6

    We need two numbers that add to 5 and multiply to 6; the numbers 2 and 3 satisfy both conditions.

  3. x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3)

    Each number becomes the constant term in a binomial factor with xx.

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

Factoring is the reverse of expanding. We verify by expanding: (x+2)(x+3)=x2+3x+2x+6=x2+5x+6(x+2)(x+3) = x^2 + 3x + 2x + 6 = x^2 + 5x + 6.

2. Factor a trinomial with negative coefficients

Problem

Factor x27x+12x^2 - 7x + 12.
  1. x27x+12b=7,c=12x^2 - 7x + 12 \quad b = -7, \quad c = 12

    Here b=7b = -7 (negative), and c=12c = 12 (positive).

  2. (3)+(4)=7and(3)(4)=12(-3) + (-4) = -7 \quad \text{and} \quad (-3) \cdot (-4) = 12

    For the product to be positive and the sum to be negative, both numbers must be negative.

  3. x27x+12=(x3)(x4)x^2 - 7x + 12 = (x - 3)(x - 4)

    When p=3p = -3 and q=4q = -4, the binomials are (x+p)=(x3)(x + p) = (x - 3) and (x+q)=(x4)(x + q) = (x - 4).

Answer: (x3)(x4)(x - 3)(x - 4)

When bb is negative and cc is positive, both factors must be negative. A negative sum and positive product only occur when both numbers have the same negative sign.

3. Find dimensions of a rectangular garden plot

Problem

A rectangular garden plot has an area of x2+9x+20x^2 + 9x + 20 square feet. By factoring, find the possible length and width dimensions.
  1. Area=x2+9x+20b=9,c=20\text{Area} = x^2 + 9x + 20 \quad b = 9, \quad c = 20

    The area expression is in the form x2+bx+cx^2 + bx + c with b=9b = 9 and c=20c = 20.

  2. 4+5=9and45=204 + 5 = 9 \quad \text{and} \quad 4 \cdot 5 = 20

    Factor pairs of 20 are 1 and 20, 2 and 10, and 4 and 5; only 4 and 5 add to 9.

  3. x2+9x+20=(x+4)(x+5)x^2 + 9x + 20 = (x + 4)(x + 5)

    The length and width of the plot are represented by the two binomial factors.

Answer: (x+4)(x+5)(x + 4)(x + 5)

Factoring the area expression reveals the dimensions. When you multiply length times width, you get area, so if the area factors as (x+4)(x+5)(x+4)(x+5), the dimensions are (x+4)(x+4) feet and (x+5)(x+5) feet.

Common mistakes

Where Factoring Trinomials usually goes wrong
Answer came out wrong
For x2+5x+6x^2 + 5x + 6, writing (x+2)(x+6)(x+2)(x+6) as the factorization.
Check both conditions: 2+3=52 + 3 = 5 (sum) and 23=62 \cdot 3 = 6 (product). Since 2+6=852 + 6 = 8 \neq 5, the factorization (x+2)(x+6)(x+2)(x+6) is wrong.
For x27x+12x^2 - 7x + 12, finding the correct factors (x3)(x4)(x-3)(x-4) but then writing (x+3)(x+4)(x+3)(x+4) in the final answer.
If the two numbers are -3 and -4, the binomials are (x+(3))=(x3)(x + (-3)) = (x - 3) and (x+(4))=(x4)(x + (-4)) = (x - 4). Verify: (x3)(x4)=x27x+12(x-3)(x-4) = x^2 - 7x + 12.
For x2+2x8x^2 + 2x - 8, trying (x+2)(x4)(x+2)(x-4) as the factorization.
Verify both conditions. Although 2(4)=82 \cdot (-4) = -8, the correct pair must satisfy p+q=2p + q = 2. The pair 4 and -2 works: 4+(2)=24 + (-2) = 2 and 4(2)=84 \cdot (-2) = -8, so the factorization is (x+4)(x2)(x+4)(x-2).
The mistakeWhy it is wrongThe fix
For x2+5x+6x^2 + 5x + 6, writing (x+2)(x+6)(x+2)(x+6) as the factorization.Although 2 and 6 are factors of 6, they do not add to 5—only 2 and 3 do—so the sum condition is ignored.Check both conditions: 2+3=52 + 3 = 5 (sum) and 23=62 \cdot 3 = 6 (product). Since 2+6=852 + 6 = 8 \neq 5, the factorization (x+2)(x+6)(x+2)(x+6) is wrong.
For x27x+12x^2 - 7x + 12, finding the correct factors (x3)(x4)(x-3)(x-4) but then writing (x+3)(x+4)(x+3)(x+4) in the final answer.The signs of the factors are lost or reversed after finding the numbers; positive factors are written instead of negative ones.If the two numbers are -3 and -4, the binomials are (x+(3))=(x3)(x + (-3)) = (x - 3) and (x+(4))=(x4)(x + (-4)) = (x - 4). Verify: (x3)(x4)=x27x+12(x-3)(x-4) = x^2 - 7x + 12.
For x2+2x8x^2 + 2x - 8, trying (x+2)(x4)(x+2)(x-4) as the factorization.The numbers 2 and -4 multiply to -8 correctly, but they do not add to 2; instead 2+(4)=22 + (-4) = -2, giving the wrong coefficient for xx.Verify both conditions. Although 2(4)=82 \cdot (-4) = -8, the correct pair must satisfy p+q=2p + q = 2. The pair 4 and -2 works: 4+(2)=24 + (-2) = 2 and 4(2)=84 \cdot (-2) = -8, so the factorization is (x+4)(x2)(x+4)(x-2).

Tips and when to use something else

  • Factoring trinomials works only when two integers exist that satisfy both conditions. For trinomials that do not factor with integers, use the Quadratic Formula instead.
  • Always verify your factorization by expanding (x+p)(x+q)(x+p)(x+q) using the distributive property. If you get back the original trinomial, your answer is correct.
  • To find the factors faster, list all factor pairs of cc and calculate their sums. Only one pair will sum to bb; do not guess.
  • The order of the factors does not matter because multiplication is commutative: (x+2)(x+3)=(x+3)(x+2)(x+2)(x+3) = (x+3)(x+2).

Frequently asked questions

How do I know if a trinomial can be factored with integers?
Try finding two integers that multiply to cc and add to bb. If no such pair exists, the trinomial cannot be factored using integers. In that case, you will need the Quadratic Formula to solve equations. Not all trinomials factor nicely.
Why do both numbers have to be negative when bb is negative and cc is positive?
For the product pqpq to be positive, the two numbers must have the same sign (both positive or both negative). Since you also need p+q=bp + q = b to be negative, both numbers must be negative. If they were both positive, their sum would be positive too.
Do I always get two different numbers pp and qq, or can they be the same?
They can be the same. For example, x2+6x+9=(x+3)(x+3)=(x+3)2x^2 + 6x + 9 = (x+3)(x+3) = (x+3)^2. When p=qp = q, the trinomial is a perfect square trinomial, and you have a repeated factor. This is a special case worth recognizing.
What is the difference between factoring and solving?
Factoring rewrites an expression as a product of factors, such as x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x+2)(x+3). Solving finds the values of xx that make an equation true, such as solving x2+5x+6=0x^2 + 5x + 6 = 0 to get x=2x = -2 or x=3x = -3. Factoring is a tool that helps you solve, but they are not the same thing.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18