Crypto Futures PnL Calculator

Calculate realised P&L on a closed long or short futures position

Enter entry price, exit price, position size, direction, leverage, and fee rate to compute gross PnL, fee-adjusted net PnL, ROE percent, and initial margin for crypto futures. Supports both linear USDT-margined and inverse coin-margined contracts. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How is PnL calculated for a long position?

For a linear contract, gross PnL equals quantity times exit price minus entry price. For a short it is quantity times entry minus exit. Fees on both entry and exit notional are subtracted to give net PnL. Inverse contracts use the reciprocal-price formula instead.

When you close a leveraged crypto futures position, your real result is gross price move minus the fees you paid on both legs. This calculator computes the full breakdown for long or short trades on both linear (USDT-margined) and inverse (coin-margined) contracts, including return on equity.

How it works

For a linear contract the quantity in coins drives everything:

qty = size in coins, or sizeUSD / entry
long  gross PnL  = qty × (exit − entry)
short gross PnL  = qty × (entry − exit)
fees             = (qty×entry + qty×exit) × feeRate
net PnL          = gross − fees
margin           = (qty × entry) / leverage
ROE %            = net PnL / margin × 100

For an inverse (coin-margined) contract, profit settles in the base coin and uses reciprocal prices:

long  PnL(coin) = notionalUSD × (1/entry − 1/exit)
short PnL(coin) = notionalUSD × (1/exit − 1/entry)
margin(coin)    = notionalUSD / (entry × leverage)

Worked example: linear long

Going long on BTC at an entry of $60,000, exiting at $66,000, with a position size of 0.1 BTC and a 0.05% taker fee on both legs:

  • Gross PnL: 0.1 × (66,000 − 60,000) = $600
  • Entry fee: 0.1 × 60,000 × 0.0005 = $3
  • Exit fee: 0.1 × 66,000 × 0.0005 = $3.30
  • Net PnL: $600 − $3 − $3.30 = $593.70
  • With 10× leverage, initial margin: (0.1 × 60,000) / 10 = $600
  • ROE: $593.70 / $600 ≈ 99%

The same 10% price move on unlevered spot would return 10% on capital. Leverage amplifies the move to roughly 100% ROE on the margin posted — but equally amplifies any loss, and liquidation risk must be factored in.

Linear vs inverse contracts

Linear (USDT-margined): you post margin and receive PnL in USDT. The outcome is simple to understand: a $600 gross gain on BTC means $600 USDT deposited into your account. Most retail traders use linear contracts.

Inverse (coin-margined): you post margin and receive PnL in the base coin (BTC, ETH). This means your effective USD exposure changes as the coin price moves — a BTC gain is worth more in USD if BTC itself rises. Inverse contracts are popular among miners who hold coins naturally and prefer coin-denominated results.

What this calculator does not model

  • Funding rates: perpetual swaps charge an ongoing funding fee (positive or negative) between longs and shorts every 8 hours. On a long-held position funding costs can materially erode PnL.
  • Liquidation: leverage creates a liquidation price below (for longs) or above (for shorts) the entry. If the mark price hits that level before you close, the position is liquidated and margin is lost.
  • Slippage: market orders at high leverage on low-liquidity pairs may fill worse than the price you see.

Use the output as a clean trade estimate for a closed position, then factor in funding, slippage, and margin safety when planning the trade.