
The Compound Interest Formula Explained Step by Step
The compound interest formula term by term, derived in euros, plus the version with monthly contributions that almost no site explains. Every step can be checked.
You know how to do the math. What's left is the monthly amount your budget can handle.
The check works out your savings rate and a realistic contribution to plug into the formula. 3 minutes, free.
The compound interest formula is M = C × (1 + i)ⁿ, where M is the final amount, C the starting amount, i the rate per period as a decimal and n the number of periods. It describes money multiplied by (1 + i) once every period, and the exponent n is what makes growth speed up.
This article derives the formula step by step and adds the version with monthly contributions, the one you need in practice and rarely see explained. Knowing the formula tells you what the tool does: to run your numbers without doing the math by hand, the investment simulator uses these same equations. For the bigger picture, see how compound interest works.
| Symbol | Meaning | Example |
|---|---|---|
| M | Final amount | The balance at the end |
| C | Starting amount | €10,000 |
| i | Rate per period, as a decimal | 4% a year = 0.04 |
| n | Number of periods | 3 years = 3 |
| P | Contribution per period | €150 a month |
How is the formula derived?
It comes from repeating the same step once per period. At the end of each period, your balance equals the previous balance plus that period's interest, which means it's multiplied by (1 + i).
Here's the derivation with €10,000 at 4% a year:
Multiplying by 1.04 three times in a row is the same as multiplying by 1.04 to the power of 3, which is 1.124864. Generalize to n periods and you get the formula:
The interest earned is the final amount minus the starting amount:
In the example, €11,248.64 minus €10,000 is €1,248.64 of interest in three years. With simple interest it would be €1,200, because 4% of €10,000 is €400 a year, always on the same base.
What does each term mean?
Each term answers a different question about your savings.
C, the starting amount, is a multiplier. Double it and the result doubles exactly. It's the most linear term, and so the least interesting.
i, the rate per period, sits inside the parentheses. A one-point difference looks small at first and becomes huge by the end, because it's applied n times. Over 20 years, €10,000 at 4% gives €21,911 and at 5% gives €26,533.
n, the number of periods, is the exponent and the most powerful term. It doesn't multiply, it raises to a power. That's the mathematical reason starting early beats starting big.
One must: i and n have to use the same unit of time. If n is in months, i has to be the monthly rate. A 6% annual rate converted to monthly looks like this:
Mixing units is the most common mistake: using 0.06 with n in months makes the calculator read 6% a month.
The formula with monthly contributions
The version with monthly contributions has two parts: the starting amount growing on its own, plus the series of contributions, where each one earns for a different number of months.
The second part is the sum of a geometric series. The logic is simple: the first contribution earns for almost every month, and the last earns nothing because it goes in at the end. Instead of adding the pieces one by one, the closed formula adds them all at once.
Try it with €150 a month, 5% a year, 15 years and no starting amount. Convert everything to months: i = 0.05 ÷ 12 = 0.0041667 and n = 15 × 12 = 180 months.
Add a €2,000 starting amount and the first part gives €2,000 × 2.113704 = €4,227, bringing the total to €44,321. The two parts add up without affecting each other.
You can check any of these numbers in the investment simulator, which uses exactly this formula.
How to solve for time or rate
You can solve the formula for any variable, which answers more useful questions than the final amount alone.
To find how many periods it takes to reach a goal:
To find what rate you need to reach an amount in a given time:
An example of the first: how long does €10,000 take to reach €20,000 at 4% a year? The natural log of 2 is 0.6931 and the natural log of 1.04 is 0.03922. Dividing gives 17.67 years. The rule of 72 would estimate 72 ÷ 4 = 18 years, so the shortcut lands close to the exact answer at these rates.
How to check a calculation by hand
Two quick tests check a compound interest calculation without redoing it.
The first is the ballpark test with the rule of 72: divide 72 by the annual rate in percent to get the years it takes to double. If your math says €10,000 at 4% reaches €40,000 in 20 years, something's off: at 4%, doubling takes about 18 years and quadrupling about 36.
The second is the first-period test. Work out by hand what happens in the first month or year and make sure it matches your table. If €10,000 at 4% a year doesn't give €10,400 at the end of year one, the mistake is in your assumptions, not the formula.
A third warning sign: if the result is astronomical, check the units. An annual rate used with monthly periods is the cause almost every time.
FAQ
The formula solves the math. What decides the result is how much you can put in the contribution field every month, for years.
Reviewed on November 19, 2026. Every calculation in this article is an illustration at a constant rate, with no taxes or fees, and can be checked step by step with the numbers shown.
By LiberFi
