Finance calculators

Stock Investment Calculator

Updated Aug 21, 2026 By Jehan Wadia
Rate Formulas

Stock Selection

Type a ticker or name, then choose a match with the mouse or the arrow keys and Enter. Prices are modeled from each ticker's long-run return, dividend and volatility profile.
Quick picks

Runs the exact same inputs against a market index for reference.
Investment Parameters
The date you would have made your initial investment.
Defaults to today. Change this to simulate selling at a specific past date.
$ USD
The one-time dollar amount invested on your start date. Minimum $1.

Investment Results

Portfolio Growth Over Time

Focus this chart and use the Left and Right arrow keys (or Home / End) to step through data points.

Period-by-Period Breakdown

Key Insights

Step-by-Step Solution


Introduction

The Stock Investment Calculator shows you what a past investment could have grown into. Pick a stock, choose a start date and an end date, and enter how much money you put in. The calculator does the math and shows your final value, your total gain or loss, and your yearly return.

You can also turn on dividend reinvestment (DRIP) to see how reinvested dividends buy more shares over time. Add regular deposits, like $250 each month, to see how steady saving builds your total with the help of a DCA Calculator style schedule. Turn on the inflation setting to see what your money would really be worth in today's buying power.

Want to compare? Add a second stock or a market index like the S&P 500 and see them side by side. You get a growth chart, a year-by-year table, plain-English insights, and the step-by-step math behind every number.

How to use our Stock Investment Calculator

Pick a stock, set your dates, and enter how much you invest. The stock investment calculator then shows your final portfolio value, total return, percent gain, annualized return (CAGR), dividends earned, and share count, plus a growth chart and year-by-year table.

Search for a stock: Type a ticker like AAPL or a company name like Apple. Then click the match you want, or use the arrow keys and press Enter.

Quick picks: Click a button like AAPL, TSLA, or SPY to choose a popular stock fast, with no typing.

Add Benchmark Index: Choose S&P 500 (SPY), NASDAQ-100 (QQQ), or Dow Jones (DIA) to see how your stock stacks up against the market. Pick "None" to skip it, or model a fund-only plan with the Index Fund Calculator.

Compare With a Second Stock: Click this button to open a second search box and test two stocks side by side using the same dates and amount.

Investment Start Date: Enter the past date you would have bought the stock. Or click a shortcut like 1 Year Ago, 5 Years Ago, or 20 Years Ago.

Investment End Date: Leave it as today, or pick an earlier date to see what happens if you sold then. To check a single buy-and-sell trade in detail, use the Stock Profit Calculator.

Initial Investment Amount: Type the one-time dollar amount you put in on your start date. It must be at least $1.

Reinvest Dividends (DRIP): Turn this on to use dividends to buy more shares. Turn it off to hold dividends as cash. The dedicated DRIP Calculator breaks the reinvestment schedule down further.

Adjust for Inflation (Real Returns): Turn this on to also see your results in start-date dollars, so you know your real buying power. Our Inflation Calculator handles the same adjustment on its own.

Add Recurring Contributions: Check this box if you add money on a set schedule instead of investing just once.

Contribution Amount: Enter how many dollars you add each time you invest.

Contribution Frequency: Choose weekly, bi-weekly, semi-monthly, monthly, quarterly, or annually to match your saving habit.

Calculate Returns: Click this button to run the numbers and see your results, chart, insights, and step-by-step math.

Reset Calculator: Click this to clear your entries and start over with the default settings.

Stock Investment Returns Explained

When you buy a stock, you own a small piece of a company. Your money can grow in two main ways: the share price goes up, and the company pays you dividends. A stock investment return is how much money you made (or lost) from both of these things over time.

How Share Price Growth Works

You buy shares at one price and later they may be worth more. If you put $1,000 into a stock at $50 a share, you own 20 shares. If the price climbs to $75, your 20 shares are now worth $1,500. That is a $500 gain, or 50%. Prices can also fall, so you can lose money too. If you bought at several different prices, the Stock Average Calculator finds your blended cost per share.

