The compound interest formula, with worked examples
The compound interest formula, one symbol at a time
A = P × (1 + r/n)n×t
A is the final amount, P the starting principal, r the annual nominal rate as a decimal (6% is 0.06), n the number of compounding periods per year, and t the years. Take $10,000 at 6% for 10 years compounded monthly: r/n = 0.005 per month, n×t = 120 periods, and 10,000 × 1.005120 = $18,193.97. Interest earned is A − P = $8,193.97.
How the compounding period changes the answer
| Compounding | n | Balance after 10 years | Effective annual rate |
|---|---|---|---|
| Yearly | 1 | $17,908.48 | 6.000% |
| Quarterly | 4 | $18,140.18 | 6.136% |
| Monthly | 12 | $18,193.97 | 6.168% |
| Daily | 365 | $18,220.29 | 6.183% |
Going from yearly to daily compounding adds $311.81 on $10,000 over ten years. Even the theoretical limit, continuous compounding with A = P·ert, gives only $18,221.19. The rate and the time matter far more than the period. See annual vs monthly vs daily compounding.
Solving for something other than the final amount
| Unknown | Rearranged formula | Worked example |
|---|---|---|
| Final amount A | A = P(1 + r/n)^(nt) | $10,000 at 6%, monthly, 10 y: $18,193.97 |
| Starting amount P | P = A / (1 + r/n)^(nt) | Need $25,000 in 10 y at 6% yearly: $13,959.87 today |
| Rate r | r = (A/P)^(1/t) - 1 | $10,000 to $20,000 in 10 y: 7.18% a year |
| Time t | t = ln(A/P) / (n ln(1 + r/n)) | Doubling at 6% yearly: 11.90 years |
These four rearrangements cover most questions people bring to a compound interest calculator. The rate version is the same calculation as CAGR (total vs annualized return), and the time version is the exact form behind the rule of 72.
Adding regular deposits
The basic formula covers a single deposit. For a fixed deposit PMT made at the end of each period, the future value is PMT × ((1 + r/n)nt − 1) / (r/n). With $300 a month at 6% for 10 years: 300 × ((1.005120 − 1) / 0.005) = $49,163.80. Deposits at the start of each month earn one extra period of interest on every deposit, giving $49,409.62. Our calculator's simulation returns $49,163.80 for the end-of-month case, matching the closed form. In a spreadsheet use =FV(0.5%,120,-300).
Common mistakes
- Entering 6 instead of 0.06 in a spreadsheet formula.
- Using an APY as r while also choosing monthly compounding, which counts compounding twice. See APY vs APR.
- Mixing units: monthly deposits with t in years but n = 1.
- Ignoring fees and inflation, which both reduce the real result (fees, inflation).
Sources
Related
Educational estimate, not financial advice. Found an error? Tell us.