Stock Return Calculator
Calculate total return, annualized return, and CAGR of your investments.
For educational purposes only. This calculator does not provide investment advice.
Total Return
—
Profit / Loss
—
Final Value
—
Annualized (CAGR)
—
📊 Visual Analysis
What This Calculator Does
The Stock Return Calculator computes the total return on a stock investment, including price appreciation and dividends. It also calculates the annualized return (CAGR) when you provide the holding period, giving you both the total and per-year perspective. All outputs are mathematical results based on the values you enter — they do not predict future performance or constitute investment advice.
Formula
The calculator uses three related formulas:
Price Return
Measures only the capital gain or loss from the stock price change, ignoring dividends.
Total Return (with Dividends)
The most comprehensive measure — includes both price appreciation and dividend income.
Annualized Return (CAGR)
Converts total return into an equivalent yearly rate, making it possible to compare investments held for different periods.
Note: All formulas are per-share calculations. For total dollar amounts, the calculator multiplies by the number of shares.
Input Fields Explained
Buy Price per Share ($)
The price you paid per share at purchase. If you bought in multiple transactions, use the average cost basis (total cost divided by total shares). Include any commission fees in the price for a more accurate return.
Sell Price per Share ($)
The price per share at sale or the current market price if still holding. If you sold in multiple transactions, use the average sale price. Deduct selling commissions for a more realistic return.
Dividends Received per Share ($)
Total cash dividends received per share during the entire holding period. If dividends were reinvested through a DRIP, you may want to include the reinvested value in the sell price instead. Stock dividends and splits should be reflected in the share count or price, not here.
Holding Period (years)
How long you held the stock, in years. This is used to calculate the annualized return (CAGR). For partial years, use decimals (e.g., 2.5 years). Leave at 0 if you only want total return without annualization.
Number of Shares
How many shares you bought. This scales the dollar profit/loss and final value calculations. The percentage return is the same regardless of share count.
Example Calculation
You bought 100 shares at $50 each, held for 3 years, then sold at $65. You received $1.20 per share in dividends.
Initial Cost = $50 × 100 = $5,000
Final Value = ($65 + $1.20) × 100 = $6,620
Price Return = ($65 − $50) ÷ $50 = 30%
Total Return = ($66.20 − $50) ÷ $50 = 32.4%
Annualized = (6,620/5,000)1/3 − 1 = 9.82% per year
Assumptions: This example does not account for taxes, trading commissions, or inflation. Real-world returns would be lower after these costs. Past results like this do not predict future performance.
How to Read the Result
Your overall percentage gain or loss, including dividends. This is a mathematical output based on your inputs — what constitutes a satisfactory return depends on your personal goals, risk tolerance, and investment horizon.
The dollar amount you gained or lost in total. Remember this is a gross figure before taxes and fees.
The total value of your investment at the end, including dividends received.
The equivalent per-year return. Essential for comparing investments held over different time periods. Note that annualized returns smooth out volatility — the actual year-by-year returns may have varied significantly.
Common Mistakes
- Ignoring dividends. Dividends can form a meaningful portion of total returns over long holding periods. Omitting them understates your actual performance.
- Ignoring fees and taxes. Trading commissions, bid-ask spreads, capital gains taxes, and dividend taxes all reduce your real return. This calculator does not deduct any of these costs.
- Confusing nominal and real return. The calculator shows nominal returns. Inflation erodes purchasing power over time — a 10% nominal return during 4% inflation means roughly 6% real return.
- Comparing returns across different holding periods without annualizing. A 50% return in 6 months is very different from 50% in 5 years. Always use annualized returns for fair comparison.
- Short holding periods can be misleading. A high return over a few weeks or months may not be sustainable. Annualizing very short-period returns can produce unrealistic projections.
- Treating past returns as predictions. This calculator measures historical performance. Past returns do not guarantee or predict future results. A stock that returned 30% in the past may gain or lose value going forward.
When This Calculator Is Useful
- Evaluating the total performance of a completed stock trade
- Comparing returns from different stocks in your portfolio
- Calculating annualized returns to compare with other investments
- Understanding how dividends contributed to your total return
- Reviewing historical performance as part of investment analysis
Limitations
- Does not account for taxes on capital gains or dividends — your actual after-tax return will be lower
- Does not deduct trading commissions or bid-ask spreads
- Does not handle irregular cash flows (partial buys/sells during the holding period)
- Does not adjust for inflation — consider using a real return calculator for purchasing-power analysis
- Past returns calculated by this tool do not predict future performance
- This calculator provides mathematical results for educational purposes and does not constitute investment advice
Continue this workflow
Keep going on the Returns & Cost Basis path: open the topic hub, read the step-by-step guide, compare related calculators, and review example metrics.
Frequently Asked Questions
What is total return?
Total return measures the complete gain or loss from an investment, including both price changes and dividends, expressed as a percentage of the initial investment. It gives the most accurate picture of what you actually earned.
How is stock return different from ROI?
Stock return typically includes dividends and the holding period, while ROI is a simpler measure of gain versus cost. This calculator also computes an annualized return (CAGR) which accounts for how long you held the investment.
Should I include dividends in the calculation?
Yes, for an accurate total return. If you received dividends while holding the stock, enter the total dividends per share. Omitting them understates your actual return.
What is annualized return?
Annualized return (CAGR) converts your total return into an equivalent yearly rate. A 50% total return over 5 years equals about 8.45% per year. This makes it easy to compare investments held for different periods.
What is the difference between price return and total return?
Price return only accounts for the change in stock price (sell price minus buy price). Total return adds dividends to the picture. For example, if a stock goes from $100 to $120 and pays $5 in dividends, the price return is 20% but the total return is 25%.
Does this calculator account for taxes and fees?
No. This calculator computes gross returns based on the prices and dividends you enter. Real-world returns are lower after capital gains taxes, dividend taxes, trading commissions, and bid-ask spreads. For a more accurate net return, subtract estimated costs from your final value.
🔧 Related Calculators
Educational Disclaimer
This calculator is for educational and informational purposes only. It does not provide investment, financial, tax, or legal advice. The results are based on the inputs and assumptions you provide and may not reflect real market conditions, fees, taxes, or risks. Always do your own research or consult a qualified professional before making financial decisions.