Compound interest calculator with monthly contributions

Enter a starting amount, a yearly interest rate and what you add each month, quarter or year. You get the final balance, how much of it is your own money and how much is interest, with a chart and a year-by-year table. Tax on interest and inflation are optional.

Your numbers

An example is filled in so you can see a result; replace it with your own. Use one currency throughout. Results update as you type.

Term
Regular contribution
Optional

Leave blank for none.

Your result

Final balance

—

 

You put in

—

Starting amount + contributions

Interest earned

—

Final balance − money put in

    Worked out in your browser. What you type is not sent anywhere and not saved.

    How the balance grows

    Year by year

    What compound interest is

    Compound interest is interest paid on interest. Each time interest is added to your balance, it becomes part of the amount the next interest is worked out on. Simple interest, by contrast, is paid only on the money you put in.

    Over a year or two the difference is small. Over decades it takes over. 10,000 at 6% a year earns 600 of interest in the first year either way. With simple interest the tenth year also earns 600. Compounded yearly, the tenth year earns 1,013.69, because by then the balance is 16,894.79 rather than 10,000.

    Regular contributions add a second effect: every deposit starts its own small run of compounding. In the example the calculator opens with, the money you put in is 82,000 and the interest is 114,665.39. Interest overtakes the money put in during year 16.

    The compound interest formula

    For a single amount with no contributions:

    A = P × (1 + r/n)nt
    • A: the balance at the end
    • P: the starting amount
    • r: the yearly rate as a decimal (7% is 0.07)
    • n: how many times a year interest is added (12 for monthly, 365 for daily)
    • t: the number of years

    With a contribution PMT at the end of each compounding period, add the future value of the contributions:

    A = P × (1 + r/n)nt + PMT × ((1 + r/n)nt − 1) ÷ (r/n)

    If each contribution goes in at the start of the period instead, multiply the contribution part by (1 + r/n): every payment gets one more period of interest.

    These formulas only hold when contributions and compounding run on the same schedule, the rate is fixed and nothing else changes. Monthly deposits with daily or yearly compounding, a contribution that rises each year, or tax taken from each period’s interest need a step-by-step calculation, which is what the calculator does.

    Worked example: 300 a month for 20 years at 7%

    Start with 10,000, add 300 at the end of every month for 20 years, and earn 7% a year compounded monthly. These are the numbers the calculator opens with.

    1. Rate per period: r/n = 0.07 ÷ 12 = 0.0058333…. Number of periods: nt = 12 × 20 = 240.
    2. Growth factor: (1 + 0.07/12)240 = 4.0387388…
    3. The starting amount grows to 10,000 × 4.0387388… = 40,387.39.
    4. The contributions grow to 300 × (4.0387388… − 1) ÷ 0.0058333… = 156,278.00.
    5. Final balance: 40,387.39 + 156,278.00 = 196,665.39.

    You put in 10,000 + 240 × 300 = 82,000. The other 114,665.39 is interest.

    The same example at five points along the way
    AfterMoney put inInterest so farBalance
    1 year13,600.00840.6814,440.68
    5 years28,000.007,654.1235,654.12
    10 years46,000.0026,022.0672,022.06
    15 years64,000.0059,578.16123,578.16
    20 years82,000.00114,665.39196,665.39

    Change one input at a time and the calculator shows what it is worth:

    • Contributions at the start of each month: 197,577.01, which is 911.62 more.
    • Contribution raised by 3% each year: 236,660.56, from 106,733.35 put in.
    • 20% tax on interest: 162,796.80. Interest after tax is 80,796.80 and the tax is 20,199.20.
    • 2.5% inflation: the 196,665.39 buys what 120,019.17 buys today.

    How compounding frequency changes the result

    The more often interest is added, the sooner it starts earning interest itself. The effect is real but small next to the rate and the number of years.

    10,000 at 6% for 10 years, no contributions
    CompoundingEffective rate per yearFinal balance
    Yearly6.00%17,908.48
    Quarterly6.14%18,140.18
    Monthly6.17%18,193.97
    Daily6.18%18,220.29
    The worked example (10,000, then 300 a month at 7% for 20 years)
    CompoundingEffective rate per yearFinal balance
    Yearly7.00%191,015.60
    Quarterly7.19%195,580.28
    Monthly7.23%196,665.39
    Daily7.25%197,214.26

    Going from monthly to daily compounding adds 548.87 over 20 years. Raising the rate from 7% to 8% with monthly compounding adds about 29,300. When you compare two savings accounts, compare their effective rates (often labelled APY or AER), which already include the compounding.

    How the calculator handles mixed schedules

    Many accounts add interest less often than you pay in, or more often. The calculator does not approximate this; it steps through the term one period at a time:

    • Interest builds up on the balance each month (each day with daily compounding) and is added to the balance at the end of every compounding period. Only then does it start earning interest of its own.
    • A contribution made partway through a compounding period earns simple interest until that period ends. With yearly compounding, 100 paid in at the start of every month at 10% ends the first year at 1,265: the January payment earns 12 months of interest, the December payment one.
    • Daily compounding uses a 365-day year, with contributions landing every 30 or 31 days, 12 times a year.
    • If the term ends partway through a compounding period, the interest built up so far is added on the last day.
    • A yearly raise applies once a year, from the second year of the term.
    • Tax is taken from each period’s interest before that interest is added to the balance.
    • Nothing is rounded along the way; amounts are rounded to two decimals only for display.

    The rule of 72

    To estimate how long money takes to double at a fixed rate, divide 72 by the yearly rate in percent. At 6%, 72 ÷ 6 = 12 years. The exact answer with yearly compounding is 11.9 years.

    Years to double, no contributions
    Rate per yearRule of 72Exact, yearly compounding
    3%24.023.4
    6%12.011.9
    8%9.09.0
    10%7.27.3
    12%6.06.1

    The rule is closest between about 6% and 10%. It works for inflation too: at 3% a year, prices double, and money loses half its buying power, in about 24 years.

    A fixed rate is a model. A portfolio does not earn one.

    A savings account or a term deposit pays a set rate, and for those this calculator gives the answer. Stocks and funds do not. One year can bring +20% and the next −10%. When you keep adding money, the order of those years matters, because each year’s return lands on a different amount of your money.

    Two investors each put 1,000 in at the start of two years, 2,000 in total. Both get one year of +20% and one of −10%, in opposite order:

    Same deposits, same two returns, different order
    InvestorYear 1Year 2Value after 2 yearsMoney-weighted return
    A+20%−10%1,980−0.67% / yr
    B−10%+20%2,280+9.06% / yr

    A single 1,000 invested once would end at 1,080 in both cases. With a second deposit, A’s bigger balance took the fall and she ended with less than she put in, while B’s bigger balance took the rise. A fixed-rate calculator cannot show this: it assumes the same rate every year, so the order never matters.

    The number that does capture it is the money-weighted return, also called XIRR: the yearly rate your own money earned, given when each deposit went in. You can work out yours from real deposit dates and today’s value with the XIRR calculator. Use this page to plan what regular saving could grow to, and the XIRR calculator to check what it actually did.

    Stock Stats for iPhone

    The rate your portfolio actually earned

    This calculator assumes a rate. Stock Stats works out the real one, the money-weighted return, from your own deposits, buys, sells and dividends, and keeps it current as prices move.

    • A goal planner: set a target, a monthly amount and an expected growth rate, and see how far along you are and when you are on pace to get there.
    • Your rate per year (XIRR) and money made, for the whole portfolio and each holding.
    • Transactions from Interactive Brokers sync, a CSV file or entered by hand. No account; your portfolio stays on your iPhone.
    Download on the App Store

    Compound interest questions

    How is compound interest with monthly contributions calculated?

    Each month the contribution is added to the balance, and interest is worked out on the whole balance, including interest added earlier. With monthly compounding and contributions at the end of each month, the result is P(1 + r/12)^(12t) + PMT × ((1 + r/12)^(12t) − 1) ÷ (r/12). The calculator above runs the same steps one period at a time, so it also handles other compounding frequencies, a yearly increase and tax.

    What is the difference between simple and compound interest?

    Simple interest is paid only on the money you put in. Compound interest is also paid on interest added earlier. 10,000 at 6% a year for 10 years earns 6,000 of simple interest, or 7,908.48 compounded yearly. The gap widens with time: over 30 years it is 18,000 against 47,434.91.

    Does compounding frequency make a big difference?

    Less than the rate and the term do. In the worked example on this page, daily compounding ends 548.87 above monthly compounding after 20 years, while a rate of 8% instead of 7% adds about 29,300.

    Should I choose the start or the end of each period?

    Choose the start if the money goes in at the beginning of each month (or quarter, or year), and the end if it goes in at the end. A contribution at the start earns interest for that whole period; one at the end starts earning in the next. In the worked example, paying at the start of each month ends 911.62 higher after 20 years.

    What is the effective annual rate?

    It is the growth you get in one year once compounding is counted. 7% compounded monthly grows money by 7.23% in a year, and compounded daily by 7.25%. Banks often quote it as APY or AER. The calculator shows it under the result.

    How does the calculator handle tax on interest?

    When you enter a tax rate, that share of each period’s interest is taken off before the interest is added to the balance, so only the interest left after tax compounds. Interest earned is then shown after tax, and the total tax appears under the result. Tax rules differ by country and by account, so enter the rate that applies to you.

    What rate should I use for a stock or ETF portfolio?

    There is no single right rate, because a portfolio does not earn a fixed one. Try a low, a middle and a high rate, and read the range of outcomes rather than one number. To see the rate your own money has actually earned, use the XIRR calculator with your real deposits and today’s value.

    Is anything I enter stored or sent?

    No. The calculation runs in your browser. The numbers you type are not sent anywhere and are not saved. Reloading the page brings back the example.