DEV Community

jiaming
jiaming

Posted on

How to Calculate Compound Interest (With Real Examples)

Compound interest is one of those things everyone talks about but surprisingly few people can actually calculate. "Compound interest is the eighth wonder of the world" gets quoted constantly. But how much will your money actually grow? Let's walk through the math with real numbers.

The Formula (Don't Run Away Yet)

A = P × (1 + r/n)^(n×t)

Where A = final amount, P = starting principal, r = annual interest rate as a decimal (7% = 0.07), n = compounding frequency (12 = monthly, 365 = daily), t = time in years.

If that looks scary, breathe. We're about to break it down with examples.

Example 1: $10,000, No Contributions, 30 Years

Say you have $10,000 to invest in an index fund averaging 7% annually. You let it sit for 30 years with no additional contributions. Monthly compounding: A = $10,000 × (1 + 0.07/12)^(12×30).

Step by step: 0.07 ÷ 12 = 0.005833. 1 + 0.005833 = 1.005833. 12 × 30 = 360 compounding periods. 1.005833^360 = 8.1165. $10,000 × 8.1165 = $81,165.

Your $10,000 turned into $81,165. You earned $71,165 just by waiting. That's compound interest doing what it does.

Example 2: Same $10,000, Add $200/Month

Same 7%, same 30 years. But you add $200 every month without fail.

You put in $10,000 + ($200 × 360) = $82,000 total. Final amount: $306,758. The other $224,758 is pure compound growth. That's the difference between saving money and having your money work.

Example 3: The Cost of Waiting 10 Years

Same plan — $10,000 initial, $200/month, 7%. But you wait 10 years before starting. Only 20 years of growth now.

Final amount: $139,316. You waited 10 years and lost over $167,000. Compound interest punishes delay more than most people realize. "Start early" isn't just advice — it's math.

Example 4: Fees Eat Your Compounding Alive

Same scenario but a managed fund charging 1.5% instead of a 0.03% index fund. Real return drops from 7% to 5.5%.

At 5.5% for 30 years: $221,451. That 1.5% fee cost you $85,307. For a fee that sounds small, the compounding effect over decades is brutal. This is why expense ratios matter.

Common Mistakes

  1. Wrong compounding frequency. Most bank accounts compound daily. Credit cards compound daily too — in the wrong direction. The difference between annual and daily compounding on a $10,000 loan at 20% APR is about $210 extra per year.

  2. Forgetting inflation. 7% nominal return minus 3% inflation = 4% real return. Always run your numbers both ways to understand what your future money will actually buy.

  3. Ignoring taxes. Tax-advantaged accounts like 401k and IRA let compounding work undisturbed by capital gains tax.

  4. Assuming past returns equal future returns. They don't. Run multiple scenarios — 5%, 7%, 9% — to understand the range.

Try It Yourself

If you want to experiment with different numbers — different starting amounts, contribution rates, time horizons — there are free tools that do the math instantly. I built one at https://finikit.com/tools/compound-calculator.html that handles dual-frequency compounding (you can set different contribution and compounding frequencies independently). Runs entirely in your browser, no signup needed.

The important thing isn't getting the number exact to the penny. It's understanding the relationship between time, rate, and contributions well enough that you make better decisions.

Every dollar you invest today is doing more work than a dollar you invest next year, and that gap only widens with time.

Top comments (0)