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,649 |

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 CalcProLabs Weekly

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

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

Related guides