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.
Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas
✓ checked: multiplying the factors back out gives the original expression.
step-by-step working
Take out the common factor 2x.
2x³ − 8x = 2x(x² − 4)This is a difference of two squares: a² − b² = (a − b)(a + b).
x² − 4 = (x − 2)(x + 2)
A checklist for factoring
- Common factor first: 2x³ − 8x = 2x(x² − 4).
- Two terms? Try difference of squares: a² − b² = (a − b)(a + b).
- Three terms with a = 1? Find two numbers that multiply to c and add to b.
- Three terms with a ≠ 1? Use the AC method: split the middle term and group.
- Degree 3 or more? Test simple fractions ±p/q as roots (the rational root test); each root r gives a factor (x − r).
- Check by multiplying the factors back out.
Worked examples
x² − 5x + 6
✓ checked: multiplying the factors back out gives the original expression.
step-by-step working
Find two numbers that multiply to 6 and add to -5: −2 and −3.
x² − 5x + 6 = (x − 2)(x − 3)
6x² − 7x + 2
✓ checked: multiplying the factors back out gives the original expression.
step-by-step working
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
✓ checked: multiplying the factors back out gives the original expression.
step-by-step working
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).
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
- Stopping too early: x⁴ − 16 = (x² − 4)(x² + 4) still has x² − 4 = (x − 2)(x + 2) inside.
- Thinking a² + b² factors like a² − b². A sum of squares doesn't factor over the real numbers.
- Losing a negative common factor: −x² + 4 = −(x² − 4) = −(x − 2)(x + 2).
Solved equations
- solve x² − 5x + 6 = 0
- solve x² + 5x + 6 = 0
- solve x² − 4 = 0
- solve 2x + 3 = 11
- solve x² + x − 6 = 0
- solve x² − 2x − 8 = 0
- solve x² + 4x + 4 = 0
- solve 3x² − 12 = 0
- solve x² + 1 = 0
- solve x² − 9 = 0
- solve x² − x − 6 = 0
- solve x² + 2x − 3 = 0
- solve x² − 3x − 4 = 0
- solve x² − 6x + 9 = 0
- solve x² − 16 = 0
- solve 2x² + 3x − 2 = 0
- solve x² + 2x − 1 = 0
- solve x² − 2 = 0
- solve x² + x + 1 = 0
- solve x² − 7x + 12 = 0
- solve x² + 3x − 10 = 0
- solve 3x + 5 = 20
- solve 5x − 7 = 3x + 9
- solve 2(x + 3) = 14
- solve x/2 + 3 = 7
- solve x² = 16
- solve x³ = 8
- solve x² − 5x = 0
- solve 4x² − 1 = 0
- solve 6x² − 7x + 2 = 0
- solve x² + 6x + 5 = 0
- solve x² − 6x + 13 = 0
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.