Net Gain, ROI, and Break-Even on Any Stock Trade
Last reviewed: April 2026
A stock profit calculator computes your gain or loss from buying and selling shares, factoring in purchase price, sale price, number of shares, and brokerage commissions. It shows both the dollar amount and percentage return on your trade.
Knowing your actual profit on a stock trade seems simple, but many investors miscalculate by forgetting commissions, fees, or the impact of holding period on tax treatment. The formula is straightforward: (Sell Price × Shares) − (Buy Price × Shares) − Total Commissions = Net Profit. But the more important metric is ROI (Return on Investment), which tells you the percentage return on your invested capital. A $500 profit on a $1,000 investment (50% ROI) is far more impressive than $500 profit on a $50,000 investment (1% ROI). For tracking gains across multiple positions, use our Investment Return Calculator and Compound Interest Calculator.
A 50% return sounds amazing — until you learn it took 5 years. Annualized return normalizes gains to a yearly rate so you can compare investments fairly. The formula is: (1 + Total Return)^(12/months) − 1. A 20% gain in 6 months is actually a 44% annualized return, while a 30% gain over 2 years is only 14% annualized. Compare your annualized returns to the S&P 500's historical average of ~10% to see if you're beating the market. For long-term portfolio projections, try our Savings Growth Calculator.
Your net profit after taxes can be significantly less than the raw gain. Short-term gains (held under 12 months) are taxed at your ordinary income rate (up to 37%). Long-term gains (held over 12 months) get preferential rates of 0%, 15%, or 20%. On a $10,000 gain, the difference between short-term (37%) and long-term (15%) rates is $2,200 in extra tax. Always consider whether waiting a few more days or weeks to cross the one-year threshold is worth the tax savings. Calculate your exact tax with our Capital Gains Tax Calculator.
The break-even price is the minimum sell price needed to cover your purchase cost plus all commissions and fees. With most major brokers now offering zero-commission trading, the break-even is typically just your buy price. But if you're trading options, futures, or using a broker with commissions, the break-even shifts higher. This calculator accounts for both buy-side and sell-side commissions in the break-even calculation. See also our Options Profit Calculator for more complex trade analysis.
| Component | Amount |
|---|---|
| Buy: 100 shares × $50 | $5,000 |
| Buy commission | $0 (most brokers) |
| Sell: 100 shares × $65 | $6,500 |
| Gross profit | $1,500 (30%) |
| Long-term cap gains tax (15%) | -$225 |
| Net profit after tax | $1,275 |
Stock profit seems straightforward — sell price minus buy price — but the true calculation involves several additional factors. Transaction fees (commissions, exchange fees), taxes on capital gains, dividend income received during the holding period, and the opportunity cost of the capital all affect your real return. A stock bought at $50 and sold at $70 produces a $20 gross profit per share, but after $10 in round-trip commissions (largely eliminated at major brokerages) and $3 in capital gains tax, the net profit is $7 per share — a 14% net return versus the apparent 40% gross return.
| Holding Period | Tax Treatment | Tax Rate (2025) | Example: $5,000 Gain |
|---|---|---|---|
| Under 1 year | Short-term (ordinary income) | 10–37% | $500–$1,850 tax |
| Over 1 year | Long-term capital gains | 0–20% | $0–$1,000 tax |
| Over 1 year + NIIT | Long-term + 3.8% surtax | 0–23.8% | $0–$1,190 tax |
The difference between short-term and long-term treatment is substantial. A trader in the 32% bracket who sells $10,000 in gains after 11 months pays $3,200 in tax. Waiting 30 more days drops the tax to $1,500 (15% long-term rate) — saving $1,700 for simply being patient. This is why tax-lot management matters: when selling partial positions, always identify which shares you are selling and prefer those held longer than one year. Track your cost basis across multiple purchases with our Stock Average Calculator.
If you bought a stock at multiple prices over time, your profit depends on your average cost basis. Ten shares at $50, twenty at $40, and ten at $60 gives you 40 shares with an average cost of $47.50 per share. If the stock trades at $55, your total profit is $300 — but the individual lots have different gains. The first lot gained $50/share, the second gained $150/share, and the third lost $50/share. Understanding lot-level gains is essential for tax optimization: selling the losing lot first generates a tax-deductible loss while keeping the winning positions growing tax-deferred.
Dividends received during your holding period are part of your total return even though they do not increase your capital gain. If you bought 100 shares at $50 ($5,000 invested) and received $200 in dividends before selling at $55 ($5,500 proceeds), your total profit is $700 (the $500 capital gain plus $200 in dividends), not $500. When dividends are reinvested (DRIP), they increase your share count and lower your average cost basis, which affects the capital gains calculation at sale. Many investors overlook this adjustment, potentially overpaying taxes. Estimate your dividend income with our Dividend Calculator.
If you have losing positions in your portfolio, you can sell them to realize capital losses that offset your gains dollar-for-dollar. A $3,000 stock profit offset by a $3,000 stock loss results in zero net taxable gain. If your losses exceed your gains, you can deduct up to $3,000 of net losses against ordinary income annually, carrying any remaining losses forward indefinitely. Be aware of the wash-sale rule: if you repurchase a substantially identical security within 30 days before or after the sale, the loss is disallowed. Use our Tax Calculator to see how investment income affects your overall tax situation.
Profit calculations for options are more complex than for shares. A call option purchased for $3.00 premium on a $50 stock with a $55 strike price only becomes profitable when the stock exceeds $58 ($55 strike + $3 premium). The breakeven point includes the premium paid, not just the strike price. Options also have time decay (theta), which erodes value daily as expiration approaches. For leveraged ETFs, daily rebalancing means that a 2x leveraged S&P 500 fund does not simply double the index's annual return — volatility drag can cause significant deviation over longer holding periods. Always calculate net profit after all costs and adjustments.
The most frequent mistake is ignoring commissions and fees — while many brokerages now offer zero-commission stock trading, options still carry per-contract fees ($0.50–$0.65 each), and cryptocurrency exchanges charge 0.1–1.5% per trade. These costs matter most for frequent traders and small positions. A second common error is forgetting to account for currency conversion costs when trading international stocks. A third mistake is calculating return percentages using the wrong base — always use your total invested capital (including commissions) as the denominator. Fourth, many investors forget to adjust for stock splits: a $200 stock that undergoes a 2:1 split to $100 per share has not lost value, and your cost basis must be adjusted accordingly. Verify your overall returns with our ROI Calculator.
Individual stock profits only tell part of the story. Your overall portfolio performance — including winners, losers, dividends received, and fees paid — determines your actual wealth-building success. A portfolio with one stock up 50% and four stocks down 10% each has a net gain of only approximately 6%. This is why diversification matters: it is difficult to consistently pick individual winners, but a diversified portfolio captures broad market growth while limiting the damage from any single position. Track your average purchase price across all holdings with our Stock Average Calculator and model your long-term growth trajectory using our Compound Interest Calculator.
→ Run multiple scenarios. Try different inputs to understand how each variable affects the result. This builds practical intuition beyond just getting a single answer.
→ Use accurate inputs for reliable results. The output is only as good as the input. Use measured values rather than rough estimates whenever possible.
→ Bookmark for quick access. Save this page for instant reference — no need to search for it again the next time you need this calculation.
→ Explore related tools. Check the related calculators section below for tools that complement this one — many calculations work best in combination.
See also: Capital Gains Tax · Investment Return · Compound Interest · Dividend Calculator · Options Profit