Stock Return Calculator
Free stock return calculator. Compute total return, CAGR, capital gain, and dividend yield from purchase price, sale price, dividends, and commissions.
Stock Return Calculator
Background.
A stock return calculator answers the most important question any equity investor ever asks: did this position actually make money, and how much per dollar committed per year of risk taken? The headline number that brokerage statements show — the change in market value — is only one component of stock return. True total return is the sum of two distinct income streams: the capital gain (or loss) from price appreciation, and the cumulative cash dividends paid out during the holding period.
A stock return calculator that ignores dividends understates the realized performance of every dividend-paying company, and historically that gap is enormous. Roughly forty percent of the S&P 500's long-run nominal return since 1928 has come from dividends rather than price appreciation, according to data compiled from the CRSP US Stock Database and reproduced in Bodie, Kane and Marcus's Investments textbook. Strip out dividends and the long-run nominal return on US equities falls from roughly ten percent per year to closer to six percent. That difference, compounded across a thirty-year holding period, is the difference between turning ten thousand dollars into one hundred seventy-four thousand and turning it into fifty-seven thousand. Total return matters. This tool computes it correctly.
Enter the number of shares you bought, the price per share at entry, the price at exit (or today's market price for an unrealized position), the cumulative dividends per share received over the entire holding period, any brokerage commissions or regulatory fees you paid, and how many years you held the position. The calculator returns six figures. Total return is the headline holding-period return as a percentage — capital gain plus dividends, net of commissions, divided by your cost basis. Absolute return is the same number in dollars rather than percent. CAGR is the annualized compound return, which is the only honest way to compare investments held for different lengths of time. Capital gain, total dividends, and dividend yield are the component pieces, so you can see how much of your return came from price action and how much came from income.
The reason CAGR is the metric every CFA-Charterholder defaults to, and the metric the SEC requires mutual funds to advertise their performance in, is that simple holding-period return flatters long horizons in a way that obscures real performance. A stock that doubled over two years and a stock that doubled over twenty years both have a one hundred percent total return — but the first compounded at over forty percent per year while the second compounded at three and a half percent. Annualizing the return collapses both onto the same scale and is the foundation of every credible performance attribution framework, from the GIPS standards used by institutional managers to the time-weighted return reporting that the SEC mandates.
Where this calculator goes beyond the generic share-return tools indexed by Google is in correctly accounting for the things that distort real-world stock returns and that the academic finance literature has spent fifty years cataloguing. Commissions are split between the buy leg and sell leg so cost basis and proceeds are both reduced symmetrically, the way every brokerage account statement does it. Dividends per share are taken as the cumulative cash received over the entire holding period rather than an annualized assumption, which avoids the most common error in DIY return calculations — confusing trailing-twelve-month yield with the actual dividends you collected.
The page below the widget walks through the difference between total return and price return, why dividend reinvestment via a DRIP changes the math, how taxes on qualified dividends and long-term capital gains compress the after-tax return, and how to adjust nominal returns for inflation to get the real return — the metric that actually measures your purchasing power. Run the numbers below, then read the explainer to make sure the headline number is telling the right story.
What is stock return calculator?
A stock return is the total profit or loss generated by holding a share of a company over some period of time, expressed as a percentage of the original amount invested. The standard definition in academic finance, codified in chapter five of Bodie, Kane and Marcus's Investments textbook, is the holding-period return: end price minus begin price plus cash dividends received, divided by begin price. That sum has two components — the capital gain from price appreciation and the income return from dividends — and both must be included for the calculation to be honest. Total return is the term-of-art for that combined figure and is the only return measure permitted in mutual fund advertising under SEC Rule 482. The CFA Institute's Equity Investments curriculum decomposes total return into the same two pieces and uses it as the basis for the more advanced attribution analyses that follow. For holding periods longer than one year, the holding-period return is converted to a compound annual growth rate (CAGR) by taking the n-th root of the proceeds-to-cost ratio, where n is the number of years held. CAGR is what makes returns on different time horizons comparable and is the foundation of the time-weighted return standard published in the Global Investment Performance Standards. This calculator reports both — the raw holding-period total return and its annualized CAGR equivalent — plus the component breakdown into capital gain, total dividends, and annualized dividend yield, so you can see which lever produced the return.
How to use this calculator.
- Enter the number of shares you bought. Fractional shares are allowed for brokers that support them — for a 0.5-share position from a fractional-trading platform, enter 0.5.
- Enter the purchase price per share — your per-share entry price before commissions. For a multi-lot position built up over time, use the weighted-average cost basis your broker reports on the 1099-B.
- Enter the sale price per share — your exit price, or today's market price if the position is unrealized. For an unrealized position, use the most recent closing price from the exchange where the stock is listed.
- Enter the cumulative dividends per share received over the entire holding period. This is the sum, not the annual figure — if a stock paid $0.50 per share quarterly for two years, enter $4.00, not $2.00. Enter 0 for non-dividend-paying stocks.
- Enter total commissions and fees combined across both the buy and sell legs, including SEC Section 31 fees and FINRA TAF charges. Most US retail brokers — Schwab, Fidelity, Robinhood, IBKR Lite — now charge $0 commission for equity trades, so this is often zero.
- Enter the holding period in years. Use decimals for partial years: 0.5 for six months, 0.25 for three months, 0.0833 for one month. CAGR is mathematically undefined for a zero holding period, so the minimum allowed is roughly one day (0.0027 years).
- Read the six outputs. Total return and CAGR are the two headline numbers — quote CAGR when comparing across positions held for different lengths of time. The capital gain, dividends, and dividend yield rows let you see exactly how much of the return came from price action versus income.
The formula.
Six formulas drive this calculator and all of them follow the holding-period return convention in chapter five of Bodie, Kane and Marcus. Cost basis is shares times purchase price plus half of total commissions — the buy-leg fee allocation. Proceeds are shares times sale price minus the other half of commissions plus total dividends received, which equals shares times dividends per share. Absolute return is proceeds minus cost — the dollar profit or loss. Total return percent is absolute return divided by cost, multiplied by 100, which is the SEC and CFA-standard holding-period return formula. CAGR is computed as ((proceeds ÷ cost)^(1 ÷ holdingYears) − 1) × 100 — the n-th root operation converts a multi-year cumulative return into the equivalent single-year compound rate. For losses where proceeds are below cost, the ratio is less than one and CAGR comes out negative, which is the mathematically correct treatment. Capital gain is shares times the difference between sale and purchase price — price appreciation only, with no dividends or commissions. Total dividends is shares times dividends per share. Annualized dividend yield is total dividends divided by initial investment (shares times purchase price, before commissions) divided by holding years, multiplied by 100 — this puts the income return on a per-year basis comparable to published dividend-yield figures. All arithmetic is performed in arbitrary-precision decimal math using Decimal.js to avoid the floating-point rounding errors that affect spreadsheet implementations of the CAGR formula on long holding periods.
A worked example.
Suppose you bought 100 shares of a stock at $50 per share — a $5,000 position — and sold them one year later at $75 with no dividends and no commissions. Cost basis is $5,000, proceeds are $7,500, absolute return is $2,500, total return is 50%, and because the holding period is exactly one year, CAGR equals the holding-period return at 50%. Capital gain is the full $2,500; dividends and dividend yield are zero. Now stretch the same trade out over five years. Hold the inputs constant except change the holding period to 5. Total return stays at 50% — the cumulative dollar profit is unchanged — but CAGR collapses to 8.45% per year, because ((7500 ÷ 5000)^(1 ÷ 5) − 1) × 100 = 8.45%. The dollar profit is identical, but as an annualized return it is mediocre — below the S&P 500's long-run nominal average of roughly 10%. This is precisely why CAGR is the metric institutional analysts insist on: it makes the two trades comparable on the same scale, and it instantly reveals that the one-year version was an extraordinary year while the five-year version was a slightly below-average one. Now add dividends. Same trade, five-year hold, but the company paid $2.00 per share in cumulative dividends over the five years. Total dividends received is 100 × $2 = $200. Proceeds rise to $7,700, cost stays at $5,000, total return rises to 54%, and CAGR rises to 9.04%. The annualized dividend yield comes out to 0.80% per year — the income leg added eighty basis points of annual return on top of the price appreciation. That is the standard total-return decomposition the CFA curriculum teaches and the only correct way to measure equity performance over multi-year holds.
Frequently asked questions.
What is the difference between price return and total return on a stock?
How is CAGR different from total return on a stock?
Why does dividend reinvestment (DRIP) change my actual return?
How do taxes affect my real stock return in the US?
How do I convert nominal stock return into real (inflation-adjusted) return?
What is a good annual stock return?
Does this calculator handle stocks held for less than one year?
How do commissions and brokerage fees affect stock return?
Why use CAGR instead of average annual return?
How does single-stock return compare to investing in an index?
References& sources.
- [1]Bodie, Z., Kane, A., & Marcus, A. J. (2024). Investments (12th ed.), Chapter 5: Risk, Return, and the Historical Record — defines holding-period return (HPR) as (end price − begin price + dividends) / begin price.
- [2]CFA Institute — Equity Investments curriculum: Total Return decomposition (capital gain return + dividend yield) and time-weighted vs money-weighted return measurement.
- [3]U.S. Securities and Exchange Commission (Investor.gov) — Total Return: glossary entry defining total return as price appreciation plus reinvested dividends/interest.
- [4]FINRA Investor Education Foundation — Understanding Investment Performance: total return, annualized return, and the role of dividends in long-run equity performance.
- [5]Sharpe, W. F. (1964). "Capital Asset Prices: A Theory of Market Equilibrium under Conditions of Risk." Journal of Finance, 19(3), 425–442 — foundation of CAPM and the framework for risk-adjusted return measurement.
- [6]U.S. Securities and Exchange Commission — Compound Annual Growth Rate (CAGR), Investor.gov glossary entry.
- [7]Bessembinder, H. (2018). "Do stocks outperform Treasury bills?" Journal of Financial Economics, 129(3), 440–457 — empirical evidence on the long-tailed distribution of individual stock returns.
- [8]IRS Publication 550 (2024) — Investment Income and Expenses: cost-basis rules, qualified dividends, and capital gains tax treatment for US taxable accounts.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled