How to Calculate Compound Interest
Compound interest is what makes long-term investing powerful. Unlike simple interest (which only earns on your original deposit), compound interest earns interest on your interest. The longer the time horizon, the more dramatic the difference. The numbers below are math, not financial advice: any real investment decision should account for taxes, fees, inflation, and your personal situation.
The compound interest formula
A = P(1 + r/n)^(nt)
Where:
- A = final amount
- P = principal (initial investment)
- r = annual interest rate (as decimal)
- n = compounding frequency per year
- t = time in years
Example: $10,000 at 7% annual interest, compounded monthly, for 20 years:
A = 10,000 × (1 + 0.07/12)^(12×20) = $40,387
That is $30,387 in interest on a $10,000 investment, the power of compounding over time.
How to use the calculator
- Enter your starting amount: your initial principal or current savings.
- Set the interest rate and time period: annual rate and number of years.
- Choose compounding frequency: annual, quarterly, monthly, or daily.
- Add monthly contributions (optional): regular deposits that accelerate growth.
- View the results: see your final amount, total interest earned, and a growth chart.
A brief history of compound interest
Compound interest has been understood for millennia, but the math behind it took centuries to formalize. Babylonian merchants in 2000 BC charged compound interest on grain and silver loans (the Code of Hammurabi capped grain interest at 33.3% annually). Roman law explicitly forbade compound interest as "usurious" but allowed it in maritime loans where risk was high.
The modern formula was derived during the European mathematical renaissance. Luca Pacioli (1494) and Simon Stevin (1582) published interest tables that compound merchants could use without doing the algebra. Jakob Bernoulli (1683) discovered that as compounding frequency approaches infinity, the formula converges to the constant e ≈ 2.71828, the mathematical foundation of "continuous compounding."
Albert Einstein is widely (and probably apocryphally) quoted as calling compound interest "the eighth wonder of the world" and saying "he who understands it earns it; he who does not pays it." Whether or not Einstein actually said it, the observation captures something true: compound growth is unintuitive to humans because we expect linear change. Most people underestimate how much $10,000 invested at 7% for 40 years becomes ($149,745) and overestimate how quickly small monthly contributions add up.
Compound vs simple interest
Side-by-side on a $10,000 deposit at 5% annual interest:
| Year | Simple interest | Compound interest |
|---|---|---|
| 1 | $10,500 | $10,500 |
| 5 | $12,500 | $12,763 |
| 10 | $15,000 | $16,289 |
| 20 | $20,000 | $26,533 |
| 30 | $25,000 | $43,219 |
| 50 | $35,000 | $114,674 |
After 30 years, compound interest produces 73% more than simple interest. After 50, it produces 227% more. Time is what makes compounding magic.
The impact of time
| Starting amount | Rate | Years | Final amount | Interest earned |
|---|---|---|---|---|
| $10,000 | 7% | 10 | $20,097 | $10,097 |
| $10,000 | 7% | 20 | $40,387 | $30,387 |
| $10,000 | 7% | 30 | $81,165 | $71,165 |
| $10,000 | 7% | 40 | $163,176 | $153,176 |
The interest earned in years 30-40 ($82,011) is more than the interest from the first 30 years combined. This is compounding at work, growth accelerates the longer you stay invested.
Compounding frequency comparison
$10,000 at 7% for 30 years with different compounding frequencies:
| Frequency | Final amount |
|---|---|
| Annual (n=1) | $76,123 |
| Quarterly (n=4) | $80,239 |
| Monthly (n=12) | $81,165 |
| Daily (n=365) | $81,623 |
| Continuous | $81,662 |
The jump from annual to monthly compounding is meaningful ($5,042). The jump from monthly to continuous is tiny ($497 over 30 years). Past a certain point, additional compounding frequency adds nothing meaningful.
Regular contributions: where the real growth happens
For most people, regular monthly contributions matter more than the starting amount:
Scenario A: $10,000 starting, no contributions, 7% for 30 years = $81,165
Scenario B: $0 starting, $200/month, 7% for 30 years = $244,692
Scenario C: $10,000 starting + $200/month, 7% for 30 years = $325,857
The contributing $200/month for 30 years totals $72,000 of your own money, but ends up worth $244,692, more than 3x your contributions. That extra value is all compound growth on each monthly deposit.
Real-world considerations
The math above ignores three things that matter in real investing:
- Inflation: at 3% annual inflation, $81,165 in 30 years has the purchasing power of about $33,400 in today's money. Always compare investment returns to inflation; "real" returns (above inflation) are what matter.
- Taxes: in taxable accounts, capital gains and dividends are taxed yearly. Tax-advantaged accounts (401(k), IRA in US; ISA in UK; PEA in France; equivalent elsewhere) defer or eliminate this drag, which compounds significantly over decades.
- Fees: a 1% annual expense ratio (typical for actively-managed mutual funds) reduces a 7% return to 6%. Over 30 years, that 1% costs you 22% of your final amount. Low-cost index funds (0.03-0.20% expense ratio) preserve almost all of your compounding.
A useful rule of thumb: expense ratios below 0.20% are good, above 1% are expensive. Pay attention.
Common pitfalls
- Assuming returns are guaranteed: stock-market historical average is 7-10% annually (depending on the period), but in any given year the return can be -40% to +40%. Compound math assumes constant returns; reality is volatile.
- Confusing nominal and real returns: a 7% nominal return at 3% inflation is a 4% real return. The growth-chart number includes inflation; what you can buy in 30 years is what matters.
- Ignoring sequence-of-returns risk: two retirement portfolios with the same average return can produce very different final amounts depending on when the losses happen. A market crash early in retirement is much worse than the same crash late.
- Confusing APR and APY: APR (Annual Percentage Rate) is the simple rate before compounding; APY (Annual Percentage Yield) includes the effect of compounding. A 6% APR with monthly compounding is 6.17% APY.
- Withdrawals destroy compounding: pulling money out interrupts the snowball. The earlier you withdraw, the more future growth you lose.
- Comparing pre-tax and post-tax returns: a 7% return in a 401(k) is different from a 7% return in a taxable account. Compare apples to apples.
Tips
- Start early: time is the most powerful variable in compound interest. Starting 10 years earlier can more than double your final amount, even with the same contributions.
- Monthly contributions matter: adding even a small monthly amount dramatically increases the final value. $200/month at 7% for 30 years adds over $240,000 on top of the principal growth.
- Use the Rule of 72: divide 72 by your interest rate to estimate doubling time. At 7%, money roughly doubles every ~10 years.
- Compare compounding frequencies: the difference between annual and monthly compounding is small (a few percent), but it is free money. Choose the more frequent option when available.
- Reinvest dividends and interest: dividends paid out and spent break the compounding chain. Most brokerage accounts offer automatic dividend reinvestment (DRIP) at no cost.
- Automate contributions: setting up automatic monthly transfers from your checking account removes the willpower requirement. The earlier in your career you automate, the more compound growth you capture.
Privacy
The compound interest calculator runs entirely in your browser. The financial numbers you enter (starting amount, monthly contribution, target year) all stay on your device. This matters because financial inputs reveal sensitive information about your wealth and financial planning, which insurance companies, marketers, and identity thieves all want. Some online financial calculators are loaded with tracking pixels that exfiltrate your inputs to ad networks. A browser-only calculator has zero exposure: the numbers you type never leave your device. Browser-based math also works offline once the page is loaded.
Frequently Asked Questions
What is the difference between simple and compound interest?
Simple interest is calculated only on the original principal. Compound interest is calculated on the principal plus all previously earned interest. Over time, compound interest grows exponentially while simple interest grows linearly.
How does compounding frequency affect returns?
More frequent compounding produces slightly higher returns. Monthly compounding earns more than annual compounding at the same rate because interest starts earning interest sooner. The difference is small for low rates but adds up over long periods.
What is the Rule of 72?
Divide 72 by your annual interest rate to estimate how many years it takes to double your money. At 6% interest, money doubles in roughly 72/6 = 12 years. At 8%, roughly 9 years. It is a quick mental estimate, not an exact calculation.
Does the calculator account for regular contributions?
Yes. Enter a monthly contribution amount and the calculator includes it in the compound growth projection, showing how regular deposits accelerate growth.