Skip to main content

Square of a Binomial Calculator

Our free algebra calculator solves square abinomial problems. Get worked examples, visual aids, and downloadable results.

Skip to calculator
Mathematics

Square of a Binomial Calculator

Calculate the square of a binomial (a+b)^2 or (a-b)^2. Expand using the formula a^2 +/- 2ab + b^2 and generalize to higher powers with the binomial theorem.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Expression
(3 + 5)^2
64
a^2
9
3^2
+2ab
30
2(3)(5)
b^2
25
5^2

Binomial Expansion Terms

C(2,0) = 1 | a^2 = 9 | b^0 = 1 | sign = +9
C(2,1) = 2 | a^1 = 3 | b^1 = 5 | sign = +30
C(2,2) = 1 | a^0 = 1 | b^2 = 25 | sign = +25
(a+b)(a-b) = a^2 - b^2
-16
3^2 - 5^2 = 9 - 25
Expanded Form
9 + 30 + 25
= 64
Your Result
(3 + 5)^2 = 64
Share Your Result
Understand the Math

Formula

(a + b)^2 = a^2 + 2ab + b^2 | (a - b)^2 = a^2 - 2ab + b^2

The square of a binomial produces a perfect square trinomial. The first term is a squared, the middle term is twice the product of a and b (with appropriate sign), and the last term is b squared. For higher powers, the binomial theorem gives (a+b)^n = sum of C(n,k)*a^(n-k)*b^k.

Last reviewed: December 2025

Worked Examples

Example 1: Square of a Binomial Sum

Expand (3 + 5)^2 using the binomial square formula.
Solution:
(a + b)^2 = a^2 + 2ab + b^2 With a = 3, b = 5: a^2 = 3^2 = 9 2ab = 2(3)(5) = 30 b^2 = 5^2 = 25 (3 + 5)^2 = 9 + 30 + 25 = 64 Verify: (3 + 5)^2 = 8^2 = 64
Result: (3 + 5)^2 = 9 + 30 + 25 = 64

Example 2: Square of a Binomial Difference

Expand (7 - 2)^2 using the binomial square formula.
Solution:
(a - b)^2 = a^2 - 2ab + b^2 With a = 7, b = 2: a^2 = 7^2 = 49 2ab = 2(7)(2) = 28 b^2 = 2^2 = 4 (7 - 2)^2 = 49 - 28 + 4 = 25 Verify: (7 - 2)^2 = 5^2 = 25
Result: (7 - 2)^2 = 49 - 28 + 4 = 25
Expert Insights

Background & Theory

The Square of a Binomial Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Square of a Binomial Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

The square of a binomial is a special product formula used to expand (a + b)^2 or (a - b)^2 without performing full multiplication. The formulas are: (a + b)^2 = a^2 + 2ab + b^2 and (a - b)^2 = a^2 - 2ab + b^2. The result always has three terms: the square of the first term, twice the product of both terms (with appropriate sign), and the square of the second term. These formulas are among the most frequently used identities in algebra because they appear in completing the square, deriving the quadratic formula, computing variances in statistics, and many geometric applications.
Completing the square is a technique that rewrites a quadratic expression ax^2 + bx + c into the form a(x - h)^2 + k, which reveals the vertex of the parabola. The process uses the square of a binomial formula in reverse. Starting with x^2 + bx, you add and subtract (b/2)^2 to create a perfect square trinomial: x^2 + bx + (b/2)^2 = (x + b/2)^2. For example, x^2 + 6x + 5 becomes (x^2 + 6x + 9) - 9 + 5 = (x + 3)^2 - 4. This technique is essential for deriving the quadratic formula, converting quadratic functions to vertex form, and solving certain integral problems in calculus.
A perfect square trinomial is a three-term polynomial that results from squaring a binomial. It has the form a^2 + 2ab + b^2 or a^2 - 2ab + b^2. To identify one, check three conditions: the first and last terms must be perfect squares (both positive), and the middle term must equal plus or minus twice the product of the square roots of the first and last terms. For example, 9x^2 + 30x + 25 is a perfect square trinomial because 9x^2 = (3x)^2, 25 = 5^2, and 30x = 2(3x)(5). Therefore, 9x^2 + 30x + 25 = (3x + 5)^2. Recognizing perfect square trinomials speeds up factoring significantly.
The binomial theorem extends the square formula to any positive integer power n: (a + b)^n = sum from k=0 to n of C(n,k) * a^(n-k) * b^k. For n=2, this gives C(2,0)a^2 + C(2,1)ab + C(2,2)b^2 = a^2 + 2ab + b^2, recovering the square formula. For n=3 (cube), it gives a^3 + 3a^2b + 3ab^2 + b^3. The coefficients C(n,k) are binomial coefficients found in Pascal triangle. Each row of Pascal triangle gives the coefficients for the next power: row 2 is 1,2,1 (square), row 3 is 1,3,3,1 (cube), row 4 is 1,4,6,4,1 (fourth power), and so on.
In statistics, the square of a binomial appears in the variance formula. The variance of a random variable X is E[(X - mu)^2], which expands to E[X^2] - 2*mu*E[X] + mu^2 = E[X^2] - mu^2. This is the computational formula for variance: Var(X) = E[X^2] - (E[X])^2. The binomial expansion also appears in the formula for the variance of a sum: Var(X + Y) = Var(X) + 2Cov(X,Y) + Var(Y), which mirrors (a + b)^2 = a^2 + 2ab + b^2 where the middle term involves the covariance. Understanding these algebraic connections helps statisticians derive formulas and simplify complex probability calculations.
Yes, the square of a binomial has an elegant geometric interpretation using area. Draw a square with side length (a + b). Divide each side into segments of length a and b, creating a grid of four regions inside the square. The top-left region is an a-by-a square (area = a^2), the bottom-right is a b-by-b square (area = b^2), and the remaining two regions are a-by-b rectangles (each with area = ab). The total area is a^2 + ab + ab + b^2 = a^2 + 2ab + b^2, which equals (a + b)^2. This visual proof requires no algebra and makes the formula immediately intuitive. Similar geometric arguments extend to the cube of a binomial using volumes.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

(a + b)^2 = a^2 + 2ab + b^2 | (a - b)^2 = a^2 - 2ab + b^2

The square of a binomial produces a perfect square trinomial. The first term is a squared, the middle term is twice the product of a and b (with appropriate sign), and the last term is b squared. For higher powers, the binomial theorem gives (a+b)^n = sum of C(n,k)*a^(n-k)*b^k.

Worked Examples

Example 1: Square of a Binomial Sum

Problem: Expand (3 + 5)^2 using the binomial square formula.

Solution: (a + b)^2 = a^2 + 2ab + b^2\nWith a = 3, b = 5:\na^2 = 3^2 = 9\n2ab = 2(3)(5) = 30\nb^2 = 5^2 = 25\n(3 + 5)^2 = 9 + 30 + 25 = 64\nVerify: (3 + 5)^2 = 8^2 = 64

Result: (3 + 5)^2 = 9 + 30 + 25 = 64

Example 2: Square of a Binomial Difference

Problem: Expand (7 - 2)^2 using the binomial square formula.

Solution: (a - b)^2 = a^2 - 2ab + b^2\nWith a = 7, b = 2:\na^2 = 7^2 = 49\n2ab = 2(7)(2) = 28\nb^2 = 2^2 = 4\n(7 - 2)^2 = 49 - 28 + 4 = 25\nVerify: (7 - 2)^2 = 5^2 = 25

Result: (7 - 2)^2 = 49 - 28 + 4 = 25

Frequently Asked Questions

What is the square of a binomial formula?

The square of a binomial is a special product formula used to expand (a + b)^2 or (a - b)^2 without performing full multiplication. The formulas are: (a + b)^2 = a^2 + 2ab + b^2 and (a - b)^2 = a^2 - 2ab + b^2. The result always has three terms: the square of the first term, twice the product of both terms (with appropriate sign), and the square of the second term. These formulas are among the most frequently used identities in algebra because they appear in completing the square, deriving the quadratic formula, computing variances in statistics, and many geometric applications.

How is the square of a binomial used in completing the square?

Completing the square is a technique that rewrites a quadratic expression ax^2 + bx + c into the form a(x - h)^2 + k, which reveals the vertex of the parabola. The process uses the square of a binomial formula in reverse. Starting with x^2 + bx, you add and subtract (b/2)^2 to create a perfect square trinomial: x^2 + bx + (b/2)^2 = (x + b/2)^2. For example, x^2 + 6x + 5 becomes (x^2 + 6x + 9) - 9 + 5 = (x + 3)^2 - 4. This technique is essential for deriving the quadratic formula, converting quadratic functions to vertex form, and solving certain integral problems in calculus.

What is a perfect square trinomial and how do you identify one?

A perfect square trinomial is a three-term polynomial that results from squaring a binomial. It has the form a^2 + 2ab + b^2 or a^2 - 2ab + b^2. To identify one, check three conditions: the first and last terms must be perfect squares (both positive), and the middle term must equal plus or minus twice the product of the square roots of the first and last terms. For example, 9x^2 + 30x + 25 is a perfect square trinomial because 9x^2 = (3x)^2, 25 = 5^2, and 30x = 2(3x)(5). Therefore, 9x^2 + 30x + 25 = (3x + 5)^2. Recognizing perfect square trinomials speeds up factoring significantly.

How does the binomial theorem generalize the square of a binomial?

The binomial theorem extends the square formula to any positive integer power n: (a + b)^n = sum from k=0 to n of C(n,k) * a^(n-k) * b^k. For n=2, this gives C(2,0)a^2 + C(2,1)ab + C(2,2)b^2 = a^2 + 2ab + b^2, recovering the square formula. For n=3 (cube), it gives a^3 + 3a^2b + 3ab^2 + b^3. The coefficients C(n,k) are binomial coefficients found in Pascal triangle. Each row of Pascal triangle gives the coefficients for the next power: row 2 is 1,2,1 (square), row 3 is 1,3,3,1 (cube), row 4 is 1,4,6,4,1 (fourth power), and so on.

How is the square of a binomial applied in statistics?

In statistics, the square of a binomial appears in the variance formula. The variance of a random variable X is E[(X - mu)^2], which expands to E[X^2] - 2*mu*E[X] + mu^2 = E[X^2] - mu^2. This is the computational formula for variance: Var(X) = E[X^2] - (E[X])^2. The binomial expansion also appears in the formula for the variance of a sum: Var(X + Y) = Var(X) + 2Cov(X,Y) + Var(Y), which mirrors (a + b)^2 = a^2 + 2ab + b^2 where the middle term involves the covariance. Understanding these algebraic connections helps statisticians derive formulas and simplify complex probability calculations.

Can the square of a binomial be visualized geometrically?

Yes, the square of a binomial has an elegant geometric interpretation using area. Draw a square with side length (a + b). Divide each side into segments of length a and b, creating a grid of four regions inside the square. The top-left region is an a-by-a square (area = a^2), the bottom-right is a b-by-b square (area = b^2), and the remaining two regions are a-by-b rectangles (each with area = ab). The total area is a^2 + ab + ab + b^2 = a^2 + 2ab + b^2, which equals (a + b)^2. This visual proof requires no algebra and makes the formula immediately intuitive. Similar geometric arguments extend to the cube of a binomial using volumes.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy