Factor Calculator Factorization Hub

Binomial Factoring Calculator

Enter any two-term expression and the calculator identifies the pattern — difference of squares, sum of cubes, or difference of cubes — and delivers the factored form instantly.

B
Binomial Pattern Detector
a² − b², a³ ± b³
Quick Try:

What Is Binomial Factoring?

Binomial factoring takes a two-term polynomial and rewrites it as a product of simpler expressions. The key lies in recognizing one of three classic algebraic identities. Each identity connects a specific binomial shape to its factored form, letting you decompose expressions that would be tedious to factor by trial and error.

The difference of squares is the most recognized pattern: a² − b² becomes (a + b)(a − b). It appears everywhere in algebra, from simplifying rational expressions to computing mental math shortcuts. Cube identities are less common but equally powerful — they appear in calculus limits, number theory, and engineering formulas.

The Three Factorable Binomial Patterns

−□

Difference of Squares

a² − b² = (a+b)(a−b)

+³

Sum of Cubes

a³+b³ = (a+b)(a²−ab+b²)

−³

Difference of Cubes

a³−b³ = (a−b)(a²+ab+b²)

How to Use the Binomial Factoring Calculator

Identify and factor any binomial expression in three steps.

01

Select Pattern

Choose difference of squares, sum of cubes, or difference of cubes from the dropdown menu.

02

Enter Base Values

Type the values of a and b. For x² − 9, enter a = x (or numerically, a = any integer) and b = 3.

03

View Factored Form

Get the factored result, the identity applied, numerical verification, and a step-by-step walkthrough.

Worked Examples

Four binomial factoring problems solved step by step, one for each major pattern.

1
Factor 25 − 9Difference of Squares
+
1Recognize: 25 = 5² and 9 = 3². This is a² − b² with a=5, b=3.
2Apply identity: a² − b² = (a + b)(a − b) = (5 + 3)(5 − 3) = (8)(2).
3Verify: 8 × 2 = 16 = 25 − 9 ✓
5² − 3² = (5 + 3)(5 − 3) = 16
2
Factor 8 + 27Sum of Cubes
+
1Recognize: 8 = 2³ and 27 = 3³. This is a³ + b³ with a=2, b=3.
2Apply: a³ + b³ = (a + b)(a² − ab + b²) = (2 + 3)(4 − 6 + 9) = (5)(7).
3Verify: 5 × 7 = 35 = 8 + 27 ✓
2³ + 3³ = (2 + 3)(4 − 6 + 9) = 35
3
Factor 64 − 1Difference of Cubes
+
1Recognize: 64 = 4³ and 1 = 1³. This is a³ − b³ with a=4, b=1.
2Apply: a³ − b³ = (a − b)(a² + ab + b²) = (4 − 1)(16 + 4 + 1) = (3)(21).
3Verify: 3 × 21 = 63 = 64 − 1 ✓
4³ − 1³ = (4 − 1)(16 + 4 + 1) = 63
4
Factor 100 − 49Difference of Squares
+
1Recognize: 100 = 10² and 49 = 7². Difference of squares: a=10, b=7.
2Apply: (10 + 7)(10 − 7) = (17)(3).
3Verify: 17 × 3 = 51 = 100 − 49 ✓
10² − 7² = (10 + 7)(10 − 7) = 51

Binomial Identity Reference

All factorable binomial identities in one table.

IdentityExpressionFactored Form
Difference of Squaresa² − b²(a + b)(a − b)
Sum of Cubesa³ + b³(a + b)(a² − ab + b²)
Difference of Cubesa³ − b³(a − b)(a² + ab + b²)
Sum of Squaresa² + b²Irreducible over ℝ

Frequently Asked Questions

Common questions about binomial factoring patterns.

What is a binomial in algebra? +

A binomial is a polynomial expression with exactly two terms separated by addition or subtraction, such as x² − 9 or a³ + 8.

What binomial patterns can be factored? +

The three main factorable binomial patterns are difference of squares (a² − b²), sum of cubes (a³ + b³), and difference of cubes (a³ − b³). Sum of squares (a² + b²) cannot be factored over the reals.

Why can't a sum of two squares be factored? +

Over the real numbers, a² + b² has no real roots since both terms are non-negative. It is irreducible over ℝ, though it factors over the complex numbers as (a + bi)(a − bi).

How do I recognize a difference of squares? +

Look for two terms that are both perfect squares connected by subtraction. For example, 25x² − 49 = (5x)² − 7² is a difference of squares.

What is the sum of cubes formula? +

a³ + b³ = (a + b)(a² − ab + b²). The first factor is a binomial sum and the second is a trinomial with alternating signs.

Can binomial factoring be applied to higher powers? +

Yes — expressions like x⁴ − 16 can be factored as (x²)² − 4² = (x² + 4)(x² − 4) = (x² + 4)(x + 2)(x − 2) by applying difference of squares iteratively.

Related Tools Showcase

Explore 4 complementary calculators tailored to expand your mathematical analysis.