The Math Behind Compound Interest and Exponential Growth

Why does $1,000 at 8% turn into $21,000 over 40 years instead of $4,200? The answer is one idea: growth that feeds on itself, and the exponential function that describes it.

By Petrus Sheya

July 26, 2026 · 6 min read

You put 1,000inanaccountpaying81,000 in an account paying 8% a year. Simple math says after 40 years you'd have your 1,000 plus 40 years of 80checks,about80 checks, about 4,200.

The real number is $21,724.

That's not a rounding error. It's a completely different kind of growth, and once you see why, you'll start noticing it everywhere: populations, epidemics, radioactive decay, viral tweets. All the same math.

That's exponential growth. And it all comes down to one difference between adding and multiplying.


What is compound interest, really?

Picture a snowball at the top of a hill. As it rolls, it picks up snow. But here's the thing: a bigger snowball has more surface area, so it picks up snow faster. The rate it grows depends on how big it already is.

That's compound interest in one sentence. Your money earns interest, and next year, you earn interest on that interest too. The account doesn't care whether a dollar came from your original deposit or from last year's gains. It just multiplies everything by the same rate.

Simple interest doesn't do this. It pays you a fixed amount every year, always based on the original deposit. It's like a snowball that only picks up snow at a fixed rate no matter how big it gets. Boring, and linear.

Same rate, same starting $1,000. One line adds interest every year, the other multiplies. Hover the chart to compare any year.

compoundsimple
Year30
Compound$10,063
Simple$3,400
Multiplier2.96x

Watch what happens as you push the rate up. The simple interest line barely tilts. The compound curve bends further and further off the ground. Same rate. Wildly different destinies.


Why does multiplying beat adding so badly?

Let's write it down. Simple interest after tt years is:

A=P(1+rt)A = P(1 + rt)

That's linear in tt. Every year adds the same fixed amount, PrPr.

Compound interest, instead, multiplies by (1+r)(1+r) every single year:

A=P(1+r)tA = P(1+r)^t

See the difference? tt is in the exponent, not just multiplied in. That single change is the entire story. A linear function adds a constant amount per step. An exponential function multiplies by a constant factor per step, and factors compound on top of each other.

Here's the snowball again, but in the language of calculus: the balance grows at a rate proportional to its current size.

dAdt=rA\frac{dA}{dt} = rA

Solve that differential equation (or just trust it, we don't need the derivation here) and you get exactly A=A0ertA = A_0 e^{rt}, the exponential function. Every "grows proportional to its own size" process ends up looking exponential, whether it's money, bacteria, or a rumor spreading through a school.


What happens if we compound more often?

So far we've compounded once a year. But banks compound monthly, daily, sometimes every second in theory. Does it matter?

With nn compounding periods per year, the formula becomes:

A=P(1+rn)ntA = P\left(1 + \frac{r}{n}\right)^{nt}

...and the natural question is what happens as nn gets huge.

Drag the dot along the curve to compound more or less often. Notice how fast the gains flatten out.

e^(rt) limit
Periods/year1
Final amount$4,661
% of limit reached94.10%

Drag that dot from "Annually" all the way to "Continuous." The final amount goes up, but less and less each time. Going from yearly to monthly gains you real money. Going from daily to continuous gains you pocket change.

That's because the sequence (1+rn)nt\left(1 + \frac{r}{n}\right)^{nt} doesn't grow without bound as nn \to \infty. It approaches a limit, and that limit is:

limn(1+rn)nt=ert\lim_{n \to \infty} \left(1 + \frac{r}{n}\right)^{nt} = e^{rt}

Here, e2.71828e \approx 2.71828, Euler's number, is defined by this exact limit. It's not a random constant someone picked. It's what falls out naturally when you ask "what if growth compounded infinitely often?" Continuous compounding is where ee comes from.


The Rule of 72: a shortcut worth testing

People love a mental-math trick for compound interest: divide 72 by the interest rate, and that's roughly how many years it takes your money to double. At 8%, that's 72/8=972 / 8 = 9 years.

Is that actually right, or just a folk rule that happens to sound convincing?

The real doubling time solves P(1+r)t=2PP(1+r)^t = 2P. Divide out PP, take the log of both sides, and solve for tt:

t=ln(2)ln(1+r)t = \frac{\ln(2)}{\ln(1+r)}

The “rule of 72” says years-to-double ≈ 72 ÷ rate. Gold ticks are the real doubling points, coral ticks are the shortcut. Watch them drift apart.

2x4x8x
Exact doubling9.01 yrs
Rule of 729.00 yrs
Error-0.01 yrs
Balance$1,000

Push the rate around and watch the gold ticks (the real doubling points) against the coral ticks (the rule of 72 guess). Around 6 to 10%, they nearly line up. That's not an accident, it's the range the rule was tuned for. Push the rate to the extremes and they drift apart.

Why 72 specifically, and not something cleaner like 69? Because for small rr, ln(1+r)r\ln(1+r) \approx r, which gives tln(2)/r0.693/rt \approx \ln(2)/r \approx 0.693/r, or "69 divided by rate." But 72 has way more divisors (1, 2, 3, 4, 6, 8, 9, 12...), which makes the mental math easier. So it's a deliberately rounded approximation to a genuinely cleaner formula, traded for convenience.


Where does all that growth actually happen?

Here's the part that surprises people most. If you look at a 40-year compound interest chart, it's tempting to think the growth is spread evenly across those 40 years. It isn't.

Slate is your principal, gold is interest earned. Play it and watch how little happens early on, and how much happens at the end.

Year0.0
Balance$1,000
Interest earned$0
% interest0%

Hit play and watch the gold region, your accumulated interest. For the first decade or two, it barely moves. Then, in the last stretch, it explodes. Most of your total gains happen in the final years, not the early ones.

This is the flip side of the snowball analogy: growth that depends on current size starts slow because there isn't much size to grow from yet. But once the balance is large, that same percentage rate produces a much bigger dollar amount. The percentage never changes. The base it's multiplying does.

This is also exactly why financial advice always says the same thing: start early. Not because early contributions are worth more in dollars right away, but because they get more years sitting at the front of the curve, where compounding has the most time to take over.


The short version

Simple interest adds a fixed amount every period. Compound interest multiplies by a fixed factor every period, and that factor gets applied to all your previous gains too, not just the original deposit. That's the entire difference between a straight line and an exponential curve.

Compounding more often (monthly, daily, continuously) helps, but with fast diminishing returns, capping out at PertPe^{rt}, the formula that defines Euler's number ee in the first place. The "rule of 72" is a convenient shortcut for doubling time that works well for ordinary interest rates and drifts at the extremes. And the biggest practical lesson is timing: because growth compounds on itself, the majority of the total gain shows up in the last few years, which is exactly why time in the market matters more than almost anything else.

One snowball, rolling downhill, picking up more snow the bigger it gets. That's the whole idea.


All visualizations are interactive React components running entirely in your browser, computed directly from the formulas shown above. No libraries beyond React.