Free Online Compound Interest Calculator
See how a starting amount and monthly contributions grow over time.
Read articleRuns in your browser — nothing is sent
What the compound interest calculator shows
This compound interest calculator estimates how money can grow when returns are reinvested and earn returns of their own. You enter a starting amount, an optional monthly contribution, an expected annual return, a time horizon and a compounding frequency. The calculator then shows what the balance could be worth at the end, how much of it is money you put in, and how much is growth.
Compound interest is simple to describe and hard to feel intuitively. In the first years the growth looks small. Later, the growth earned on earlier growth starts to dominate the result. The chart and the year-by-year table make that shift visible, which is often more useful than the final number itself.
The calculator is built for planning questions such as: how much could a lump sum become in 20 years, how much does a regular monthly contribution add, what changes if I contribute for only part of the period, and how sensitive is the result to the return I assume. It runs entirely in your browser, and nothing you type is sent anywhere.
In this guide:
- How to fill in every field and read the results
- The exact compound interest formula the calculator uses, and its assumptions
- Simple vs compound interest, compounding frequency and the rule of 72
- Reference tables and three worked examples in US dollars
- Common mistakes and what the calculator cannot tell you
If you are new to the idea, the basics article on compound interest and the time value of money explains the concept step by step before you start experimenting with numbers.
How to use the compound interest calculator
The inputs appear in the order below. The calculator opens in US dollars with the default values in the table below, and the examples in this guide keep USD. On wide screens the UAH / USD / EUR switch sits in the header of the Your numbers panel; on phones and tablets it is under More options. The currency changes only how numbers are shown, not the math.
Each of the four main inputs has a number box and a slider. Type a value to go beyond the slider's range.
- Initial amount. The money you invest at the start. Enter 0 if you start from nothing. The slider runs to 100,000 in USD or EUR and to 2,000,000 in UAH.
- Monthly contribution. The amount you add every month. Enter 0 to model a single lump sum. The slider runs to 5,000 in USD or EUR and to 100,000 in UAH.
- Expected annual return. The nominal yearly rate you assume, in percent. The slider covers 0% to 15%, and you can type up to 50%. The Conservative, Moderate and Aggressive chips under the slider set 5%, 8% or 11% in one click.
- Investment period. The total number of years the money stays invested, from 1 to 50.
More options is collapsed at first and holds the rest:
- Compounding frequency. Monthly, Quarterly, Semiannual or Annual.
- Months with contributions. How many months, counted from the start, you keep adding the monthly contribution.
- A note that monthly contributions are added at the end of each month.
On phones, the two money fields use − and + buttons instead of a slider, in steps of 1,000 and 50 in USD or EUR. The return and the period keep their sliders.
| Input | What to enter | Default and range |
|---|---|---|
| Initial amount | Starting balance | 10,000; 0 or more |
| Monthly contribution | Amount added each month | 500; 0 or more |
| Expected annual return | Nominal yearly rate in percent | 8%; 0% to 50% (slider to 15%) |
| Return chips | A preset for the annual return | 5%, 8% or 11% |
| Investment period | Total horizon in whole years | 10; 1 to 50 years |
| Display currency | The currency symbol for all results | USD (also UAH, EUR) |
| Compounding frequency (More options) | How often growth is added | Monthly (also Quarterly, Semiannual, Annual) |
| Months with contributions (More options) | Months of contributions from the start | 120; 0 up to the period in months |
Months with contributions follows the investment period while the two match. If you change the period and contributions currently cover the whole horizon, they keep covering it. If you have set a shorter contribution window, it stays as it is, and is only cut back if the new period is shorter than the window.
Reading the results
On wide screens the results sit to the right of the inputs and stay in view while you scroll. The headline, Final portfolio value after N years, is the balance at the end of the period. A bar under it splits that balance in two, with a figure for each part. You put in is everything you contributed, and it includes the initial amount as well as every monthly contribution. Growth is the difference between the two, with its share of the final balance in brackets.
Below that, two tabs show the path to the result. Chart stacks your contributions and the growth for each year, with the portfolio line on top. Year by year lists, for every year, the cumulative contributions, the cumulative growth and the end balance. Watch the year in which the growth column overtakes the contributions column: that is where compounding starts doing more of the work than your saving.
Four buttons sit next to the headline:
- Pin to compare keeps the current inputs as a reference while you try others. The headline then shows the difference, such as +$25,000 vs pinned, the chart adds the pinned balance as a dashed line, and a Pinned scenario caption lists the pinned inputs. The pin lives only in memory: switching the currency, Reset or reloading the page clears it.
- PDF exports the inputs, the summary (final portfolio value, total contributions and total investment gain) and the yearly table. The pinned scenario is never included.
- Share shares a link to the page, without your numbers.
- Reset, the round-arrow button on wide screens, restores the defaults.
On phones and tablets, the results live in a bar fixed to the bottom of the screen. It always shows the headline and updates as you change the inputs. Details opens the figures, the two tabs and the buttons, and Less closes them again.
How the compound interest formula works in this calculator
The classic compound interest formula
For a single amount with no contributions, the textbook compound interest formula is:
A = P × (1 + r/n)^(n × t)Ais the amount aftertyearsPis the principal, the starting amountris the nominal annual rate as a decimal (8% is 0.08)nis the number of compounding periods per year (12 monthly, 4 quarterly, 2 semiannual, 1 annual)tis the number of years
The rate is divided by n because the nominal rate is quoted per year but applied per period. The exponent counts how many times interest is added in total.
From the annual rate to a monthly rate
The calculator steps through time one month at a time, because contributions are monthly. It therefore converts the nominal rate and the compounding frequency you choose into one equivalent monthly rate:
i = (1 + r/n)^(n/12) − 1With monthly compounding this is simply r/12: at 8% the monthly rate is 0.6667%. With annual compounding the same 8% becomes 0.6434% per month, which, compounded over 12 months, gives exactly 8% for the year. Because the conversion is exact, a lump sum shows the same yearly values as the classic formula for every frequency. With 8% and annual compounding, $10,000 becomes $21,589 after 10 years either way.
How monthly contributions are added
Each month the calculator does two things, in this order:
balance = balance × (1 + i)
balance = balance + PMT (while month ≤ c)PMT is the monthly contribution and c is the number of months with contributions. Because growth is applied before the contribution, each contribution is added at the end of its month and starts earning from the next month. When contributions run for the whole period of m months, the loop gives the same result as the closed-form future value:
FV = P × (1 + i)^m + PMT × ((1 + i)^m − 1) / iWhen contributions stop after c months, the balance at that point keeps compounding for the remaining m − c months with nothing added.
Assumptions behind the numbers
- Constant return. The same rate applies every month. Real returns vary, sometimes sharply, and can be negative for years.
- End-of-month contributions. Contributions are added after the month's growth. Investing at the start of each month would give a slightly higher result.
- Contributions start in month one and run for the number of months you set. A contribution gap in the middle cannot be modelled.
- Fixed contribution. The monthly amount does not rise with pay or inflation.
- Compounding frequency sets the effective rate. Growth is applied monthly at the equivalent rate even when you choose annual compounding, so money added mid-year earns a proportional share of that year's growth. A bank that credits interest only once a year may treat deposits made during the year differently.
- Not modelled: taxes, fees, inflation, currency conversion and withdrawals. All results are nominal and before costs.
Simple vs compound interest
The difference between simple and compound interest is what the interest is calculated on. Simple interest is always paid on the original principal only. Compound interest is paid on the principal plus the interest already earned. That is the whole answer to "what is compound interest in math": a growth rate applied to a balance that includes past growth, which turns a straight line into a curve.
With simple interest, $10,000 at 6% earns $600 every year, forever. With compound interest, the first year also earns $600, but the second year earns 6% of $10,600, and so on. The gap is invisible at first and then widens quickly:
| Years | Simple interest | Compound interest, annual | Difference |
|---|---|---|---|
| 1 | $10,600 | $10,600 | $0 |
| 5 | $13,000 | $13,382 | $382 |
| 10 | $16,000 | $17,908 | $1,908 |
| 20 | $22,000 | $32,071 | $10,071 |
| 30 | $28,000 | $57,435 | $29,435 |
| 40 | $34,000 | $102,857 | $68,857 |
The table assumes $10,000 at 6% per year, no contributions and annual compounding for the compound column. The simple-interest column uses P × (1 + r × t), which this calculator does not model, because almost every savings or investment product that reinvests its income compounds.
Two practical points follow. First, compounding only happens when returns stay invested. If interest or dividends are paid out and spent, the growth behaves like simple interest. Second, the table shows why the early years can feel disappointing: after five years the compounding bonus is less than 4% of the starting amount. Time is the ingredient that makes the difference large, which is the main theme of the time value of money.
Compounding frequency and the compounding period
The compounding period is how often earned interest is added to the balance so that it starts earning interest itself. Savings products usually state a nominal annual rate together with a compounding frequency. The more often interest is added, the higher the effective annual rate for the same nominal rate.
The effective annual rate (sometimes called the annual percentage yield) is:
EAR = (1 + r/n)^n − 1Here is the same $10,000 at 8% nominal per year with no contributions, using each frequency the calculator offers:
| Compounding frequency | Effective annual rate | After 10 years | After 30 years |
|---|---|---|---|
| Annual | 8.000% | $21,589 | $100,627 |
| Semiannual | 8.160% | $21,911 | $105,196 |
| Quarterly | 8.243% | $22,080 | $107,652 |
| Monthly | 8.300% | $22,196 | $109,357 |
Monthly compounding beats annual by $607 after 10 years and by $8,730 after 30 years. That is real money, but it is small next to changes in the rate or the horizon. Adding $500 a month for 30 years at 8% gives $745,180 with monthly compounding and $704,275 with annual compounding. Changing the rate by one percentage point moves the result much more: with monthly compounding the same plan gives $609,985 at 7% and $915,372 at 9%.
Compounding frequency matters most when you compare two products that quote the same nominal rate in different ways. In that case, compare effective annual rates, not headline rates. For investments such as stock funds there is no contractual compounding schedule at all: the growth comes from price changes and reinvested dividends. For those, treat the expected annual return as an effective yearly rate and choose Annual compounding, so the calculator does not add the small extra from more frequent compounding to an assumption that already includes it.
The calculator does not offer daily compounding. At typical rates the effective annual rate of daily compounding is only marginally above monthly compounding, so the monthly setting is a close approximation.
The rule of 72
The rule of 72 is a mental shortcut for doubling time: divide 72 by the annual rate in percent, and the result is roughly how many years it takes money to double. At 8%, 72 ÷ 8 = 9 years. The calculator confirms it: $10,000 at 8% with annual compounding reaches $19,990 after 9 years and $21,589 after 10.
The exact doubling time for annual compounding is:
years to double = ln(2) ÷ ln(1 + r)The rule works because ln(2) is about 0.693, and for moderate rates ln(1 + r) is a little less than r, so dividing 72 by the rate in percent lands close to the true answer. It is most accurate around 8%:
| Annual rate | Rule of 72 | Exact, annual compounding | Exact, monthly compounding |
|---|---|---|---|
| 2% | 36.0 years | 35.0 years | 34.7 years |
| 3% | 24.0 years | 23.4 years | 23.1 years |
| 4% | 18.0 years | 17.7 years | 17.4 years |
| 6% | 12.0 years | 11.9 years | 11.6 years |
| 8% | 9.0 years | 9.0 years | 8.7 years |
| 9% | 8.0 years | 8.0 years | 7.7 years |
| 10% | 7.2 years | 7.3 years | 7.0 years |
| 12% | 6.0 years | 6.1 years | 5.8 years |
The rule also works in reverse. If you want to double your money in 10 years, you need roughly 7.2% a year (7.18% exactly with annual compounding). And it works for anything that compounds, including costs: at 3% inflation, prices double in about 24 years by the rule (23.4 years exactly), which means the purchasing power of cash held at a zero interest rate halves over the same period. The inflation basics article explains why that matters for long-term goals.
Use the rule of 72 for a quick sense check, and the calculator for anything you want to rely on. The rule ignores contributions, which in most real plans make up a large part of the final balance.
Time, rate and monthly contributions
Three levers drive a compound interest result: how long the money is invested, the return it earns, and how much you add. The calculator lets you move each one separately, and the effects are not equal.
Time and rate together
A common question is how much a sum will be worth in 20 years. Here is $50,000 with no further contributions and monthly compounding, at the three quick return scenarios:
| Years invested | At 5% | At 8% | At 11% |
|---|---|---|---|
| 5 | $64,168 | $74,492 | $86,446 |
| 10 | $82,350 | $110,982 | $149,457 |
| 15 | $105,685 | $165,346 | $258,399 |
| 20 | $135,632 | $246,340 | $446,751 |
| 25 | $174,065 | $367,009 | $772,394 |
| 30 | $223,387 | $546,786 | $1,335,405 |
Read down a column and you see the effect of time; read across a row and you see the effect of the rate. Both interact: the gap between 5% and 11% is $67,107 after 10 years and over $1.1 million after 30. Higher assumed returns usually come with more risk, meaning a wider range of possible outcomes and deeper temporary losses. The risk and return article explains that trade-off, and why an 11% assumption is not simply a better plan than a 5% one.
Lump sum versus monthly contributions
Suppose you will invest $60,000 over 10 years at 7% with monthly compounding. If you invest it all on day one, the calculator shows $120,580. If you invest $500 a month for 120 months instead, the result is $86,542. Splitting it, $30,000 up front plus $250 a month, gives $103,561. The total contributed is $60,000 in all three cases.
The lump sum wins in this model because every dollar is invested for the full period. In practice most people do not have the full amount on day one, and investing monthly from income is the realistic option. Spreading purchases over time also reduces the risk of investing everything just before a market fall, which this constant-return model cannot show. The dollar-cost averaging article covers that side, and the dollar-cost averaging calculator models it with your numbers.
The downside of compound interest
Compounding is neutral: it amplifies whatever rate it is given. That has three consequences that the headline numbers can hide.
Debt compounds too. A $5,000 balance at 24% a year, compounded monthly, with no payments, grows to $6,341 after one year, $10,199 after three and $16,405 after five, using this calculator's math. Real credit-card statements differ in detail, but the direction is the same. Paying off high-interest debt works like a guaranteed return equal to the interest rate you stop paying, which few investments can match. The loan and mortgage calculator shows how interest builds up on a repayment schedule.
Costs and inflation compound against you. A fund fee of 1% a year sounds small, but it is taken from a growing balance every year. Inflation reduces what each future dollar buys. The calculator shows nominal values before both, but you can approximate them by lowering the return. Here is $10,000 plus $300 a month for 30 years with monthly compounding:
| Scenario | Return entered | Final portfolio value | Total investment gain |
|---|---|---|---|
| Before fees and inflation | 7% | $447,156 | $329,156 |
| After a 0.5-point annual fee | 6.5% | $401,771 | $283,771 |
| After a 1-point annual fee | 6% | $361,580 | $243,580 |
| In today's money, 3% inflation | 3.9% | $236,702 | $118,702 |
| 1-point fee and 3% inflation | 2.9% | $195,701 | $77,701 |
Total contributions are $118,000 in every row. The 3.9% figure is the real return implied by 7% nominal growth and an assumed 3% inflation, (1.07 ÷ 1.03) − 1 = 3.88%, rounded to one decimal place for the table (the rate field also accepts 3.88 if you prefer the exact figure); the last row does the same for 6% after fees, (1.06 ÷ 1.03) − 1 = 2.91%. Subtracting a fee from the return is an approximation; the fees drag calculator models costs directly, and the inflation impact calculator shows the purchasing-power side.
Compounding needs time, and returns are not smooth. In the early years most of the balance is your own money, so a bad year in the market is felt in full while the compounding bonus is still small. The steady curve in the chart is a model; a real portfolio gets there, if it does, along a bumpy path.
Compounding does not care whether the rate is working for you or against you. A small rate on a large balance for a long time is never small.
Compound growth at a glance
These two tables give quick reference values computed with the calculator's own math, with monthly compounding and no taxes, fees or inflation. Because the math is proportional, you can scale them: double the amount and the result doubles.
$10,000 invested once, no contributions:
| Annual return | 10 years | 20 years | 30 years | 40 years |
|---|---|---|---|---|
| 2% | $12,212 | $14,913 | $18,212 | $22,241 |
| 4% | $14,908 | $22,226 | $33,135 | $49,399 |
| 6% | $18,194 | $33,102 | $60,226 | $109,575 |
| 8% | $22,196 | $49,268 | $109,357 | $242,734 |
| 10% | $27,070 | $73,281 | $198,374 | $537,007 |
| 12% | $33,004 | $108,926 | $359,496 | $1,186,477 |
$100 a month, added at the end of each month, starting from zero:
| Annual return | 10 years | 20 years | 30 years | 40 years |
|---|---|---|---|---|
| 2% | $13,272 | $29,480 | $49,273 | $73,444 |
| 4% | $14,725 | $36,677 | $69,405 | $118,196 |
| 6% | $16,388 | $46,204 | $100,452 | $199,149 |
| 8% | $18,295 | $58,902 | $149,036 | $349,101 |
| 10% | $20,484 | $75,937 | $226,049 | $632,408 |
| 12% | $23,004 | $98,926 | $349,496 | $1,176,477 |
The contributions alone are $12,000 after 10 years, $24,000 after 20, $36,000 after 30 and $48,000 after 40. Everything above those figures is growth. To combine a lump sum with monthly saving, add the two results: $10,000 plus $100 a month for 20 years at 6% is $33,102 + $46,204 = $79,306.
Worked examples
Each example below uses USD as the display currency and shows exactly what the calculator returns for the inputs listed.
Example 1: How much will I earn if I invest $100,000?
Given: Initial amount $100,000, Monthly contribution $0, Months with contributions 0, Investment period 10 years, Compounding frequency Monthly. The Expected annual return is set with each of the three quick return scenarios in turn.
Steps:
- Select USD, enter 100000 as the initial amount and 0 for the monthly contribution.
- Set the investment period to 10 years and keep Monthly compounding under More options.
- Click the Conservative, Moderate and Aggressive chips under the return slider in turn, and note the results.
Result:
| Scenario | Investment period | Final portfolio value | Total investment gain |
|---|---|---|---|
| Conservative, 5% | 10 years | $164,701 | $64,701 |
| Moderate, 8% | 10 years | $221,964 | $121,964 |
| Aggressive, 11% | 10 years | $298,915 | $198,915 |
| Conservative, 5% | 20 years | $271,264 | $171,264 |
| Moderate, 8% | 20 years | $492,680 | $392,680 |
| Aggressive, 11% | 20 years | $893,502 | $793,502 |
Total contributions stay at $100,000 in every run. The 20-year rows repeat the same steps with the investment period set to 20. The spread between scenarios is the main lesson: the assumed return is the most uncertain input, so it is worth looking at a range rather than a single number.
Example 2: $10,000 plus $500 a month for 25 years
Given: Initial amount $10,000, Monthly contribution $500, Months with contributions 300, Expected annual return 7%, Investment period 25 years, Compounding frequency Monthly.
Steps:
- Select USD and enter the initial amount and monthly contribution.
- Enter 7 as the expected annual return and 25 as the investment period. Months with contributions, under More options, follows the period and shows 300.
- Read the headline and the two figures, then open the Year by year tab.
Result: Final portfolio value $462,290, you put in $160,000, growth $302,290. Growth makes up 65.4% of the final balance.
| Year | Contributions | Gain | End balance |
|---|---|---|---|
| 1 | $16,000 | $919 | $16,919 |
| 5 | $40,000 | $9,973 | $49,973 |
| 10 | $70,000 | $36,639 | $106,639 |
| 16 | $106,000 | $100,683 | $206,683 |
| 17 | $112,000 | $115,820 | $227,820 |
| 25 | $160,000 | $302,290 | $462,290 |
In year 17 the cumulative gain overtakes the money contributed for the first time. Switching to Annual compounding, which suits an assumed market return, gives $445,795.
Example 3: Saving early for 10 years versus later for 20 years
Given: Two savers each invest $300 a month at 7% with Monthly compounding, starting from an initial amount of $0, and both are measured at the same end date. The early saver contributes for 10 years and then stops adding money; the late saver starts 10 years later and contributes for 20 years.
Steps:
- Early saver: Investment period 30 years, Months with contributions 120 under More options. Click Pin to compare.
- Late saver: change the investment period to 20 years and Months with contributions to 240.
- Read the vs pinned figure next to the headline: the late saver ends $53,435 behind the pinned early saver.
Result:
| Run and point in time | Total contributions | Balance | Total investment gain |
|---|---|---|---|
| Early saver, year 10 (contributions stop) | $36,000 | $51,925 | $15,925 |
| Early saver, year 30 | $36,000 | $209,713 | $173,713 |
| Late saver, year 30 | $72,000 | $156,278 | $84,278 |
| Saving all 30 years, for comparison | $108,000 | $365,991 | $257,991 |
The early saver puts in half as much money and ends $53,435 ahead. Their balance is $51,925 when contributions stop in year 10 (read from the Year by year tab), and the following 20 years of compounding do the rest. The last row sets Months with contributions to 360 in the 30-year run.
Common mistakes when estimating compound growth
- Treating the expected return as a promise. The calculator applies one steady rate. Markets do not, so use several rates and plan for the lower ones.
- Double counting compounding for market returns. Long-run stock or fund returns are usually quoted as annualised (compound annual) rates, which already include compounding. Choosing Monthly compounding on top adds a small extra that the original figure does not contain; Annual is the closer match.
- Forgetting that the initial amount is a contribution. Total contributions include the starting balance, so the gain figure is growth only, not growth plus your first deposit.
- Ignoring fees, taxes and inflation. All results are nominal and before costs. A real return a few points lower changes long-term results a lot, as the downside table shows.
- Comparing products by nominal rate alone. Two savings products with the same headline rate can pay different amounts if they compound differently. Compare effective annual rates.
- Assuming contributions start at the beginning of the month. The calculator adds them at the end, so if your own platform invests on the first day, your real result would be slightly higher.
- Setting the period and forgetting the contribution window. If you shortened Months with contributions earlier, extending the period keeps that shorter window. The field sits under More options, so check it there after each change.
- Using a single rate for very long horizons. A rate that seems reasonable for 10 years is a much bigger assumption over 40, because errors compound as well.
The results are illustrations, not forecasts or financial advice. Past returns do not guarantee future results, and any investment that can earn more than a bank deposit can also lose value.
Limitations and next steps
This calculator answers one question well: how a balance grows at a constant rate with regular contributions. It does not know your taxes, the fees you pay, the inflation you will face, the order in which good and bad years will arrive, or whether you will need the money early. It cannot tell you which investments to choose or what return they will earn.
Use it to understand the shape of compound growth and to compare scenarios side by side, then test the parts it leaves out:
- The investment goal calculator works backwards from a target amount to the monthly contribution needed.
- The fees drag calculator shows how much annual costs take from the final balance.
- The inflation impact calculator turns future amounts into today's purchasing power.
For background, read what investing is and how different types of investment assets carry different levels of risk. For decisions about your own savings, taxes or retirement, consider a qualified, independent financial adviser who can take your full situation into account.
Frequently asked questions
Short answers to the most common questions about compound interest and how this compound interest calculator works.