Stock Return Calculator
Stock Return Calculator. Free online calculator with formula, examples and step-by-step guide.
What is Stock Return?
Stock return measures the total gain or loss on a stock investment, expressed as a percentage of your original investment. It combines two components: price appreciation (the change in share price) and dividends received during your holding period. This metric tells you exactly how much money you made or lost, accounting for all sources of return.
For example, if you bought 100 shares of Telefónica at €10.50 per share (€1,050 total) and sold them 18 months later at €12.30 per share, receiving €0.40 per share in dividends along the way, your total return would be 20.95%. You'd receive €1,230 from the sale plus €40 in dividends, giving you €1,270 total — a €220 profit on your €1,050 investment. Understanding stock return helps you compare investments, evaluate portfolio performance, and make informed decisions about when to buy or sell.
How it Works: Formulas Explained
Stock return calculation requires three inputs: your purchase price per share, your sale price per share, and any dividends received per share during ownership. The formula captures both capital gains and income:
Total Return (%) = [(Sale Price − Purchase Price + Dividends) ÷ Purchase Price] × 100
Let's work through a concrete example. You purchase 50 shares of Iberdrola at €11.20 per share. Two years later, you sell at €13.85 per share. During those two years, you received dividends totaling €0.92 per share.
Step 1: Calculate capital gain per share: €13.85 − €11.20 = €2.65
Step 2: Add dividends: €2.65 + €0.92 = €3.57 total gain per share
Step 3: Divide by purchase price: €3.57 ÷ €11.20 = 0.3187
Step 4: Convert to percentage: 0.3187 × 100 = 31.87% total return
You can also calculate the absolute gain in euros:
Total Gain = (Sale Price − Purchase Price + Dividends) × Number of Shares
Using our example: (€13.85 − €11.20 + €0.92) × 50 = €3.57 × 50 = €178.50
For annualized return (useful when comparing investments held for different periods):
Annualized Return = [(1 + Total Return)^(12 ÷ Months Held)] − 1
Our 31.87% return over 24 months annualizes to: (1.3187)^(0.5) − 1 = 1.1484 − 1 = 14.84% per year
Step-by-Step Guide
- Gather your purchase information: Find your original trade confirmation showing the exact purchase price per share and the number of shares bought. Include any commissions paid — if you paid €10 commission on a €5,000 purchase, your effective purchase price increases slightly. For 500 shares at €10.00 plus €10 commission, your adjusted cost basis is €10.02 per share.
- Track all dividends received: Review your brokerage statements for every dividend payment during your holding period. Dividends may be reinvested automatically, but they still count as return. If you received four quarterly dividends of €0.28, €0.28, €0.30, and €0.30, your total dividends per share equal €1.16. Multiply by share count for total dividend income.
- Determine your sale proceeds: Locate your sale confirmation showing the sale price per share and date. Subtract any selling commissions from your proceeds. If you sold 500 shares at €14.50 with a €10 commission, your net proceeds are €7,240 (€7,250 − €10).
- Calculate your capital gain or loss: Subtract your total purchase cost from your net sale proceeds. Using the numbers above: €7,240 − €5,010 = €2,230 capital gain. This represents price appreciation only, before adding dividends.
- Add dividends to find total return: Combine your capital gain with total dividends received. If you collected €580 in dividends on 500 shares (€1.16 × 500), your total profit is €2,230 + €580 = €2,810. Divide by your original €5,010 investment and multiply by 100 for a 56.09% total return.
- Annualize for comparison purposes: If you held the stock for 3 years, convert your 56.09% total return to an annualized figure: (1.5609)^(1/3) − 1 = 15.87% per year. This allows apples-to-apples comparison with other investments held for different periods.
Real-World Examples
Example 1: Blue-Chip Dividend Stock
In January 2023, Ana bought 200 shares of Banco Santander at €3.40 per share (€680 total). She held for 18 months, receiving quarterly dividends of €0.09, €0.09, €0.10, €0.10, €0.11, and €0.11 per share (€0.60 total). She sold in July 2024 at €4.15 per share. Capital gain: €4.15 − €3.40 = €0.75 per share. Total gain including dividends: €0.75 + €0.60 = €1.35 per share. Return percentage: €1.35 ÷ €3.40 = 39.71%. In euros: €1.35 × 200 = €270 profit on €680 invested.
Example 2: Growth Stock with No Dividends
Carlos invested €8,000 in 400 shares of a tech company at €20 per share in March 2022. The company reinvests profits rather than paying dividends. By March 2024, shares traded at €28.50. Carlos sold all 400 shares for €11,400. His return: (€28.50 − €20.00) ÷ €20.00 = 42.5%. Total profit: €3,400. Annualized over 2 years: (1.425)^0.5 − 1 = 19.37% per year. Despite no dividend income, strong price appreciation delivered solid returns.
Example 3: Loss Scenario with Dividend Cushion
Elena purchased 150 shares of a retail company at €45 per share (€6,750 total) in early 2023. The stock declined to €38 per share by year-end. However, the company paid €2.10 per share in dividends during the year. Elena sold at €38. Her capital loss: €38 − €45 = −€7 per share. Adding dividends: −€7 + €2.10 = −€4.90 net loss per share. Return: −€4.90 ÷ €45 = −10.89%. Without dividends, her loss would have been −15.56%. Dividends reduced her loss by 4.67 percentage points.
Example 4: Multi-Year Investment with Reinvested Dividends
Miguel bought 300 shares at €22.50 in 2020 (€6,750). He reinvested all dividends, accumulating 35 additional shares by 2024. His average cost basis on reinvested shares was €24.80. He now holds 335 shares. Current price is €31.20. Total value: 335 × €31.20 = €10,452. Total invested: €6,750 + (35 × €24.80) = €7,618. Return: (€10,452 − €7,618) ÷ €7,618 = 37.20% over 4 years. Annualized: (1.372)^0.25 − 1 = 8.22% per year. Reinvesting dividends added 82 shares of growth through compounding.
Example 5: Partial Sale with Remaining Position
Sofia bought 1,000 shares at €15.60 (€15,600) in 2021. The stock rose to €24.30 in 2024. She sold 400 shares at €24.30, keeping 600 shares. On the sold portion: (€24.30 − €15.60) × 400 = €3,480 realized gain. Return on sold shares: €8.70 ÷ €15.60 = 55.77%. She also received €1.85 per share in dividends over the period: €1.85 × 1,000 = €1,850 total dividends. Her remaining 600 shares now worth €14,580 have an unrealized gain of (€24.30 − €15.60) × 600 = €5,220. Total return including both realized and unrealized gains plus dividends: (€3,480 + €5,220 + €1,850) ÷ €15,600 = 67.88%.
Common Mistakes to Avoid
1. Forgetting to include dividends in return calculations: Many investors only look at price change, ignoring dividend income. On a stock that went from €50 to €55 (10% gain) but paid €3 in dividends, the actual return is 16%, not 10%. Over long periods, dividends can contribute 40-50% of total return. Always add dividends to price appreciation for accurate performance measurement.
2. Not adjusting for stock splits: If you bought 100 shares at €100 and the stock split 2-for-1, you now hold 200 shares at an adjusted cost basis of €50 per share. Selling at €70 per share gives you a €20 gain per share (40% return), not €30 loss per share. Brokerage statements show adjusted cost basis, but manually tracking requires split adjustments.
3. Ignoring commissions and fees: Buying and selling commissions reduce your actual return. On a small trade of €1,000 with €10 commission each way, your total trading cost is €20 (2%). If your stock gained 5%, your net return is only 3%. On larger trades, the impact shrinks proportionally but still matters for precise calculations.
4. Confusing total return with annualized return: A 60% return over 5 years sounds impressive but annualizes to only 9.86% per year. A 25% return over 18 months annualizes to 16.19% — actually better performance. Always annualize returns when comparing investments held for different periods. Use the formula: (1 + Total Return)^(12/Months) − 1.
Pro Tips
Track returns on a tax-adjusted basis: Dividends and capital gains face different tax rates in most countries. In Spain, dividends are taxed at 19-23% while long-term capital gains may receive preferential treatment. A 10% return composed entirely of dividends nets less than a 10% return from price appreciation. Calculate after-tax returns for realistic comparisons between dividend stocks and growth stocks.
Use time-weighted returns for portfolio comparison: If you add or withdraw money from your portfolio, simple return calculations become distorted. Time-weighted return (TWR) isolates investment performance from cash flow timing. Most brokerages provide TWR automatically. For manual calculation, compute returns for each sub-period between cash flows, then chain them together geometrically.
Compare against relevant benchmarks: A 12% return sounds good until you realize the IBEX 35 returned 18% the same year. Always compare your stock returns against appropriate benchmarks: individual stocks against their sector index, diversified portfolios against broad market indices. This tells you whether your stock selection added value or if you would have done better with index funds.
Calculate returns in real terms (adjusted for inflation): A 7% nominal return during 4% inflation gives you only 3% real purchasing power growth. Use the Fisher equation: Real Return = [(1 + Nominal Return) ÷ (1 + Inflation Rate)] − 1. For 7% nominal and 4% inflation: (1.07 ÷ 1.04) − 1 = 2.88% real return. Long-term investors should focus on real returns, not nominal figures.
Document your investment thesis and expected returns: Before buying, write down why you're buying and what return you expect. "Buying Telefónica at €4.00 expecting 12% annual return from 6% dividend yield plus 6% price appreciation over 3 years." This creates accountability. After selling, compare actual returns to expected returns to improve your investment decision-making process.
FAQs
Calculate both. Individual stock returns help you evaluate which picks worked and which didn't, improving your stock selection skills. Portfolio return shows your overall performance and whether your asset allocation is working. A portfolio with ten stocks returning 5%, 15%, −8%, 22%, 3%, 11%, −5%, 18%, 7%, and 12% has an average return of 8%, but your actual portfolio return depends on how much you invested in each position.
Use the weighted average cost basis. If you bought 100 shares at €20, then 150 shares at €24, your total cost is (100 × €20) + (150 × €24) = €5,600 for 250 shares. Your average cost per share is €5,600 ÷ 250 = €22.40. When you sell, use €22.40 as your purchase price in the return formula. Most brokerages track this automatically as "average cost" or "cost basis."
Yes, if you bought foreign stocks. If you're a euro-based investor who bought US stocks, your return has two components: the stock's return in dollars and the EUR/USD exchange rate change. A 10% gain in dollar terms becomes a loss if the dollar weakened 15% against the euro. Calculate your return in your home currency by converting both purchase cost and sale proceeds at the respective exchange rates on those dates.
Realized return is profit or loss you've actually locked in by selling. Unrealized return is the paper gain or loss on stocks you still hold. Both matter for different reasons. Realized returns determine your taxes and actual wealth increase. Unrealized returns show your current portfolio value and help you decide whether to hold or sell. Track both, but remember that unrealized gains can disappear if the stock price falls before you sell.