The Sum of the Years' Digits Is Gauss Doing Your Depreciation
Published 11/13/2026 · 3 min read · Finance calculators
Adding the whole numbers from 1 to n needs no addition: multiply the count by the average of the first and last, which for 1 to 100 gives 50 times 101, or 5050. The story says Gauss found this at seven years old to escape a punishment exercise. Accountants use the same identity every year under a different name: sum-of-the-years'-digits depreciation writes off an asset in shares of that total, so a five-year asset divides by 15 and takes 5/15 in the first year, 4/15 in the second and 1/15 in the last. On $15,000 that is $5,000 falling to $1,000, front-loaded on purpose.
1+2+3+4+5 is 15, so a $15,000 asset writes off $5,000 in year one and $1,000 in year five. The same trick sums 47 to 153 without adding anything.
Why front-loading is the point
An asset loses most of its value early and needs least maintenance early, so a charge that starts high and falls matches the economics better than a flat line does. It also moves tax deductions forward, which is worth real money at any positive discount rate even though the total deducted is identical. That is the whole argument for accelerated methods, and it is why tax authorities specify which method is allowed for which asset class rather than leaving the choice open.
The same identity, without the accounting
The trick generalises to any run of consecutive numbers, not just those starting at one. Summing 47 to 153 means 107 terms whose first and last average to 100, so the total is 10 700 without a single addition. Pairing the ends is the whole method: the smallest with the largest, the second smallest with the second largest, and every pair adds to the same thing. Once seen it is hard to unsee, and it turns a class of tedious sums into a multiplication anybody can do in their head.
| Year | Sum of years' digits | Straight line |
|---|---|---|
| 1 | $5,000 | $3,000 |
| 3 | $3,000 | $3,000 |
| 5 | $1,000 | $3,000 |
Worked with our own calculator
Sum of positive integers calculator
Given
- Starting number n₁
- 1
- Ending number n₂
- 50
Result
- Sum
- 1,275
- Count of numbers
- 50
- Average
- 25.5
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- How does it compare with declining balance?
- Declining balance takes a fixed percentage of what is left, so the charge falls geometrically and never quite reaches zero, which is why those schemes switch to straight line near the end. Sum-of-the-years'-digits falls in equal steps and lands exactly on zero in the final year with no switch required. The first front-loads harder; the second is tidier to close out. Both write off the same total, and the difference lives entirely in which years the deduction lands.
- Is the Gauss schoolroom story true?
- It comes from a memoir written decades later by someone who heard Gauss tell it, and the details vary between retellings — some have the numbers 1 to 100, others a harder arithmetic series. The identity itself is far older than Gauss and appears in ancient sources, so the anecdote is about a child rediscovering something rather than inventing it. That is the more useful version anyway: the trick is available to anyone who thinks about pairing the ends before starting to add.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?