b2KIT

Stock Return Calculator

Calculate total return, annualized return, and alpha for stock investments with dividend reinvestment and benchmark comparison.

Tested tool guide Tested browser tools Checked August 16, 2026

What Stock Return Calculator does, with a checked example

The headline gain you quote for a stock is usually just the price move, and that quietly ignores the dividends paid along the way. This tool takes a buy price, sell price, dividend stream, and holding period, and returns three figures: total return, annualized return, and alpha against a benchmark you supply, with dividend reinvestment either on or off. The figure that surprises most people is annualized return: compounding shrinks big totals, so a 50% gain over five years is only about 8.4% per year, and a 2x gain over ten years is about 7.2% annually.

Worked example

A concrete input and expected output from the current implementation.

Input

Buy 100 shares at $50.00 per share; annual dividend $2.00 per share, reinvested; sell after 5 years at $50.00 per share.

Expected output

Final position 121.67 shares, ending value $6,083.26. Total return 21.67%. Annualized return 4.00%.

The price never moved, so every dollar of gain came from reinvested dividends. Each $2 dividend bought more shares, and $5,000 x 1.04^5 = $6,083.26, so the annualized return lands exactly on the 4% dividend yield.

How the result is produced

1

Total and annualized return

The calculator tracks shares, not dollars. Reinvested dividends buy fractional shares at the then-current price, so the position grows like a compounding account; dividends taken as cash are added separately. Total return is ending value divided by money put in, minus one. Annualized return is the constant per-year rate that reproduces the total: (1 + total return)^(1/years) - 1.

2

Alpha against a benchmark

Supply a benchmark such as the S&P 500 with its return over the same dates, and alpha is the portfolio's return minus the benchmark's return for that identical period. Positive alpha means the stock beat the index after dividends; negative means it lagged. Matching the dates matters more than any other setting here.

Good uses

  • Run the same position twice, once with dividend reinvestment on and once off, to see how much of the final value came from reinvested dividends before you change how your account handles them.
  • Compare a stock you held for several years against the S&P 500 over the identical buy and sell dates, to decide whether it outperformed the index after dividends and not just on price.
  • Turn a long buy-and-hold history - purchase price, sale price, years of dividends - into one annualized figure to measure against your return target or a bond's yield before deciding to sell.

Limits and checks

  • Taxes and fees are ignored. Dividends and gains are modeled gross of tax and commissions, so the after-tax, after-fee return on a taxable account will be lower, and the gap grows with holding period and yield.
  • Annualized return says nothing about the path. A stock that fell 40% and recovered can share the same annualized figure as one that climbed steadily; the number hides drawdowns, volatility, and when the gains happened.
  • Alpha is only as good as the benchmark and the dates you enter. Comparing a growth stock against a mismatched index, or over a window different from the one you actually held, produces a number that answers a different question.

Common questions

Why is my annualized return so much lower than my total return?

Because annualized return is the per-year rate that compounds to your total: it spreads the whole period into equal years, so it shrinks as the hold lengthens. A 50% total gain over five years is about 8.4% per year; over ten years it is about 4.1%. That is compounding working backward, not an error.

Does the calculator account for taxes, fees, or inflation?

No. Results are gross of taxes, commissions, and inflation, and reinvestment assumes the full dividend buys shares. For a taxable account, dividends and capital gains get taxed, so the actual after-tax return will be lower; the gap grows the longer you hold and the higher the yield.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools