Skip to main content
ToolMaple

Compound Interest Calculator

See how a starting amount and monthly contributions grow, or work back from a goal to the monthly figure.

Last updated:

The figures below are a sample so the page has something to show (10,000 to start, 500 a month, 7% a year, 20 years). Replace them with your own. Amounts are plain numbers, so read them in whichever currency you use. Nothing here is investment advice.

= 10,000

Final balance
300,851
Total contributed
130,000
Total interest
170,851
Worth in today's money (discounted at 2% inflation)
202,464in today's money
Rule of 72: at 7% a year the balance doubles in about 10.3 years

Growth

Ends at 300,851 · contributions 43% / interest 57%

Year-by-year balance

YearContributedInterestYear-end balance
116,00091916,919
222,0002,33924,339
328,0004,29432,294
434,0006,82540,825
540,0009,97349,973
646,00013,78259,782
752,00018,29970,299
858,00023,57881,578
964,00029,67193,671
1070,00036,639106,639
1176,00044,544120,544
1282,00053,455135,455
1388,00063,443151,443
1494,00074,587168,587
15100,00086,971186,971
16106,000100,683206,683
17112,000115,820227,820
18118,000132,486250,486
19124,000150,790274,790
20130,000170,851300,851

What compounding does, and why the mental shortcut fails

Compound growth means the return is paid on the balance rather than on the original amount, so every period’s gain joins the pile and earns a return of its own. Over a few years that is a rounding difference. Over a few decades it is most of the result.

The usual mental shortcut is to multiply the annual return by the number of years. That is simple interest, and it quietly assumes every gain is taken out and spent. Put 10,000 in at 6% a year and simple interest says 28,000 after thirty years; compounded annually it is about 57,400. The shortcut is not slightly wrong, it is wrong by more than the starting amount.

Monthly contributions cannot be multiplied through either, and this is the part most people get wrong when they try it on paper. Each deposit grows for a different length of time: the first one for the whole period, the last one for a single month. The only correct way is to work out the growth of each deposit separately and add them up, which is what the annuity term on the right of the formula below does in one step.

The formula

FV = P × (1 + r/n)^(nt) + C × [((1 + r/n)^(nt) − 1) / (r/n)]
P = starting amount, C = contribution per period, r = annual return, n = compounding periods per year, t = years

Everything on this page comes from those two terms. No market data is fetched, no rate is looked up, and no figure is suggested to you: the return and the inflation rate are assumptions that you type in, and the output is only as good as they are.

Run the sample values loaded on the page, 10,000 to start and 500 a month at an assumed 7% for 20 years, and the split is worth noticing. You put in 130,000 and finish with about 300,851, so roughly 170,800 of the result came from growth rather than from you. On those same inputs the interest only passes the amount contributed during year 17, which is the honest shape of compounding: nothing much happens for a long time, and then the balance starts doing more work than the standing order does.

Which mode, and what each box is asking

There are two modes at the top. Use Forward when you know what you can put in every month and want to see where it lands. Use Work back from a goal when you know the number you need and want the monthly figure that gets you there.

  • Starting amount: the money going in today. Enter 0 if you are starting from nothing.
  • Monthly contribution: what you will add every month from here. This is the box worth agonizing over, because it is the only input you actually control.
  • Annual return: your assumption, not a quote. Run it once at the figure you hope for and once two points lower.
  • Compounding frequency: monthly, quarterly or annually. It also decides when your deposits are credited, so annual compounding settles a whole year of deposits at the end of that year.
  • Inflation per year: discounts the final balance back to what it would buy at today’s prices. Set it to 0 and that card disappears.
  • Amount you already have (goal mode): money set aside for this goal already. It is grown on its own and taken off the target before the monthly figure is worked out.
  • Contribution timing (goal mode): money paid in at the start of the month earns one extra month of growth, so the required amount comes out slightly lower than for end of month.

Amounts are plain numbers with thousands separators and no currency symbol. Read them in dollars, pounds, euros or anything else; the arithmetic does not change.

How to project twenty years of monthly investing

  1. Stay on Forward. The numbers on screen are a sample so the page has something to draw; replace all four.
  2. Put what you are investing today in the starting amount. The line under the box repeats it with separators, which is how you catch a missing zero.
  3. Enter the monthly contribution you can genuinely sustain, not the one you would like to sustain. A figure you abandon in year three makes the whole projection fiction.
  4. Enter an annual return you are prepared to defend, then lower it by two points and run it again. The gap between the two results is more useful than either number alone.
  5. Read the three cards: final balance, total contributed, total interest. The third is what compounding added; the second is what you did.
  6. On the growth chart, find the year where the interest band gets thicker than the contributions band. That crossover is the point where the balance is doing more work than you are.
  7. Fill in an inflation assumption and a second card appears showing the same balance in today’s money. A million thirty years out is not a million now.
  8. Scroll the year-by-year table for any single year. Every row shows what you had put in, what the interest had added, and the year-end balance.

How to work back from a target to a monthly amount

  1. Switch to Work back from a goal. The panel changes and asks five things.
  2. Enter the target, then the number of years until you need it. For a date rather than a count of years, the countdown tool converts one into the other.
  3. Enter an assumed annual return. It is still an assumption here, and it moves the answer a lot, so try a cautious one as well.
  4. Put anything you have already set aside for this goal into amount you already have. It compounds on its own to the end date, and only the shortfall is spread across the monthly deposits. Leave it at 0 if there is nothing yet.
  5. Pick start or end of month. End of month is the conservative choice and returns the slightly higher monthly figure.
  6. The large number is the monthly amount, rounded up to a whole unit, so a standing order at or above it is safe.
  7. If the answer is out of reach, lengthen the timescale or lower the target and run it again. Those two levers are real; raising the assumed return only changes the spreadsheet.

The rule of 72

Divide 72 by the annual return and you get a rough doubling time: 6% doubles in about 12 years, 8% in about 9, 12% in about 6. The figure shown under the results uses exactly that, which is why it is labeled as an approximation.

It is accurate enough for mental arithmetic in the middle single digits and drifts at the extremes. The exact doubling time at 8% is 9.006 years, so the rule is off by less than a week; at 1% the true answer is 69.7 years against the rule’s 72. Use it to sanity check an order of magnitude, never as the number you plan around.

Getting the result out of the page

There is no export button, and nothing here needs an account. A few ways to take the result with you:

  • Keep a copy: screenshot the result cards and the chart together with the inputs you typed. A final balance without its assumptions is unreadable a week later, including to you.
  • Into a spreadsheet: drag to select the year-by-year table and copy. Pasting into Excel, Google Sheets or Numbers usually keeps the four columns. On a phone, long press the first cell and drag to the last.
  • Print or save as PDF: Ctrl+P on Windows, Cmd+P on a Mac, then choose Save as PDF in the printer list. On iPhone and Android use the browser share menu and pick Print or Save as PDF.
  • Compare two sets of assumptions: the recent entries list keeps your last few inputs, so one tap restores a previous set and you can flip between them instead of retyping.
  • Sending it to someone: always include the four assumptions. The final balance on its own is not a fact about the world, it is arithmetic performed on your guesses.

Your inputs are never written into the address bar, so copying the URL shares the tool, not your numbers. Whoever opens it sees the sample values and types their own.

The same sum in a spreadsheet, and why quoted rates differ

If you want to reproduce or extend this in a spreadsheet, Excel, Google Sheets and LibreOffice Calc all take the same two functions. Rates are per period, so a 7% annual return compounded monthly is entered as 7%/12 with 20*12 periods:

=FV(7%/12, 20*12, -500, -10000, 0)
=PMT(5%/12, 20*12, 0, 1000000, 0)

  • Signs are a convention, not a bug: money you pay in is negative and money that comes back is positive, which is why the contribution and the starting amount are entered as negatives above. Mixing the signs is the usual reason a spreadsheet answer looks absurd.
  • The last argument is the timing: 0 means the end of each period, 1 means the start. It is the same switch as the contribution timing in this page’s goal mode, and leaving it out defaults to 0.
  • Nominal is not effective: 7% a year compounded monthly is an effective 7.23%, because (1 + 0.07/12)^12 − 1 works out at 0.0723. A product advertising an annual equivalent rate has already done that conversion for you; one quoting a nominal rate has not.
  • Other calculators will not match to the unit: some credit deposits at the start of the period, some compound daily, some round each month. A few percent of difference between two honest calculators over twenty years is normal. If two results differ by a lot, the compounding basis or the deposit timing is almost always why.
  • In code: the lump sum is p * Math.pow(1 + r, n) and the deposits are c * (Math.pow(1 + r, n) - 1) / r, with the r === 0 case handled separately because that divides by zero.

If a bank or broker calculator disagrees with this one and you want to know why, set the monthly contribution to 0 on both and compare again. With the deposits out of the way, any remaining gap is the compounding basis alone. Put the contribution back and a new gap appears only if the two tools credit deposits at different points in the period. That takes about a minute and usually explains the whole difference.

What this number is not

  • The return is your assumption, not a rate this page looked up or endorses. Markets do not hand out the same figure every year, and a smooth curve drawn from one number will not match a real sequence of good and bad years even if the average matches.
  • Tax, fees and currency are all excluded. So is any income you take out and spend rather than reinvest. How investment income and gains are taxed depends on where you live and on the account the money sits in.
  • The compounding choice moves the result: with annual compounding, a year of deposits is settled at the end of that year, so the same inputs return less than with monthly compounding. That is the model, not an error.
  • The goal mode is deliberately simple: monthly compounding, a fixed return for the whole period, and the same return applied to any amount you already have.
  • The rule of 72 is an approximation for doubling time. It is a sanity check, not a result.

This is a calculator, not investment advice, and it does not recommend any product, fund or strategy. Whether to invest, in what, and how much, is yours to judge against your own circumstances and tolerance for loss, and it is worth talking to a qualified adviser in your country if the decision is a large one.

One observation that survives every set of assumptions: over long horizons, adding years usually moves the final balance more than adding a point or two to the assumed return. Try both on the tool and see. Only one of them is under your control.

Frequently asked questions

What is compound interest, and how is it different from simple interest?

Simple interest pays only on the original amount. Compound interest pays on the balance, so last period's interest earns interest of its own. Start with 10,000 at 6% a year: after 30 years simple interest gives 28,000, while annual compounding gives about 57,400. The gap is small early on and widens the longer the money is left alone, which is why the last decade of a long plan usually adds more than the first two combined.

How do monthly contributions change the calculation?

They cannot be multiplied through, because each deposit grows for a different length of time. The first one compounds for the whole period, the last one for almost none. The calculator handles the starting amount with the lump sum formula and the deposits with the annuity formula, then adds the two. That is why adding 500 a month for 20 years at 7% is worth far more than 500 x 240, and far less than 120,000 compounded from day one.

What annual return should I enter?

Whatever you are willing to defend as an assumption. This page does not look up market data, does not suggest a figure and cannot tell you what any investment will do. A useful habit is to run the number you hope for, then run it again two percentage points lower and look at the difference. If the plan only works at the optimistic figure, it is the plan that needs changing, not the assumption.

What is the rule of 72?

Divide 72 by the annual return and you get a rough number of years for the balance to double: 6% is about 12 years, 8% about 9, 12% about 6. It is an approximation that is closest for rates in the middle single digits and drifts at very low or very high rates. Use it for mental arithmetic, not for a figure you are going to act on. The exact answer for 8% is 9.006 years; the rule says 9.

Does the compounding frequency really matter?

Less than people expect, and mostly through a second effect. Compounding 7% monthly rather than annually turns a nominal 7% into an effective 7.23%, worth a few percent over 20 years. The bigger difference in this calculator is when your monthly deposits are credited: choose annual compounding and the twelve deposits for a year are settled at the end of that year, so the same inputs return a lower total. That is the model working, not a bug.

Why is the inflation-adjusted figure so much lower?

Because it answers a different question. The final balance is a nominal number, and the adjusted one divides it by (1 + inflation) raised to the number of years, which is what that pile would buy at today's prices. At 2% inflation, a balance 30 years out is worth about 55% of its face value in today's terms. Leave the inflation box at 0 and the card disappears.

How do I work out what I need to save each month for a goal?

Switch to the goal mode at the top. Enter the target, the number of years, an assumed return and anything you already have set aside. The existing amount is grown on its own to the end date and subtracted from the target, so only the shortfall has to come from monthly deposits. The answer is rounded up to a whole unit, so setting a standing order at or above that figure is safe.

Are contributions counted at the start or the end of the month?

The forward mode credits a deposit after each compounding period, which is the ordinary annuity convention. The goal mode lets you pick: start of month gives every deposit one extra month of growth, so the required monthly figure comes out slightly lower. If you are not sure which matches your bank, leave it on end of month, which is the more conservative of the two.

Does this include tax, fees, or dividends being reinvested?

No. The model assumes every unit of return stays invested and that nothing is deducted along the way. Real results are reduced by tax on income and gains, platform and fund fees, currency conversion, and by any income you take out and spend instead of reinvesting. Treat the output as a ceiling on a set of assumptions rather than a forecast, and note that tax treatment depends entirely on where you live.

What currency are these numbers in, and does anything leave my browser?

None and nothing. Amounts are shown as plain numbers with thousands separators and no currency symbol, so read them in whatever currency you use; the maths is identical either way. Every calculation runs in your browser, nothing you type is uploaded or written into the URL, and the recent entries list is stored only in this browser, where you can delete it at any time.

Sources

  • The arithmetic is the future value of a lump sum plus the future value of an ordinary annuity, printed in full in the formula box above. It is standard financial mathematics, and this page is not connected to any market, rate or index data source.
  • The annual return and the inflation rate are values you enter. For real reference figures, consumer price indices are published by national statistics agencies, deposit rates by individual banks, and fund returns and ongoing charges in each fund’s own factsheet and prospectus.
  • The FV and PMT signatures, the sign convention and the trailing timing argument are documented by Microsoft for Excel and by Google for Sheets in their respective function reference pages.
  • The rule of 72 is a well known approximation for doubling time, not an exact formula. Its error grows as the rate moves away from the middle single digits.

More tools

To turn a target date into the number of years this calculator wants, the countdown timer counts down to any date. If the horizon is an age rather than a date, such as the years between now and a retirement birthday, the age calculator gives the exact gap in years, months and days.

Related tools

Privacy: every calculation runs in your browser. The starting amount, contributions, return, inflation rate and target never leave your device and are never written into the URL, so a copied link carries the tool and not your figures. The recent entries list is stored only in this browser’s local storage, disappears if you clear site data or switch devices, and can be deleted from the list itself at any time.