Beginner

Square of a Binomial Calculator — (a + b)² Expansion

Enter values for a and b to instantly expand (a + b)² into a² + 2ab + b². Negative values of b give the (a − b)² identity automatically. Every step is shown so you can follow the algebra.
First term of the binomial
Second term (use a negative value for a − b)
(a + b)²
49

Square of the binomial (a + b)

Expanded form
(3 + 4)² = 9 + 24 + 16 = 49
9
2ab
24
16
Result (a + b)²
49
Step-by-step expansion
1

Write the identity

(a + b)² = a² + 2ab + b²
2

Substitute a and b

(3 + 4)²
3

Compute a²

a² = (3)² = 9
4

Compute 2ab

2ab = 2 × 3 × 4 = 24
5

Compute b²

b² = (4)² = 16
=

Sum all three terms

9 + 24 + 16 = 49
Step by step
  1. 1

    = 9
  2. 2

    2ab

    2 × 3 × 4 = 24
  3. 3

    = 16
  4. 4

    (a + b)²

    9 + 24 + 16 = 49
    The middle term 2ab is the cross term that appears when a binomial is squared.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

The square of a binomial follows (a + b)² = a² + 2ab + b². Enter a and b to see each term computed (a², 2ab, b²) and summed, with a full step-by-step expansion. Use a negative b to get the (a − b)² form. The middle term 2ab is the key that beginners miss.

Formula
(a + b)² = a² + 2ab + b²
How this is calculated

The square of a binomial is a fundamental algebraic identity. Multiplying (a + b) by itself — (a + b)(a + b) — distributes into four products: a·a + a·b + b·a + b·b, which simplifies to a² + 2ab + b². The middle term 2ab (the "cross term") is what beginners often overlook when squaring a sum by hand.

When b is negative the same identity gives the (a − b)² form: substitute −b for b and you get a² − 2ab + b². The calculator handles this automatically — just enter b as a negative number.

This identity underlies completing the square (solving quadratics), expanding polynomial expressions, and deriving Pythagorean-type results. It assumes real numbers; for complex numbers, the expansion holds algebraically but the interpretation of "squared" changes.

Frequently asked questions

(a + b)² = a² + 2ab + b². It says that squaring a two-term sum equals the square of the first term, plus twice the product of both terms, plus the square of the second term. For (a − b)², substitute a negative b to get a² − 2ab + b².

When you expand (a + b)(a + b) using FOIL, the outer product is a·b and the inner product is also b·a — both equal ab. Adding them gives 2ab. This cross term is the most common mistake when squaring a binomial by hand.

A perfect square trinomial is any expression of the form a² + 2ab + b² (or a² − 2ab + b²) because it is the exact square of a binomial. Recognising this pattern lets you factor or simplify expressions quickly.

Also known as

square of a binomial
(a+b) squared formula
expand binomial squared
a squared plus 2ab plus b squared
binomial square identity
perfect square trinomial expansion
algebraic identity (a+b)2

APA

TG we-Calculate Editorial Team. (2026). Square of a Binomial Calculator — (a + b)² Expansion [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/square-of-a-binomial-calculator

Chicago

TG we-Calculate Editorial Team. "Square of a Binomial Calculator — (a + b)² Expansion." TG we-Calculate. 2026. https://we-calculate.com/calculator/square-of-a-binomial-calculator.

IEEE

TG we-Calculate Editorial Team, "Square of a Binomial Calculator — (a + b)² Expansion," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/square-of-a-binomial-calculator

BibTeX

@misc{wecalculate_square_of_a_binomial_calculator, title = {Square of a Binomial Calculator — (a + b)² Expansion}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/square-of-a-binomial-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?