Difference of Two Squares Calculator

Factor a difference of two squares or expand its conjugate factors.

Result
—

How to calculate

Write A² − B² as (A + B)(A − B). In reverse, the products AB and −AB cancel and only A² − B² remains.

Worked example

Use Operation Factor a squared term minus a constant · Polynomial or product 4x^2 - 25. The result is (2x + 5)(2x − 5).

Input and result notes

Factor mode takes a quadratic with only an x² term and an opposite-sign constant. In expand mode enter a product such as (2x + 5)(2x − 5).

OpenStax factoring polynomials

Related calculators