The formula
A = P(1 + r/n)^(n·t) + PMT × ((1 + i)^(12t) − 1) / i
P = initial deposit, PMT = monthly contribution
r = annual rate, n = compounding periods per year, t = years
i = (1 + r/n)^(n/12) − 1 (equivalent monthly rate)
APY = (1 + r/n)ⁿ − 1
Worked example
- Start with P = $10,000, add $200 a month at 7% per year compounded monthly for 20 years.
- Monthly rate i = 0.07 ÷ 12 = 0.0058333, and there are 240 months.
- Growth of the initial deposit: 10,000 × 1.0058333²⁴⁰ ≈ 10,000 × 4.0387 = $40,387.
- Growth of the contributions: 200 × (4.0387 − 1) ÷ 0.0058333 ≈ $104,185.
- Future value ≈ $144,572. You contributed $10,000 + $48,000 = $58,000, so interest earned ≈ $86,572.
What compound interest is
Compound interest is interest earned on interest. Each period, the interest your money earns is added to the balance, and the next period's interest is calculated on that larger balance. Over short periods the difference from simple interest is small. Over decades it becomes the main driver of growth: in the example above, interest makes up well over half of the final balance.
Time is the most powerful input. Money invested at 25 has twice as long to compound as money invested at 45, so starting early, even with small amounts, often beats contributing more later. Try moving the Years to grow slider to see how the curve steepens in later years.
Compounding frequency and APY
Interest can be compounded annually, quarterly, monthly or daily. More frequent compounding gives a slightly higher effective return. 7% compounded monthly is equivalent to about 7.23% compounded once a year. Banks in the US advertise this effective figure as the APY (annual percentage yield). In the UK it's the AER (annual equivalent rate). When you compare savings accounts, compare APY or AER rather than the nominal rate.
For investments such as index funds, returns aren't paid at a fixed frequency, so the rate you enter is best thought of as an average annual return. Monthly compounding is a reasonable approximation.
Choosing a realistic rate
Your result is only as good as the rate you assume. High-yield savings accounts and certificates of deposit pay a known rate that can change over time. Stock and bond returns vary year to year, and past performance doesn't guarantee future results. Over long periods, broad stock market indexes have historically returned more than cash, but with large swings along the way, including years of losses. Many planners test several scenarios, for example 4%, 6% and 8%, rather than relying on one number.
Also remember inflation and taxes. A 7% nominal return with 3% inflation is roughly a 4% real return. Use our inflation calculator to see what a future balance is worth in today's money. Tax-advantaged accounts such as 401(k)s and IRAs in the US, ISAs in the UK, TFSAs and RRSPs in Canada, superannuation in Australia and PPF in India can make a big difference to what you keep.
The rule of 72
A quick mental shortcut: divide 72 by the annual rate to estimate how many years it takes money to double. At 6%, money doubles in about 12 years. At 9%, about 8 years. It's an approximation that works best for rates between about 4% and 12%, but it's handy for sanity-checking any projection.
Contributions vs returns: what matters most?
Early on, your contributions drive most of the growth. Later, returns take over. In the worked example, interest overtakes total contributions around year 16. You can see this on the chart where the balance line pulls away from the contributions line. That has two practical lessons. First, the habit of contributing regularly matters most at the start, when returns on a small balance are tiny. Second, staying invested matters most at the end, when a single year's return can exceed a year of contributions. Fees matter too. A 1% annual fee may sound small, but over 30 years it can reduce a final balance by roughly a quarter. To see the impact of a fee, subtract it from the interest rate and compare the two results.