Step by step
Factor any polynomial — quadratics, trinomials, differences of squares, and higher-degree expressions — with the greatest common factor pulled out and every step shown.
Step by step
Enter a polynomial in expanded form and the calculator breaks it into factors, showing the reasoning.
First the calculator divides out anything common to every term — a shared number and the lowest power of the variable — so 6x² + 12x becomes 6x(x + 2) before anything else.
It recognises special forms like the difference of squares a² − b² = (a − b)(a + b) and perfect-square trinomials, and factors quadratics into two binomials.
For cubics and beyond it finds a rational root, divides out that linear factor, and repeats until only irreducible pieces remain. Want the roots directly instead? The Quadratic Formula Calculator solves ax² + bx + c = 0, and the Polynomial Calculator multiplies factors back out to check.