How to Calculate Compound Interest (Formula and Examples)
To calculate compound interest, use A = P × (1 + r/n)^(n × t), where P is the starting amount, r the yearly interest rate as a decimal, n the number of times interest is added per year and t the number of years. Subtract P from A to get the interest. For example, $10,000 at 5% compounded yearly for 10 years grows to $10,000 × 1.05^10 = $16,288.95, so the interest is $6,288.95.
The compound interest formula
A = P × (1 + r/n)n × t
- A: the amount at the end, including interest
- P: the principal, the money you start with
- r: the yearly interest rate as a decimal (5% = 0.05)
- n: how many times a year interest is added (1 yearly, 4 quarterly, 12 monthly, 365 daily)
- t: the number of years
The interest earned is A − P.
Example 1: compounded yearly
You invest $10,000 at 5% a year, compounded yearly, for 10 years.
- Divide the rate by n: 0.05 ÷ 1 = 0.05.
- Add 1: 1.05.
- Raise it to the power n × t = 10: 1.0510 = 1.62889.
- Multiply by the principal: $10,000 × 1.62889 = $16,288.95.
- Interest earned: $16,288.95 − $10,000 = $6,288.95.
You can see the compounding year by year: after year 1 the balance is $10,500; in year 2 the 5% is calculated on $10,500, giving $11,025; in year 3 on $11,025, giving $11,576.25, and so on.
Example 2: compounded monthly
Same $10,000 at 5% for 10 years, but compounded monthly (n = 12):
- 0.05 ÷ 12 = 0.0041667, plus 1 = 1.0041667.
- n × t = 12 × 10 = 120, and 1.0041667120 = 1.64701.
- $10,000 × 1.64701 = $16,470.09, which is $181 more than yearly compounding.
How often interest compounds
| $10,000 at 5% for 10 years | Final amount | Interest |
|---|---|---|
| Simple interest (no compounding) | $15,000.00 | $5,000.00 |
| Compounded yearly | $16,288.95 | $6,288.95 |
| Compounded quarterly | $16,436.19 | $6,436.19 |
| Compounded monthly | $16,470.09 | $6,470.09 |
| Compounded daily | $16,486.65 | $6,486.65 |
The biggest jump is from simple to compound interest. After that, more frequent compounding adds only a little.
Adding regular deposits
Most people save a fixed amount every month. The future value of regular deposits is:
FV = PMT × [(1 + r/n)n × t − 1] ÷ (r/n)
where PMT is the deposit each period, made at the end of the period. Example: $200 a month at 7% compounded monthly for 30 years:
- r/n = 0.07 ÷ 12 = 0.0058333; n × t = 360.
- 1.0058333360 = 8.1165, minus 1 = 7.1165.
- 7.1165 ÷ 0.0058333 = 1,219.97, times $200 = $243,994.
You deposited $72,000 in total; the other $171,994 is compound interest. If you also start with a lump sum, add its value from the first formula. Our compound interest calculator does both at once and also shows the effect of inflation.
APY: the rate after compounding
Banks often quote both a rate and an APY (annual percentage yield). The APY includes compounding:
APY = (1 + r/n)n − 1
A 5% rate compounded monthly has an APY of (1.0041667)12 − 1 = 5.12%; compounded daily it is 5.13%. When comparing savings accounts, compare the APYs.
Compound interest in Excel or Google Sheets
Use the FV function: =FV(rate/n, n*years, -deposit, -principal).
- $10,000 at 5% monthly for 10 years:
=FV(5%/12, 120, 0, -10000)→ $16,470.09 - $200 a month at 7% for 30 years:
=FV(7%/12, 360, -200, 0)→ $243,994.20
The minus signs tell Excel that the money goes out of your pocket, so the result comes back positive.
A quick estimate: the rule of 72
Divide 72 by the yearly rate to estimate how many years it takes to double your money: at 6%, about 72 ÷ 6 = 12 years. It is a handy check on your calculation, accurate within a few months for rates between 4% and 12%.
Frequently asked questions
What is compound interest?
Compound interest is interest earned on both your original money and the interest it has already earned. Each period the interest is added to the balance, so the next period's interest is calculated on a larger amount and the growth speeds up over time.
What is the difference between simple and compound interest?
Simple interest is paid only on the original amount: $10,000 at 5% earns $500 every year, or $5,000 over 10 years. Compound interest also earns interest on past interest, so the same money earns $6,288.95 over 10 years when compounded yearly.
What is the simple interest formula?
Simple interest = P × r × t, where P is the principal, r the yearly rate as a decimal and t the time in years. The total at the end is P + P × r × t.
Does compounding monthly or daily make a big difference?
Less than people expect. $10,000 at 5% for 10 years becomes $16,288.95 compounded yearly, $16,470.09 monthly and $16,486.65 daily. The rate, the time and regular deposits matter far more than the compounding frequency.
What is APY?
APY (annual percentage yield) is the yearly return after compounding: APY = (1 + r/n)^n − 1. A 5% rate compounded monthly gives an APY of about 5.12%. Comparing APYs lets you compare accounts that compound at different frequencies.
How do I calculate compound interest in Excel?
Use the FV function: =FV(rate/n, n*years, -deposit, -principal). For $10,000 at 5% compounded monthly for 10 years with no deposits, type =FV(5%/12, 120, 0, -10000), which returns about $16,470.