Stock Return Calculator

Calculate your stock investment returns including capital gains and dividends. This tool processes all data locally in your browser. No information is ever sent to any server. Completely free, no registration required.

How to Use the Stock Return Calculator

  1. Enter your input values above
  2. Results update automatically
  3. Copy or download the output

What is a Stock Return Calculator?

A Stock Return Calculator computes your total return on stock investments, including both price appreciation and dividend income. It calculates CAGR (Compound Annual Growth Rate), total return percentage, and separates capital gains from dividend returns. In 2026, with the S&P 500 having experienced a volatile decade (2016-2026) ranging from -18% to +30% annual returns, understanding your real performance — especially relative to a benchmark like the S&P 500 or a simple index fund — is key to knowing whether your investing efforts are paying off.

How Does It Work?

Enter your purchase price, number of shares, sale price (or current price if still holding), dividends received, and holding period. The calculator computes: Capital Gain = (Sell Price − Buy Price) × Shares, Dividend Return = Total Dividends Received, Total Return = Capital Gain + Dividends, and CAGR = [(Final Value / Initial Investment)^(1/Years) − 1] × 100. For ongoing holdings, the calculator shows unrealized gains.

Formula

Initial Investment = Buy Price × Shares\nFinal Value = (Sell Price × Shares) + Total Dividends\n\nTotal Return% = (Final Value − Initial Investment) ÷ Initial Investment × 100%\nCapital Gain% = ((Sell − Buy) × Shares) ÷ Initial Investment × 100%\nDividend Yield = Dividends ÷ Initial Investment × 100%\n\nCAGR% = (Final Value ÷ Initial Investment)^(1 ÷ Years) − 1\n\nReal Return% = CAGR% − Inflation%

Who Uses This Tool?

Pro Tips

Frequently Asked Questions about Stock Return Calculator

What's a good annual return on stocks?

The S&P 500 has historically returned ~10% annualized (before inflation), ~7% after inflation. A 'good' return is one that meets or exceeds a low-cost index fund benchmark with comparable risk. Consistent market-beating returns over 10+ years is extremely rare, even among professionals.

Should I reinvest dividends?

For long-term investors, almost always yes. Dividend reinvestment buys more shares, which generate more dividends, which buy more shares — harnessing compound interest. Since 1926, reinvested dividends have accounted for ~40% of the S&P 500's total return.

Free online Stock Return Calculator — no signup, 100% client-side processing. All data stays in your browser.