Skip to content
OneKitly

The Sum of the Years' Digits Is Gauss Doing Your Depreciation

Published 11/13/2026 · 3 min read · Finance calculators

Camille Laurent

Camille Laurent — Finance writer at OneKitly

Tax · Personal finance

Checked against 2 sources

View profile →
In short

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.

Advertisement

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.

A five-year asset of 15 000 under two methods
YearSum of years' digitsStraight 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 →
Advertisement

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 →
ExplainerActual Cash Value: The Subtraction You Agreed To Before the LossA twelve-year-old roof that costs $20,000 to replace is worth $10,400 on a straight-line schedule. After a $2,000 deductible, an actual cash value policy pays $8,400 and a replacement cost policy pays $18,000 — same roof, same loss, $9,600 apart.ComparisonThree Schedules for One Machine: Straight Line, Declining Balance, Units of ProductionA $50,000 machine with a $5,000 salvage value and a five-year life. Straight line deducts $9,000 in year one, double declining balance $20,000, and MACRS $10,000. The lifetime total is the same; only the timing moves — and the timing is worth about $320.ComparisonBuying or Leasing Equipment: Which Number Actually Decides ItThe received wisdom is that the tax treatment of depreciation settles the buy-or-lease question. Modelled on a 60,000-euro machine over five years, it does not: it ranks third, and a long way behind. Here is the ranking, computed, and the conditions under which it flips.ExplainerThe Sum of the First n Cubes Is the Square of Their Sum1³ + 2³ + … + 10³ = 3,025, and 1 + 2 + … + 10 = 55, and 55² = 3,025. Up to a hundred the sums are 25,502,500 and 5,050, and the identity still holds exactly.ExplainerThe Sum of the First Ten Odd Numbers Is Ten Squared1 + 3 + 5 + … + 19 = 100, and the same shortcut adds 1 to 100 in one step: pair the ends, multiply by the count, halve.ExplainerTwo Per Cent and Twelve Per Cent Differ by a Factor of FifteenOver thirty terms, 2 % growth multiplies a starting value by 1.78 and 12 % multiplies it by 26.75. The gap is not six times, it is fifteen.

Related tools

Sources

Spotted a mistake in this article?