What Dividends Are

Some companies share part of their profits with owners. These cash payments are called dividends. Most pay every three months. Some stocks, like many tech and growth companies, pay nothing at all and put the money back into the business instead. To size up the income itself, try the Dividend Calculator or check the payout rate with the Dividend Yield Calculator.

Why Reinvesting Dividends (DRIP) Matters

A DRIP means Dividend Reinvestment Plan. Instead of taking dividend cash, you use it to buy more shares. Those new shares then earn dividends of their own. Over 10 or 20 years, this snowball effect can add a big chunk to your total value. This is compound growth at work, and the Compound Interest Calculator shows the same effect on plain cash savings.

Total Return vs. Annualized Return (CAGR)

  • Total return is the full gain over the whole time period, shown in dollars and percent. The ROI Calculator handles this for any type of investment.
  • Annualized return (CAGR) is the average yearly growth rate. It smooths out good years and bad years into one number, which makes it easy to compare two stocks held for different lengths of time. See the CAGR Calculator for the formula, or the IRR Calculator when you add money on a schedule.

Adding Money Over Time

Many people invest a set amount each week or month instead of all at once. This is called dollar-cost averaging. You buy more shares when prices are low and fewer when prices are high. It removes the need to guess the perfect day to buy. To project a long savings plan, pair this with the Investment Calculator or the Future Value Calculator.

Don't Forget Inflation

Prices for food, rent, and gas go up over the years. So $10,000 in the future does not buy as much as $10,000 today. A "real" return subtracts inflation to show your true gain in buying power. If your stock earned 8% and inflation was 3%, your real return was about 5%. The CPI Inflation Calculator tracks those price changes year by year, and the Rule of 72 Calculator gives a quick doubling-time estimate.

Comparing to a Benchmark

A benchmark is a market index used as a yardstick. The S&P 500 (SPY) tracks 500 large U.S. companies, the NASDAQ-100 (QQQ) leans toward tech, and the Dow (DIA) follows 30 big names. If a single stock earned less than the index, a simple index fund would have done better with less risk. Model that route with the ETF Calculator or the Mutual Fund Calculator.

Things to Keep in Mind

Past growth does not promise future growth. Single stocks swing much harder than a broad index fund, so a big past winner can still drop sharply. Results here do not include broker fees or taxes on dividends and gains, which lower real-world returns — estimate those with the Expense Ratio Calculator and the Capital Gains Tax Calculator. Spreading money across many companies lowers the risk that one bad pick hurts you. If this money is earmarked for later in life, run the numbers through the Retirement Calculator, the 401k Calculator, or the Roth IRA Calculator as well.


Formulas used

Shares purchased with initial investment
\text{Shares}_0 = \frac{\text{Initial Investment}}{P_{\text{start}}}
Modeled share price (log-price path)
\ln P(m) = \ln P_0 + \frac{\ln(1+g)}{12}\,(m - m_{\text{anchor}}) + \beta\,\big(M(m) - M(m_{\text{anchor}})\big) + \big(d_m - d_{m_{\text{anchor}}}\big)
Dividend payment and DRIP shares added
D = \text{Shares} \times \frac{P \cdot (\text{dy}/100)}{f}, \qquad \Delta\text{Shares}_{\text{DRIP}} = \frac{D}{P}
Final portfolio value
V = \text{Shares}_{\text{end}} \times P_{\text{end}} + \text{Cash}
Total return (dollars and percent)
\text{Return} = V - \text{Invested}, \qquad \text{Return\%} = \frac{V - \text{Invested}}{\text{Invested}} \times 100
Annualized return (CAGR)
\text{CAGR} = \left(\frac{V}{\text{Invested}}\right)^{1/t} - 1
Money-weighted annualized return (IRR) with contributions
\sum_{i} \frac{CF_i}{(1+r)^{t_i}} = 0
Inflation adjustment (real value and real annualized return)
V_{\text{real}} = \frac{V}{\text{CPI}_{\text{factor}}}, \qquad r_{\text{real}} = \frac{1+r}{1+i_{\text{ann}}} - 1, \qquad i_{\text{ann}} = \text{CPI}_{\text{factor}}^{1/t} - 1

