Stock Profit / Loss Calculator

See exactly what a trade made or lost. Enter your shares, your buy and sell price, and any fees — and get the net profit or loss in dollars, the return on the capital you put in, and the gain per share.

Your trade

Profit / loss

Total cost$5,000.00
Total proceeds$5,700.00
Profit / loss per share$7.00
Net profit / loss$700.00
Return on capital14.00%

Net P&L = (sell − buy) × shares − fees. Return on capital divides that net by what you put in, so two trades that made the same dollars but tied up different capital compare fairly.

How it works

Your profit on a stock trade is simple in principle — (sell price − buy price) × shares — but two things trip people up: fees and the difference between dollars and percent. This calculator nets out your commission/fees and shows both the raw dollar result and the return on capital, so a $700 gain on $5,000 (14%) doesn't look the same as a $700 gain on $50,000 (1.4%).

Return on capital is the number that lets you compare trades fairly. A big dollar win that tied up most of your account isn't necessarily a better trade than a smaller one that risked far less. Tracking the percent return — and pairing it with your risk on each trade — is how you tell a genuinely good trade from a lucky large position.

On StockSetups, every setup ships with an entry, stop and target, so before you ever take the trade you can drop those numbers in here (or into the position-size and risk/reward calculators) and know the math up front.

Frequently asked

How do you calculate profit on a stock?

Profit = (sell price − buy price) × number of shares, minus any commissions or fees. For example, 100 shares bought at $50 and sold at $57 is (57 − 50) × 100 = $700 gross, less fees.

What is return on capital?

Your net profit divided by the amount you invested, as a percent. It lets you compare trades of different sizes fairly — a $700 gain on $5,000 invested is a 14% return, while the same $700 on $50,000 is only 1.4%.

Should I include fees and commissions?

Yes. Even with $0-commission brokers there can be regulatory, spread and slippage costs. Enter your total round-trip fees so the net profit reflects what actually lands in your account.

Let the scan do the math.

StockSetups draws the levels and works out the entry, stop, target and R:R on every setup it finds — free for 7 days.

Start free — 7-day full access →

More calculators

Learn the terms

See it live