How it works
Compound interest is interest paid on earlier interest as well as on your own money. $10,000 with $200 added every month at 5% reaches $47,526.55 after 10 years, and $13,526.55 of that is interest. The balance has two parts that grow separately, the starting amount and the regular deposits.
On a debt the same arithmetic runs against you. The loan repayment calculator adds it up as total interest paid, and you can work out what a loan costs per repayment before you borrow.
Regular deposits often come straight out of pay. In the UK, pension contributions made by salary sacrifice face a National Insurance limit of £2,000 a year from April 2029, which changes what each pound saved costs you.
The formula
balance = P × (1 + r ÷ n)^(n × t) + d × ((1 + i)^(m × t) − 1) ÷ i
P = starting amount
r = yearly interest rate as a decimal
n = times a year interest is added
t = years
d = each regular deposit
m = deposits a year
i = growth over one deposit period = (1 + r ÷ n)^(n ÷ m) − 1
When deposits are made as often as interest is added, i equals r ÷ n. If deposits go in at the start of each period, the second part is multiplied by (1 + i).
What each input means
- Starting amount. What is in the account today. It can be 0.
- Regular deposit and Deposits are made. The amount you add and how often.
- Interest rate. The yearly rate before tax and fees.
- Time. How many years the money is left to grow.
- Interest is added. How often the account adds interest to the balance. Your account terms state this.
- Raise deposits each year by. Lifts the regular deposit by this percentage at the start of every year. With a rise, deposits are added one at a time and not by the formula above.
- Inflation a year. Adds a line showing the final balance in today’s money, which is the balance divided by (1 + inflation) once for each year.
A worked example
Start with $10,000, add $200 at the end of every month, and earn 5% a year with interest added monthly, for 10 years.
r ÷ n= 0.05 ÷ 12 = 0.0041667, and there are 120 months- starting amount: 10,000 × 1.0041667^120 = $16,470.09
- deposits: 200 × (1.0041667^120 − 1) ÷ 0.0041667 = $31,056.46
- balance = 16,470.09 + 31,056.46 = $47,526.55
You paid in $34,000.00 in all: the $10,000 start plus 120 deposits of $200. The other $13,526.55 is interest.
How the figures are rounded
The balance is kept at full precision throughout and rounded to the nearest cent or penny only when shown. A bank that rounds every interest payment may end a few cents away.
What it leaves out
Tax on interest, account fees, and rates that change over time. It also leaves out penalties for taking money out early, such as the 25% charge on a Lifetime ISA withdrawal in the UK. Government top-ups are left out as well. In Canada, check the grant an RESP contribution collects and add it to your deposits.
Common questions
What is the difference between simple and compound interest?
Simple interest is paid only on the money you put in. Compound interest is paid on that money plus the interest already added, so each addition is slightly larger than the last. Over a year or two the gap is small. Over twenty or thirty years it becomes most of the balance.
Does it matter how often interest is added?
Not much. At 5% on 10,000, adding interest monthly and not yearly is worth about 12 more after one year. Daily adds almost nothing beyond monthly. The rate, the time and the amount you pay in matter far more.
Is the result what I will actually have?
It is the balance before tax, fees and inflation. Savings interest and investment gains can be taxed depending on the account and the country. Fees lower the effective rate. Prices also rise, so the balance will buy less than the same sum today. Enter an inflation rate under "Rising deposits, inflation and timing" to see the balance in today's money.
Can I use this for investments such as shares or funds?
Only as a rough guide. It assumes the same rate every year, and investment returns vary and can be negative. Run it with a cautious rate and a hopeful one to see a range. Neither is a forecast.
Should deposits go in at the start or the end of the period?
The usual textbook assumption, and the default here, is the end of each period. If you pay in at the start, each deposit earns interest for one extra period. Change it under "Rising deposits, inflation and timing" to match what you do.
Sources and review
The method and any rates on this page come from:
- Contemporary Mathematics, section 6.4: Compound interest, OpenStax, Rice University
- Contemporary Mathematics, section 6.6: Methods of savings, OpenStax, Rice University