Algebra guide · 6 min read

How to Factor Quadratics (Step by Step)

Factoring a quadratic means rewriting it as a product of simpler expressions, like turning x^2 + 7x + 12 into (x + 3)(x + 4). Once you know which pattern you are looking at, every problem follows the same few steps. This guide walks through each method with fully worked examples.

Step 1: Always Pull Out the GCF First

Before anything else, look for a greatest common factor (GCF) that every term shares. Pulling it out makes the rest of the problem smaller and easier.

Example: Factor 6x2+9x6x^2 + 9x.

  1. Both coefficients are divisible by 3, and both terms contain xx. So the GCF is 3x3x.
  2. Divide each term by 3x3x: 6x2÷3x=2x6x^2 \div 3x = 2x and 9x÷3x=39x \div 3x = 3.
  3. Write the result: 6x2+9x=3x(2x+3)6x^2 + 9x = 3x(2x + 3).

The GCF can also be just a number. For 2x2+14x+242x^2 + 14x + 24, pull out 2 to get 2(x2+7x+12)2(x^2 + 7x + 12), then factor the trinomial inside.

Trinomials Where a = 1

For x2+bx+cx^2 + bx + c, you need two numbers that multiply to cc and add to bb.

Example: Factor x2+7x+12x^2 + 7x + 12.

  1. List the factor pairs of 12: 1⋅121 \cdot 12, 2⋅62 \cdot 6, 3⋅43 \cdot 4.
  2. Find the pair that adds to 7: 3+4=73 + 4 = 7.
  3. Write the factors: (x+3)(x+4)(x + 3)(x + 4).
  4. Check by expanding: x2+4x+3x+12=x2+7x+12x^2 + 4x + 3x + 12 = x^2 + 7x + 12. It matches.

Example with negatives: Factor x2−2x−15x^2 - 2x - 15.

  1. You need a product of −15-15 and a sum of −2-2.
  2. A negative product means one number is positive and one is negative. Try −5-5 and 33: (−5)(3)=−15(-5)(3) = -15 and −5+3=−2-5 + 3 = -2.
  3. Answer: (x−5)(x+3)(x - 5)(x + 3).

Sign shortcut: if cc is positive, both numbers have the same sign as bb. If cc is negative, the numbers have opposite signs.

The AC Method When a Is Not 1

When the leading coefficient is not 1, as in ax2+bx+cax^2 + bx + c, use the AC method (also called factoring by grouping).

Example: Factor 2x2+7x+32x^2 + 7x + 3.

  1. Multiply a⋅ca \cdot c: 2⋅3=62 \cdot 3 = 6.
  2. Find two numbers that multiply to 6 and add to b=7b = 7. That is 1 and 6.
  3. Split the middle term using those numbers: 2x2+x+6x+32x^2 + x + 6x + 3.
  4. Group in pairs and factor each pair: x(2x+1)+3(2x+1)x(2x + 1) + 3(2x + 1).
  5. Factor out the shared binomial: (2x+1)(x+3)(2x + 1)(x + 3).

Example: Factor 3x2−10x−83x^2 - 10x - 8.

  1. a⋅c=3⋅(−8)=−24a \cdot c = 3 \cdot (-8) = -24.
  2. Two numbers with a product of −24-24 and a sum of −10-10: −12-12 and 22.
  3. Split: 3x2−12x+2x−83x^2 - 12x + 2x - 8.
  4. Group: 3x(x−4)+2(x−4)3x(x - 4) + 2(x - 4).
  5. Answer: (3x+2)(x−4)(3x + 2)(x - 4).

If the two groups in step 4 do not share the same binomial, recheck your signs.

Difference of Squares

a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)

Look for two perfect squares separated by a minus sign, with no middle term.

  • x2−49=(x−7)(x+7)x^2 - 49 = (x - 7)(x + 7)
  • 4x2−25=(2x−5)(2x+5)4x^2 - 25 = (2x - 5)(2x + 5), because 4x2=(2x)24x^2 = (2x)^2 and 25=5225 = 5^2.

A sum of squares, like x2+9x^2 + 9, does not factor using real numbers.

Perfect Square Trinomials

a2+2ab+b2=(a+b)2a2−2ab+b2=(a−b)2a^2 + 2ab + b^2 = (a + b)^2 \qquad a^2 - 2ab + b^2 = (a - b)^2

The first and last terms are perfect squares, and the middle term is twice the product of their square roots.

Example: Factor 9x2−12x+49x^2 - 12x + 4.

  1. 9x2=(3x)29x^2 = (3x)^2 and 4=224 = 2^2.
  2. Twice the product: 2⋅3x⋅2=12x2 \cdot 3x \cdot 2 = 12x. That matches the middle term.
  3. The middle sign is negative, so the answer is (3x−2)2(3x - 2)^2.

A quicker one: x2+10x+25=(x+5)2x^2 + 10x + 25 = (x + 5)^2, since 2⋅x⋅5=10x2 \cdot x \cdot 5 = 10x.

A Quick Checklist for Any Quadratic

  1. Pull out the GCF.
  2. Two terms with a minus sign? Try difference of squares.
  3. Three terms? Check for a perfect square trinomial first.
  4. If a=1a = 1, find two numbers that multiply to cc and add to bb.
  5. If a≠1a \neq 1, use the AC method.
  6. Expand your answer to check it.

Paste it into the VeilGPT solver to check your steps if you get stuck.

Common mistakes

  • Skipping the GCF, which leaves a factor like 2 hiding inside your answer and makes the trinomial harder to factor.
  • Picking numbers that multiply to c but add to the wrong sign, such as writing (x + 5)(x - 3) for x^2 - 2x - 15.
  • Trying to factor a sum of squares like x^2 + 9 as (x + 3)(x + 3), which actually expands to x^2 + 6x + 9.
  • Not expanding the final answer to check it, even though checking takes only a few seconds.

Try one yourself

Factor 2x^2 + 5x - 12

Work it out, then check every step with the VeilGPT algebra solver.

Check it with VeilGPT

Questions about this topic

What if a quadratic will not factor?

Some quadratics do not factor nicely over the integers. Check the discriminant b^2 - 4ac: if it is not a perfect square, use the quadratic formula instead.

Does the order of the factors matter?

No. (x + 3)(x + 4) and (x + 4)(x + 3) are the same because multiplication is commutative.

Why do we factor quadratics?

Factoring lets you solve equations like x^2 + 7x + 12 = 0 using the zero product property. Set each factor equal to zero to get x = -3 and x = -4.

More study guides