LiberFi logo
LiberFi
HomeAppToolsArticlesAbout
LiberFi logo
LiberFi

Turn your money into freedom.

YouTubeInstagramTikTok

Navigation

  • Home
  • App
  • Tools
  • Articles
  • About
  • Contact

Resources

  • Articles
  • Tools

Legal

  • Privacy
  • Terms

© 2026 LiberFi. All rights reserved.

Cover image for The Compound Interest Formula Explained Step by Step
Personal Finance
7 min read

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.

#compound interest formula#compound interest calculation#financial math#saving

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.

Take the check

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.

SymbolMeaningExample
MFinal amountThe balance at the end
CStarting amount€10,000
iRate per period, as a decimal4% a year = 0.04
nNumber of periods3 years = 3
PContribution 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:

Derivation with €10,000 at 4% a year
Year 1: €10,000 × 1.04 = €10,400
→
Year 2: €10,400 × 1.04 = €10,816
→
Year 3: €10,816 × 1.04 = €11,248.64
=
€10,000 × 1.04 × 1.04 × 1.04 = €10,000 × 1.04³

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.

€150 a month, 5% a year, 15 years
Growth factor: 1.0041667 to the power of 180 = 2.113704
−
Subtract 1: 2.113704 − 1 = 1.113704
÷
Divide by the monthly rate: 1.113704 ÷ 0.0041667 = 267.289
×
Multiply by the contribution: €150 × 267.289 = €40,093
=
Final amount €40,093, of which €27,000 is yours and €13,093 is interest

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

Yes, in exactly the same way. On a credit card with an unpaid balance, what you owe is multiplied by 1 plus the rate every period. Only the direction changes: the engine that grows your savings also grows what you owe.
The fraction is the closed form of a geometric series. Each contribution earns for a different number of months, and adding the 180 pieces one by one would give the same result. The fraction does that sum in one step.
The effective annual rate is what you really earn in a year when interest compounds more than once. A 6% nominal rate compounded monthly works out to an effective annual rate of about 6.17%, because each month's interest earns in the following months.
You need a power function, which every spreadsheet has. In Excel or Google Sheets you write the formula as C*(1+i)^n, and the version with contributions comes ready-made in the FV function.

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

Free Financial Health Check

You know the theory. Now see where you stand.

  • A score from 0 to 100

    One number for your financial health today.

  • Your 4 pillars

    Budget, debt, savings and investing: see where you are strong and where money leaks out.

  • Your next step

    The one move that changes your finances most right now.

Take the free check
3 minutesFreeNo strings attached

Found this useful?

Send it to someone who needs it

Follow along

Daily videos on money and investing, in Portuguese

YouTube
Instagram
TikTok

Next steps

Keep reading

5 min•Personal Finance

Compound Interest: How It Works and What It Earns (Examples in Euros)

Compound interest explained with examples in euros: the formula, a table at 10, 20 and 30 years, the rule of 72, and why time matters more than your starting amount.

Read article
12 min•Personal Finance

Family Budget: How to Make One and Stick to It in 2026

Build a family budget that works in 2026: an adapted 50/30/20 rule, detailed tracking, budgeting apps and practical ways to cut spending.

Read article
15 min•Personal Finance

How to Save Money: 50 Practical Tips for 2026

50 practical ways to save money every day. Tips for groceries, transportation, home, leisure and shopping, with what each one can save you.

Read article