Sum of Squares of First n Natural Numbers with Formula

Sum of Squares of First n Natural Numbers is the total obtained by adding 1², 2², 3² and so on up to n². The standard formula is n(n + 1)(2n + 1) ÷ 6. This page explains the formula, calculation steps, useful shortcuts, range-based problems and common examples.

On this page

What Is the Sum of Squares of the First n Natural Numbers?

The sum of squares of the first n natural numbers is 1² + 2² + 3² + ... + n², and it equals n(n + 1)(2n + 1) ÷ 6.

Here, n is a positive integer and the natural numbers are taken as 1, 2, 3, ..., n. For n = 5, the sum is 1² + 2² + 3² + 4² + 5² = 1 + 4 + 9 + 16 + 25 = 55. The same result follows from 5 × 6 × 11 ÷ 6 = 55.

Sum of Squares of First n Natural Numbers Video Lessons

Watch short topic-wise lessons for quick revision.

1 Lesson
Lesson 1 of 1 Quick Revision

Special Sums: n, n² and n³ Formulas

Learn the formulas for the sums of the first n natural numbers, their squares, and their cubes, with a clear understanding of how these special summations are represented.

Continue with more lessons and practice in PrepShots.Watch More in App - Start ₹1 Trial →
More Sum of Squares of First n Natural Numbers Lessons Scroll to explore →

Sum of Squares of First n Natural Numbers Formula & Tricks

Important Formulas

Sum of squares formula
1² + 2² + 3² + ... + n² = n(n + 1)(2n + 1) ÷ 6

Use this formula when the terms are the squares of all natural numbers from 1 through n.

Sum of squares from a to b
a² + (a + 1)² + ... + b² = [b(b + 1)(2b + 1) − (a − 1)a(2a − 1)] ÷ 6

Find the sum up to b and subtract the sum up to a − 1.

Quick Tricks

Cancel factors before multiplying

In n(n + 1)(2n + 1) ÷ 6, divide one or more factors by 2 and 3 before multiplication whenever possible. This reduces arithmetic errors.

Example: For n = 20, 20 × 21 × 41 ÷ 6 = (20 ÷ 2) × (21 ÷ 3) × 41 = 10 × 7 × 41 = 2870.
Use subtraction for a consecutive range

For squares beginning at a number greater than 1, calculate the total up to the last number and subtract the total up to the number before the first term.

Example: 6² + 7² + 8² = (1² + ... + 8²) − (1² + ... + 5²) = 204 − 55 = 149.

Sum of Squares of First n Natural Numbers Concepts

Applying the Formula for a Given n

Substitute the value of n in n(n + 1)(2n + 1) ÷ 6 and simplify by cancellation before multiplication.

For n = 10, the sum is 10 × 11 × 21 ÷ 6. Since 10 ÷ 2 = 5 and 21 ÷ 3 = 7, the result is 5 × 11 × 7 = 385.

Example: 1² + 2² + ... + 10² = 385.

Sum of Squares Over a Restricted Range

The sum of squares from a through b is the sum up to b minus the sum up to a − 1.

Let S(k) = k(k + 1)(2k + 1) ÷ 6. Then a² + (a + 1)² + ... + b² = S(b) − S(a − 1). This method avoids adding every square separately.

Example: 7² + 8² + 9² = S(9) − S(6) = 285 − 91 = 194.

Difference Between Consecutive Square Sums

The difference between the sum up to n and the sum up to n − 1 is n².

If S(n) = 1² + 2² + ... + n², then S(n) − S(n − 1) = n². This follows because the two sums contain all the same terms except n².

Example: S(8) − S(7) = 204 − 140 = 64 = 8².

Related Standard Sums

The square-sum formula is different from the formulas for the sum of natural numbers and the sum of cubes.

The three commonly used formulas are: 1 + 2 + ... + n = n(n + 1) ÷ 2; 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6; and 1³ + 2³ + ... + n³ = [n(n + 1) ÷ 2]².

Example: For n = 4, the three sums are 10, 30 and 100 respectively.

Sum of Squares of First n Natural Numbers Data Table

Use the structured data below while following the explanation and examples.

Small Values of the Square Sum

Values of 1² + 2² + ... + n² for the first five positive integers.

n Formula calculation Sum of squares
1 1 × 2 × 3 ÷ 6 1
2 2 × 3 × 5 ÷ 6 5
3 3 × 4 × 7 ÷ 6 14
4 4 × 5 × 9 ÷ 6 30
5 5 × 6 × 11 ÷ 6 55

Note: The sequence of square sums is 1, 5, 14, 30, 55.

Learn more concepts on PrepShots

Start ₹1 Trial →

Practice Sum of Squares of First n Natural Numbers Questions

Practise published questions related to this topic.

Want more practice questions?

Practice in App →

Sum of Squares of First n Natural Numbers Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Revision Points

Key facts for the sum of squares of the first n natural numbers.

  • 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6.
  • For a range from a to b, use S(b) − S(a − 1).
  • Cancel factors with 2 and 3 before multiplying the three factors.
  • S(n) − S(n − 1) = n².
  • Do not confuse the square sum with n(n + 1) ÷ 2, which is the sum of natural numbers.
  • For n = 0, the sum is 0; the usual natural-number formula is generally applied for positive integer n.

Sum of Squares of First n Natural Numbers FAQs

What is the sum of squares of the first n natural numbers formula?

The formula is 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6.

What is the sum of the squares of the first 10 natural numbers?

Use 10 × 11 × 21 ÷ 6 = 385. Therefore, 1² + 2² + ... + 10² = 385.

What is the sum of squares from 6 to 10?

Calculate S(10) − S(5) = 385 − 55 = 330. Thus, 6² + 7² + 8² + 9² + 10² = 330.

How is the sum of squares different from the sum of the first n natural numbers?

The sum of natural numbers is n(n + 1) ÷ 2, while the sum of their squares is n(n + 1)(2n + 1) ÷ 6.

What is the sum of squares of the first 20 natural numbers?

20 × 21 × 41 ÷ 6 = 2870. Hence, the sum is 2870.

If S(n) is the sum of squares up to n, what is S(n) − S(n − 1)?

S(n) − S(n − 1) = n² because the two sums differ only by the final term n².

Continue learning Sum of Squares of First n Natural Numbers on PrepShots

Continue on PrepShots