Trading and Crypto
Trade P&L Calculator
Work out the profit or loss on a stock, crypto or other trade, long or short, after fees and trading costs, with the exit price you'd need to break even.
What are you trading?
Trade direction
Leave blank if you didn't use leverage.
Your profit or loss will appear here
Enter the entry price, exit price and quantity. Fees, costs and leverage are optional.
The method
How it works
The calculator multiplies each price by the quantity to get the entry and exit values. A long trade gains when the exit value is higher; a short trade gains when it's lower. Fees on each side and any other costs, such as a borrow fee or funding, come off the gross result to give the net profit or loss.
The break-even exit price is the price where the net result is exactly zero. With leverage, the dollar result doesn't change, but it's measured against the margin you put up, so the percentage return, up or down, is larger.
The formulas
- Long gross = (exit โ entry) ร quantity
- Short gross = (entry โ exit) ร quantity
- Net = gross โ fees โ other costs
- Return = net รท entry value
- Margin = entry value รท leverage
Worked example: a short sale
You short 100 shares at $50 and buy them back at $48, paying $5 in fees each way and a $10 borrow fee. Gross profit is (50 โ 48) ร 100 = $200, and net profit is 200 โ 5 โ 5 โ 10 = $180. The break-even buy-back price is (5,000 โ 20) รท 100 = $49.80.
Worked example: crypto with percentage fees
You buy 0.5 BTC at $60,000 ($30,000) and sell at $66,000 ($33,000), with a 0.1% fee each way: $30 and $33. Net profit is 3,000 โ 63 = $2,937, a 9.79% return. To break even you'd need to sell at $60,120.13 or more.
What you get
Key features
Long and short trades
Work out profit or loss whether you bought first and sold later, or sold short and bought back.
Break-even exit price
The exit price at which the trade covers every fee and cost, rounded so it doesn't show a price that still loses.
Leverage and margin
Enter a leverage multiple to see the margin used and the return on that margin, with a warning when a loss would exceed it.
Private by design
Your figures stay in this page in your browser. Nothing is saved or sent anywhere, and there are no live prices.
Read before relying on it
Assumptions
- It works out one closed trade: one entry and one exit of the same quantity. Partial exits and several buys at different prices aren't covered; for those, use your average price.
- Fees are either flat amounts or a percentage of that side's trade value. Borrow fees for a short, funding payments or overnight financing go in "Other costs" as one total.
- Values and fees are rounded to the cent, so gross profit minus costs equals net profit exactly. Prices under $1 are shown with more decimals.
- Return on the position is net profit รท entry value. With leverage, margin is entry value รท leverage. Real margin rules, maintenance margin and liquidation prices differ by broker and exchange and aren't modelled.
- Amounts are shown in dollars but work the same in any currency, as long as prices and fees use the same one. Tax on gains isn't included; it depends on where you live and how long you held.
It's an arithmetic tool for trades you enter, not investment advice or a trading signal. Trading, especially short selling and leverage, can lose more than you expect. The figures stay in your browser: they aren't saved or sent anywhere, and refreshing the page clears them.
Questions
Frequently asked questions
For a long trade, take the exit value (exit price ร quantity) minus the entry value (entry price ร quantity), then subtract fees and any other costs. For a short, it's the other way round: entry value minus exit value, minus costs. Buying 100 shares at $50 and selling at $55 with $5 fees each way is $500 gross and $490 net.
When you short, you sell something you've borrowed and buy it back later to return it. You profit if the price falls: selling 100 shares at $50 and buying them back at $45 makes $500 before costs. If the price rises, you lose, and because a price can keep rising, the possible loss on a short has no fixed limit. Brokers usually charge a borrow fee while the position is open.
It's the exit price at which your net profit is zero after every fee and cost. For a long, it's above your entry price by enough to cover fees; for a short, it's below. With $5 fees each way on 100 shares bought at $50, the break-even is $50.10. The calculator rounds a long's break-even up and a short's down, so the price it shows never still loses money.
Leverage doesn't change the profit or loss in dollars; it changes how much of your own money, the margin, is tied up. A $5,000 position at 10ร leverage uses $500 of margin, so a $490 profit is a 98% return on margin, and a $490 loss would be 98% of it. Losses larger than the margin usually mean the position would have been closed before reaching that price.
Whatever your broker or exchange charged: commissions or trading fees on both the entry and the exit, and for crypto the maker or taker fee, usually a percentage. Many stock brokers don't charge commission, but small regulatory fees can still apply when you sell. For shorts or leveraged trades, add borrow fees, funding or financing charges as other costs.
The Stock Profit Calculator is the quick check for a simple buy and sell of shares. This calculator is for trades more generally: short positions, crypto with small prices and fractional quantities, other trading costs and leverage. It's a calculator for trades you enter, not a trading signal or advice.
Keep going
Related calculators
- Stock Profit CalculatorProfit or loss on a share trade after buy and sell fees
- Position Size CalculatorHow many units to trade from your risk amount and stop-loss
- Risk-Reward CalculatorRisk-reward ratio, break-even win rate and expectancy
- ROI CalculatorReturn on an investment after every fee and cost, in percent and dollars
- Currency ConverterConvert between world currencies using daily reference rates
More tools like this are in Trading & Crypto Calculators.
Where this comes from
Sources
Standard formula, see How it works.
Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.