Stock Profit Calculator
Calculate your stock trading profit or loss including broker fees and capital gains tax. See your net return, ROI percentage, and break-even sell price instantly.
You buy 200 shares at $25 and sell at $32 with a $9.99 fee and 15% tax rate. Your gross profit is $1,390.01, but after $208.50 in taxes, your net profit is $1,181.51 — a 23.6% return on your $5,000 investment.
Enter Trade Details
Calculate your profit or loss with fees and taxesResults
Your calculated profit or lossEnter your trade details and click calculate to see your profit or loss.
Understanding Profit and Loss
Key concepts for calculating trade performance
How do I calculate profit on a stock trade?
The full formula is net profit = (sell price − buy price) × shares − fees − tax. Start simple: subtract what you paid from what you received. If you bought 100 shares at $50 ($5,000) and sold at $60 ($6,000), your gross profit is $1,000 — but that is before fees and taxes, so your actual take-home can be meaningfully less.
Always factor in broker fees (which reduce your profit) and capital gains tax (which takes a percentage of your gain). A trade that looks like a 20% gain might only net you 15% after these costs.
What is the difference between short-term and long-term capital gains?
In the US, stocks held for less than one year are taxed as short-term capital gains at your ordinary income rate (10-37%). Stocks held longer than one year qualify for long-term rates (0%, 15%, or 20%), which are significantly lower for most investors.
This difference can be substantial. On a $10,000 profit, short-term tax at 32% costs you $3,200, while long-term tax at 15% costs only $1,500 — a $1,700 difference. Holding longer than one year can qualify a gain for the lower long-term rates, though whether to hold depends on price risk, your tax situation, and your own goals.
Does a stock loss reduce my taxes?
Yes. In the US, realized capital losses first offset your realized capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year ($1,500 if married filing separately), and carry the remainder forward to future years.
Watch the wash-sale rule: if you rebuy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss for now and adds it to the cost basis of the replacement shares. This is general information, not tax advice; confirm specifics with a tax professional.
What sell price do I need just to break even?
Because trading fees apply on both the buy and the sell, your break-even sell price sits slightly above your purchase price: you need to recover the buy cost plus round-trip fees before a single dollar counts as profit. At break-even there is no gain, so capital gains tax does not apply — tax only enters once the trade is actually profitable.
To find that exact level for your trade, use the dedicated Break-Even Calculator. Pair it with the Stop Loss Calculator to define your downside before you enter, so you know both the price that makes the trade worthwhile and the price where you would cut it.
Your Privacy is Protected
All calculations run entirely in your browser. We never collect, store, or transmit any data you enter into this calculator. There are no APIs, no server requests, and no logs - your financial information stays on your device and disappears when you close the page.
For informational and educational purposes only — not investment advice.