The calculator shows the final balance, how much of it you paid in and how much is interest, with a chart and a year-by-year table. Choose yearly, monthly, daily or continuous compounding, deposits at the start or the end of each period, and an inflation rate to see the result in today's dollars. It also gives the doubling time, both by the rule of 72 and exactly. Taxes are left out, so the figures are before tax.
How it works
Compound interest means interest earns interest. A single amount P at a yearly rate r compounded m times a year grows to P × (1 + r ÷ m)^(m × t) after t years. Monthly compounding at 7% gives an effective yearly rate (APY) of 7.23%; daily or continuous compounding adds a little more. Regular deposits are added month by month. A deposit at the end of the month starts earning the following month; at the start of the month it earns that month too. Over whole years each compounding choice is exact. Money paid in during a year earns the equivalent monthly rate. The inflation figure turns the final balance into today's money: balance ÷ (1 + inflation)^years. At 3% inflation, prices double in about 24 years, so this matters for long horizons. The rule of 72 estimates the years it takes to double your money: 72 ÷ the rate. At 7% that is about 10.3 years. The calculator shows the exact doubling time next to it. Taxes are left out: in a taxable account you would owe tax on the interest each year, while a 401(k), IRA or Roth IRA lets it grow tax-deferred or tax-free.
Worked example
You put $10,000 into an index fund and add $500 at the end of every month for 25 years. Assuming an average return of 7% a year compounded monthly (an assumption, not a promise; real returns go up and down), the balance reaches $462,290.03. Of that, $160,000 is your own money and $302,290.03 is growth. With 3% inflation a year, the balance is worth $220,792.29 in today's dollars. The rule of 72 says money doubles in 72 ÷ 7 = 10.3 years at 7%. With monthly compounding the exact time is 9.9 years. A high-yield savings account works the same way: $10,000 at an example rate of 4% compounded daily, with no deposits, grows to $12,213.89 in 5 years.