The compound interest formula, explained line by line
Compound interest is one formula with five letters in it. Once you can read those five letters, most questions about long-term saving answer themselves: how much a deposit becomes, how long it takes to double, and why starting five years earlier beats saving five percent more. This guide walks through the formula, shows what each part does to the result, and hands you scenarios you can open in the calculator.
What the formula actually says
A = P × (1 + r/n)^(n·t)
A — the amount you end up with
P — the principal, the amount you start with
r — the annual interest rate as a decimal (6 % = 0.06)
n — how many times per year interest is credited
t — the number of years
Read it from the inside out. The rate r is divided by n, because if interest is credited monthly, each crediting event only gets one twelfth of the annual rate. That small factor is then applied n·t times — once per crediting event over the whole horizon. Everything interesting about compound interest lives in that exponent.
One consequence is worth stating plainly: the base of the power is barely above one. At 6 % credited yearly, the base is 1.06. Raising 1.06 to the power of 40 is not a small correction to 1.06 × 40. It is a different kind of growth, and the difference is not visible in the first few years.
Why the exponent does all the work
The clearest way to see this is to hold everything fixed except time. Deposit 10,000 € at 5 % a year, credited annually, and touch nothing. Simple interest would pay 500 € every year, forever. Compound interest pays 500 € in the first year and more in every year after, because the interest itself starts earning.
After five years the two columns differ by 263 € — a rounding error in most people's planning. After forty years they differ by 40,400 €, which is four times the original deposit. Nothing changed except the number of times the exponent was applied. This is why every guide about saving eventually says the same thing about starting early: you are not buying a higher rate, you are buying more exponent.
10,000 € at 5 %, forty years, no contributions. Drag the horizon slider and watch where the curve stops looking like a line.
Open this scenarioWhere the money actually comes from
It helps to split the final amount into two parts: the money you put in, and the money the money made. In the forty-year row above, 10,000 € is yours and 60,400 € is interest. The ratio flips somewhere in the middle, and knowing roughly where it flips changes how you read your own plan.
- Early on, almost all of the balance is your own deposits. Rate assumptions barely matter, and a bad year is easy to make up.
- Around the point where cumulative interest overtakes cumulative deposits, the rate assumption starts dominating the outcome.
- Late on, the balance moves mostly with the market. Adding to the deposit changes little; a percentage point on the rate changes a lot.
This is also the honest answer to "what rate should I assume?". For a five-year horizon the assumption hardly matters. For a thirty-year horizon it is the single most consequential number in the calculation, and it is the one you know least about.
What n changes, and what it does not
The n in the formula is the compounding frequency: how often interest is credited and starts earning on its own. Increasing it always helps, but far less than people expect. Going from annual to monthly compounding at 6 % over twenty years adds about 3 % to the final balance — real, but nowhere near the effect of one extra year of horizon.
There is a ceiling. As n grows towards infinity the expression converges to A = P × e^(r·t), continuous compounding. The gap between monthly and continuous is small enough that no consumer product will ever advertise it. Frequency is worth understanding so you can compare two products correctly, not because optimising it will change your outcome.
Reading the formula backwards
Most real questions are not "what will A be". They are one of the other four letters, with A given.
- How much do I need to start with? Solve for P: P = A / (1 + r/n)^(n·t). This is a present value — what a future amount is worth today.
- What return do I need? Solve for r. With annual compounding, r = (A/P)^(1/t) − 1. Do this before trusting any plan that requires a specific rate; if the answer is 12 %, the plan is a bet, not a projection.
- How long will it take? Solve for t: t = ln(A/P) / (n · ln(1 + r/n)). The special case A = 2P is the doubling time, which is what the rule of 72 approximates.
Solving for r is the most useful of the three, and the least often done. A target amount and a horizon together imply a required return. Writing that number down turns a wish into a testable assumption.
Where the formula stops being enough
A = P × (1 + r/n)^(n·t) describes one deposit left alone. Almost nobody saves that way. Add 400 € a month and every deposit has its own horizon: the first one compounds for the full term, the last one for a month. The closed form for that is the annuity formula, and combining it with an irregular schedule of contributions and withdrawals gets unpleasant quickly.
That is what the calculator is for. It steps through the horizon period by period, applies the rate for that period, and adds or subtracts whatever is scheduled. Same arithmetic, no algebra.
10,000 € to start, 400 € a month for thirty years at 6 %. Compare the contributions bar with the interest bar in the result panel.
Open a scenario with contributionsFour mistakes that change the answer
- Using a percentage where a decimal belongs. r = 6 in the formula means 600 %. This is the single most common arithmetic slip.
- Mixing up nominal and effective rates. A product advertising "6 % nominal, credited monthly" returns 6.17 % effective. Compare like with like.
- Assuming a past average will repeat. A long-run average return is not a return you receive each year; the order of the years matters as soon as you are withdrawing.
- Forgetting inflation, tax and fees. All three reduce r, and r sits in the exponent. A 0.5 % annual fee over thirty years is not 15 % of your returns — it compounds too.
None of these change the formula. They change what you put into it, which is where almost all projection errors come from.
Keep reading
How much more monthly compounding pays than annual, why the gap has a ceiling, and how to compare nominal against effective rates.
What different monthly amounts add up to over twenty-five years, what waiting five years costs, and when interest overtakes your own contributions.
Four withdrawal rates on the same portfolio, where the 4 % rule comes from, and why the order of the years matters once you are taking money out.
The exact way to turn a nominal return into a real one, what 2 % inflation costs over thirty years, and how to keep a whole plan in today's money.
Divide 72 by the interest rate and you have the doubling time. How accurate that is, where the 72 comes from, and the version worth carrying around.