Algebra • Polynomial Factorization

Factor a Polynomial Calculator

Factor any polynomial into its simplest irreducible components with step-by-step mathematical explanations. Solves quadratics, cubics, differences of squares, cubes, and four-term grouping with real root extraction.

|
Last Updated: September 2026
|
Verified Accurate: Algebraic Rigor
Algebra • Polynomial Factorizer Ready
Preset Polynomials:
Degrees 1 to 4 supported
Factored Form: AC Method / Trinomial
(x - 2)(x - 3)
Verification: (x - 2)(x - 3) = x^2 - 3x - 2x + 6 = x^2 - 5x + 6
Roots / Zeros x = 2, 3
GCF Extracted 1 (None)
Degree Degree 2
Reducibility Reducible over Q

Step-by-Step Factorization Solution

Direct Answer & Overview
Verified Educational Guide

How Do You Factor a Polynomial?

To factor a polynomial, first extract any Greatest Common Factor (GCF) shared across all terms. Next, identify the polynomial's structure by term count: for two terms, check for difference of squares (a^2 - b^2 = (a-b)(a+b)) or sum/difference of cubes (a^3 pm b^3 = (a pm b)(a^2 mp ab + b^2)); for three terms (ax^2 + bx + c), apply product-sum factoring or the AC method by finding two numbers whose product is a*c and sum is b; for four terms, group in pairs to factor out common binomials. Setting each resulting linear factor equal to zero reveals the roots of the polynomial.

Primary Mathematical Formula Complete Factorization Over Algebraic Fields
Standard Equation
ƒ(x)
Q.E.D.
P(x)=an(x−r1)(x−r2)⋯(x−rn)where P(ri)=0P(x) = a_n(x - r_1)(x - r_2)\cdots(x - r_n) \quad \text{where } P(r_i) = 0
Applicable across quadratic, cubic, and higher-order algebraic polynomials
Exact Formula
Input Parameters
Required
1
Polynomial Expression — Any single-variable polynomial (degrees 1 through 4) in standard or unsimplified form, e.g., 2x^2 + 7x + 3 or x^3 - 3x^2 - 4x + 12
Expected Outputs
Calculated
Factored Expression — Completely factored algebraic representation into irreducible linear and quadratic factors over rational numbers
Factoring Method Used — Identified mathematical technique: GCF Extraction, Difference of Squares, AC Method, Sum/Difference of Cubes, or Grouping
Real Roots (Zeros) — Exact values of x that satisfy P(x) = 0 by setting each linear factor equal to zero
Step-by-Step Breakdown — Detailed algebraic solution path showing GCF extraction, grouping pairs, discriminant checks, and verification
Worked Numerical Example
Instant Verification
Factoring a Quadratic Trinomial: 2x^2 + 7x + 3
1 Identify coefficients: a = 2, b = 7, c = 3
2 Calculate the AC product: a * c = 2 * 3 = 6, with sum b = 7
3 Find two factors of 6 that add up to 7: 6 and 1 (since 6 * 1 = 6 and 6 + 1 = 7)
4 Split the middle term: 2x^2 + 6x + x + 3
5 Factor by grouping: 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3)
6 Solve for roots: 2x + 1 = 0 => x = -1/2; x + 3 = 0 => x = -3

What Is Polynomial Factorization

Polynomial factorization is the algebraic decomposition of a polynomial expression into a product of simpler polynomials, known as factors. Just as prime integer factorization decomposes the composite number 60 into $2^2 \times 3 \times 5$, polynomial factorization breaks down expressions like $x^2 - 9$ into $(x - 3)(x + 3)$. When multiplied together via the distributive law, these factors reconstruct the original polynomial exactly.

Factorization represents the foundational bridge between algebraic arithmetic and analytical problem solving. Transforming an additive polynomial into a multiplicative product enables mathematicians and engineers to find roots instantly using the Zero Product Property: if $A \times B = 0$, then either $A = 0$ or $B = 0$. Factorization is indispensable for simplifying rational functions, computing calculus limits, decomposing transfer functions in control systems, and finding resonance frequencies in physics.

Before factoring, knowing the exact structure of your terms is essential; you can verify whether your expression is a trinomial or binomial using the Expression Type Identifier. Once factored, you can easily reverse the process using the Factored Form to Standard Form Converter.

The Fundamental Theorem of Algebra & Factor Theorem

Two profound mathematical theorems govern the factorization of polynomials:

The Fundamental Theorem of Algebra (Gauss, 1799)

