Sum of Natural Numbers Formula — Proof & Examples

#Math Formula
TL;DR
The sum of natural numbers formula is ∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2} — the cleanest closed-form result in elementary mathematics, discovered by an eight-year-old in his school classroom. This article gives the formula, two proofs (pairing and induction), three worked examples spanning Quick to Stretch, the related sum-of-squares and sum-of-cubes identities, and the most common slip-ups.
BT
Bhanzu TeamLast updated on June 1, 20268 min read

A Story That Begins With a Bored Schoolboy

When his teacher told the class to add the numbers 11 to 100100 to keep them busy, eight-year-old Carl Friedrich Gauss had the answer in under a minute.

The sum of natural numbers formula — also called the Gauss sum or the triangular number formula — is:

∑k=1nk=1+2+3+…+n=n(n+1)2.\sum_{k=1}^{n} k = 1 + 2 + 3 + \ldots + n = \frac{n(n+1)}{2}.

For n=100n = 100, that gives 100⋅1012=5050\frac{100 \cdot 101}{2} = 5050 — the answer the young Gauss called out before the chalk dust had settled.

The Formula

For any positive integer nn:

;Sn=∑k=1nk=1+2+3+…+n=n(n+1)2;\boxed{;S_n = \sum_{k=1}^{n} k = 1 + 2 + 3 + \ldots + n = \frac{n(n+1)}{2};}

The companion identities:

∑k=1nk2=n(n+1)(2n+1)6(sum of first n squares)\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6} \quad\text{(sum of first $n$ squares)}

∑k=1nk3=(n(n+1)2)2(sum of first n cubes — equals the square of the sum of first n integers)\sum_{k=1}^{n} k^3 = \left(\frac{n(n+1)}{2}\right)^2 \quad\text{(sum of first $n$ cubes — equals the square of the sum of first $n$ integers)}

The cube-sum identity is the most elegant: ∑k3=(∑k)2\sum k^3 = (\sum k)^2. No other power obeys such a clean relationship.

Quick facts.

  • Closed form: Sn=n(n+1)2S_n = \frac{n(n+1)}{2}.

  • Also called: the nnth triangular number TnT_n.

  • Grade introduced: CCSS-M HSA-SSE.B.4; NCERT Class 10 Chapter 5 — Arithmetic Progressions.

  • First few values: T1=1,T2=3,T3=6,T4=10,T5=15,T6=21,T7=28,T8=36,T9=45,T10=55T_1 = 1, T_2 = 3, T_3 = 6, T_4 = 10, T_5 = 15, T_6 = 21, T_7 = 28, T_8 = 36, T_9 = 45, T_{10} = 55.

  • Special case of AP sum: Sn=n2[2a+(n−1)d]S_n = \frac{n}{2}[2a + (n-1)d] with a=1,d=1a = 1, d = 1.

Two Proofs

Proof 1 — Pairing (Gauss's method).

Write the sum forwards and backwards on two lines:

S=1+2+3+…+(n−1)+nS = 1 + 2 + 3 + \ldots + (n-1) + n S=n+(n−1)+(n−2)+…+2+1S = n + (n-1) + (n-2) + \ldots + 2 + 1

Add term-by-term. Every column sums to n+1n + 1. There are nn columns, so:

2S=n(n+1).2S = n(n+1).

Divide by 22: S=n(n+1)2S = \frac{n(n+1)}{2}.

Proof 2 — Induction.

Base case (n=1n = 1): S1=1=1⋅22=1S_1 = 1 = \frac{1 \cdot 2}{2} = 1. ✓

Inductive step. Assume Sn=n(n+1)2S_n = \frac{n(n+1)}{2}. Then:

Sn+1=Sn+(n+1)=n(n+1)2+(n+1)=n(n+1)+2(n+1)2=(n+1)(n+2)2.S_{n+1} = S_n + (n+1) = \frac{n(n+1)}{2} + (n+1) = \frac{n(n+1) + 2(n+1)}{2} = \frac{(n+1)(n+2)}{2}.

This is the formula with nn replaced by n+1n+1. The pattern propagates. By induction, Sn=n(n+1)2S_n = \frac{n(n+1)}{2} for all positive integers.

The pairing proof is the one a child can grasp. The induction proof is what an algebraist would write.

Three Worked Examples, From Quick to Stretch

Quick. Find 1+2+3+…+101 + 2 + 3 + \ldots + 10.

S10=10⋅112=55.S_{10} = \frac{10 \cdot 11}{2} = 55.

Final answer: 5555.

Standard (Wrong-Path-First). Find 50+51+52+…+10050 + 51 + 52 + \ldots + 100.

Wrong path. A student in our McKinney TX Grade 9 cohort once wrote: "S100=100⋅1012=5050S_{100} = \frac{100 \cdot 101}{2} = 5050." That's the sum from 11 to 100100, not from 5050 to 100100. The student substituted into the formula without checking that the formula assumes the sum starts at 1.

Correct. Use subtraction:

∑k=50100k=∑k=1100k−∑k=149k=100⋅1012−49⋅502=5050−1225=3825.\sum_{k=50}^{100} k = \sum_{k=1}^{100} k - \sum_{k=1}^{49} k = \frac{100 \cdot 101}{2} - \frac{49 \cdot 50}{2} = 5050 - 1225 = 3825.

Final answer: 50+51+…+100=382550 + 51 + \ldots + 100 = 3825.

Cross-check using the AP formula directly: n=51n = 51 terms, first term 5050, last term 100100, so S=512(50+100)=51⋅1502=3825S = \frac{51}{2}(50 + 100) = \frac{51 \cdot 150}{2} = 3825. ✓

Stretch. Find nn such that the sum 1+2+3+…+n=2101 + 2 + 3 + \ldots + n = 210.

Set n(n+1)2=210\frac{n(n+1)}{2} = 210. Then n2+n=420n^2 + n = 420, so n2+n−420=0n^2 + n - 420 = 0.

Quadratic formula: n=−1±1+16802=−1±16812=−1±412n = \frac{-1 \pm \sqrt{1 + 1680}}{2} = \frac{-1 \pm \sqrt{1681}}{2} = \frac{-1 \pm 41}{2}.

Positive root: n=402=20n = \frac{40}{2} = 20.

Final answer: n=20n = 20. Check: 20⋅212=210\frac{20 \cdot 21}{2} = 210. ✓

Where the Formula Lives — Beyond Counting

The sum-of-naturals formula isn't a one-off classroom trick — it sits at the foundation of several mathematical structures.

  • Handshakes in a room. The number of distinct handshakes between n+1n+1 people is (n+12)=n(n+1)2\binom{n+1}{2} = \frac{n(n+1)}{2} — exactly the sum-of-naturals. The two formulas describe the same combinatorial fact.

  • Algorithm complexity. Bubble sort and insertion sort perform n(n−1)2\frac{n(n-1)}{2} comparisons in the worst case — a Gauss-sum cousin one position offset.

  • Bowling-pin arrangements. A standard 10-pin bowling rack is T4=4⋅52=10T_4 = \frac{4 \cdot 5}{2} = 10 pins. Snooker triangular racks are T5=15T_5 = 15 balls. The triangular number is literally the shape it counts.

  • Stacking — pyramids and balls. The sum of the first nn triangular numbers gives the tetrahedral numbers Tn(3)=n(n+1)(n+2)6T_n^{(3)} = \frac{n(n+1)(n+2)}{6} — the number of cannonballs you can stack in a triangular pyramid nn layers high. The recursion bottoms out in the Gauss sum.

  • Discrete probability. The expected number of trials to see all faces of an nn-sided die at least once (the coupon collector problem) is n⋅Hnn \cdot H_n, where HnH_n is the nnth harmonic number. Bounds on this expectation are commonly proven using the Gauss sum as an intermediate step.

The formula is a single rational expression. It threads through combinatorics, computer science, and probability.

Pitfalls to Avoid With the Gauss Sum

1. Forgetting the formula assumes the sum starts at 11.

Where it slips in: Problems phrased "sum of natural numbers from 5050 to 100100."

Don't do this: Plug 100100 into n(n+1)2\frac{n(n+1)}{2} and call that the answer to "sum from 5050 to 100100."

The correct way: For sums that don't start at 11, compute the cumulative sum and subtract: ∑k=abk=b(b+1)2−(a−1)a2\sum_{k=a}^{b} k = \frac{b(b+1)}{2} - \frac{(a-1)a}{2}. Or use the AP formula S=n2(first+last)S = \frac{n}{2}(\text{first} + \text{last}).

2. Mixing nn with the count of terms when the sum doesn't start at 11.

Where it slips in: Same family of problems as Mistake 1.

Don't do this: Take nn to be the largest term in a range that doesn't start at 11.

The correct way: For a sum from aa to bb, the count of terms is b−a+1b - a + 1, not bb. For 5050 to 100100, the count is 5151, not 100100 or 5050. Roughly five out of every ten Grade 9 students in our McKinney TX cohort make this counting slip on the first attempt — the fix is to write the count out explicitly before plugging in.

3. Using the formula on non-integer "natural numbers."

Where it slips in: Word problems where the variable could be fractional ("sum of values from 11 to nn where n=7.5n = 7.5").

Don't do this: Plug 7.57.5 into n(n+1)2\frac{n(n+1)}{2}.

The correct way: The formula assumes nn is a positive integer. If the problem produces a non-integer nn, the problem statement is asking something else — re-read it. Continuous analogues exist (the integral ∫0xt,dt=x22\int_0^x t , dt = \frac{x^2}{2}), but they are not the same as the discrete sum.

4. Mixing the Gauss sum with the sum-of-squares formula — the Apollo Guidance Computer lesson.

Where it slips in: Problems that switch between ∑k\sum k, ∑k2\sum k^2, ∑k3\sum k^3 in succession.

Don't do this: Apply n(n+1)2\frac{n(n+1)}{2} to a sum of squares.

The correct way: ∑k=n(n+1)2\sum k = \frac{n(n+1)}{2}. ∑k2=n(n+1)(2n+1)6\sum k^2 = \frac{n(n+1)(2n+1)}{6}. ∑k3=(n(n+1)2)2\sum k^3 = \left(\frac{n(n+1)}{2}\right)^2. The Apollo Guidance Computer — the onboard computer that landed Neil Armstrong on the moon — used pre-computed lookup tables for sums of powers to save processor cycles. Mixing the formulas in flight code would have been catastrophic. The principle holds in classroom too: each formula is its own object.

The famous "1202 alarm" during Apollo 11's descent (NASA's own account — Aldrin and Armstrong landed despite repeated computer alarms) was a CPU overload, not a sum-formula error, but the spirit applies: numerical formulas demand the right formula for the right quantity.

A Story About Gauss and the Schoolmaster

In 1786, when Carl Friedrich Gauss (1777–1855, Germany) was eight or nine years old, his arithmetic teacher in Brunswick — a man named Büttner — set the class to add the numbers 11 to 100100. The exercise was intended to keep the class occupied for an hour while Büttner attended to other matters.

Gauss put his slate on the teacher's desk within minutes. "Ligget se," he said in his local dialect — "There it lies." On the slate was a single number: 50505050.

He had paired 1+100=1011 + 100 = 101, 2+99=1012 + 99 = 101, 3+98=1013 + 98 = 101, and so on — fifty pairs, each summing to 101101. 50⋅101=505050 \cdot 101 = 5050.

Büttner was reportedly stunned. He sent away to Hamburg for the most advanced arithmetic book he could find, gave it to the boy, and Gauss soon outgrew his teacher's ability to teach him. By age 19, Gauss had proven the constructibility of the regular 17-gon — a problem unsolved for 20002000 years. By age 24, he had published Disquisitiones Arithmeticae and become Europe's leading mathematician.

The pairing trick is now the standard derivation of the sum-of-naturals formula taught to every student worldwide. The boy who invented it ended up on the German 10-mark note.

Conclusion

  • The sum of natural numbers formula for the first nn positive integers is Sn=n(n+1)2S_n = \frac{n(n+1)}{2}.

  • The pairing proof (Gauss's method) is short — write the sum twice, once forwards and once backwards, and add.

  • The formula assumes the sum starts at 11; for other ranges, subtract two Gauss sums or use the general AP formula.

  • The sum of the first nn cubes equals the square of the sum: ∑k3=(∑k)2\sum k^3 = (\sum k)^2 — a uniquely clean identity.

  • The most common mistake is forgetting that the formula counts from 11 — always check the lower bound first.

Quick Self-Check — Try These

Try these before moving on. If you slip on starting-point, come back to Mistake 1.

  1. Find 1+2+3+…+501 + 2 + 3 + \ldots + 50.

  2. Find 30+31+32+…+8030 + 31 + 32 + \ldots + 80.

  3. For what nn does n(n+1)2=1275\frac{n(n+1)}{2} = 1275? (Hint: solve a quadratic.)

Want a live Bhanzu trainer to walk through more sum of natural numbers formula problems with your child? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the sum of natural numbers from 1 to 100?
100⋅1012=5050\frac{100 \cdot 101}{2} = 5050.
What is the formula for the sum of the first n natural numbers?
∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2}.
Is the sum of the first n natural numbers always an integer?
Yes. n(n+1)n(n+1) is always even (one of n,n+1n, n+1 is even), so n(n+1)2\frac{n(n+1)}{2} is always an integer.
How do I find the sum of natural numbers from a to b?
∑k=abk=b(b+1)2−(a−1)a2\sum_{k=a}^{b} k = \frac{b(b+1)}{2} - \frac{(a-1)a}{2}. Or use the AP formula n2(first+last)\frac{n}{2}(\text{first}+\text{last}) where n=b−a+1n = b - a + 1.
Are natural numbers the same as whole numbers?
In some conventions (most US texts and NCERT), natural numbers are 1,2,3,…1, 2, 3, \ldots — positive integers only. In others (most European set-theory texts), natural numbers include 00. The formula works the same way starting from 11.
What is the sum of natural numbers from 1 to infinity?
The series 1+2+3+…1 + 2 + 3 + \ldots diverges — there is no finite sum. (A separate identity, −112-\frac{1}{12}, appears in the Riemann zeta-function context, but that's regularization, not literal summation.)
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →