How to Calculate Stock ROI Right
How to Calculate Stock ROI the Right Way — And Why Most Investors Get It Wrong
Ask most people how their investments are doing, and they'll give you a number that sounds vague — "I'm up about 20%" or "I think I've made a few thousand dollars." I've spent years analyzing how individual investors talk about their returns, and the pattern is almost always the same: people know roughly whether they're winning or losing, but they have almost no idea how to measure it with precision. That imprecision costs real money, because you can't improve what you can't accurately measure.
This post breaks down the right way to calculate stock ROI, explains the metrics that actually matter, and gives you a live calculator above so you can run your own numbers right now. Use the tabs — the ROI Calculator for single-stock analysis, and the Portfolio Tracker to see how your holdings stack up against each other.
What Is ROI, and Why Does the Basic Formula Fall Short?
ROI, or Return on Investment, is the most fundamental metric in investing. The basic formula is simple: ROI = (Gain / Cost) × 100. If you bought a stock for $1,000 and sold it for $1,300, your ROI is 30%.
But here's where most retail investors go wrong — and honestly, this surprised me the first time I worked through it carefully. The basic ROI formula is completely time-blind. A 30% ROI over 2 years is dramatically better than a 30% ROI over 10 years, but the formula treats them identically. To compare investments fairly, you need two additional metrics: CAGR and total return including dividends.
CAGR: The Metric That Levels the Playing Field
CAGR — Compound Annual Growth Rate — is the annualized return that would produce the same end result as your actual investment, assuming steady compounding each year. In plain English: it's the "true" annual return on your investment, smoothed out over time regardless of how bumpy the ride actually was.
The formula is: CAGR = (End Value / Start Value)^(1/Years) − 1.
Here's why this matters in practice. Say you compare two investments: Stock A returned 80% over 10 years. Stock B returned 40% over 3 years. At first glance, Stock A looks better. But Stock A's CAGR is about 6.1% per year, while Stock B's CAGR is about 11.9% per year. Stock B nearly doubled Stock A's annualized performance. I've seen investors hold underperforming positions for years because they were focused on the total percentage gain rather than the annualized rate — and CAGR is the tool that exposes that mistake clearly.
Plug your numbers into the ROI Calculator above and watch the CAGR figure update in real time. A healthy long-term CAGR for U.S. equities has historically been around 10% — the S&P 500's long-run average before inflation — so that's a useful benchmark to measure yourself against (Source: S&P Dow Jones Indices).
Don't Ignore Dividends: They're a Bigger Deal Than You Think
One of the most consistent blind spots I see in retail investor calculations is the omission of dividend income — regular cash payments that companies distribute to shareholders from their profits, typically on a quarterly basis.
Dividends can represent a substantial portion of total return, especially over long holding periods. According to research from Hartford Funds analyzing nearly 100 years of S&P 500 data, dividends have historically accounted for roughly 40% of total stock market returns (Source: Hartford Funds, The Power of Dividends). Strip dividends out of your ROI calculation and you're potentially ignoring nearly half of your actual investment performance.
In the calculator above, the "Annual dividends per share" slider lets you model this explicitly. Even a modest $2 per share in annual dividends across a 50-share position adds $500 per year — and over a 10-year holding period, that's $5,000 in income that a basic capital-gains-only calculation would completely miss. My experience has been that once investors start factoring dividends into their return calculations, their perception of "boring" dividend stocks changes significantly.
The Portfolio Tracker Tab: Seeing the Full Picture
Calculating ROI on a single stock is useful. But what most investors actually need is a clear view of which positions are pulling their weight and which ones are quietly dragging on overall performance. That's what the Portfolio Tracker tab is designed to show you.
Enter your ticker symbols, buy prices, and current prices for each holding. The horizontal bar chart updates instantly — blue bars for gainers, red bars for losers — so you can visually identify your best and worst performers at a glance. The four summary cards at the top show your total invested capital, current portfolio value, aggregate gain or loss, and blended portfolio ROI.
Here's a practical exercise worth trying: enter your actual holdings and look at the chart honestly. In my experience, most investors are surprised to find that one or two positions are responsible for the vast majority of their gains — and several positions are quietly underperforming while being mentally justified with reasons that don't hold up under scrutiny.
Key Metrics Explained: What to Look For
When you're analyzing a stock investment, here are the four numbers that matter most:
- Total return (incl. dividends) — The true bottom-line gain from your investment, combining both price appreciation and dividend income. This is the number that should drive hold/sell decisions, not price gain alone.
- ROI % — Your percentage return on the capital you deployed. Useful for comparing profitability across different investment sizes.
- CAGR — The annualized return that allows apples-to-apples comparison across investments held for different lengths of time. This is the most important number for evaluating long-term performance.
- Dividend income — The total cash generated by the investment independent of price movement. High-dividend stocks can deliver strong total returns even during periods of flat or negative price action.
What a "Good" ROI Actually Looks Like
This is a question I get asked constantly, and the honest answer is: it depends entirely on your time horizon, risk tolerance, and what benchmark you're comparing against.
That said, here are some useful reference points. The S&P 500 has delivered an average annual return of approximately 10% before inflation over the long run, or roughly 7% after adjusting for inflation. A single stock investment should generally be expected to outperform this benchmark to justify the additional concentration risk — the risk that comes from having your capital in one company rather than diversified across hundreds.
Concentration risk means that when you own individual stocks rather than broad index funds, your returns can deviate dramatically from the market average in either direction. A concentrated position in Nvidia over the past three years would have massively outperformed the S&P 500. A concentrated position in many other individual names would have significantly underperformed. According to J.P. Morgan Asset Management research, approximately 40% of all stocks in the Russell 3000 have suffered a permanent loss of 70% or more from their peak prices (Source: J.P. Morgan Asset Management, Eye on the Market). That's the risk the individual stock picker is taking on — and it's why CAGR benchmarking against the index matters so much.
How to Use This Calculator for Real Investment Decisions
Here's how I'd recommend approaching the tools above:
- Before buying: Use the ROI Calculator to model your expected return. Set the buy price to the current ask price, your target sell price, your planned holding period, and any expected dividend. What CAGR does that scenario imply? Is it better than simply buying an S&P 500 index fund?
- For existing positions: Enter your actual buy price and today's current price. Is the position performing at the CAGR you expected when you bought it? If not, what has to be true for it to recover?
- Portfolio review: Use the Portfolio Tracker to run a quarterly check on all your holdings. Which positions have the highest ROI? Which have the lowest? Are you holding losers out of emotional attachment rather than rational expectation of recovery?
Investing is fundamentally a numbers game, but most retail investors operate on a combination of intuition, partial information, and emotional attachment. The discipline of actually calculating these metrics — and doing it consistently — is one of the most reliable ways to improve long-term results.
One Final Warning: What This Calculator Doesn't Tell You
The ROI and CAGR figures this calculator produces are backward-looking or scenario-based — they measure what has happened or model a specific future assumption. They do not account for taxes on capital gains or dividend income, brokerage commissions, the opportunity cost of capital (what your money could have earned elsewhere), or the psychological difficulty of holding through significant drawdowns.
Opportunity cost — the value of the next best alternative you gave up by making a particular choice — is perhaps the most underappreciated concept in personal investing. Every dollar in a single stock is a dollar that isn't in a diversified index fund, a bond, real estate, or simply earning interest. A 15% ROI sounds great in isolation; it sounds less impressive when the S&P 500 returned 17% over the same period with far less risk.
Use these numbers as a starting point for analysis, not an endpoint. The goal isn't to find a number that makes you feel good about a position — it's to find the truth about where your money is actually working hardest.