Difference of squares

Evaluate a difference using its factorized form.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
a² − b² = (a − b)(a + b)

Variables & units

First value · a
Numeric value · minimum -1000000000, maximum 1000000000
Second value · b
Numeric value · minimum -1000000000, maximum 1000000000

Worked example

12² − 7² = 5 × 19 = 95.

Assumptions

This identity is for a difference of squares, not a sum.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Practice with an example

Use the default input values to find the answer. The reset icon restores those values.

Calculated on your device. Your latest 100 calculations stay in this browser.