Factoring Calculator

Factor any polynomial — common factors, trinomials, difference of squares, grouping — with the reasoning shown.

Try an example:

What factoring means

Factoring rewrites an expression as a product of simpler expressions. It's the reverse of expanding: expands to , so factoring gives .

Factored form is useful because a product is zero only when one of its factors is zero — which is how many equations get solved.

How to use the factoring calculator

  1. Type or paste your problem into the box above — for example x^2 + 7x + 12. Use ^ for powers, / for fractions and sqrt() for square roots, or describe it in words.
  2. Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
  3. Ask a follow-up in the same chat — "why did you do that?" or "now check it" — and it answers with the earlier working in context.

Patterns to recognise

  • Greatest common factor:
  • Difference of squares:
  • Perfect square trinomial:
  • Sum and difference of cubes:

A reliable order to try

  1. Always take out the greatest common factor first.
  2. Count the terms. Two suggest a difference of squares or cubes, three suggest a trinomial, and four suggest grouping.
  3. For , find two numbers that multiply to and add to , split the middle term and factor by grouping. Expand your answer to check it.

Worked example:

  1. Find and , so .
  2. Find the pairTwo numbers that multiply to and add to : and .
  3. Split the middle term
  4. Factor by grouping
  5. Check by expanding

Common mistakes to avoid

Stopping too early

isn't finished — factors again, into .

Treating a sum of squares like a difference

doesn't factor over the real numbers. Only splits into .

Sign errors in grouping

When the second group starts with a minus, factor out the negative: .

Related calculators

Browse all calculators

Questions students ask

Can it factor cubics and higher-degree polynomials?

Yes. It looks for common factors, special patterns and rational roots, and explains which one works.

What if an expression can't be factored?

The solver says so and explains why. For example, a quadratic whose discriminant isn't a perfect square has no factors with integer coefficients.

Can it factor expressions with two variables?

Yes, such as .

How do I type exponents?

Use the caret: type x^3 for .