Audited ·Last updated 27 Jul 2026·8 citations·Tier 1·0 uses

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

Total shares purchased. Fractional shares are allowed for brokers that support them.
Your per-share entry price, before commissions. For a multi-lot position, use your weighted-average cost basis.
$
Per-share price at exit, or the current market price if you have not sold. Use the closing price for unrealised positions.
$
Cumulative cash dividends received per share over the entire holding period (sum, not annual). Enter 0 for non-dividend stocks.
$
Combined buy + sell commissions, SEC fees, and regulatory transaction fees. Most US retail brokers now charge $0 for equity trades.
$
Time held in years. Use decimals for partial years — 0.5 for six months, 0.0833 for one month.
yrs
Total return
50.00
Holding-period return: capital gain plus dividends, divided by cost basis, expressed as a percentage. Not annualized.
Absolute return
$2,500.00
Annualized return (CAGR)
50.00%
Capital gain
$2,500.00
Total dividends received
$0.00
Annualized dividend yield
0.00%

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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).
  7. 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.

Return = (Proceeds−Cost)⁄Cost, CAGR = (Proceeds⁄Cost)^(1⁄n) − 1

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.

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.

shares100
sale Price75
dividends Per Share0
commission0
purchase Price50
holding Years1

Frequently asked questions.

What is the difference between price return and total return on a stock?
Price return measures only the change in the share price — sale price minus purchase price, divided by purchase price. Total return adds the cash dividends paid out during the holding period back into the numerator. Total return is always greater than or equal to price return for a dividend-paying stock, and the gap can be enormous over long horizons. Roughly forty percent of the S&P 500's nominal return since 1928 has come from dividends rather than price appreciation, so a price-return-only view of long-term equity performance understates the realized return by close to half. The SEC requires mutual funds to advertise performance on a total-return basis under Rule 482 precisely because price return alone is misleading. This calculator computes total return by default and shows the capital gain and dividend pieces separately so you can see the decomposition.
How is CAGR different from total return on a stock?
Total return is the cumulative holding-period return — capital gain plus dividends, divided by cost basis. CAGR (compound annual growth rate) is the constant annual compound rate that would produce the same end value over the same period. A stock with a 100% total return earned over two years has a CAGR of 41.4%; the same 100% total return earned over twenty years has a CAGR of only 3.5%. Both descriptions of the trade are mathematically correct but they communicate radically different things about performance quality. The CFA Institute's Global Investment Performance Standards and SEC mutual-fund advertising rules both require annualized returns rather than cumulative returns for any holding period longer than one year. Quote CAGR whenever you are comparing investments held for different periods — total return alone is misleading whenever time is unequal.
Why does dividend reinvestment (DRIP) change my actual return?
A dividend reinvestment plan automatically uses each cash dividend to buy more shares of the same stock instead of paying the dividend out as cash. Over a long holding period, those reinvested dividends compound: the new shares themselves earn dividends, which buy still more shares, and so on. The historical compounding effect is dramatic — Jeremy Siegel's Stocks for the Long Run shows that a $1,000 investment in the S&P 500 in 1926 with all dividends reinvested would have grown to roughly $10 million by the early 2000s, versus closer to $200,000 with dividends taken in cash. This calculator computes return on the simple holding-period basis (Bodie, Kane and Marcus chapter 5), which assumes dividends were received in cash. For a true DRIP return, you would need to track the running share count after each reinvestment, which is what mutual fund total-return numbers and broker performance reports do for you under the hood.
How do taxes affect my real stock return in the US?
Pre-tax return is what this calculator reports. After-tax return depends on your account type and holding period. In a taxable brokerage account, qualified dividends and long-term capital gains (positions held more than one year) are taxed at 0%, 15%, or 20% under IRS Publication 550, with an additional 3.8% Net Investment Income Tax for high earners. Short-term capital gains and non-qualified dividends are taxed at ordinary income rates up to 37%. In a Roth IRA or 401(k), all gains and dividends are tax-free at withdrawal. In a traditional IRA or 401(k), all gains and dividends are taxed as ordinary income on withdrawal. A 15% long-term capital gains rate turns a 10% pre-tax annualized return into roughly 8.5% after tax, and a 37% short-term rate turns the same 10% into 6.3% — the gap is enormous over multi-decade compounding. Always compare investments on an after-tax basis at your marginal rate.
How do I convert nominal stock return into real (inflation-adjusted) return?
Use the Fisher equation: real return = (1 + nominal return) ÷ (1 + inflation rate) − 1. A 10% nominal CAGR in a period where US CPI averaged 3% per year produces a real return of (1.10 ÷ 1.03) − 1 = 6.80%, not 7%. The Bureau of Labor Statistics publishes the CPI Inflation Calculator for converting between periods. The long-run real return on US large-cap equities since 1928 is roughly 7% per year — that is the figure economists like Robert Shiller cite when they compare equity returns to long-duration TIPS yields or to the natural rate of interest. For multi-year holdings, use the cumulative inflation rate over the same period; averaging annual inflation rates is an approximation that drifts on long horizons. Real return is the only honest measure of how much your purchasing power actually grew.
What is a good annual stock return?
Context-dependent. For a diversified US large-cap equity benchmark like the S&P 500, the long-run nominal annualized return since 1928 has been roughly 10%, and the real (after-inflation) return roughly 7%, based on CRSP and Robert Shiller's dataset. So a passively held US equity portfolio that earned meaningfully less than 10% per year on a multi-decade nominal basis is underperforming its benchmark. For a single-stock position, the comparison is more nuanced — individual stocks have far higher volatility than the index, so a higher return is required to compensate for the additional risk. The Sharpe ratio (excess return over the risk-free rate divided by return volatility) is the standard way to risk-adjust the comparison, and was introduced in William Sharpe's 1964 Journal of Finance paper that formed the basis of the Capital Asset Pricing Model.
Does this calculator handle stocks held for less than one year?
Yes. CAGR is mathematically defined for any positive holding period, and the calculator accepts holding periods as short as 0.0027 years (one day). For a position held under a year, CAGR will be larger than total return because the n-th root operation with n less than 1 amplifies the result — a 5% return earned in six months annualizes to 10.25%, because ((1.05)^(1 ÷ 0.5) − 1) × 100 = 10.25%. This is the correct mathematical treatment and matches how money-market and short-duration fund yields are quoted. Two cautions, though: annualizing very short-period returns implicitly assumes the same rate can be sustained, which is almost never true in equities, and short-term capital gains on positions held one year or less are taxed at ordinary income rates in the US — typically 22–37% — versus 0–20% for long-term gains.
How do commissions and brokerage fees affect stock return?
This calculator splits total commissions evenly between the buy leg and the sell leg, which matches how brokerage statements and the IRS cost-basis rules in Publication 550 treat them. The buy-leg half is added to cost basis, raising it. The sell-leg half is subtracted from proceeds, lowering them. Both moves reduce total return by the same dollar amount you paid in fees. For most US retail investors trading equities at Schwab, Fidelity, Robinhood, or IBKR Lite, commissions are now zero, but SEC Section 31 fees and FINRA Trading Activity Fees still apply on the sell side and run a fraction of a basis point. For active traders, mutual fund expense ratios, and any position held in a wrapped advisory account, the fee drag is a much larger headwind — a 1% annual advisory fee turns a 10% gross CAGR into a 9% net CAGR, and that 100 basis points per year compounded over 30 years is roughly a quarter of your terminal wealth.
Why use CAGR instead of average annual return?
Arithmetic average and CAGR can produce wildly different numbers for the same investment, and CAGR is always the smaller and more honest figure. A stock that earns +50% one year and −50% the next has an arithmetic average annual return of 0%, but its actual CAGR is −13.4% per year — because $100 × 1.5 × 0.5 = $75, which is a 25% cumulative loss over two years. CAGR captures the compounding effect of returns; arithmetic average ignores it. The CFA Institute curriculum and the SEC's mutual-fund advertising rules both require time-weighted geometric (CAGR-style) returns rather than arithmetic averages for performance reporting. The arithmetic-average overstatement gets worse as return volatility rises, which is why high-volatility strategies that quote average returns rather than CAGR should be treated with suspicion.
How does single-stock return compare to investing in an index?
Single-stock returns have far higher dispersion and far higher idiosyncratic risk than index returns. Hendrik Bessembinder's research published in the Journal of Financial Economics (2018) showed that just 4% of US listed stocks accounted for the entire net wealth creation of the US equity market above one-month Treasury bills over the 1926–2016 period — the median individual stock actually underperformed cash. That is the strongest empirical case for diversified index investing ever made: most individual stocks are net losers, and only by holding a broad basket are you sure to capture the small minority of huge winners. The CAPM framework developed in William Sharpe's 1964 Journal of Finance paper formalizes this — only systematic (market) risk is compensated; idiosyncratic single-stock risk can be diversified away and earns no premium in equilibrium. When you compute a single-stock return with this calculator, compare it to the same-period total return of a benchmark index (the S&P 500 for US large caps) to see whether the stock actually rewarded you for the additional risk.

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon