Free to Use

Factoring Calculator

Factor polynomials and algebraic expressions step-by-step. Supports quadratic trinomials, grouping, GCF factoring, difference of squares, and perfect square trinomials.

Factoring Examples

🧮 Quadratic Factoring (Simple)

Expression: x² + 5x + 6

Method: Find two numbers that multiply to 6 and add to 5 → 2 and 3

Factored: (x + 2)(x + 3)

Check: (x + 2)(x + 3) = x² + 3x + 2x + 6 = x² + 5x + 6 ✓

🧮 Quadratic Factoring (a ≠ 1)

Expression: 2x² + 7x + 3

Method: Multiply a×c = 2×3 = 6. Find factors of 6 that sum to 7 → 1 and 6. Rewrite: 2x² + x + 6x + 3, then factor by grouping.

Factored: (2x + 1)(x + 3)

Check: (2x + 1)(x + 3) = 2x² + 6x + x + 3 = 2x² + 7x + 3 ✓

📦 Factor by Grouping (4 Terms)

Expression: x³ + 2x² + 3x + 6

Method: Group as (x³ + 2x²) + (3x + 6). Factor GCF from each: x²(x + 2) + 3(x + 2). Factor common binomial: (x + 2)(x² + 3)

Factored: (x + 2)(x² + 3)

The x² + 3 term does not factor further over the reals.

🔍 Difference of Squares

Expression: x² - 16

Method: Recognize a² - b² = (a + b)(a - b). Here a = x, b = 4.

Factored: (x + 4)(x - 4)

Check: (x + 4)(x - 4) = x² - 4x + 4x - 16 = x² - 16 ✓

✨ Perfect Square Trinomial

Expression: x² + 6x + 9

Method: Recognize a² + 2ab + b² = (a + b)². Here a = x, b = 3.

Factored: (x + 3)²

Check: (x + 3)² = x² + 6x + 9 ✓. Perfect square trinomials have first and last terms as perfect squares.

🔍 GCF Factoring

Expression: 6x³ + 9x² - 3x

Method: Find the GCF of all terms. GCF(6, 9, 3) = 3, and each term has at least x¹, so GCF = 3x.

Factored: 3x(2x² + 3x - 1)

Always check for a GCF first before applying other factoring methods!

Understanding Factoring

Factoring is the process of breaking down a polynomial into a product of simpler polynomials. It is the reverse of expanding (multiplying) polynomials. Factoring is a fundamental skill in algebra that helps solve equations, simplify expressions, and analyze functions.

Key Factoring Formulas

GCF: a·b + a·c = a(b + c)
Factor out the Greatest Common Factor from all terms.
Difference of Squares: a² - b² = (a + b)(a - b)
Only works when both terms are perfect squares separated by a minus sign.
Perfect Square Trinomial: a² ± 2ab + b² = (a ± b)²
First and last terms are perfect squares, middle term is ±2 × √first × √last.
Quadratic (a=1): x² + bx + c = (x + p)(x + q) where p+q=b and p×q=c
Find two numbers that multiply to c and add to b.
Quadratic (a≠1): ax² + bx + c = a(x - r₁)(x - r₂) using AC method or quadratic formula
Find factors of a×c that sum to b, then rewrite and group.

How to Factor: Step-by-Step Strategy

1
Check for GCF: Always factor out the Greatest Common Factor first if one exists.
2
Count the terms: The number of terms determines which method to try next.
3
Two terms: Check for difference of squares (a² - b²), sum/difference of cubes.
4
Three terms: Check for perfect square trinomial, then try quadratic factoring (AC method).
5
Four terms: Try factoring by grouping — group into pairs, factor GCF from each, factor common binomial.
6
Check your work: Multiply the factors back together to verify they produce the original expression.

Quick Tips for Factoring

🔢 Always Check GCF First

The most common mistake is missing a common factor. Before trying any other method, check if all terms share a common factor and factor it out.

🔍 Look for Special Patterns

Difference of squares (a² - b²), perfect square trinomials (a² ± 2ab + b²), and sum/difference of cubes have distinct patterns. Learn to recognize them.

🧮 Verify with FOIL

Always multiply your factors back together using FOIL (First, Outer, Inner, Last) or distribution to verify the result matches the original expression.

📐 When in Doubt, Use Formula

For quadratic expressions, the quadratic formula x = [-b ± √(b² - 4ac)] / 2a always gives the roots, from which you can construct the factors.

✂️
Quadratic Factoring
Factor quadratic trinomials of the form ax² + bx + c. Works for both a=1 and a≠1 cases using the AC method with step-by-step working.
📦
Factor by Grouping
Factor polynomials with 3 or 4 terms by grouping pairs, factoring GCFs from each group, and extracting the common binomial factor.
🔍
GCF Factoring
Identify and factor out the Greatest Common Factor from any polynomial expression. Includes coefficient and variable GCF detection.
Special Case Detection
Automatically recognizes difference of squares, perfect square trinomials, and other special factoring patterns with clear labels.

What Is Factoring in Algebra?

Factoring is the process of rewriting a polynomial as a product of simpler polynomials (factors). It is the reverse operation of expanding (multiplying) polynomials. Just as factoring a number like 12 into 2 × 2 × 3 breaks it down into its prime components, factoring a polynomial breaks it into its irreducible polynomial factors.

Factoring is one of the most essential skills in algebra because it allows us to solve polynomial equations, simplify rational expressions, find zeros of functions, and understand the behavior of graphs. When a polynomial is factored, each factor reveals an x-intercept (root) of the corresponding function.

For example, factoring x² + 5x + 6 into (x + 2)(x + 3) tells us that the equation x² + 5x + 6 = 0 has solutions x = -2 and x = -3. These solutions correspond to the points where the parabola crosses the x-axis.

The Four Main Factoring Methods

How to Factor Quadratic Expressions

Quadratic expressions have the form ax² + bx + c, where a, b, and c are constants and a ≠ 0. The approach depends on whether a = 1 or a ≠ 1.

When a = 1 (Simple Quadratic)

For x² + bx + c, find two numbers p and q such that p + q = b and p × q = c. Then x² + bx + c = (x + p)(x + q).

Example: x² + 7x + 12. Find p+q=7, p×q=12 → 3 and 4. Factor: (x + 3)(x + 4). Check: (x+3)(x+4) = x² + 4x + 3x + 12 = x² + 7x + 12 ✓

When a ≠ 1 (AC Method)

For 2x² + 7x + 3, multiply a×c = 2×3 = 6. Find factors of 6 that sum to 7 → 1 and 6. Rewrite 7x as x + 6x: 2x² + x + 6x + 3. Group: (2x² + x) + (6x + 3). Factor each: x(2x + 1) + 3(2x + 1) = (2x + 1)(x + 3).

Special Quadratic Cases

Difference of Squares: x² - 9 = (x + 3)(x - 3). Recognizable by two perfect squares separated by subtraction.

Perfect Square Trinomial: x² + 10x + 25 = (x + 5)². First term (x²) and last term (25 = 5²) are perfect squares, and the middle term (10x = 2·x·5) fits the pattern 2ab.

Prime (Unfactorable): Some quadratics like x² + x + 1 cannot be factored over the real numbers. These have no rational roots and a negative discriminant (b² - 4ac < 0).

Real-World Applications of Factoring

Factoring is not just an academic exercise — it has numerous practical applications across science, engineering, and finance.

📈 Physics & Kinematics

The equation of motion s = -16t² + vt + h describes the height of a projectile over time. Factoring helps find when the object hits the ground (s = 0).

💰 Business & Economics

Profit functions P(x) = -ax² + bx - c are quadratic. Factoring the profit equation P(x) = 0 reveals break-even points where revenue equals cost.

📐 Engineering Design

Structural engineers use factored polynomials to model stress-strain relationships, determine optimal dimensions, and calculate load distributions.

🔬 Chemistry

Reaction rate equations and concentration functions often involve polynomial relationships. Factoring helps find equilibrium points and reaction times.

Frequently Asked Questions

What does it mean to factor a polynomial?
Factoring a polynomial means rewriting it as a product of simpler polynomials. For example, factoring x² + 5x + 6 gives (x + 2)(x + 3). The factored form makes it easy to find the roots (solutions) of the equation — just set each factor equal to zero. Factoring is the reverse of expanding (multiplying out) polynomials.
What is the first step in factoring any polynomial?
The first step is always to check for a Greatest Common Factor (GCF). Look at the coefficients — do they share a common factor? Look at the variables — does each term contain the same variable raised to some power? For example, in 6x³ + 9x² - 3x, the GCF is 3x because 3 divides all coefficients and each term has at least one factor of x. Factoring out the GCF simplifies the remaining polynomial and makes further factoring easier.
How do I know which factoring method to use?
Use the number of terms to guide your choice:
  • 2 terms: Check for difference of squares (a² - b²), difference of cubes (a³ - b³), or sum of cubes (a³ + b³).
  • 3 terms: Check for perfect square trinomial (a² ± 2ab + b²) or use the AC method for general quadratics.
  • 4 terms: Try factoring by grouping — pair terms, factor each group, then look for a common binomial.
  • Always: Check for a GCF first, regardless of the number of terms!
What is the AC method for factoring?
The AC method is used to factor quadratics where the coefficient of x² is not 1 (a ≠ 1). Steps:
  1. Multiply a × c (e.g., for 2x² + 7x + 3, ac = 2×3 = 6).
  2. Find two numbers that multiply to ac and add to b (6 and 1 multiply to 6, add to 7).
  3. Rewrite the middle term using these numbers: 2x² + 6x + x + 3.
  4. Group and factor: 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3).
What is the difference of squares pattern?
The difference of squares pattern is a² - b² = (a + b)(a - b). It applies only when you have two perfect squares separated by a subtraction sign. For example, x² - 25 = x² - 5² = (x + 5)(x - 5). You can verify: (x + 5)(x - 5) = x² - 5x + 5x - 25 = x² - 25. Note: a sum of squares (a² + b²) cannot be factored over the real numbers.
Can all quadratic expressions be factored?
Not all quadratics can be factored over the real numbers. The discriminant (b² - 4ac) determines factorability:
  • If b² - 4ac is a perfect square, the quadratic factors over the rationals.
  • If b² - 4ac is positive but not a perfect square, it factors over the reals (with irrational roots).
  • If b² - 4ac negative, it does not factor over the reals (complex roots only).
Our calculator detects unfactorable expressions and explains why.
What is the FOIL method and how does it relate to factoring?
FOIL stands for First, Outer, Inner, Last — a mnemonic for multiplying two binomials. For (x + 2)(x + 3): First (x·x = x²), Outer (x·3 = 3x), Inner (2·x = 2x), Last (2·3 = 6) → x² + 3x + 2x + 6 = x² + 5x + 6. Factoring is the reverse process — starting with x² + 5x + 6, we figure out the binomial pair (x + 2) and (x + 3) that produce it. Practice with FOIL helps develop intuition for factoring.

⚠️ Important Note: This Factoring Calculator is for educational and informational purposes only. While every effort has been made to ensure accuracy, results should be verified independently for critical applications such as engineering calculations, academic submissions, or professional work. Always check your factoring by multiplying the factors back together.