free tools

Compound interest calculator

See how a starting amount and a monthly contribution grow when the returns are reinvested. Change any number and the projection updates.

By Michael Afreh, senior software engineer with 12+ years in e-commerce, fintech and banking, and author of The Software Engineer's Guide to Investing. Reviewed 31 October 2026.

1 · Initial investment

What you invest today.

2 · Contribute

Added at the end of every month.

years

1 to 60 years.

3 · Interest rate
%

A long-run return you expect, after fees.

± %

Shows a range below and above your estimate.

4 · Compound it

How often interest is added to the balance.

In 20 years at 7%, you would have

292,465

Total paid in
130,000
Interest earned
162,465
Range 5% – 9%
229,435 – 375,470
  • Balance at 7%
  • Range 5% – 9%
  • Total paid in
0100K200K300K400KYr 0Yr 5Yr 10Yr 15Yr 20
Year-by-year table
YearPaid inInterestBalanceLow – high
010,000010,00010,000 – 10,000
116,00089016,89016,636 – 17,144
222,0002,26324,26323,604 – 24,930
328,0004,15132,15130,921 – 33,418
434,0006,59240,59238,603 – 42,669
540,0009,62349,62346,670 – 52,753
646,00013,28759,28755,139 – 63,744
752,00017,62769,62764,033 – 75,725
858,00022,69280,69273,371 – 88,784
964,00028,53092,53083,175 – 103,018
1070,00035,197105,19793,471 – 118,533
1176,00042,751118,751104,280 – 135,445
1282,00051,254133,254115,631 – 153,878
1388,00060,772148,772127,548 – 173,971
1494,00071,376165,376140,062 – 195,872
15100,00083,143183,143153,202 – 219,744
16106,00096,153202,153166,998 – 245,765
17112,000110,494222,494181,484 – 274,127
18118,000126,258244,258196,695 – 305,042
19124,000143,547267,547212,666 – 338,740
20130,000162,465292,465229,435 – 375,470

What compound interest is

Compound interest is interest earned on interest. Each period, the return is added to the balance, so the next period's return is calculated on a bigger number. Early on the growth looks linear; over decades the curve bends upwards, and time in the market matters more than the exact rate.

The formula

For a single deposit, the balance after t years is P × (1 + r/n)n·t, where P is the starting amount, r the annual rate and n how many times a year interest is added. 10,000 at 7% compounded annually for 20 years becomes about 38,700.

How this calculator works

Monthly contributions are added at the end of each month. The rate you choose is converted to the equivalent monthly rate for your compounding frequency, so a contribution starts earning from the following month. The range applies your variance below and above the estimate, never going under 0%.

What it leaves out

Real returns are not smooth: markets fall, sometimes for years. The projection also ignores taxes, inflation and fees beyond what you take off the rate yourself. Use it to compare plans, not to predict a number.

Frequently asked questions

+Which interest rate should I enter?

For a savings account, use the rate the bank pays today, knowing it can change. For a broad stock index fund, many people plan with 5–7% a year, but that is a long-run assumption, not a guarantee. Enter a return after inflation if you want the result in today's money, and use the variance to see what a weaker or stronger decade does.

+Does compounding more often make a big difference?

Less than most people expect. 10,000 at 5% for 10 years grows to 16,289 with annual compounding and 16,487 with daily compounding. The rate, the monthly amount and the number of years matter far more.

+How long does it take to double my money?

The rule of 72 gives a quick estimate: divide 72 by the annual rate. At 6% money doubles in about 12 years; at 9%, in about 8. Set the monthly contribution to 0 above to see the exact figure.

+Are taxes included?

No. The calculator shows growth before tax, because tax depends on where you live and on your account type.

In Germany (2026 tax year), investment income above the saver's allowance of 1,000 € a year (2,000 € for married couples filing jointly) is taxed at a flat 25% plus the 5.5% solidarity surcharge on that tax, 26.375% in total, plus church tax if you pay it. For equity ETFs, 30% of the gain is tax-free, which brings the effective rate on gains to about 18.46%.

ci / cd for your money

Automate the boring pipeline

The monthly contribution is the part of this chart you control. The Software Engineer's Guide to Investing shows how to deploy your savings on a schedule, so compounding works without you hand-deploying every month.

Get the book on Amazon

Or read chapter one first, free:

One email with the chapter. No sequence, no drip campaign.

Sources

Not financial advice. The results are estimates for education, not a recommendation or a promise of returns. See the disclaimer.