← All calculators
TRADING TOOLS / PERFORMANCE

Trading P&L calculator.

What did a trade really earn or lose? Compare gross profit, fees and net outcome with clear assumptions — no sign-up or live price feed required.

Long / ShortNet P&LBreak-even exitFees & slippageRuns locally

Looking for a potential trade setup? Try Risk / Reward → Need to choose the quantity from your risk budget? Position Size →

⌂ Add this calculator to your home screen

iPhone / iPad: open this page in Safari → Share → Add to Home Screen → Open as Web App. Android: open this page in Chrome → Install app or Add to Home screen.

For a persistent shortcut, install from markethistorylab.com rather than a temporary review link. Internet access is required to load the calculator; the site does not provide live price feeds.

01

Your trade

Enter entry and exit prices. Quantity is optional — you can calculate the result per unit first.

Long models a buy followed by a sell. Short models a sale followed by buying back. Short trading generally requires derivatives or borrow arrangements and is not ordinary spot ownership.
Price per asset unit when the trade begins. This is a manual quote, not a live market price.
Price per asset unit when the trade ends. Enter the actual exit price for a closed trade or a possible exit price for a planned scenario.
Optional asset units. Leaving it blank returns a profit or loss per one unit. Enter a quantity to see whole-position totals. This is not the USD notional.
Leave empty for P&L per 1 unit. Results use the same quote currency as your prices (e.g. USD).
Fees, slippage & leverageOptional

All costs start at zero. Change them to match your actual maker/taker fees and expected adverse execution.

Opening trading fee as a percentage of the executed entry notional. Enter 0.1 for 0.1%. If blank, zero is assumed.
Closing trading fee as a percentage of the executed exit notional. This can differ from the opening fee (maker versus taker).
Additional adverse difference between the entered entry quote and the modeled execution. Longs buy higher, shorts sell lower. Zero means the given entry price is treated as the fill.
Additional adverse difference between the entered exit quote and the modeled execution. Longs sell lower, shorts buy back higher. Never a guarantee of maximum slippage.
Illustrative leverage for a linear quote-margined position. Changes indicative initial margin and return on margin, not the cash profit/loss of a fixed-sized trade. This is not a liquidation calculator.
Margin estimate = modeled entry notional ÷ selected leverage. Exchange rules and liquidation are excluded.
A linear, single-entry, single-exit calculation. The value of short trades is modeled mathematically, not as ordinary spot ownership. COIN-M inverse contracts require a different formula. No live market price, funding, interest, taxes or liquidation modeled.
HOW TO READ YOUR RESULTS

Gross gain is not take-home profit.

Say you buy 2 units at $100 and sell them at $110. Your gross P&L is $20. If you pay 0.1% on entry ($0.20) and 0.2% on exit ($0.44), your net P&L is $19.36. Trading costs reduce the result even when the price moves in your favor.

Linear net P&L = (exit fill − entry fill) × quantity − entry fee − exit fee (long)
For a short: reverse the price difference.

Break-even quoted exit is the exit price needed to cover both fees and modeled slippage. It is not necessarily equal to your purchase price.

The net return on entry notional is a trade return measured against its full entry value. A second percentage, return on indicative margin, applies only if you choose leverage. A bigger percentage on margin does not imply a safer trade.

Calculation methodology ↗
TRADING COSTS / LEARN

A gross price move is not your net result. Understand maker/taker fees, bid/ask spread, slippage and perpetual funding.

Understand trading costs ↗