100% free no uploads no sign-up

factoring calculator

To factor a polynomial, first take out any common factor, then look for a pattern (difference of squares, perfect square) or two numbers that multiply and add to the right values. Type an expression to see which steps apply.

mode: factor

Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas

problem
2x³ − 8x
answer
2x³ − 8x = 2x(x − 2)(x + 2)

✓ checked: multiplying the factors back out gives the original expression.

step-by-step working

  1. Take out the common factor 2x.

    2x³ − 8x = 2x(x² − 4)
  2. This is a difference of two squares: a² − b² = (a − b)(a + b).

    x² − 4 = (x − 2)(x + 2)

A checklist for factoring

Worked examples

x² − 5x + 6

answer
x² − 5x + 6 = (x − 2)(x − 3)

✓ checked: multiplying the factors back out gives the original expression.

step-by-step working

  1. Find two numbers that multiply to 6 and add to -5: −2 and −3.

    x² − 5x + 6 = (x − 2)(x − 3)

6x² − 7x + 2

answer
6x² − 7x + 2 = (2x − 1)(3x − 2)

✓ checked: multiplying the factors back out gives the original expression.

step-by-step working

  1. Use the AC method: a·c = 12. Find two numbers that multiply to 12 and add to -7, split the middle term, then factor by grouping.

    6x² − 7x + 2 = (2x − 1)(3x − 2)

x³ − 1

answer
x³ − 1 = (x − 1)(x² + x + 1)

✓ checked: multiplying the factors back out gives the original expression.

step-by-step working

  1. Rational root test: try x = ±(factors of the constant)/(factors of the leading coefficient). x = 1 makes it zero, so each gives a factor (x − root).

  2. Divide those factors out; what's left, x² + x + 1, has no rational roots.

    x³ − 1 = (x − 1)(x² + x + 1)

When it doesn't factor

Many polynomials can't be factored using whole numbers or fractions, for example x² + 1 or x² − 2. The solver tells you so, and where a difference of squares works with square roots, it shows that too: x² − 2 = (x − √2)(x + √2).

Common mistakes

Solved equations

Frequently asked questions

Can it factor expressions with two variables?

Yes, for common factors and differences of squares, like 4x²y − 6xy² = 2xy(2x − 3y) and x² − y² = (x − y)(x + y). More complex multivariable factoring may come back without steps.

What is the AC method?

For ax² + bx + c, multiply a·c, find two numbers that multiply to a·c and add to b, split bx into those two terms, and factor each pair. For 6x² − 7x + 2: a·c = 12, the numbers are −3 and −4, giving (2x − 1)(3x − 2).

How do I factor a cubic?

Try small whole numbers and fractions as roots. If f(r) = 0, then (x − r) is a factor; divide it out to get a quadratic, then factor that.

Is factoring the same as solving?

Closely related. Once a polynomial is factored, setting each factor to zero gives the solutions of the equation polynomial = 0. Use solve mode for that.

More math tools