How to Calculate Stock ROI: The Percentage Return Formula That Matters
Table of Contents
"I made $500 on my last trade." Cool. But was that $500 on a $5,000 investment (10% return) or a $50,000 investment (1% return)? Without the percentage, dollar profits are meaningless. ROI — Return on Investment — turns dollar profit into a comparable number that lets you actually evaluate whether a trade was good, bad, or middling.
This article shows the stock ROI formula, walks through worked examples, and explains why active traders obsess over percentage returns more than dollar amounts. Use free stock profit calculator to verify any of the math.
The Formula
Stock ROI is calculated as:
ROI (%) = (Net Profit / Total Cost) × 100
Where:
- Net Profit = (Sell Price × Shares - Sell Fees) - (Buy Price × Shares + Buy Fees)
- Total Cost = (Buy Price × Shares) + Buy Fees
That is it. Two numbers. Divide one by the other, multiply by 100, get a percentage. The percentage tells you what fraction of your invested capital you actually earned (or lost) on the trade.
our stock profit calculator runs this calculation automatically. Type your buy price, sell price, and shares — the percentage return appears alongside the dollar profit.
Why Dollar Profit Lies
Two traders, both report "$500 profit on my last trade":
Trader A: Bought 100 shares of a $30 stock ($3,000 invested), sold at $35 ($3,500 received). Profit: $500. ROI: $500 / $3,000 = 16.67%.
Trader B: Bought 1,000 shares of a $50 stock ($50,000 invested), sold at $50.50 ($50,500 received). Profit: $500. ROI: $500 / $50,000 = 1.0%.
Same dollar profit, completely different trades. Trader A had a great trade (16.67% return is excellent). Trader B had a barely positive trade (1% is below most savings accounts).
If you only track dollar profits, you cannot distinguish between these two trades. You will think you are doing equally well in both cases. Only ROI tells you the truth.
This is why every professional trader and serious retail investor talks about returns in percentages. "I had a 15% year" is meaningful. "I made $20,000" is meaningless without knowing the capital base.
Sell Custom Apparel — We Handle Printing & Free ShippingROI vs Annualized Return
ROI is the total return on a trade, regardless of how long you held it. Annualized return adjusts ROI to reflect what the return would be if it were extended to a full year.
Example: 16.67% ROI on a trade you held for 3 months.
- Total return: 16.67%
- Annualized: (1 + 0.1667)^4 - 1 = 77.6%
The annualized version sounds way more impressive, but it is also way more misleading. It assumes you can repeat that exact trade four times in a year, which is almost never realistic. Most trades that work in one quarter do not work in the next quarter.
Use total ROI for individual trade evaluation. Use annualized return only when comparing different time horizons (e.g., "my 3-month strategy returned X annualized vs my 1-year strategy returned Y annualized").
A Realistic ROI Range
What does a "good" ROI look like for retail stock trading? It depends on the time horizon:
| Time Horizon | Mediocre | Good | Great |
|---|---|---|---|
| Day trade | 0-1% | 1-3% | 3%+ |
| Swing trade (1-4 weeks) | 2-5% | 5-10% | 10%+ |
| Position trade (1-6 months) | 5-10% | 10-20% | 20%+ |
| Long-term hold (1+ year) | 5-10% | 10-15% | 15%+ |
For context, the S&P 500 averages about 10% annual returns long-term. Any strategy that beats 10% per year for several years is genuinely impressive. Any strategy claiming 30%+ annual returns consistently is either a scam, a small sample size, or unsustainable risk-taking.
Use free stock profit calculator to track your trades over time. After 50-100 trades, your average ROI is the number that actually matters — not your single best trade or your single worst.
Why Beginners Miss This
New investors fixate on dollar amounts because they are easier to feel. "I made $500" feels great. "I made 16.67%" requires you to actually understand percentages. The brain naturally goes for the dollar number first.
The fix is to always look at both. When you close a trade, ask yourself two questions:
- How much did I make in dollars?
- What percentage of my capital did that represent?
The dollar number tells you whether the trade is meaningful in absolute terms. The percentage tells you whether your strategy is actually working. A consistent 15% ROI over many trades is more valuable than a single home-run trade — because the consistent strategy can be scaled up to bigger position sizes, while the home run is usually unrepeatable.
Track both. Care more about the percentage. Use our stock profit calculator to make sure both numbers are accurate.
Calculate Your Trade Profit Free
Get net profit, percentage return, and ROI in seconds. No signup, no ads, runs in your browser.
Open Stock Profit CalculatorFrequently Asked Questions
Is ROI the same as profit margin?
No. ROI compares profit to capital invested. Profit margin (used in business) compares profit to revenue. For a stock trade, ROI is the relevant metric because you want to know how your investment grew.
How do I calculate ROI when I add money to a position over time?
Use the average cost basis as your "cost" and the total revenue as your "return." For more complex multi-buy positions, use a weighted average of all purchases. Most brokers calculate this for you in the position view.
Does ROI include dividends?
Total return includes dividends, but standard ROI on a sold position usually does not. To include dividends, add the total dividends received to your net profit before calculating the percentage. This is sometimes called "total return ROI."
Can ROI be negative?
Yes — that means you lost money. If you sold for less than you paid, the ROI is a negative percentage. The calculator displays this in red and shows the percentage with a minus sign.

