Skip to main content

Factoring Calculator

Try an example:

This factoring calculator breaks polynomials and whole numbers into the parts that multiply to make them. Type either one and see the method step by step. It is free, and it belongs to our math solver.

How to Use the Factoring Calculator

Enter a Polynomial

Type something like 6x^2+11x-10. You get the factored form and the steps.

Enter a Whole Number

Type a number such as 48. The same box works as a factor calculator: you get the prime factors, all the factors and every factor pair.

Read the Steps

The steps name the pattern or method. At the end, the factors are multiplied back together to check them.

Which Factoring Method Should You Use?

Always look for a common factor first. After that, count the terms. Two terms may be a difference of squares or a sum or difference of cubes. Three terms call for trinomial factoring. Four terms often work by grouping. If nothing fits, the polynomial may be prime.

Number of termsTry thisExample
AnyGreatest common factor2x2−18=2(x2−9)2x^2-18=2(x^2-9)
2Difference of squaresx2−9=(x−3)(x+3)x^2-9=(x-3)(x+3)
2Sum or difference of cubesx3−8=(x−2)(x2+2x+4)x^3-8=(x-2)(x^2+2x+4)
3Trinomial or ac methodx2+7x+12=(x+3)(x+4)x^2+7x+12=(x+3)(x+4)
4Groupingx3+2x2+3x+6=(x+2)(x2+3)x^3+2x^2+3x+6=(x+2)(x^2+3)

How to Factor Polynomials

Take Out the Greatest Common Factor

The greatest common factor, or GCF, is the biggest thing that divides every term. In 2x2−182x^2-18 it is 2. Take it out first, because it makes everything after it smaller.

Difference of Squares

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

In words: a squared minus b squared equals (a minus b) times (a plus b). The middle terms cancel when you multiply back.

Factoring Trinomials

For x2+bx+cx^2+bx+c, find two numbers that multiply to cc and add to bb. When the first number is not 1, use the ac method: find two numbers that multiply to a×ca\times c and add to bb, split the middle term, then group.

Factoring calculator area model: a rectangle split into 6x squared, 15x, minus 4x and minus 10 with sides 2x plus 5 and 3x minus 2

Sum and Difference of Cubes

a3+b3=(a+b)(a2−ab+b2)a^3+b^3=(a+b)(a^2-ab+b^2)

a3−b3=(a−b)(a2+ab+b2)a^3-b^3=(a-b)(a^2+ab+b^2)

The sign in the small bracket matches the original. The first sign in the big bracket is the opposite.

Grouping

Pair up four terms, take a common factor out of each pair, and look for a matching bracket. If the brackets don't match, try pairing the terms another way.

How to Find Factor Pairs of a Number

Divide by 1, 2, 3 and so on. Each time there is no remainder, you have a pair. Stop when the first number passes the second. For 48 the factor pairs are 1×481\times 48, 2×242\times 24, 3×163\times 16, 4×124\times 12 and 6×86\times 8.

Negative numbers: every pair also works with two minus signs, such as −6×−8=48-6\times -8=48. For −48-48, exactly one number in each pair is negative.

Worked Examples

Example 1: A Trinomial

Factor 6x2+11x−106x^2+11x-10.

  1. Multiply a×ca\times c: 6×−10=−606\times -10=-60.
  2. Two numbers that multiply to −60-60 and add to 11 are 15 and −4-4.
  3. Split the middle term: 6x2+15x−4x−106x^2+15x-4x-10.
  4. Group: 3x(2x+5)−2(2x+5)3x(2x+5)-2(2x+5).
  5. Take out the shared bracket: (2x+5)(3x−2)(2x+5)(3x-2).

Example 2: Four Terms by Grouping

Factor x3−3x2−4x+12x^3-3x^2-4x+12.

  1. Pair the terms: x2(x−3)−4(x−3)x^2(x-3)-4(x-3).
  2. Take out (x−3)(x-3): (x−3)(x2−4)(x-3)(x^2-4).
  3. The second factor is a difference of squares: (x−3)(x−2)(x+2)(x-3)(x-2)(x+2).

Example 3: Factors of a Whole Number

Factor 48.

  1. Keep dividing by 2: 48→24→12→6→348\to 24\to 12\to 6\to 3. That is four 2s, then a 3.
  2. The prime factorization is 48=24⋅348=2^4\cdot 3.

The factors of 48 are 1, 2, 3, 4, 6, 8, 12, 16, 24 and 48.

Common Mistakes to Check

Stopping Too Early

(x−3)(x2−4)(x-3)(x^2-4) is not finished, because x2−4x^2-4 still factors. Look at every bracket once more.

Factoring a Sum of Squares

x2+4x^2+4 does not factor with real numbers. (x+2)2(x+2)^2 is x2+4x+4x^2+4x+4, which is a different expression.

Practice Problems

  1. Factor x2+7x+12x^2+7x+12.
  2. Factor 2x2−182x^2-18.
  3. Factor x3+2x2+3x+6x^3+2x^2+3x+6.
  4. Find the prime factorization of 60.
  5. Factor 8x3+278x^3+27.
Show the answers
  1. (x+3)(x+4)(x+3)(x+4)
  2. 2(x−3)(x+3)2(x-3)(x+3)
  3. (x+2)(x2+3)(x+2)(x^2+3)
  4. 22⋅3⋅52^2\cdot 3\cdot 5
  5. (2x+3)(4x2−6x+9)(2x+3)(4x^2-6x+9)

Related Calculators

Learn More

FAQ

What Is the Difference of Squares Formula?

It is a2−b2=(a−b)(a+b)a^2-b^2=(a-b)(a+b). For example, 4x2−25=(2x−5)(2x+5)4x^2-25=(2x-5)(2x+5), since 4x24x^2 is (2x)2(2x)^2 and 25 is 525^2.

How Do You Factor a Trinomial?

Find two numbers that multiply to a×ca\times c and add to bb. Use them to split the middle term, then group. Example 1 shows every step.

What Are Factor Pairs?

Two whole numbers that multiply to the number you started with. For 12 they are 1×121\times 12, 2×62\times 6 and 3×43\times 4.

Can Every Polynomial Be Factored?

Not with whole numbers. A polynomial that can't be broken down is called prime, like x2+4x^2+4. The calculator tells you when that happens.

What Is the Sum of Cubes Formula?

It is a3+b3=(a+b)(a2−ab+b2)a^3+b^3=(a+b)(a^2-ab+b^2). So x3+27=(x+3)(x2−3x+9)x^3+27=(x+3)(x^2-3x+9).

Does Factoring Help Solve Equations?

Yes. Once one side is a product and the other is zero, each factor can be set to zero. The quadratic formula calculator covers the squares that won't factor, and the polynomial calculator covers higher powers.


Next step: factor polynomials from your homework by hand, multiply back to check, and use the factoring calculator when you get stuck.