Compound Interest Calculator

See how an initial deposit plus monthly contributions grow over time โ€” and how much of the final balance is pure interest.

By The PiggyMath Editorial Desk Last updated โœ“ Independently verified against published IRS figures

How this is calculated

Interest compounds monthly: each month the balance grows by annual rate รท 12, then your contribution is added. Future value is FV = P(1+r)โฟ + PMT ร— ((1+r)โฟ โˆ’ 1) รท r.

Worked example: $10,000 to start plus $500 a month at 7% for 20 years grows to $300,851. You contribute $130,000 of that โ€” the remaining $170,851 is interest.

Your plan

Future value
โ€”
โ€”
Total contributed
โ€”
Interest earned
โ€”

Growth over time

Balance vs. what you actually put in
Total balance Contributions

The math behind compound growth

This calculator compounds monthly: each month your balance earns annual rate รท 12, then your contribution is added. Over long horizons the interest-on-interest effect dominates โ€” which is why the gap between the two lines above widens every year.

Where the growth actually comes from

Look at the two lines on the chart. The lower one is money you deposited; the upper one is your balance. In the early years they run close together, because a small balance cannot generate much return and your contributions do nearly all the work. Somewhere around year ten to twelve at typical rates, the crossover happens: annual investment returns begin to exceed annual contributions, and from then on the portfolio grows faster than you can fund it. On the default example โ€” $10,000 to start, $500 a month, 7% for twenty years โ€” you contribute $130,000 and finish with $300,851. More than half the final balance is growth you did not deposit.

This is why starting early beats saving more later, and by a wider margin than intuition suggests. The last decade of any long compounding period produces more growth than the first two combined, so every year you delay removes a year from the most productive end of the curve, not the least.

The returns you should actually model

The S&P 500 has averaged roughly 10% a year over the long run before inflation, but three deductions stand between that headline and your outcome. Inflation takes about three points, leaving roughly 7% in real terms. Fund fees take whatever your expense ratio is โ€” the difference between a 0.03% index fund and a 1% actively managed one is around $60,000 on a portfolio like the example above. And unless the money sits in a tax-advantaged account, tax applies to dividends and to gains when you sell.

Average is also not the same as reliable. A 7% average conceals years of +25% and โˆ’20%, and the order in which those arrive matters enormously if you are withdrawing rather than accumulating. For a long accumulation phase the average is a fair guide; for anything within a few years of when you will need the money, it is not.

Assumptions worth knowing

The model compounds monthly, adds your contribution at the end of each month, and assumes the rate never changes and the contribution never stops. Real portfolios do none of these things. It also ignores inflation entirely, so a projected $300,851 in twenty years buys what roughly $166,000 buys today at 3% inflation. If you want a figure in today's money, enter your expected return minus inflation โ€” around 4% rather than 7% โ€” and read the result as real purchasing power.

Practical implications

Three things follow from the arithmetic. Automate the contribution, because consistency matters more than the amount and a monthly transfer you never think about survives busy periods. Increase it whenever your income does, since a contribution that stays flat for a decade quietly shrinks in real terms. And leave it alone: the projections here assume you never withdraw, and an early withdrawal costs not only the money taken but every year of compounding it would have produced. For retirement-specific projections including the 4% withdrawal rule, use our retirement calculator.

Frequently asked questions

What return should I assume?
The S&P 500 has historically averaged about 10% per year before inflation (roughly 7% after). Conservative planners often model 5โ€“7% for diversified portfolios. Past performance never guarantees future results.
Does compounding frequency matter?
Less than most people think. The difference between monthly and daily compounding on the same APR is typically a few dollars per thousand per year. Contribution amount and time horizon matter far more.
What's the Rule of 72?
Divide 72 by your annual return to estimate the years needed to double your money. At 7%, money doubles roughly every 10.3 years.
Does this account for inflation?
No โ€” results are in nominal dollars. To see purchasing power in today's money, enter your expected return minus expected inflation, so roughly 4% instead of 7%.
How much do fund fees really cost?
More than they look. A 1% annual expense ratio instead of 0.03% costs roughly $60,000 over twenty years on a portfolio of this size, because the fee compounds against you exactly as returns compound for you.
Is it better to invest a lump sum or spread it out?
Historically, investing a lump sum immediately has beaten spreading it out about two-thirds of the time, simply because markets rise more often than they fall. Spreading it out reduces regret if the market drops right after you invest, which is a real psychological benefit even when it costs a little return.