Skip to main content

finance

How to Calculate Compound Interest (With Examples)

Learn the compound interest formula, see worked examples for monthly and daily compounding, and understand why time matters more than rate.

6 min readPublished 2026-04-01

Try the related calculator

Skip the math and get your numbers instantly

The compound interest formula

The standard formula is:

A = P(1 + r/n)^(nt)

Where:

  • A — final amount
  • P — starting principal
  • r — annual interest rate (decimal, e.g. 0.07 for 7%)
  • n — number of times interest compounds per year
  • t — number of years

Worked example

You invest $10,000 at 7% annual return, compounded monthly, for 30 years:

  • P = 10000, r = 0.07, n = 12, t = 30
  • A = 10000 × (1 + 0.07/12)^(12 × 30)
  • A = 10000 × (1.005833)^360
  • A ≈ $81,165

That's roughly 8.1× your starting amount — and you didn't add a single dollar.

Adding monthly contributions

For accounts where you keep adding money, the formula extends to:

A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]

This is the formula CalcProLabs's Compound Interest Calculator uses.

Why time matters more than rate

Doubling your rate from 4% to 8% over 30 years roughly 3× your balance. Doubling your time from 15 to 30 years at 7% roughly 2.75× your balance.

But here's the catch: time you can't get back. Start investing now — even $50/month at 25 years old beats $500/month starting at 45.

Monthly vs annual compounding

Compounding more frequently helps, but with diminishing returns:

Compounding$10,000 @ 7% × 30yr
Annually$76,123
Monthly$81,165
Daily$81,645

The difference between annual and monthly is meaningful (~$5,000). The difference between monthly and daily is rounding error.

Where compound interest works for you

  • Index fund investing (long horizon, automatic reinvestment)
  • 401(k) and IRA accounts (tax-deferred growth)
  • HSAs invested in funds (triple tax advantage — see our HSA Calculator)
  • High-yield savings (lower returns, but liquid)

Where it works against you

  • Credit card balances (compounding against you, 20%+ APR)
  • Personal loans with capitalized interest
  • Payday loans (effective APRs in the hundreds)

The mathematical takeaway: compounding doesn't care which direction you point it. Point it at investments, not debt.

The Rule of 72, and where it breaks

Divide 72 by your annual return and you get roughly the years to double:

ReturnRule of 72ActualError
2%36.0 yr35.0 yr1 year too slow
7%10.3 yr10.2 yrclose enough
15%4.8 yr5.0 yr0.2 yr too fast

It is accurate near 7-8% and drifts at the extremes. Use it for mental arithmetic, not for planning.

The numbers that actually decide your outcome

Most people optimise the return. The two variables that move the result more are when you start and what you pay in fees.

Starting early beats contributing more

Two investors, both earning 7% compounded monthly:

  • Ana puts in $200/month from 25 to 35, then stops contributing entirely and lets it sit until 65. Total contributed: $24,000.
  • Ben contributes nothing until 35, then puts in $200/month for 30 years straight until 65. Total contributed: $72,000.

At 65, Ana has about $280,968. Ben has about $243,994.

Ana contributed a third as much and finished roughly $37,000 ahead. Her first decade of contributions had thirty years to compound; Ben's last decade had almost none. This is the single most useful fact in personal finance, and it is entirely a consequence of the exponent in the formula.

A 1% fee is not a 1% cost

Fees compound too, in the wrong direction. On $100,000 over 30 years:

Gross returnNet of feeEnding balance
7%7% (no fee)$761,226
7%6% (1% fee)$574,349

A one-percentage-point fee costs $186,876 — about 25% of the final balance, not 1% of it. This is why an index fund at 0.03% versus an advisor at 1% is not a rounding difference.

Nominal returns lie; use real returns

A 7% return with 3% inflation is not 4%. It is:

(1.07 / 1.03) - 1 = 3.88%

Subtracting rates is an approximation that gets worse as both numbers grow. Over 30 years, $10,000 growing at the true real rate reaches about $31,361 in today's purchasing power, against $76,123 in nominal dollars. Both are correct; only one tells you what you can buy.

For retirement planning, model in real terms. It stops you mistaking inflation for growth.

Common mistakes

  • Using the annual formula for monthly compounding. The exponent is nt, not t. Getting this wrong understates a 30-year result by roughly $5,000 per $10,000 invested.
  • Assuming a constant return. CAGR smooths volatility you will actually experience. The formula gives an expectation, not a promise.
  • Ignoring taxes in a brokerage account. Dividends and realised gains are taxed annually, dragging the effective compounding rate below the headline return. Avoiding that drag is most of why tax-advantaged accounts matter.
  • Comparing periods of different lengths. A 5-year and a 1-year return are not comparable without annualising both.

The CalcProLabs Weekly

Our top 3 calculators of the week + tax & finance tips. Free.

No spam. Unsubscribe anytime. We never sell your data.

Related guides