What is the Profit / Loss Calculator?
A profit and loss (P&L) calculator gives you the exact monetary result of a trade after accounting for entry price, exit price, position size, and commissions. It works for both long positions (buy then sell) and short positions (sell then buy).
Knowing your real, net-of-fees P&L — not just the price move — is essential for honest performance review. Commissions and the direction of the trade can meaningfully change the outcome, especially on smaller moves.
How to use it
- 01Choose whether the trade is long or short.
- 02Enter your entry price and exit price.
- 03Enter the number of shares, contracts, or units.
- 04Add commissions or fees per side to see your true net profit or loss.
The formula
A short profits when price falls, so its formula is the mirror image of a long.
Worked example
You buy (long) 100 shares at $50 and sell at $55, paying $1 commission per side.
Gross P&L = ($55 − $50) × 100 = $500. Net P&L = $500 − $2 = $498.
Had you shorted instead — selling at $50 and covering at $55 — you would have lost $5 per share plus fees.
Frequently asked questions
How do I calculate profit or loss on a trade?+
Multiply the price difference by your position size, then subtract all commissions and fees. For a long, profit = (exit − entry) × size; for a short, profit = (entry − exit) × size.
How is a short trade's P&L different from a long's?+
A short position profits when the price falls and loses when it rises — the exact opposite of a long. The formula simply swaps entry and exit in the price-difference term.
Do commissions really matter?+
On small price moves and high-frequency trading, yes — fees can turn a small gross gain into a net loss. Always include round-trip costs (both the entry and the exit) when reviewing results.
Does this account for taxes or swap fees?+
This tool covers entry, exit, size, and trading commissions. Taxes, overnight swap/financing charges, and currency conversion vary by broker and jurisdiction and should be added separately.
Related calculators
For educational purposes only. Not financial advice.