Frequently asked questions

Why can't I set the start date to today or a future date?

The tool needs a finished trading day to price your shares. So the start date must be in the past. The end date can be today, but not later.

Are the share prices in this calculator real historical prices?

No. Prices are modeled from each ticker's long-run return, dividend yield, and price swings. The results are close estimates made for learning and planning, not an exact record of past trades.

Why does it say there is no data for my stock before a certain date?

Every stock has a first trading day. Tesla, for example, did not trade before 2010. If your start date comes before that day, pick a later start date or choose an older company.

Why is the Reinvest Dividends switch greyed out?

The stock you picked pays no dividends, like Amazon or Tesla. There is no cash to reinvest, so the switch turns off by itself. Pick a dividend payer such as KO, JNJ, or SCHD to use DRIP.

Do the results include taxes and broker fees?

No. The numbers are before taxes and fees. Real take-home money would be lower. Check the Capital Gains Tax Calculator for the tax bite and the Expense Ratio Calculator for fund costs.

Does the calculator buy partial shares?

Yes. Share counts show four decimal places, so every dollar gets invested. Many brokers allow fractional shares today, so this matches how most people invest.

What is the smallest amount I can enter?

The initial investment must be at least $1. If you turn on recurring contributions, that amount must be more than $0.

Why does my yearly return look small when my total return is huge?

Total return adds up every year of growth. The yearly rate is the smooth average. For example, 300% total over 20 years is only about 7.2% per year.

Why does the result say IRR instead of CAGR when I add contributions?

Because your money went in at different times. IRR (money-weighted return) counts when each dollar arrived. CAGR only works for one lump sum. See the IRR Calculator for more.

How many stocks can I show at once?

Three lines: your main stock, one comparison stock, and one benchmark index. Each line has its own color and pattern in the chart.

What happens if my main stock is the same as my benchmark?

The duplicate is skipped, so you only see one line. If you want to see SPY twice, pick a different benchmark like QQQ or DIA.

What does Semi-Monthly mean for contributions?

You invest twice a month, on the 1st and the 15th. That is 24 buys a year. Bi-weekly is every 14 days, which is 26 buys a year.

Why does my table show months instead of years?

Short time frames get more detail. If your period is under two years, the table lists each month. Longer periods list one row per year to keep it readable.

Can I see the chart numbers instead of the picture?

Yes. Click Show as Table under the chart to see the value and share count for each date. You can also click the chart and use the arrow keys to step through points one by one.

What does the end date mean? Did I sell the stock?

Think of it as the day you check the value or cash out. The calculator prices your shares on that date. No sale taxes are taken out.

Why did my final value drop when I turned DRIP off?

With DRIP off, dividends sit as cash and never buy more shares. Those extra shares would have grown and paid more dividends, so the total ends up smaller.

Can I use this for my 401(k) or IRA?

It can show how one holding might grow, but it does not handle employer matches, contribution limits, or tax rules. Use the 401k Calculator or Roth IRA Calculator for those plans.

Does the calculator handle stock splits?

Yes. All prices are split-adjusted, so a split does not change your total value. Your share count and price stay in line with today's quotes.

What should I do if my stock lost money?

The result shows a red Loss tag and a negative return. Compare it to the benchmark line. If the index did better, a broad index fund may have been the safer choice.

Why do my results change a little when I move the dates by one day?

Prices move daily, so your buy price and share count shift. Small date changes cause small result changes. Long time frames smooth most of this out.