Skip to main content
math

Square of a Binomial Calculator

Expand (a + b)² = a² + 2ab + b² and (a - b)² = a² - 2ab + b². Compute perfect square trinomials.

Reviewed by Chase FloiedUpdated

This free online square of a binomial calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

The first term of the binomial

The second term of the binomial

Results

1

2ab (middle term)

0

0

(a + b)²

1

(a - b)²

1

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Square of a Binomial Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Square of a Binomial Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Square of a Binomial Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Square of a Binomial Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The Square of a Binomial Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Expand (a + b)² = a² + 2ab + b² and (a - b)² = a² - 2ab + b². Compute perfect square trinomials. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About Square of a Binomial Calculator

The Square of a Binomial Calculator expands (a + b)² and (a - b)² into perfect square trinomials using the well-known algebraic identities. Squaring a binomial is one of the most common operations in algebra, and the resulting perfect square trinomials appear constantly in equation solving, completing the square, optimization, and geometric calculations. The key insight is that (a + b)² is NOT a² + b²; the crucial middle term 2ab accounts for the cross-product. This formula extends to higher powers through the Binomial Theorem and has practical applications in mental math, error analysis, variance calculations in statistics, and computing areas. The calculator shows each component (a², 2ab, b²) separately so users can understand how the three terms arise from the multiplication.

The Math Behind It

The square of a binomial follows directly from the distributive property: (a + b)² = (a + b)(a + b) = a² + ab + ba + b² = a² + 2ab + b². Similarly, (a - b)² = a² - 2ab + b². These are called perfect square trinomials because they are the squares of binomial expressions. The middle term 2ab (or -2ab) is the most important and most frequently forgotten component. Recognizing perfect square trinomials is essential for completing the square: given x² + bx + c, we check if c = (b/2)², and if so, the expression equals (x + b/2)². The geometric interpretation is illuminating: (a + b)² represents the area of a square with side length a + b, which can be decomposed into a square of area a², a square of area b², and two rectangles each of area ab, totaling a² + 2ab + b². This visual proof appears in Euclid's Elements and is one of the oldest demonstrations in mathematics. The identity extends to complex numbers and matrices (though matrix squaring requires care with non-commutativity). In statistics, the variance formula Var(X) = E[X²] - (E[X])² relates to the square of a sum identity. In numerical analysis, the identity helps analyze rounding errors: (a + ε)² ≈ a² + 2aε for small ε.

Formula Reference

Square of a Sum

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

Variables: The middle term is positive 2ab

Square of a Difference

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

Variables: The middle term is negative 2ab

Worked Examples

Example 1: Square of a sum

Expand (3x + 5)²

Step 1:a = 3x, b = 5
Step 2:a² = (3x)² = 9x²
Step 3:2ab = 2(3x)(5) = 30x
Step 4:b² = 5² = 25
Step 5:(3x + 5)² = 9x² + 30x + 25

9x² + 30x + 25

Example 2: Square of a difference

Expand (x - 4)²

Step 1:a = x, b = 4
Step 2:a² = x²
Step 3:2ab = 2(x)(4) = 8x
Step 4:b² = 16
Step 5:(x - 4)² = x² - 8x + 16

x² - 8x + 16

Example 3: Mental math application

Compute 52² mentally

Step 1:Write 52 = 50 + 2
Step 2:(50 + 2)² = 50² + 2(50)(2) + 2²
Step 3:= 2500 + 200 + 4 = 2704

52² = 2704

Common Mistakes & Tips

  • !The most common error: writing (a + b)² = a² + b² and forgetting the 2ab middle term
  • !Sign errors in (a - b)²: the middle term is -2ab but the last term b² is always positive
  • !Confusing (a + b)² with a² + b² (the latter is the sum of squares, a different expression)
  • !Not recognizing a perfect square trinomial when factoring: x² + 6x + 9 = (x + 3)²

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Why is (a + b)² ≠ a² + b²?

Because multiplication distributes over addition: (a+b)(a+b) produces four terms, not two. The cross terms ab + ba = 2ab must be included. Geometrically, the area of the large square (a+b)² includes two rectangles of area ab in addition to the two smaller squares.

How can I use this for mental math?

Break numbers near round values: 98² = (100-2)² = 10000 - 400 + 4 = 9604. Or 53² = (50+3)² = 2500 + 300 + 9 = 2809. This is much faster than multiplying 53 × 53 digit by digit.