Factoring Calculator

Factor any polynomial expression with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
x^2 - 5x + 6
2x^2 + 7x + 3
x^3 - 8
6x^2 - 7x - 3

What is Factoring?

Factoring (or factorisation) is the process of breaking a polynomial expression into a product of simpler expressions called factors. It is the reverse of expanding (multiplying out).

For example:

x25x+6=(x2)(x3)x^2 - 5x + 6 = (x - 2)(x - 3)

The left side is a single polynomial; the right side is the same expression written as a product of two binomials.

Factoring is essential in algebra because it allows us to:

  • Solve equations: Setting each factor to zero gives the roots.
  • Simplify fractions: Cancel common factors in rational expressions.
  • Analyze behavior: Identify zeros, asymptotes, and sign changes.

A polynomial is fully factored when each factor is irreducible (cannot be factored further over the integers). The Fundamental Theorem of Algebra guarantees that every polynomial of degree nn can be factored into exactly nn linear factors over the complex numbers.

Common types of factoring include:

  • Factoring out the Greatest Common Factor (GCF)
  • Factoring trinomials
  • Difference of squares: a2b2=(a+b)(ab)a^2 - b^2 = (a+b)(a-b)
  • Sum/difference of cubes
  • Factoring by grouping

How to Factor Polynomials

Here are the main factoring techniques, ordered from simplest to most advanced:

1. Factor Out the GCF

Always start by pulling out the greatest common factor.

Example: 6x3+9x2=3x2(2x+3)6x^3 + 9x^2 = 3x^2(2x + 3)

2. Difference of Squares

a2b2=(a+b)(ab)a^2 - b^2 = (a + b)(a - b)

Example: x216=(x+4)(x4)x^2 - 16 = (x + 4)(x - 4)

3. Perfect Square Trinomials

a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2
a22ab+b2=(ab)2a^2 - 2ab + b^2 = (a - b)^2

Example: x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2

4. Trinomial Factoring (x2+bx+cx^2 + bx + c)

Find two numbers pp and qq such that p+q=bp + q = b and pq=cp \cdot q = c:

x2+bx+c=(x+p)(x+q)x^2 + bx + c = (x + p)(x + q)

Example: x25x+6x^2 - 5x + 6: find p+q=5p + q = -5 and pq=6pq = 6p=2,q=3p = -2, q = -3

So x25x+6=(x2)(x3)x^2 - 5x + 6 = (x - 2)(x - 3)

5. AC Method (for ax2+bx+cax^2 + bx + c with a1a \neq 1)

Multiply aca \cdot c, find two numbers that multiply to acac and add to bb, then split and group.

Example: 2x2+7x+32x^2 + 7x + 3: ac=6ac = 6, find 1+6=71 + 6 = 7

  • 2x2+x+6x+3=x(2x+1)+3(2x+1)=(x+3)(2x+1)2x^2 + x + 6x + 3 = x(2x+1) + 3(2x+1) = (x+3)(2x+1)

6. Sum/Difference of Cubes

a3+b3=(a+b)(a2ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)
a3b3=(ab)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)

7. Factoring by Grouping

Group terms in pairs and factor each pair, then factor out the common binomial.

TechniqueRecognizing Pattern
GCFAll terms share a common factor
Difference of SquaresTwo perfect squares separated by minus
Trinomial (a=1a=1)x2+bx+cx^2 + bx + c form
AC Methodax2+bx+cax^2 + bx + c with a1a \neq 1
CubesTwo perfect cubes with ++ or -
GroupingFour or more terms

Common Mistakes to Avoid

  • Forgetting to factor out the GCF first: Always check for a common factor before using other techniques.
  • Confusing difference vs. sum of squares: a2b2a^2 - b^2 factors, but a2+b2a^2 + b^2 does not factor over the reals.
  • Sign errors in trinomial factoring: When c>0c > 0 and b<0b < 0, both pp and qq are negative.
  • Stopping too early: Check if each factor can be factored further (e.g., x416=(x2+4)(x24)=(x2+4)(x+2)(x2)x^4 - 16 = (x^2+4)(x^2-4) = (x^2+4)(x+2)(x-2)).
  • Not verifying by expanding: Always multiply your factors back out to confirm they equal the original expression.

Examples

Step 1: Find two numbers that multiply to 66 and add to 5-5: those are 2-2 and 3-3.
Step 2: Write as a product of binomials: (x2)(x3)(x - 2)(x - 3)
Step 3: Verify: (x2)(x3)=x23x2x+6=x25x+6(x-2)(x-3) = x^2 - 3x - 2x + 6 = x^2 - 5x + 6
Answer: (x2)(x3)(x - 2)(x - 3)

Step 1: Recognize as a difference of cubes: x323x^3 - 2^3
Step 2: Apply the formula a3b3=(ab)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2 + ab + b^2) with a=xa = x, b=2b = 2
Step 3: Result: (x2)(x2+2x+4)(x - 2)(x^2 + 2x + 4)
Answer: (x2)(x2+2x+4)(x - 2)(x^2 + 2x + 4)

Step 1: Use the AC method: ac=23=6a \cdot c = 2 \cdot 3 = 6. Find two numbers that multiply to 66 and add to 77: those are 11 and 66.
Step 2: Split the middle term: 2x2+x+6x+32x^2 + x + 6x + 3
Step 3: Group and factor: x(2x+1)+3(2x+1)=(x+3)(2x+1)x(2x + 1) + 3(2x + 1) = (x + 3)(2x + 1)
Answer: (x+3)(2x+1)(x + 3)(2x + 1)

Frequently Asked Questions

Factoring a polynomial means rewriting it as a product of simpler polynomials. For example, x^2 - 9 can be factored as (x+3)(x-3). It is the reverse of expanding or multiplying out.

Over the real numbers, not all polynomials factor into linear terms. For example, x^2 + 1 cannot be factored over the reals. However, over the complex numbers, every polynomial can be fully factored into linear factors.

Factoring rewrites an expression as a product of factors. Simplifying reduces an expression to a simpler form, which may involve canceling common factors, combining like terms, or other operations. Factoring is one tool used in simplification.

Factoring helps solve polynomial equations by setting each factor to zero. It also simplifies rational expressions by canceling common factors, and reveals important features like roots and sign changes of a function.

Related Solvers

QuadraticPolynomialSimplifyEquation
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving