Skip to main content

Stock ROI Calculator 2026

Calculate the return on investment (ROI) of any stock with our free stock ROI calculator. Enter purchase price, sale price, shares, and dividends to measure your stock investment profitability.

Last revised Maintained by Pavan Kusunuri · About our editorial standards

Calculator inputs

Trade Details

Your results

Total ROI
54.00%
Positive return on investment
Initial Investment
$5,000.00
Final Sale Value
$7,500.00
Capital Gains ROI
50.00%
Dividend ROI
4.00%
Annualized ROI (CAGR)
9.02%
Net Profit
$2,700.00

Opens your browser's print dialog: choose "Save as PDF", then attach the file to an email. The report carries your inputs, the result and any assumptions and data sources behind it.

Financial Disclaimer: This calculator provides a general educational estimate only, based on the purchase price, sale price, dividends, fees, and other figures you enter. It is not financial or investment advice — these are hypothetical or historical scenarios, and past performance does not predict future results. Always consult a qualified financial professional before making investment decisions. Full disclaimer.

Sources & methodology

Formula:
Standard return-on-investment formula: (Net Profit ÷ Cost of Investment) × 100.
Content last updated:
Scheduled re-verification:
August 2027

Calculation type: Exact calculation. Figures are taken from U.S. Securities and Exchange Commission, Office of Investor Education and Advocacy — see sources below.

Your entries stay on this device. This calculator runs entirely in your browser — the figures you type are not sent to us or to anyone else. The page itself uses cookies for analytics and advertising, described in the privacy policy.

How to Use This Calculator

  1. Enter Your Stock Trade Details

    Input the purchase price, sale price, and number of shares. Add any dividends received during the holding period.

  2. Add Deductions (Optional)

    If you paid commissions or taxes, toggle them on and enter the amounts to calculate your net ROI.

  3. Enter Holding Period

    Specify how many years you held the stock. This allows the calculator to annualize your ROI for better comparison.

  4. Review Your ROI Results

    Instantly see your capital gains ROI, dividend ROI, total ROI, annualized ROI, and net profit. Use this data to evaluate your stock investment decisions.

Example Stock ROI Calculation

See how 100 shares bought at $50 and sold at $75, with $200 in dividends over 5 years, yields a total ROI of 54% and an annualized ROI of 9.02%.

Example Inputs
Purchase Price
$50.00
Sale Price
$75.00
Shares Owned
100
Total Dividends
$200
Holding Period
5 years
Commissions
None
Example Results
Initial Investment
$5,000
Final Sale Value
$7,500
Capital Gains ROI
50.00%
Dividend ROI
4.00%
Total ROI
54.00%
Annualized ROI (CAGR)
9.02%
Net Profit
$2,700
Figures are indicative only and may vary.

Understanding Your Results

  • Return on Investment (ROI)
    A profitability measure calculated as (Net Profit ÷ Cost of Investment) × 100. It expresses the gain or loss as a percentage of the initial investment.
  • Capital Gains
    The profit from selling a stock at a higher price than the purchase price. It is one component of total ROI.
  • Dividend ROI
    The percentage return from dividends, calculated as (Total Dividends ÷ Initial Investment) × 100.
  • Annualized ROI (CAGR)
    The consistent annual rate of return that would produce the same total ROI over the holding period, accounting for compounding.

Key Tips

  • Include all costs (commissions, fees) for an accurate ROI calculation.
  • Consider tax implications – after-tax ROI is what you actually keep.
  • Annualize ROI for meaningful comparisons across different holding periods.
  • Use total ROI (capital gains + dividends) – dividends matter.
  • Compare your stock ROI to market indices (e.g., S&P 500).
  • Don't chase high ROI without understanding the risk.
  • Review your ROI regularly and rebalance your portfolio.
  • Use the calculator to model 'what-if' scenarios before investing.

Understanding Stock ROI – A Complete Guide

What Is Stock ROI?

Stock ROI (Return on Investment) measures the profitability of your stock investment relative to your initial cost. It is expressed as a percentage and includes both capital gains (price appreciation) and dividends. A positive ROI indicates you made money; a negative ROI means you lost money.

Calculating Stock ROI

The basic formula for total ROI is: (Net Profit ÷ Total Investment) × 100. Net profit includes sale proceeds and dividends minus the initial cost and any fees. For example, investing $5,000 and getting $2,700 in profit yields a 54% ROI.

Capital Gains ROI vs. Dividend ROI

Capital gains ROI comes from price appreciation, while dividend ROI comes from cash distributions. Both are important. A stock with 8% capital gains and 3% dividends has a total ROI of 11%. Understanding the sources of your return helps you evaluate whether a stock fits your strategy.

Annualized ROI – Measuring Yearly Performance

Annualized ROI (also called Compound Annual Growth Rate or CAGR) expresses your total ROI as a consistent annual rate. A 54% ROI over 5 years equals a 9.02% annualized ROI. This metric is crucial for comparing investments of different holding periods.

Adjusting for Fees and Taxes

Commissions, management fees, and taxes reduce your net ROI. A gross ROI of 54% might become 48% after 10% taxes and 1% commissions. Always calculate your after-fee, after-tax ROI for a more reliable assessment.

Interpreting ROI – What Is a Good ROI?

A 'good' ROI depends on the risk level and alternative investments. Historically, the S&P 500 has returned about 10% annually. An ROI significantly above 10% is excellent; below 5% may be disappointing, especially if you took on high risk. Compare your ROI to appropriate benchmarks.

Using ROI for Investment Decisions

ROI helps you decide which stocks to buy, hold, or sell. It also helps you evaluate your overall portfolio performance. Use ROI alongside other metrics like risk, volatility, and dividend yield for comprehensive investment analysis.

Factoring in Trading Costs – How Fees and Commissions Erode Your True ROI

While many brokers now offer commission-free trading, hidden costs remain: bid-ask spreads (the difference between buying and selling prices), payment for order flow (your orders may not execute at the best available price), foreign exchange fees for international stocks (typically 1-2% each way), and platform fees for advanced tools. For a $10,000 trade with a 0.1% spread and 1% FX fee, your true cost is ~$210 before the investment even moves. Calculate your breakeven price: Purchase Price + (Total Costs ÷ Number of Shares). For frequent traders, these costs compound dramatically – 50 trades per year at $20 effective cost per trade is $1,000 annually in friction. This calculator provides gross ROI based on purchase and sale prices; subtract all trading costs to determine your net ROI. For long-term investors, minimizing trading frequency is the simplest way to reduce cost drag.

Position Sizing and Risk Management – Protecting Your Portfolio

ROI calculations should also incorporate position sizing principles. Even a stock with 100% ROI can be devastating if you bet too much and it goes to zero first. The Kelly Criterion and fixed-percentage position sizing are two frameworks: never risk more than 1-2% of your total portfolio on any single trade. A $100,000 portfolio means a maximum $2,000 at risk. If you set a 20% stop-loss, your position size should be no more than $10,000 ($2,000 ÷ 0.20). This calculator shows the ROI on your entered position, but smart investors also track portfolio-level risk exposure. Concentrated positions may produce spectacular ROI but expose you to catastrophic loss. Diversification – the only free lunch in investing – generally reduces portfolio-level volatility without proportionally reducing expected returns.

Formula & methodology

Formula used

Profit = (Sell Price × Shares) − (Buy Price × Shares) + Dividends − Fees; ROI = Profit / Cost × 100

Calculates net profit as sale proceeds minus purchase cost, plus dividends, minus commissions and taxes, then divides that profit by the original investment cost to express ROI as a percentage — also annualized over the holding period as CAGR.

Origin: Standard return-on-investment formula: (Net Profit ÷ Cost of Investment) × 100.

Variable definitions

SymbolMeaningUnit
Sell PriceSale price per share. The price per share at the time of sale.currency
Buy PricePurchase price per share. The price per share at the time of purchase.currency
SharesShares owned. The number of shares bought and sold.count
DividendsTotal dividends received. Cash dividends received during the holding period.currency
FeesCommissions and taxes. Trading commissions and, if enabled, taxes on the gain.currency

Limitations

  • This is a hypothetical or historical calculation based on the figures you enter — past performance does not predict future returns.
  • The calculator applies a single flat tax rate to the net gain and does not model differing tax treatment of capital gains versus dividends, or bid-ask spreads and other hidden trading costs.

This page is educational. It applies a standard formula to the figures you enter and shows the arithmetic behind the result. It is an estimate, not an offer, a quotation or financial advice: real costs depend on the provider's pricing, fees and underwriting, and on circumstances this calculator does not collect.

Sources & references

  • ReferenceIntroduction to Investing — how stock markets work — U.S. Securities and Exchange Commission, Office of Investor Education and Advocacy
    SEC investor-education reference on stock returns and return on investment — the concepts this calculator's ROI formula is built from.

Frequently Asked Questions

What does a stock ROI calculator do?

A stock ROI (Return on Investment) calculator measures the profitability of your stock investments by comparing the gain or loss relative to the amount invested. It takes the purchase price, sale price, number of shares, dividend income, holding period, and transaction costs to calculate the percentage return, total profit, and annualized return. This is a fundamental tool for every stock investor to evaluate investment performance, compare stocks, and make informed decisions. The calculator provides a clear answer to: 'How much profit did I make on this stock investment?' The best results come from including ALL costs (brokerage, taxes, fees) and ALL income (dividends, bonuses). This tool is invaluable for investors.

What is the formula for calculating stock ROI?

The stock ROI formula is: ROI = [(Sale Price × Shares + Dividends - Purchase Price × Shares - Brokerage - STT - Other Fees - Taxes) / (Purchase Price × Shares + Brokerage + Other Fees)] × 100. For annualized ROI: Annualized ROI = [(1 + ROI)^(1/n) - 1] × 100, where n = number of years. Example: Bought 100 shares at ₹100 (₹10,000), brokerage ₹100, STT ₹50, sold at ₹150 (₹15,000), brokerage ₹100, STT ₹75, dividends ₹500, taxes ₹300 → Net Profit = 15,000 + 500 - 10,000 - 200 - 125 - 300 = ₹4,875. ROI = (4,875 / 10,100) × 100 = 48.27%. The calculator handles all these automatically.

How do brokerage fees and taxes affect stock ROI?

Brokerage fees and taxes reduce your net ROI significantly. Example: Gross ROI = 20% on ₹10,000 (₹2,000 profit). Brokerage = ₹200, STT = ₹50, Capital Gains Tax = ₹300 → Net Profit = ₹1,450 → Net ROI = 14.5% (vs 20% gross). Costs and taxes can reduce ROI by 2-5% or more, especially for short-term trades. Always calculate net ROI after all costs and taxes for an accurate picture. This is especially important in India where STT and brokerage can be significant.

What is a good stock ROI?

There's no universal 'good' ROI—it depends on risk, time period, and market conditions. General benchmarks: (1) Short-term (1 year): 15-30% is good, 30%+ is excellent. (2) Long-term (5+ years): 12-16% in India, 10-12% in USA/UK is good. (3) Conservative: 8-12% with lower risk. (4) Aggressive: 15-20% with higher risk. (5) Compare to benchmarks: Nifty/Sensex/S&P 500 returns. A 'good' ROI is one that: (1) Meets YOUR financial goals. (2) Beats the appropriate benchmark. (3) Compensates for the risk taken. (4) Beats inflation.

What are the common mistakes in calculating stock ROI?

Common mistakes: (1) Ignoring transaction costs (brokerage, STT, fees). (2) Ignoring taxes (capital gains tax, dividend tax). (3) Ignoring dividends and other income. (4) Using incorrect purchase or sale prices. (5) Not adjusting for stock splits and bonuses. (6) Comparing ROI without considering time (use CAGR). (7) Including only winners (survivorship bias). (8) Ignoring currency fluctuations for international stocks. (9) Not considering the opportunity cost. Most investors make at least 2-3 of these mistakes, leading to inaccurate ROI calculations. Use the calculator with complete data to avoid these mistakes.

Need more help? Contact support or email globalcalqulate@gmail.com. We typically reply within 24–48 hours.