Difference of Two Squares Calculator tool

Difference of Two Squares Calculator

The identity a² − b² = (a + b)(a − b) is one of the fastest factoring patterns in algebra.

What is a difference of two squares calculator?

A difference of two squares calculator applies a² − b² = (a + b)(a − b). Enter a and b to see the factored form and the numeric difference of their squares. It helps factor quadratics like x² − 16 and speed up mental math without squaring each term separately.

How to use the Difference of Two Squares Calculator

  1. Enter the first value a.
  2. Enter the second value b.
  3. Read a² − b² and the factors (a+b)(a−b).
  4. Use variables mentally by treating a as x.
  5. Try equal a and b to confirm the result is zero.

About this calculator

The identity a² − b² = (a + b)(a − b) is one of the fastest factoring patterns in algebra. For a = 7 and b = 3: 49 − 9 = 40, and (7 + 3)(7 − 3) = 10 × 4 = 40.

Spot this pattern whenever you see a perfect square minus another — x² − 16 factors to (x + 4)(x − 4). It also runs backward: multiply (a + b)(a − b) to expand without FOIL errors.

Pair with [[foil-method]] for expanding binomials, [[completing-the-square]] for quadratics, and [[square]] to compute a² and b² separately.

Formula for the difference of two squares

a² − b² = (a + b)(a − b)
  • a is the minuend before squaring
  • b is the subtrahend before squaring
  • Works for numbers and algebraic symbols alike

Difference of two squares example: 7² − 3²

Set a = 7 and b = 3. Direct squares: 49 − 9 = 40. Factored: (7 + 3)(7 − 3) = 10 × 4 = 40.

For algebra, x² − 16 uses a = x and b = 4 because 16 = 4², giving (x + 4)(x − 4). Mental math: 52² − 48² = (52 + 48)(52 − 48) = 100 × 4 = 400 without squaring 52 or 48.

Algebra form x² − 49 factors as (x + 7)(x − 7). Numeric check with a = 7, b = 0 is degenerate, but a = 7, b = 4 gives 49 − 16 = 33 and (11)(3) = 33.

Set a = 11 and b = 5. Direct: 121 − 25 = 96. Factored: (11 + 5)(11 − 5) = 16 × 6 = 96.

Near-square mental math: 25² − 24² = (25 + 24)(25 − 24) = 49 × 1 = 49 without computing 625 or 576.

Algebra form x² − 81 uses b = 9: (x + 9)(x − 9). Numeric check a = 9, b = 4 gives 81 − 16 = 65 and (13)(5) = 65.

JEE speed trick: 53² − 47² = (53 + 47)(53 − 47) = 100 × 6 = 600. Enter a = 53 and b = 47 to read 600 on the factored line without squaring either number by hand.

Common slip: (a − b)² is not a² − b². Squaring the difference first gives a² − 2ab + b², which only matches this identity when the middle term vanishes.

Board factor drill: 100² − 99² = (199)(1) = 199. Enter a = 100 and b = 99 to read 199 from the factored row when consecutive squares appear in a simplification step.

Common uses

  • Factor x² − 16 as (x + 4)(x − 4)
  • Verify 7² − 3² = 40 quickly
  • Check factoring homework before submitting
  • Expand (a + b)(a − b) without FOIL mistakes
  • Simplify expressions like 25 − 9 in one step

Frequently asked questions

What is 7² minus 3²?

49 − 9 = 40. Factored: (7 + 3)(7 − 3) = 10 × 4 = 40.

How do you factor x² − 16?

x² − 16 = (x + 4)(x − 4). Here a = x and b = 4 because 16 = 4².

Does order matter for a and b?

a² − b² equals b² − a² multiplied by −1. The factored form uses (a + b)(a − b) with consistent a as the first square.

Can this identity help with mental math?

Yes. 52² − 48² = (52 + 48)(52 − 48) = 100 × 4 = 400 without squaring each term separately.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026