How to Calculate PnL in Crypto Trading

Profit and loss (PnL) calculation in crypto futures is more involved than in spot trading. Leverage, funding rates, and fees all affect your final number, and most traders only discover how much they're actually making — or losing — after the fact. Understanding exactly how PnL is calculated gives you control over your trade outcomes before you enter, not after.

Realized vs. Unrealized PnL: What's the Difference?

Unrealized PnL is the profit or loss on an open position. It fluctuates constantly as the market price moves. If you're long Bitcoin at $60,000 and the price rises to $63,000, you have unrealized PnL of +$3,000 per BTC (before fees). Nothing is locked in until you close the trade.

Realized PnL is what you actually pocket when you close the position. It's the final number after fees, funding payments, and any partial exits are accounted for. The gap between unrealized and realized PnL can be significant — particularly in futures, where funding rates accumulate over time and taker fees on close can eat into profits.

Exchanges display both numbers separately. Monitoring unrealized PnL tells you whether to stay in the trade; tracking realized PnL over time tells you whether your strategy is actually working.

The PnL Formula for Long and Short Positions

For a long position, PnL is straightforward:

Long PnL = (Exit Price − Entry Price) × Position Size (in contracts)

For a short position, the direction reverses:

Short PnL = (Entry Price − Exit Price) × Position Size (in contracts)

On most major exchanges (Bybit, Binance, OKX), perpetual futures are quoted in USDT, so PnL is directly in USDT. On inverse contracts (quoted in the underlying asset like BTC), the formula adjusts to account for the contract value:

Inverse PnL = Contract Value × (1/Entry Price − 1/Exit Price) × Number of Contracts

Most traders use linear USDT-margined contracts today, so the first formula applies in the vast majority of cases.

Step-by-Step Example: Long BTC Trade

Suppose you open a long position:

Gross PnL: ($65,000 − $62,000) × 0.5 = $1,500

Fee on entry: $62,000 × 0.5 × 0.1% = $31
Fee on exit: $65,000 × 0.5 × 0.1% = $32.50
Total fees: $63.50

Net realized PnL: $1,500 − $63.50 = $1,436.50

The fee impact here is modest because the move was large relative to position size. On smaller moves, fees represent a much higher percentage of gross profit. A $500 move on the same position would yield $250 gross, but $63.50 in fees — consuming 25.4% of the profit.

Try it now

Calculate your exact profit or loss for any crypto trade in seconds.

Use the PnL Calculator →

How Leverage Affects PnL (and Why It Cuts Both Ways)

Leverage doesn't change the PnL formula — it changes how much capital you need to control a given position size. At 10x leverage, you control a $10,000 position with $1,000 of margin. The PnL is still calculated on the full $10,000 position, not on your $1,000 margin.

This means a 3% move in your favor returns $300 on a $10,000 position — which is 30% on your $1,000 margin. A 3% move against you costs $300, also a 30% loss on margin. At 10x leverage, a 10% adverse move wipes out your entire margin (ignoring fees).

Higher leverage doesn't create bigger profits from the same price move in absolute terms — it only magnifies returns relative to your margin. The absolute PnL is determined entirely by position size and price movement. The risk is that high leverage means smaller adverse moves are sufficient to liquidate your position.

Conclusion

Understanding PnL calculation gives you clarity on what you're actually earning from each trade after fees and funding costs. Calculate your expected PnL before entering any position — not just to see the upside, but to verify the trade is worth the fee cost at your target move size. Use the PnL calculator for quick pre-trade analysis, and pair it with the risk/reward calculator to ensure the trade meets your minimum ratio before committing capital.

This is not financial advice. Trading involves substantial risk of loss.