Stock Profit Calculator
Calculate your stock profit or loss after fees and capital gains tax. Enter your shares, buy and sell prices, commissions, and any dividends received to see your total return on investment, net gain after tax, break-even price, and a scenario table across different sell prices.
Stock Profit Calculator
Net gain, ROI, break-even price, and after-tax profit in one calculation
Enter your trade details to see profit, ROI, tax estimate, and scenario table.
* Federal capital gains tax estimated only. Does not include state taxes, NIIT surcharge beyond selected rate, or other individual circumstances. Dividends included in total return but may be taxed separately as ordinary income or at qualified rates. Not financial or tax advice. Consult a CPA for your specific situation.
How a Stock Profit Calculator Works
A stock profit calculator takes four core inputs (shares, buy price, sell price, and commissions) and computes your true gain or loss after all costs. The number you care about isn't the difference between the two share prices. It's the difference between what you actually paid to acquire the position and what you actually received after selling it, then reduced further by any capital gains tax owed on the profit.
Most brokers now show a rough P&L in your account, but they calculate before tax and often before fees. A standalone calculator gives you the full picture: gross profit, return on investment (ROI), estimated tax owed, net profit after tax, and a break-even sell price that accounts for all round-trip costs.
How to Calculate Stock Returns
Step 1: Calculate Your Cost Basis
Your cost basis is the total amount you paid to acquire the position, including commissions. For a straightforward purchase:
Cost Basis = Shares × Buy Price + Buy Commission
Example: 100 shares at $45.00 with a $4.95 commission = $4,504.95 cost basis.
Step 2: Calculate Your Net Proceeds
Net Proceeds = Shares × Sell Price - Sell Commission
Example: 100 shares sold at $62.50 with a $4.95 commission = $6,245.05 net proceeds.
Step 3: Calculate Gross Profit and ROI
Gross Profit = Net Proceeds - Cost Basis
ROI = (Gross Profit / Cost Basis) × 100
From the example above: $6,245.05 - $4,504.95 = $1,740.10 gross profit. ROI = $1,740.10 / $4,504.95 × 100 = 38.6%.
Step 4: Calculate After-Tax Net Profit
Tax Owed = Gross Profit × Capital Gains Tax Rate
Net Profit = Gross Profit - Tax Owed
At a 15% long-term capital gains rate: Tax = $1,740.10 × 0.15 = $261.02. Net profit = $1,740.10 - $261.02 = $1,479.08.
Capital Gains Tax on Stock Sales: 2026 Rates
The tax on a stock sale depends on two things: how long you held the shares, and your total taxable income for the year. Holding for more than one year makes the gain long-term and qualifies it for lower preferential rates. Selling within one year produces a short-term gain taxed at your ordinary income rate.
Long-Term Capital Gains Rates (2026)
For assets held more than one year (IRS Rev. Proc. 2025-32, confirmed via OBBBA permanent provisions):
| Rate | Single Filers (Taxable Income) | Married Filing Jointly |
|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 |
| 15% | $49,451 to $533,400 | $98,901 to $600,050 |
| 20% | Over $533,400 | Over $600,050 |
| +3.8% NIIT | MAGI over $200,000 | MAGI over $250,000 |
* Effective top federal rate on long-term capital gains: 23.8% (20% + 3.8% NIIT). State taxes are additional. Sources: IRS Rev. Proc. 2025-32; Kiplinger; NerdWallet.
Short-Term Capital Gains Rates (2026)
For assets held one year or less, the gain is taxed as ordinary income at your marginal federal rate: 10%, 12%, 22%, 24%, 32%, 35%, or 37%. At the top bracket, short-term gains carry a combined federal rate of 37% plus the 3.8% NIIT surcharge = 40.8%. Long-term status, earned by holding just one additional day past the one-year mark, can reduce that rate to 23.8% on the same profit, a difference worth thousands of dollars on a large position.
What the Stock Profit Calculator Shows You
Cost Basis
Your total acquisition cost including all buy-side commissions. This is the number the IRS uses to determine your taxable gain. For positions with multiple purchases at different prices (not covered by this calculator), your cost basis is the sum of all lots purchased.
Return on Investment (ROI)
Gross profit expressed as a percentage of your cost basis. A 38.6% ROI means you made $38.60 for every $100 invested. ROI ignores time entirely. A 38.6% return in 8 months is dramatically better than the same return over 8 years. For time-adjusted comparisons, use the annualized return (CAGR) formula instead.
CAGR = ((Ending Value / Beginning Value) ^ (1 / Years)) - 1
A 38.6% gross return held for 8 months (0.667 years) is an annualized return of approximately 64%. The same return over 3 years annualizes to about 11.5%.
Break-Even Sell Price
The minimum sell price at which you recover your full cost basis plus sell-side commission, with zero profit. Sell above this price and the trade is profitable; sell below it and you take a loss. At break-even, capital gains tax has nothing to apply to. No profit means no taxable gain.
Scenario Table
The calculator shows your gross profit and ROI at nine different sell prices centered on your entered sell price, ranging from 30% below to 30% above. Use this to evaluate risk/reward before entering a trade or to plan partial profit-taking at different target prices.
Total Return vs. Price Return: Include Your Dividends
A stock's total return combines two components: price appreciation (the gain from the sell price exceeding the buy price) and dividend income received while holding. Ignoring dividends understates your actual performance, especially for long-term positions in dividend-paying stocks.
Example: You hold 200 shares of a stock for 3 years. The price rises from $40 to $50 (25% price return), and the stock paid $4.50 per share in total dividends during that period. Your total return on 200 shares is ($10 price gain × 200) + ($4.50 dividends × 200) = $2,000 + $900 = $2,900 total profit. Without the dividend, you'd calculate only $2,000. Enter total dividends received in the Dividends field in the calculator above to include this in your results.
Commissions, Fees, and Your True Return
Most US retail brokers eliminated stock trading commissions in 2019 to 2020. Fidelity, Schwab, Vanguard, E*TRADE, Robinhood, and most others now charge $0 for online stock trades. If your broker charges commissions, enter them in the calculator. They directly reduce gross profit and increase the break-even price. Even small fees matter on short-term trades with thin margins.
Fees you may still encounter:
- SEC fee: Currently $8.00 per $1,000,000 in proceeds (effectively tiny on retail trades, approximately $0.001 per $100 of stock sold).
- Options commissions: Most brokers still charge per-contract fees for options, typically $0.50 to $0.65 per contract.
- Regulatory fees: FINRA TAF of $0.000166 per share sold (max $8.30 per trade), negligible for most retail positions.
- Wire transfer and account transfer fees: Some brokers charge $25 to $75 for outgoing ACAT transfers. Relevant if you're moving a position between brokers.
