from a handpicked tutor in LIVE 1to1 classes
Sum of Perfect Squares Formula
Before knowing what is the sum of the perfect squares formula, first, let us recall what are perfect squares. A perfect square is a number that can be written as the square of a number. 1, 4, 9, 16, 25, 36, etc are some perfect squares as they can be expressed as 1^{2}, 2^{2}, 3^{2}, 4^{2}, 5^{2}, 6^{2}, etc respectively. The sum of perfect squares formula is used to find the sum of two or more perfect squares without adding them manually.
What Is the Sum of Perfect Squares Formula?
We have two types of formulas for finding the sum of perfect squares. One is the formula to find the sum of two perfect squares, the other formula is to find the sum of the first "n" perfect squares.

The formula for finding the sum of two perfect squares is derived from one of the algebraic identities, (a + b)^{2} = a^{2} + 2ab + b^{2}, which is:
a^{2} + b^{2} = (a + b)^{2}  2ab 
The formula for finding the sum of the squares for first "n" natural numbers is:
1^{2} + 2^{2} + 3^{2} + ... + n^{2} = [ n (n + 1) (2n + 1) ] / 6
Let us see the applications of the sum of perfect squares formulas in the following section.
Examples Using Sum of Perfect Squares Formula
Example 1: Find the sum of squares of 101 and 99.
Solution:
To find: The sum of squares of 101 and 99. i.e., 101^{2} + 99^{2}.
Using the sum of perfect squares formula:
a^{2} + b^{2} = (a + b)^{2}  2ab
Substitute a = 101 and b = 99 in the above formula:
101^{2} + 99^{2} = (101 + 99)^{2}  2(101)(99)
= (200)^{2}  2 (9999)
= 40000  19998
= 20,002
Answer: 101^{2} + 99^{2 }= 20,002.
Example 2: Find the sum of squares of the first 25 natural numbers.
Solution:
To find: The sum of the first 25 natural numbers.
Substitute n = 25 in the sum of the perfect squares formula of the first n natural numbers:
1^{2} + 2^{2} + 3^{2} + ... + n^{2} = [ n (n + 1) (2n + 1) ] / 6
1^{2} + 2^{2} + 3^{2} + ... + 25^{2} = [ 25 (25 + 1) (2(25) + 1) ] / 6
= ( 25 × 26 × 51 ) / 6
= 5,525
Answer: The sum of the first 25 natural numbers = 5,525.
visual curriculum