Factoring calculator with steps
This factoring calculator factors a polynomial completely and names the method at each step: greatest common factor, difference of two squares, perfect square, trinomials, grouping, sums and differences of cubes, and the rational root theorem for higher powers. Type an expression and it gives the factored form, the roots, and the full working.
It opens on the cubic x³ − 6x² + 11x − 6, which it breaks into (x − 3)(x − 2)(x − 1) with the rational root theorem. In the UK this is called factorising, and the calculator works the same either way.
Factoring Calculator
Factorise expressions and quadratics with full working
How to use the factoring calculator
- Type your expression in the Factorise box. For a power, type ^ and the number, then press the right arrow key to come back down.
- Read the answer under Factorised, then the readouts: whether it is fully factored, which methods were used, and the roots.
- Follow the working. Each step says what it spotted, such as two numbers that multiply to ac and add to b, and shows the expression after that step.
- Look at the visual. For one letter it draws the graph, which crosses the x-axis at each real root. For several letters it draws a factor tree showing how the expression came apart.
Expressions can use more than one letter, so 6x²y + 9xy² works as well as x² + 5x + 6. The Examples list loads one of each type to try. For practice, Practice and help sets random expressions to factor, with a hint and a worked solution for each.
The factoring methods it uses
Always look for a common factor first, then for a pattern. These are the methods the calculator names, with an expression for each that you can type in.
| Method | Pattern | Type this | Factored |
|---|---|---|---|
| Greatest common factor | Every term shares a factor | 6x^2y+9xy^2 | 3xy(2x + 3y) |
| Difference of two squares | a² − b² = (a − b)(a + b) | 4x^2-9y^2 | (2x − 3y)(2x + 3y) |
| Perfect square | a² − 2ab + b² = (a − b)² | 9x^2-30x+25 | (3x − 5)² |
| Trinomial (quadratic) | ax² + bx + c | 3x^2+4x-4 | (x + 2)(3x − 2) |
| Grouping | Four terms in two pairs | ab+3a+2b+6 | (a + 2)(b + 3) |
| Sum of two cubes | a³ + b³ = (a + b)(a² − ab + b²) | 27x^3+8 | (3x + 2)(9x² − 6x + 4) |
| Difference of two cubes | a³ − b³ = (a − b)(a² + ab + b²) | x^3-8 | (x − 2)(x² + 2x + 4) |
| Rational root | Degree 3 or more | 2x^3+3x^2-11x-6 | (x − 2)(x + 3)(2x + 1) |
It factors over the rational numbers, which means every number in the answer is a whole number or a fraction. That is the kind of answer school algebra expects.
Worked examples you can check in the calculator
Example 1: take out the common factor first
Factor 5x³ − 20x completely. Both terms share 5 and x, so take out 5x. What is left is a difference of two squares:
The calculator gives 5x(x − 2)(x + 2) and lists both methods: common factor, then difference of two squares. Stopping at 5x(x² − 4) would not be factored completely.
Example 2: factoring trinomials with a = 1
Factor x² − 10x + 21. Find two numbers that multiply to 21 and add to −10. They are −7 and −3, because −7 × −3 = 21 and −7 + (−3) = −10:
Check by expanding: x² − 3x − 7x + 21 = x² − 10x + 21.
Example 3: trinomials with a ≠ 1, the ac method
Factor 3x² + 4x − 4. Here a = 3, b = 4 and c = −4, so ac = −12. The two numbers you want have a product of −12 and a sum of 4: they are 6 and −2. Use them to split the middle term, then factor each pair:
This is the method the calculator shows. The x method, or diamond method, finds the same two numbers: ac goes in the top of the X, b in the bottom, and the two numbers on the sides. Once you have them, split the middle term as above. Try one now, then press Mark to check it in our Algebra course.
Factor a quadratic into two brackets.
Press Mark to have your answer marked in the Algebra course.
Example 4: factoring by grouping
Factor ab + 3a + 2b + 6. Group the first two terms and the last two, take out a factor from each pair, and a common bracket appears:
Grouping is how the calculator handles four-term cubics too. Load the Grouping example and it turns x³ + 3x² + 2x + 6 into (x + 3)(x² + 2).
Example 5: a cubic by the rational root theorem
Factor 2x³ + 3x² − 11x − 6. Any rational root is a factor of the constant term over a factor of the leading coefficient, so the candidates are ±1, ±2, ±3, ±6, ±1/2 and ±3/2. Try x = 2:
So (x − 2) is a factor. Divide it out to get 2x² + 7x + 3, then factor that trinomial:
The calculator finds x = −1/2 first, so its working divides out (2x + 1) instead, but the final answer is the same. For the division step on its own, use the Polynomial Division Calculator.
Example 6: a quartic that is a quadratic in disguise
Factor x⁴ − 5x² + 4. Treat x² as the letter: it is a trinomial whose numbers multiply to 4 and add to −5, which are −1 and −4. Each bracket is then a difference of two squares:
Solve by factoring: the roots
Factoring is the quickest way to solve many polynomial equations. If a product is zero, one of its factors must be zero. So once 3x² + 4x − 4 = 0 is factored as (3x − 2)(x + 2) = 0, either 3x − 2 = 0 or x + 2 = 0:
The calculator lists these under Real roots, and its graph crosses the x-axis at both.
Here x is the variable and y is the value of the expression. Each root is a place where y = 0. Remember to move everything to one side first: you cannot factor x² + x = 12 as it stands, only x² + x − 12 = 0, which gives (x − 3)(x + 4) = 0.
When it says "cannot be factorised over the rationals"
Some expressions have no factors with whole-number or fraction coefficients. For a quadratic, the test is the discriminant, b² − 4ac: it factors over the rationals only when b² − 4ac is a perfect square. The calculator shows this check.
- x² + x + 1 has b² − 4ac = −3. It has no real roots at all, and the calculator gives its complex roots instead.
- x² − 2 has b² − 4ac = 8, which is not a perfect square. It has real roots, ±√2, but they are not rational, so it does not factor in school algebra.
- x² + 4 is a sum of two squares. It never factors over the real numbers, which is why x⁴ − 16 stops at (x − 2)(x + 2)(x² + 4).
For roots like ±√2, use the quadratic formula or complete the square instead.
Common mistakes
- Skipping the common factor. Factor 3x² − 12 as 3(x² − 4) first, then 3(x − 2)(x + 2). Missing the 3 makes the rest harder.
- Stopping too early. "Factor completely" means keep going until no bracket splits further. (x² − 4)(x² + 4) is not finished.
- Factoring a sum of squares. a² + b² does not factor over the real numbers. Only a difference of squares does.
- Mixing up signs in cubes. In a³ − b³ = (a − b)(a² + ab + b²), the first bracket has the same sign as the original, and the last term is always plus.
- Forgetting the leading coefficient. 3x² + 4x − 4 is not (x + 6)(x − 2). When a ≠ 1, use ac, not just c.
- Not checking. Expand your answer. If you get back the original expression, it is right.
Practise factoring in a short timed paper
Factoring runs through Pre-Algebra & Algebra 1 and Geometry, Algebra 2 & SAT Math practice, and through GCSE Maths Higher in the UK. Each daily paper is a short timed paper of 8 questions worth 25 to 35 marks, and the papers mix topics. The Algebra course covers common factors, the diamond method and factoring quadratics, each with practice.
Common questions
What does factor completely mean?
How do you factor a trinomial?
What is the x method of factoring?
Can you factor x² + 4?
Can it factor expressions with two variables?
How do I solve an equation by factoring?
Why did the calculator not factor my quadratic?
Revision cards
Say the answer first, then flip the card to check it.
Where to go next
- Solve it
Factoring Calculator
Factorise expressions and quadratics with full working
Open the tool - Learn it
Algebra
Master equations, inequalities and the language of abstract mathematics
Start the course - Test it
Pre-Algebra & Algebra 1
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper