Factoring Calculator
Factor any polynomial — common factors, trinomials, difference of squares, grouping — with the reasoning shown.
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
- Type or paste your problem into the box above — for example
x^2 + 7x + 12. Use^for powers,/for fractions andsqrt()for square roots, or describe it in words. - Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
- 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
- Always take out the greatest common factor first.
- Count the terms. Two suggest a difference of squares or cubes, three suggest a trinomial, and four suggest grouping.
- 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:
- Find and , so .
- Find the pairTwo numbers that multiply to and add to : and .
- Split the middle term
- Factor by grouping
- 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
- Quadratic equationsRoots, discriminant and formula
- FractionsAdd, subtract, multiply and divide
- Solve for XLinear and multi-step equations
- Systems of equationsSubstitution and elimination
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 .