Overview

Adding long lists of numbers is slow, but closed-form formulas do it instantly. Gauss famously summed 1 to 100 as a schoolboy.

Enter n to get the sum of the first n natural numbers, squares, cubes, odds and evens.

Worked examples

InputsResult
n1001 + 2 + … + 100 = 5,0501² + 2² + … + 100² = 338,3501³ + 2³ + … + 100³ = 25,502,500Sum of first 100 odd numbers = 10,000Sum of first 100 even numbers = 10,100
Show 3 more examples
n101 + 2 + … + 10 = 551² + 2² + … + 10² = 3851³ + 2³ + … + 10³ = 3,025Sum of first 10 odd numbers = 100Sum of first 10 even numbers = 110
n501 + 2 + … + 50 = 1,2751² + 2² + … + 50² = 42,9251³ + 2³ + … + 50³ = 1,625,625Sum of first 50 odd numbers = 2,500Sum of first 50 even numbers = 2,550
n1,0001 + 2 + … + 1000 = 500,5001² + 2² + … + 1000² = 333,833,5001³ + 2³ + … + 1000³ = 250,500,250,000Sum of first 1000 odd numbers = 1,000,000Sum of first 1000 even numbers = 1,001,000

Sum of Natural Numbers, Squares and Cubes by n

With the calculator's starting values, the result is 5,050. The table shows how it changes with the n.

nSum of Natural Numbers, Squares and Cubes
601,830
803,240
100starting value5,050
1207,260
1409,870

How it works

The sum 1 + 2 + … + n equals n(n+1)/2. The sum of squares is n(n+1)(2n+1)/6, and the sum of cubes is the square of the first sum.

The formula

Σk = n(n+1)/2 · Σk² = n(n+1)(2n+1)/6 · Σk³ = (n(n+1)/2)²
nHow many terms

Practical tips

  • The sum of the first n odd numbers is always n².
  • Triangle numbers (1, 3, 6, 10…) are the results of the first formula.

Frequently asked questions

What is 1 + 2 + … + 100?

5,050.

What is the sum of the first 10 squares?

385.