Free Online Deposit vs Investment Calculator
Compare a bank deposit with investing, before and after inflation.
Read articleRuns in your browser — nothing is sent
What the deposit vs investment calculator shows
This deposit vs investment calculator compares two ways of growing the same lump sum over the same period: leaving it in a bank deposit at a fixed rate, or putting it into an investment that earns a steady annual return. It shows what each could be worth at the end in dollars, and what each would be worth in today's money after inflation.
The question behind it is the classic saving vs investing decision. A savings account or certificate of deposit (CD) offers a known rate and a balance that does not fall with the market. An investment such as a stock or bond fund offers the chance of more growth, along with fees, a different tax treatment and prices that move. The calculator puts both on one chart so the trade-off is visible in numbers, not only in principle.
It is built for questions such as: how much more could an investment earn than my deposit over 10 or 20 years, does that gap survive fees, taxes and inflation, and what return does an investment need just to keep up with a good deposit rate. Everything runs in your browser, and nothing you enter is sent anywhere.
In this guide:
- How to fill in every field, including the tax and fee settings under More options
- The exact formulas the calculator uses, and what it leaves out
- Saving vs investing, nominal vs real return, and how taxes and fees shift the result
- Break-even returns, reference tables and three worked examples in US dollars
- Common mistakes and the limits of a constant-return comparison
If the idea of returns growing on top of returns is new to you, the basics article on compound interest and the time value of money is a good starting point.
How to use the deposit vs investment calculator
The calculator opens in US dollars, with $10,000 and the High inflation scenario. The UAH / USD / EUR switch sits in the Your numbers header on wide screens and under More options on phones, and only changes the symbol. The inputs appear in this order:
- Scenarios. The High inflation, Moderate and Conservative chips at the top fill in the deposit rate, investment return, inflation and period in one click. They leave the amount, currency and More options as they are.
- Initial amount. The single sum you compare. It is placed in both the deposit and the investment at the start.
- Annual deposit rate. The interest rate the bank pays per year, in percent.
- Annual investment return. The yearly return you assume for the investment, before the fund fee.
- Annual inflation rate. The yearly rise in prices used to convert results into today's money.
- Period. The number of whole years both options run.
- More options. Under Deposit: Tax on deposit income and Deposit tax timing. Under Investment: Annual fund fee, Tax on investment income and Investment tax timing. Each timing is Annually or At redemption.
Each main input has a slider; on phones, the amount has − and + buttons.
| Input | What to enter | Default and range |
|---|---|---|
| Scenarios | Preset for rates and period | High inflation 15/10/10% over 10 years; Moderate 8/9/4% over 15; Conservative 5/7/2% over 20 |
| Initial amount | Lump sum placed in each option | 10,000; 0 or more |
| Annual deposit rate | Bank's yearly rate | 15%; 0% to 50% (slider to 30%) |
| Annual investment return | Expected yearly return before fees | 10%; 0% to 50% (slider to 20%) |
| Annual inflation rate | Expected yearly price growth | 10%; 0% to 50% (slider to 30%) |
| Period | Whole years | 10; 1 to 50 |
| Tax on deposit income, timing | Tax rate on interest, when it is taken | 0%, Annually; 0% to 50% |
| Annual fund fee | Yearly cost of the fund | 0%; 0% to 10% |
| Tax on investment income, timing | Tax rate on gains, when it is taken | 0%, At redemption; 0% to 50% |
Preset percentages: deposit rate, return, inflation.
Reading the results
The headline, Investing vs deposit after N yrs, is the investment's nominal end value minus the deposit's. A bar splits the two, the deposit in navy and the investment in amber. Deposit end value and Investment end value are the nominal balances after any fee and tax you entered; Deposit real value and Investment real value are the same balances in today's money.
The Chart tab draws solid nominal and dotted real lines in each option's colour, and the Year by year tab lists the four values for every year. More options ends with a note on real values.
Pin to compare keeps the current scenario: the headline adds a grey "vs pinned" chip, the chart two dashed lines, and a caption describes the pinned scenario. Switching the currency, Reset or a reload clears it. PDF exports the inputs, the four results and the yearly table; Share shares a link to the page without your numbers; Reset restores the defaults. On phones and tablets, the results sit in a bar at the bottom of the screen; Details opens the rest.
One detail matters when you use tax At redemption: only the final year in the chart and table is after tax. The earlier years show the balance as if you had not cashed out yet, so the line can step down in the last year. To see the after-tax value at an earlier date, set the Period to that year.
How the deposit vs investment calculation works
The calculator runs two parallel year-by-year loops, one for each option, and then divides both by the same inflation factor.
Deposit growth
Each year, the deposit earns interest on its current balance at the annual deposit rate. With no tax, that is ordinary annual compounding:
Deposit = P × (1 + d)^YPis the initial amountdis the annual deposit rate as a decimal (4% is 0.04)Yis the period in years
Interest is added once a year. The calculator does not offer monthly or daily compounding for the deposit, so if your bank quotes a nominal rate compounded monthly, enter its annual percentage yield (APY) instead; that is the yearly rate the balance actually grows by.
Investment growth and the annual fund fee
The investment works the same way, except that the fee is subtracted from the return first:
g = R − f
Investment = P × (1 + g)^YRis the annual investment return as a decimalfis the annual fund fee as a decimalgis the net yearly growth
A 7% return with a 1% fee therefore grows at exactly 6% a year. A real fund charges its fee as a share of the balance, which works out marginally different; over 30 years on $10,000 the simple subtraction gives $57,435 and charging 1% on the grown balance gives $56,308. The fees drag calculator is built specifically for that question.
Tax timing: annually or at redemption
Each side has its own tax rate t and timing. Annually takes tax from each year's interest or gain before it compounds. At redemption lets the full gain compound and takes tax once, from the total gain, at the end:
Annually: FV = P × (1 + x × (1 − t))^Y
At redemption: FV = P × (1 + ((1 + x)^Y − 1) × (1 − t))Here x is d for the deposit and g for the investment. With the same tax rate and a positive return, both timings give the same result over one year, and At redemption ends higher over any longer period, because money that would have gone to tax keeps earning until the end. This is the deferral effect, and the section on taxes and fees shows how large it gets.
From nominal to real value
Both balances are divided by the cumulative inflation factor for the same year:
Real value = FV ÷ (1 + π)^Yπ is the annual inflation rate as a decimal. The result is the balance in today's purchasing power. Because the same divisor applies to both options, inflation never changes which side is ahead; it changes how much either result is really worth, and whether it beats the starting amount at all.
Assumptions behind the numbers
- Lump sum only. One amount at the start, no monthly contributions and no withdrawals.
- Constant rates. The deposit rate, investment return and inflation are the same every year. There is no volatility, no year in which the market falls and no rate change on renewal.
- Annual compounding on both sides, at the end of each year.
- Fee as a subtraction from the return, applied to the investment only.
- Flat tax rates that you enter; no brackets, allowances, deductions or tax-free accounts. Tax is charged only on a gain. If the fee is higher than the return, the investment shrinks each year by the difference and no tax is charged, so a tax rate never makes a loss smaller.
- Not modelled: early-withdrawal penalties, deposit insurance limits, exchange rates, transaction costs and the order in which good and bad years arrive. Results are illustrations, not forecasts.
Saving vs investing: what is the difference
The difference between saving and investing is mainly about who carries the risk. In a savings account or CD, the bank promises to return your money plus interest, and the account value does not fall when markets do. In an investment, you own assets whose prices move. You keep the upside, and you also carry the downside.
| Feature | Bank deposit (savings account, CD) | Market investment (stocks, bonds, funds) |
|---|---|---|
| Return | Stated rate, fixed for a CD term or variable in a savings account | Not known in advance; can be negative in any year |
| Value along the way | Does not fall with the market | Moves with market prices, sometimes sharply |
| Access | Savings: usually any time; CDs: penalty for early withdrawal in many cases | Usually sellable, but possibly at a bad moment |
| Protection | Deposit insurance up to a limit in many countries | Not covered by deposit insurance |
| Costs | Usually no explicit fee | Fund fees, trading costs |
| Typical use | Emergency fund, goals within a few years | Long-term goals such as retirement |
In the United States, for example, the FDIC insures deposits up to at least $250,000 per depositor, per ownership category, at each insured bank, and it states that this coverage does not extend to stocks, bonds, mutual funds or other non-deposit investment products, even when a bank sells them. Other countries run their own schemes with their own limits.
The calculator models the return side of this table and leaves the rest to you. That is why the most useful way to read it is not "which number is bigger" but "how big is the gap, and is it worth the uncertainty". The risk and return article explains why higher expected returns come with wider ranges of outcomes, and what investing is covers the basics of owning assets rather than lending money to a bank.
Nominal vs real return
A nominal return is the percentage growth of your balance in dollars. A real return is the growth in what that money can buy. The two are linked by the Fisher relationship:
real rate = (1 + nominal rate) ÷ (1 + inflation) − 1A common shortcut is simply nominal minus inflation. It is close at low rates and drifts further off as rates rise. Here is $10,000 left in a deposit for 10 years with no tax, at several rate and inflation combinations, using the calculator's own math:
| Deposit rate / inflation | Real rate per year | Shortcut | Nominal after 10 years | Real value after 10 years |
|---|---|---|---|---|
| 1% / 3% | −1.94% | −2.0% | $11,046 | $8,219 |
| 3% / 3% | 0.00% | 0.0% | $13,439 | $10,000 |
| 4.5% / 3% | 1.46% | 1.5% | $15,530 | $11,556 |
| 5% / 2% | 2.94% | 3.0% | $16,289 | $13,363 |
| 8% / 4% | 3.85% | 4.0% | $21,589 | $14,585 |
| 9% / 10% | −0.91% | −1.0% | $23,674 | $9,127 |
| 15% / 10% | 4.55% | 5.0% | $40,456 | $15,597 |
Two rows make the main point. At 1% interest and 3% inflation, the balance grows by more than $1,000 and still buys about 18% less after 10 years. At 9% interest and 10% inflation, the balance more than doubles in dollars and still loses purchasing power. The nominal end value alone can look reassuring while the real value says otherwise.
That is why the calculator puts the real values next to the nominal ones and draws them as dotted lines. For saving decisions, the real value answers the question you usually care about: will this money buy more or less than it does today? The basics article on inflation and why money loses value explains where inflation comes from, and the inflation impact calculator shows how prices erode a fixed sum over time.
How taxes and fees change the comparison
Fees and taxes are where a headline return turns into the return you keep. Open More options to model both.
Tax timing
The table uses $10,000 invested at 7% a year with no fee, and the same tax rate applied either every year or once at the end:
| Tax rate and period | No tax | Taxed annually | Taxed at redemption | Redemption advantage |
|---|---|---|---|---|
| 15%, 10 years | $19,672 | $17,824 | $18,221 | $397 |
| 15%, 20 years | $38,697 | $31,770 | $34,392 | $2,622 |
| 15%, 30 years | $76,123 | $56,628 | $66,204 | $9,576 |
| 25%, 10 years | $19,672 | $16,681 | $17,254 | $573 |
| 25%, 20 years | $38,697 | $27,825 | $31,523 | $3,697 |
| 25%, 30 years | $76,123 | $46,416 | $59,592 | $13,176 |
The rate is the same in each row; only the timing differs. Over 30 years at 25%, deferring the tax to the end leaves $13,176 more. Choose the timing that matches the rules where you live. In the United States, for example, the IRS treats interest on bank accounts and CDs as taxable income in the year it becomes available to you, while a capital gain arises when you sell an asset. Funds that pay dividends or distributions can still create taxable income each year, so At redemption is a simplification for many investments. Tax-advantaged retirement accounts follow their own rules, which the calculator cannot represent beyond setting a tax rate of 0.
Annual fund fee
Fees work against compounding in the same way that deferral works for it. Here is $10,000 at a 7% return with no tax, after each fee level:
| Annual fund fee | 10 years | 20 years | 30 years | Lost to fees over 30 years |
|---|---|---|---|---|
| 0% | $19,672 | $38,697 | $76,123 | $0 |
| 0.1% | $19,488 | $37,980 | $74,017 | $2,106 |
| 0.25% | $19,217 | $36,928 | $70,964 | $5,159 |
| 0.5% | $18,771 | $35,236 | $66,144 | $9,979 |
| 1% | $17,908 | $32,071 | $57,435 | $18,688 |
| 1.5% | $17,081 | $29,178 | $49,840 | $26,283 |
| 2% | $16,289 | $26,533 | $43,219 | $32,903 |
A 2% fee on a 7% return leaves 5%, which is exactly what a 5% deposit would earn: the 10-year values match at $16,289. A deposit has no fund fee in this model, so the fee is the first thing to check when an investment's advantage looks thin.
What return an investment needs to beat a deposit
The break-even return is the investment return at which both options end at the same value. With no fee and no tax, it is simply the deposit rate. Taxes move it. The table finds the break-even with the calculator's own functions, for a lump sum and no fund fee, assuming deposit interest is taxed every year and investment gains are taxed only at redemption:
| Deposit rate | No taxes | Taxes, 10 years | Taxes, 20 years | Same 22% tax on both, 20 years |
|---|---|---|---|---|
| 2% | 2.00% | 1.81% | 1.79% | 1.93% |
| 3% | 3.00% | 2.71% | 2.66% | 2.85% |
| 4% | 4.00% | 3.59% | 3.52% | 3.75% |
| 5% | 5.00% | 4.47% | 4.37% | 4.63% |
| 6% | 6.00% | 5.34% | 5.21% | 5.50% |
| 8% | 8.00% | 7.06% | 6.86% | 7.20% |
"Taxes" in the middle columns means illustrative rates of 22% on deposit interest every year and 15% on investment gains at redemption. They are inputs for the example, not a statement of any country's tax law. The last column uses 22% on both sides, so only the timing differs.
Two effects lower the hurdle: a lower tax rate on investment gains, and the deferral of that tax. Over 10 years, a 4% deposit taxed at 22% every year ends at $13,597, and an investment returning 3.59% a year with 15% tax at redemption ends at $13,595.
Read this table as a floor, not a target. The break-even assumes the investment delivers its return every single year. A real investment needs a margin above the break-even to make up for the chance of doing worse, and the margin you require is a personal choice that depends on your time horizon and tolerance for losses. Add any fund fee on top: with a 0.5% fee, the return you need before fees rises by 0.5 percentage points.
CDs, savings accounts and stocks: risk and time horizon
Questions such as CD vs stocks or high-yield savings vs investing usually come down to the time horizon. The calculator shows the arithmetic side. Here is $10,000 in a deposit at 4% and an investment at 7%, with no tax or fee and 3% inflation:
| Years | Deposit at 4% | Investment at 7% | Difference | Investment real value |
|---|---|---|---|---|
| 1 | $10,400 | $10,700 | $300 | $10,388 |
| 3 | $11,249 | $12,250 | $1,002 | $11,211 |
| 5 | $12,167 | $14,026 | $1,859 | $12,099 |
| 10 | $14,802 | $19,672 | $4,869 | $14,637 |
| 20 | $21,911 | $38,697 | $16,786 | $21,426 |
| 30 | $32,434 | $76,123 | $43,689 | $31,361 |
Over one year, the steady 7% investment is only $300 ahead. That gap is small compared with how much a market investment can move in a single year, in either direction. Over 30 years the modelled gap grows to $43,689, and there is more time to recover from bad years. The longer the horizon, the more the expected-return gap matters relative to short-term swings, which is the usual reasoning behind keeping short-term money in deposits and long-term money in investments.
The calculator cannot show the downside directly, because the investment return field starts at 0% and the return is the same every year. You can still test sensitivity. With the deposit at 4% for 10 years ($14,802), an investment averaging 5% ends at $16,289, 2% ends at $12,190 and 0% stays at $10,000, which is $7,441 in today's money at 3% inflation. A real investment can also end a period below its starting value after a market fall, which no input here represents.
Some practical rules of thumb follow from this, all of them general rather than personal advice:
- Money for emergencies belongs where its value is stable and accessible. The emergency fund article covers how much to keep and where, and the emergency fund calculator sizes it.
- Money for a goal a few years away is usually more exposed to a badly timed market fall than to a few lost points of return.
- Money with a long horizon is where an expected-return advantage has time to compound. The types of investment assets article describes the main options and their risk levels, and bonds sit between deposits and stocks.
Deposit vs investment at a glance
This grid shows the real value of $10,000 in today's money at an assumed 3% inflation, for different nominal yearly rates and periods, with no tax or fee. It applies to either side of the calculator: enter the deposit rate, or the investment return after fees.
| Nominal rate per year | 5 years | 10 years | 20 years | 30 years |
|---|---|---|---|---|
| 0% | $8,626 | $7,441 | $5,537 | $4,120 |
| 2% | $9,524 | $9,070 | $8,227 | $7,463 |
| 3% | $10,000 | $10,000 | $10,000 | $10,000 |
| 4% | $10,495 | $11,014 | $12,132 | $13,362 |
| 5% | $11,009 | $12,121 | $14,691 | $17,806 |
| 6% | $11,544 | $13,326 | $17,757 | $23,662 |
| 7% | $12,099 | $14,637 | $21,426 | $31,361 |
| 8% | $12,675 | $16,064 | $25,807 | $41,457 |
| 10% | $13,892 | $19,300 | $37,249 | $71,889 |
The 3% row stays at $10,000 because the rate only matches inflation. Cash earning nothing loses more than half its purchasing power over 30 years at 3% inflation, ending at $4,120. Read two rows to compare a deposit and an investment, for example 4% and 7% after 20 years: $12,132 against $21,426 in today's money. The values scale with the amount, so $50,000 gives five times these figures.
Worked examples
Each example uses USD as the display currency and shows exactly what the calculator returns for the inputs listed.
Example 1: $10,000 in a savings account or an index fund for 10 years
Given: Initial amount $10,000, Annual deposit rate 4%, Annual investment return 7%, Annual inflation rate 3%, Period 10 years. More options left at 0.
Steps:
- Select USD and enter 10000 as the initial amount.
- Enter 4, 7 and 3 in the three rate fields and 10 as the period.
- Read the headline and the four figures, then open Year by year.
Result: Deposit end value $14,802, Investment end value $19,672, Deposit real value $11,014, Investment real value $14,637. The headline reads +$4,869.
| Year | Deposit | Investment | Deposit (real) | Investment (real) |
|---|---|---|---|---|
| 1 | $10,400 | $10,700 | $10,097 | $10,388 |
| 3 | $11,249 | $12,250 | $10,294 | $11,211 |
| 5 | $12,167 | $14,026 | $10,495 | $12,099 |
| 10 | $14,802 | $19,672 | $11,014 | $14,637 |
The nominal gap is $4,869 and the real gap is $3,623. The deposit beats inflation, but only by about $1,000 of purchasing power over 10 years. The investment's advantage depends entirely on its 7% being delivered every year, which the calculator assumes and markets do not promise.
Example 2: Adding taxes and a fund fee to the Moderate scenario
Given: Initial amount $25,000 and the Moderate scenario: Annual deposit rate 8%, Annual investment return 9%, Annual inflation rate 4%, Period 15 years. Then, in More options: Tax on deposit income 22% Annually, Annual fund fee 0.5%, Tax on investment income 15% At redemption. The tax rates are illustrative.
Steps:
- Select USD, enter 25000 and click Moderate.
- Open More options and add each cost one at a time, noting the figures after each step.
Result:
| Settings | Deposit end value | Investment end value | Investment real value |
|---|---|---|---|
| Moderate scenario, no costs | $79,304 | $91,062 | $50,564 |
| Plus 22% annual tax on deposit interest | $61,981 | $91,062 | $50,564 |
| Plus 0.5% annual fund fee | $61,981 | $84,994 | $47,194 |
| Plus 15% investment tax at redemption | $61,981 | $75,995 | $42,197 |
| Same, investment taxed annually instead | $61,981 | $71,184 | $39,526 |
With all costs entered, the deposit's real value is $34,416 and the headline reads +$14,013. Taxing the deposit every year lowers its effective rate from 8% to 6.24%, which costs more than the fund fee costs the investment. In the Year by year tab of the full run, year 14 shows $78,335 for the investment and year 15 shows $75,995: the final year is the only one after tax, as described in the reading-the-results section.
Example 3: When the deposit wins under high inflation
Given: Initial amount $10,000 and the High inflation scenario: Annual deposit rate 15%, Annual investment return 10%, Annual inflation rate 10%, Period 10 years. No taxes or fees.
Steps:
- Select USD, enter 10000 and click High inflation.
- Read the figures, then lower the deposit rate to 10% and to 9%, and finally restore 15% and add a 20% deposit tax taken Annually.
Result:
| Run | Deposit end value | Investment end value | Deposit real value | Investment real value |
|---|---|---|---|---|
| Scenario as set | $40,456 | $25,937 | $15,597 | $10,000 |
| Deposit at 10%, equal to inflation | $25,937 | $25,937 | $10,000 | $10,000 |
| Deposit at 9% | $23,674 | $25,937 | $9,127 | $10,000 |
| Deposit at 15%, taxed 20% annually | $31,058 | $25,937 | $11,974 | $10,000 |
In the scenario as set, the headline reads −$14,518: the deposit's higher rate wins in every year. Its real rate is 4.55% a year, while the investment's 10% only keeps pace with 10% inflation, so its real value stays at exactly $10,000. When local deposit rates are high relative to the returns you expect elsewhere, a deposit can be the better option on numbers alone. At 10% the two options are identical. At 9%, below inflation, the deposit more than doubles in dollars yet ends at $9,127 of purchasing power.
Common mistakes when comparing deposits and investments
- Treating the investment return as guaranteed. The calculator applies it every year without fail. Run the comparison with a lower return as well, and ask whether the gap still justifies the risk.
- Comparing nominal values only. Two results can both look like growth while one of them loses purchasing power. Check the real values, especially when inflation is high.
- Leaving taxes at zero on one side only. If you add tax to the deposit, add it to the investment too, or the comparison is tilted. Match the timing to how each product is taxed for you.
- Forgetting the fund fee. A fee is taken every year, and its cost compounds. Even 0.5% a year reduces a 30-year result by about 13% in the fee table above.
- Entering a monthly-compounded rate as the deposit rate. The calculator compounds once a year. Enter the bank's APY, the effective yearly rate, not a lower nominal rate compounded monthly.
- Reading earlier years as after-tax with At redemption. Only the final year is after tax. Set the Period to the year you plan to withdraw.
- Comparing products in different currencies with one setting. The currency switch does not convert anything. A deposit and an investment in different currencies also carry exchange-rate risk.
- Ignoring access and timing. A CD may charge a penalty for early withdrawal, and an investment may need to be sold in a falling market. The calculator assumes you hold both to the end.
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 clearly: at the rates you enter, how a lump sum grows in a deposit compared with an investment, before and after inflation, fees and a flat tax. It does not know your tax situation, the deposit insurance that applies to your bank, how rates will change when a deposit term ends, or what the market will do. It cannot model monthly saving, withdrawals or a year in which the market falls.
Use it to see the size of the trade-off, then look at the parts it leaves out:
- The compound interest calculator adds monthly contributions and different compounding frequencies.
- The fees drag calculator shows the long-term cost of fund fees in detail.
- The inflation impact calculator turns any future sum into today's purchasing power.
- The bond yield calculator helps when the alternative to a deposit is a bond rather than a stock fund.
For background, read about risk and return and the time value of money. For decisions about your own savings, taxes or retirement accounts, consider a qualified, independent financial adviser who can take your full situation into account.
Frequently asked questions
Short answers to common questions about saving vs investing and how this deposit vs investment calculator compares the two.