Sum of Series Calculator

Closed-form formulas add up common series instantly. The sum of the first n natural numbers is n(n + 1) ÷ 2, so 1 + 2 + … + 100 = 5,050. The calculator also gives sums of squares, cubes, odd numbers, even numbers and powers of 2.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is the Sum of a Series?

A series is the sum of the terms of a sequence. Adding 1 + 2 + 3 + … + 100 one number at a time would be tedious, but a closed-form formula gives the answer in one step. These formulas are among the most useful results in elementary mathematics, and they are the basis for finding totals in algorithms, finance and physics.

This calculator covers six classic series. For each one, it applies the formula and confirms the answer by direct addition. Knowing the formulas also lets you recognise patterns: the sum of the first n odd numbers is always a perfect square, and the sum of cubes is the square of the sum of natural numbers.

The Six Series

SeriesFormulan = 10
1 + 2 + 3 + … + nn(n + 1) ÷ 255
1² + 2² + … + n²n(n + 1)(2n + 1) ÷ 6385
1³ + 2³ + … + n³[n(n + 1) ÷ 2]²3,025
1 + 3 + 5 + … + (2n − 1)n²100
2 + 4 + 6 + … + 2nn(n + 1)110
1 + 2 + 4 + … + 2ⁿ⁻¹2ⁿ − 11,023

Why These Formulas Work

The most famous is Gauss’s trick for the natural numbers. Write the sum forwards and backwards and add:

S = 1 + 2 + 3 + … + n S = n + (n − 1) + … + 1 2S = n × (n + 1) → S = n(n + 1) ÷ 2
  • Each of the n pairs adds to n + 1, so twice the sum is n(n + 1).
  • The sum of odd numbers n² comes from adding successive L-shaped layers of dots around a square.
  • The sum of cubes equals (1 + 2 + … + n)², which is the square of the natural-number sum.
  • The sum of powers of 2 is a geometric series: 1 + 2 + 4 + … + 2ⁿ⁻¹ = (2ⁿ − 1) ÷ (2 − 1).

For general arithmetic and geometric series, see the arithmetic sequence calculator and the geometric sequence calculator.

How Is It Calculated? Worked Examples

1 + 2 + … + 100

  1. n = 100.
  2. n(n + 1) ÷ 2 = 100 × 101 ÷ 2 = 5,050.
  3. The calculator confirms this by adding all 100 numbers directly.

The Same Formulas at n = 10

  • Squares: 10 × 11 × 21 ÷ 6 = 385 (1 + 4 + 9 + 16 + 25 + 36 + 49 + 64 + 81 + 100).
  • Cubes: (10 × 11 ÷ 2)² = 55² = 3,025.
  • Odd numbers: 10² = 100.
  • Even numbers: 10 × 11 = 110, which is exactly double the natural-number sum of 55.
  • Powers of 2: 2¹⁰ − 1 = 1,023 (1 + 2 + 4 + … + 512).

A Practical Use

If you stack logs with 20 in the bottom row and one fewer in each row above, the total is 20 + 19 + … + 1 = 20 × 21 ÷ 2 = 210 logs. And the number of handshakes among 11 people, each pair once, is 10 + 9 + … + 1 = 55.

How to Use This Sum of Series Calculator

  1. Enter the number of terms n.
  2. Choose the series: natural numbers, squares, cubes, odd numbers, even numbers or powers of 2.
  3. Read the sum, the closed-form formula used and the confirmation by direct addition.

Where Series Sums Are Used

  • Computer science: analysing loops. A nested loop that does 1 + 2 + … + n steps runs in about n²/2 operations.
  • Counting problems: handshakes, tournament games and stacked objects.
  • Physics and engineering: summing discrete contributions such as moments of inertia of layered bodies.
  • Statistics: formulas for variance of the first n integers use the sum of squares.
  • Education: classic examples in induction proofs.

What Are the Most Common Mistakes With the Sum of Series Calculator?

  • Using the wrong formula. The sum of n squares is not (n(n + 1)/2)²; that is the sum of cubes.
  • Off-by-one errors. Odd numbers 1 to (2n − 1) has n terms, and powers of 2 up to 2ⁿ⁻¹ has n terms.
  • Starting from 0 or from 2. The formulas assume the series begins at 1.
  • Non-integer n. The number of terms must be a whole number.
  • Overflow for huge n. The sum of cubes grows like n⁴ and powers of 2 like 2ⁿ, so very large inputs exceed ordinary precision.
  • Applying them to other series. Different patterns need their own formulas.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the sum of the first n natural numbers?

n(n + 1) ÷ 2. For n = 100 it is 5,050.

What is the sum of the first n odd numbers?

n². For example, 1 + 3 + 5 + 7 + 9 = 25 = 5².

What is the sum of the first n squares?

n(n + 1)(2n + 1) ÷ 6. For n = 10 it is 385.

What is the sum of the first n cubes?

[n(n + 1) ÷ 2]², the square of the sum of the first n natural numbers. For n = 10 it is 3,025.

How did Gauss add 1 to 100 so quickly?

He paired the first and last terms: 1 + 100, 2 + 99, and so on. There are 50 pairs, each summing to 101, giving 5,050.

What is the sum of 1 + 2 + 4 + … + 2ⁿ⁻¹?

2ⁿ − 1. It is a geometric series with ratio 2, and for n = 10 it equals 1,023.