Every non-zero single-variable polynomial of degree $n$ with complex coefficients has exactly $n$ complex roots (counting multiplicity). As a direct corollary, known as the Complete Linear Factorization Theorem, any degree-$n$ polynomial can be factored completely into $n$ linear factors:

P(x) = a_n(x - r_1)(x - r_2)\cdots(x - r_n)

Over the real numbers ℝ, complex roots occur in conjugate pairs (a ± bi), meaning every real polynomial factors into a product of linear real factors and irreducible quadratic factors with negative discriminants (b^2 - 4ac < 0).

The Polynomial Factor Theorem

A polynomial $P(x)$ has a linear factor $(x - c)$ if and only if $P(c) = 0$. This theorem links root-finding directly to factorization. If substituting $x = 3$ yields zero, $(x - 3)$ is guaranteed to be an exact divisor of $P(x)$ with zero remainder.

Systematic Polynomial Factoring Hierarchy

Attempting to factor a polynomial without a systematic strategy frequently leads to circular calculations. Professional mathematicians follow a strict five-step hierarchy:

Step 1: Extract the Greatest Common Factor (GCF)

Always inspect all terms for common numerical factors and variable powers. For example, in $6x^3 - 18x^2 + 12x$, the GCF is $6x$. Factoring out the GCF yields $6x(x^2 - 3x + 2)$, which dramatically simplifies subsequent factoring.

Step 2: Count the Number of Terms

The number of remaining terms indicates which specific technique to apply:

  • 2 Terms (Binomial): Check for Difference of Squares, Sum of Cubes, or Difference of Cubes.
  • 3 Terms (Trinomial): Check for Perfect Square Trinomials, then apply Product-Sum or the AC Method.
  • 4 Terms (Multinomial): Attempt Factoring by Grouping in pairs or $3+1$ patterns.
  • Degree ≥ 3 without Grouping: Apply the Rational Root Theorem with synthetic division.

Step 3: Verify Irreducibility

Inspect each resulting factor to ensure it cannot be factored further. For example, $(x^4 - 16)$ factors into $(x^2 + 4)(x^2 - 4)$, but $(x^2 - 4)$ can still be factored into $(x - 2)(x + 2)$.

Special Factoring Formulas and Product Patterns

Recognizing algebraic identities allows instantaneous factorization without trial and error:

Pattern Name Standard Polynomial Form Factored Identity Form Concrete Example
Difference of Two Squares a^2 - b^2 (a - b)(a + b) 4x^2 - 25 = (2x - 5)(2x + 5)
Perfect Square Trinomial (+) a^2 + 2ab + b^2 (a + b)^2 x^2 + 6x + 9 = (x + 3)^2
Perfect Square Trinomial (-) a^2 - 2ab + b^2 (a - b)^2 9x^2 - 12x + 4 = (3x - 2)^2
Sum of Two Cubes a^3 + b^3 (a + b)(a^2 - ab + b^2) x^3 + 8 = (x + 2)(x^2 - 2x + 4)
Difference of Two Cubes a^3 - b^3 (a - b)(a^2 + ab + b^2) x^3 - 27 = (x - 3)(x^2 + 3x + 9)

The AC Method for Quadratic Trinomials ($a \neq 1$)

When factoring a quadratic trinomial $ax^2 + bx + c$ where the leading coefficient $a \neq 1$ and no GCF exists, trial-and-error guess factoring becomes tedious. The AC Method (or grouping method) eliminates guesswork through a guaranteed four-step algorithm:

Step 1: Compute the AC Product

Multiply the leading coefficient $a$ by the constant term $c$. For the polynomial $6x^2 + 11x - 10$, we calculate $a \times c = 6 \times (-10) = -60$.

Step 2: Find Factor Pairs That Sum to $b$

Identify two integers $p$ and $q$ such that $p \times q = -60$ and $p + q = 11$. Testing factor pairs of $-60$ reveals $15$ and $-4$, since $15 \times (-4) = -60$ and $15 + (-4) = 11$.

Step 3: Split the Linear Middle Term

Rewrite the middle term $11x$ as the sum of $15x$ and $-4x$:

6x^2 + 11x - 10 \implies 6x^2 + 15x - 4x - 10

Step 4: Factor by Grouping

Group into two pairs and extract the common monomial from each:

3x(2x + 5) - 2(2x + 5) = (3x - 2)(2x + 5)

Factoring Four-Term Polynomials by Grouping

Four-term polynomials frequently possess an underlying symmetry that allows factoring by grouping pairs of terms. Consider the cubic polynomial:

P(x) = x^3 - 3x^2 - 4x + 12

Group the first two terms together and the last two terms together:

(x^3 - 3x^2) - (4x - 12)

Extract the greatest common factor from each pair: $x^2$ from the first pair and $4$ from the second pair:

x^2(x - 3) - 4(x - 3)

Because both terms share the common binomial factor $(x - 3)$, factor it out:

(x^2 - 4)(x - 3)

Finally, recognize that $(x^2 - 4)$ is a difference of two squares, yielding the complete factorization:

(x - 2)(x + 2)(x - 3)

Higher-Degree Factoring: Rational Root Theorem & Synthetic Division

When a polynomial has degree 3 or higher and grouping fails, mathematicians employ the Rational Root Theorem combined with synthetic division:

For any polynomial P(x) = a_n x^n + … + a_0 with integer coefficients, any rational zero must have the form ± p/q, where p is a factor of the constant term a_0 and q is a factor of the leading coefficient a_n.

Once a rational zero $r$ is discovered (such that $P(r) = 0$), perform synthetic division by $(x - r)$ to deflate the polynomial into a quotient of degree $n - 1$. Repeat this procedure until the quotient reduces to a quadratic polynomial, which can be factored directly using the AC method or the Quadratic Formula Calculator.

Irreducible Polynomials Over Rational and Real Fields

A polynomial is termed irreducible (or prime) over a given number field if it cannot be expressed as the product of two non-constant polynomials whose coefficients belong to that field. Reducibility is strictly field-dependent:

  • Over the Rationals ℚ: The polynomial x^2 - 2 is irreducible because √2 ∉ ℚ.
  • Over the Reals ℝ: The polynomial x^2 - 2 factors into (x - √2)(x + √2), but x^2 + 9 remains strictly irreducible.
  • Over the Complex Numbers ℂ: The polynomial x^2 + 9 factors into (x - 3i)(x + 3i). No polynomial of degree ≥ 2 is irreducible over ℂ.

Comprehensive Worked Factoring Examples

Example 1: Factoring with GCF: 3x^3 - 12x

Step 1: Factor out the common monomial $3x$: $3x(x^2 - 4)$.

Step 2: Factor the difference of squares: $3x(x - 2)(x + 2)$.

Roots: x = 0, 2, -2

Example 2: Difference of Cubes: 8x^3 - 27

Step 1: Recognize terms as cubes: $(2x)^3 - 3^3$.

Step 2: Apply formula $(a - b)(a^2 + ab + b^2)$: $(2x - 3)(4x^2 + 6x + 9)$.

Quadratic factor discriminant Δ = 36 - 4(4)(9) = -108 < 0, confirming irreducibility over ℝ.

Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What does it mean to factor a polynomial completely?
Factoring a polynomial completely means writing it as a product of a numerical greatest common factor and one or more prime (irreducible) polynomials that cannot be factored further using coefficients from the chosen number field (typically rational numbers Q or real numbers R).
How do you know which factoring method to choose first?
Always follow the universal factoring hierarchy: Step 1 is to look for and extract the Greatest Common Factor (GCF). Step 2 is to count the remaining terms: if 2 terms, check for special binomial patterns (difference of squares, sum/difference of cubes); if 3 terms, apply trinomial product-sum or the AC method; if 4 terms, attempt factoring by grouping; if 5 or more terms or degree >= 3 without grouping symmetry, use the Rational Root Theorem with synthetic division.
Can every polynomial be factored into linear factors?
Over the complex numbers C, yes: by the Fundamental Theorem of Algebra, every polynomial of degree n factors into exactly n linear factors (counting multiplicity). However, over the real numbers R, polynomials can only factor into linear factors and irreducible quadratic factors with negative discriminants (b^2 - 4ac < 0), such as x^2 + 4.
Why is the sum of two squares not factorable over real numbers?
An expression of the form a^2 + b^2 has no real zeros because a^2 + b^2 = 0 implies a^2 = -b^2, which requires imaginary numbers (+/- b*i). Over the real numbers, the sum of two squares is strictly irreducible (prime).
What is the relationship between the factors of a polynomial and its roots?
By the Factor Theorem, a linear expression (x - r) is a factor of polynomial P(x) if and only if P(r) = 0. This means the roots (zeros or x-intercepts) of a polynomial are obtained directly by setting each linear factor equal to zero and solving for x.
How can I verify that my polynomial factorization is correct?
Multiply (expand) your factors back together using distributive multiplication or the FOIL method. If the expanded polynomial matches your original expression term for term, your factorization is mathematically verified.