Back to blog
FundamentalsJanuary 22, 2024 10 min read

Compounding, Explained from First Principles

The one equation that runs a surprising amount of the world — demystified with clean math, worked examples, and the practical conclusions nobody tells you when you're twenty-two.

HJ
Hasan Javed
senior full-stack & ai engineer
FUNDAMENTALS · COMPOUNDING · THE ONE EQUATION10×0 yrs30 yrs$100,627$34,000FV = PV (1 + r)n$10K · 8% · 30 years → $100KcompoundingpremiumTIME > RATE > AMOUNT

Einstein almost certainly never called compound interest the eighth wonder of the world, but the misattribution persists because the statement is nearly true. Compounding is the reason a small sum saved in your twenties beats a large sum saved in your forties. It is the reason credit-card debt is ruinous. It is the reason nobody gets rich slowly enough to notice. Here is the math, cleanly, with the practical conclusions that follow.

1 · The formula

The equation that runs everything:

in wordsFuture Value = Starting Amount × (1 + Rate)^Years
FV (future value) is what you end up with · PV (present value) is what you start with · r is the rate of return per period (e.g. 0.08 for 8%) · n is how many periods you let it compound.

That is the whole thing. If you understand what each letter means, you understand compounding. The rest of this essay is intuition.

2 · A worked example

Suppose you put into an investment that earns 8% a year, and you leave it alone for thirty years. The arithmetic:

in words$10,000 grown for 30 years at 8% per year ≈ $100,627
One deposit, no additions, three decades. The starting amount roughly multiplies by ten — entirely because of the exponent in the formula above.

Ten times the original stake, from one deposit, without adding another dollar. The phrase “time in the market beats timing the market” — which you will hear many times if you spend any time around investors — comes from looking at that equation and noticing that is the most powerful lever in it.

3 · Why time matters more than rate

To make the point explicit, three scenarios. Same deposit. Three different time-and-rate combinations:

Three very different paths to roughly the same number. The conservative investor with extra time beats the aggressive investor with less.

That is counter-intuitive the first time you see it. The conservative investor earning half the rate ends up ahead — because they started earlier and compounded longer. Compounding is multiplicative, not additive. Extra years matter more than extra percentage points.

4 · Why time matters more than amount

Same principle, a different angle. Consider two investors:

  • Ana saves a year from age 22 to 32, then stops. Ten years of contributions, then nothing for thirty more years. All of it compounds at 8%.
  • Ben saves a year from age 32 to 62. Thirty years of contributions — three times what Ana did — at the same 8%.

Ana, at 62, has about . Ben, at 62, has about . Ana contributed fifty thousand dollars. Ben contributed one hundred and fifty thousand. Ana ends with more. That is the compounding discount for starting a decade earlier, and it is almost always worth more than the nominal rate of return you would chase by waiting for “the right moment.”

5 · Continuous compounding and the role of e

The formula assumes interest is credited once per period. In practice, some instruments compound more frequently — monthly, daily, continuously. The general form:

in wordsFuture Value = Starting Amount × (1 + Rate ÷ Periods-per-Year)^(Periods-per-Year × Years)
m is how many times per year interest gets added — 12 for monthly, 365 for daily, ∞ for continuous. The smaller each slice of the rate, the more often it compounds, the more you end up with.

Take the limit as and the formula collapses into the most elegant form of all:

in wordsFuture Value = Starting Amount × e^(Rate × Years)
Continuous compounding — interest credited every instant. The constant e ≈ 2.71828 is the natural base of exponential growth, and historically it was discovered by asking exactly this question.

This is where the mathematical constant comes from, historically. Jakob Bernoulli derived it in 1683 while trying to answer a compound-interest question about a bank account. You will see everywhere in finance, physics, biology, and probability. It is, at its root, the number that tells you what it means for something to grow at its own rate, continuously.

6 · The dark side — compounding against you

The same equation, run with a negative sign or applied to debt, is merciless. Three examples:

Credit-card debt

A credit card charging 22% APR, compounded monthly, doubles your balance in about three years and three months. A balance carried for a decade without payments becomes roughly . Compounding has no moral commitment; it works equally well as a tool of destruction.

Inflation

If prices rise at 3% a year, the purchasing power of a dollar held in cash halves in about twenty-four years. Money under the mattress compounds against you. This is the reason “cash is safe” is not quite true — it is only safe in nominal terms.

Fees

A 1% annual fund fee does not sound like much. Over forty years, it consumes roughly 33% of the terminal wealth of a portfolio that would otherwise have compounded at 7%. The low-cost index fund is, in that sense, a mathematical consequence of the compounding formula rather than an opinion.

7 · The Rule of 72

A shortcut worth memorising. To estimate how long it takes for money to double at a given rate, divide 72 by the rate:

in wordsYears to Double ≈ 72 ÷ Rate (as a whole-number percent)
The Rule of 72. At 6%, money doubles in 12 years. At 8%, in 9. At 12%, in 6. Not exact, but close enough for mental arithmetic — and a quiet superpower once memorised.

It’s an approximation of , good to within a few percent for rates between 4% and 15%. Once you have it in your head, you can estimate the power of any compounding situation without a calculator — a quiet superpower.

8 · Practical takeaways

  • Start now. The best time was ten years ago. The second best time is today.
  • Automate. Compounding only works if the money is left alone. The fastest way to make sure it is left alone is to automate deposits and hide the account.
  • Pay off high-interest debt first. Credit-card debt at 22% APR compounds against you faster than the stock market compounds for you. Clearing it is almost always the best return available.
  • Minimise fees. Every basis point of fee compounds for as long as the portfolio does. A 1% difference over 40 years is roughly a third of the final number.
  • Be patient. The exponential curve looks flat for years before it looks steep. That is the exponential curve doing exactly what exponential curves do.
The first rule of compounding: never interrupt it unnecessarily.
Charlie Munger, 2016

That is the essay. The formula is one line long. The discipline is a lifetime.

#essay#foundations#mathematics#probability
Subscribe

Get the next essay in your inbox.

Tuesday weekly. Mathematics, finance, and AI — written like an engineer, not a marketer.

Free. Weekly. One click to unsubscribe. Hosted on Buttondown.

Found this useful?
Share it — it helps the next person find this work.
XLinkedIn
the end · over to you

If this resonated, let's talk.

I help startups ship production-grade systems — fintech, AI, high-throughput APIs — from MVP to 100K users. If something here sparked an idea for your stack, I'd be glad to hear it.

Continue reading

All essays