← High school courses

High school Algebra I

Factoring Quadratics Explained: GCF, Trinomials and Squares

Factoring means rewriting an expression as a product. It is the reverse of multiplying out parentheses, and in Algebra I it is how you solve many quadratic equations. A calm routine of three checks will handle almost every problem.

Step 1: always look for a GCF

The greatest common factor, or GCF, is the biggest number and variable part that divides every term. Pull it out front first. In 12x³ + 18x², the biggest number dividing both 12 and 18 is 6, and the most x they share is x². So the GCF is 6x², and 12x³ + 18x² = 6x²(2x + 3).

Taking out the GCF first makes the rest of the problem smaller and easier.

Step 2: factor trinomials

For x² + bx + c, look for two numbers that multiply to c and add to b. Those numbers go in the parentheses: (x + p)(x + q). For x² + 7x + 12, the numbers 3 and 4 multiply to 12 and add to 7, so it factors as (x + 3)(x + 4).

When the leading coefficient is not 1, as in ax² + bx + c, find two numbers that multiply to a × c and add to b. Use them to split the middle term, then factor by grouping. Always check by multiplying your answer back out.

Step 3: spot a difference of squares

A difference of squares is a perfect square minus a perfect square, like a² − b². It always factors as (a − b)(a + b). For example, x² − 49 = (x − 7)(x + 7). The middle terms cancel when you multiply back, which is why there is no x term.

A sum of squares such as x² + 49 does not factor over the real numbers. Also, a minus sign alone is not enough: both terms must be perfect squares.

Worked examples

Example 1

Factor x² − 5x − 14.

  1. Find two numbers that multiply to −14 and add to −5.
  2. The pair −7 and 2 works: (−7)(2) = −14 and −7 + 2 = −5.
  3. Write (x − 7)(x + 2).
  4. Check: x² + 2x − 7x − 14 = x² − 5x − 14.

Answer: (x − 7)(x + 2)

Example 2

Factor 2x² + 7x + 3.

  1. Multiply a × c: 2 × 3 = 6. Find two numbers that multiply to 6 and add to 7: they are 1 and 6.
  2. Split the middle term: 2x² + x + 6x + 3.
  3. Group: x(2x + 1) + 3(2x + 1).
  4. Factor out the shared (2x + 1): (2x + 1)(x + 3).

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

Example 3

Factor 18x² − 50.

  1. The GCF is 2: 2(9x² − 25).
  2. Now 9x² = (3x)² and 25 = 5², so this is a difference of squares.
  3. Factor: 2(3x − 5)(3x + 5).

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

Common mistakes

Check yourself

  1. Factor x² + 9x + 20.
    Show the answer(x + 4)(x + 5), because 4 × 5 = 20 and 4 + 5 = 9.
  2. Factor 16x² − 81.
    Show the answer(4x − 9)(4x + 9).
  3. Factor 5x² + 10x.
    Show the answer5x(x + 2).

Practice it

Try ten free Algebra I practice questions, each with a hint and an explanation. No account needed.

Practice Algebra I free →

Written by passvana for high school Algebra I students. passvana is independent and not affiliated with any school, district or test publisher.