Please note BitMEX does not support old browsers.
We recommend upgrading to the latest version of Opera, Firefox, or Chrome.
AllXBTUSDT28504.0+0.02%XBTUSD28394.5-0.25%XBTEUR26334.0-0.20%XBTUSDTM2329885.5-0.23%XBTUSDTU2331325.0+0.04%XBTJ2328952.0-0.02%XBTM2329855.0+37.52%XBTU2330700.0+53.51%XBTZ2330516.0+0.00%ETHUSDT1823.55+0.00%ETHUSD1816.95-29.39%ETHXBT0.06230-7.72%ETHUSD_ETH1000.00+0.00%ETHUSDTM231908.45+1.01%ETHM230.06698-0.12%ETHUSDM231389.20+0.00%BMEXUSDT90.108+0.00%BMEXUSD0.296-51.07%ADAUSDT0.3939-2.48%ADAUSD0.3947-1.37%ADAM230.00001450-1.43%APEUSDT4.277+2.47%APTUSDT11.290-2.31%APTUSD11.252-0.99%ARBUSDTM231.431-0.49%AVAXUSDT17.781+0.30%AVAXUSD17.745+0.06%AXSUSD8.52+1.55%BCHUSDT126.35+1.77%BCHUSD127.05+2.29%BLURUSDT0.6602+1.58%BLURUSD0.6613+0.87%BNBUSDT315.19-0.63%BNBUSD314.85-0.17%DOGEUSDT0.08219+6.46%DOGEUSD0.08280+6.92%DOTUSDT6.345-1.15%DOTUSD6.348+2.64%EOSUSD0.9448+2.23%FILUSDT5.77+1.05%FLRUSDT0.0350-2.51%FLRUSD0.0293-23.30%GMTUSDT0.3977+0.63%GMTUSD0.3164-21.70%GMXUSDT75.49-1.09%GMXUSD65.45+0.00%KLAYUSDT0.23006+0.98%KLAYUSD0.20044+10.65%LINKUSD7.071-3.27%LTCUSDT92.86+4.83%LTCUSD457.41-8.52%LUNAUSDT1.3106+1.69%LUNAUSD1.3180-39.62%MATICUSDT1.1094-0.91%NEARUSD1.679-22.77%SOLUSDT21.07-0.89%SOLUSD21.60-15.23%USDTUSDC1.0000+0.00%XRPUSDT0.5095-5.54%XRPUSD0.4881-31.80%XRPM230.00001875-5.59%Funding: 04:13:29 @ 0.0100%Time: 11:46:30 PM UTC
BitMEX header logo
Profit/Loss Guide

This guide is meant to explain the concepts of unrealised and realised profit and loss (PNL).

Example 1, Buying and Selling

Perpetual Contracts

John is long 1,000 XBTUSD contracts with an average entry price of $1,000. The mark price of XBTUSD is currently $1,250.

John’s unrealised PNL is based on the difference between his average entry price and the mark price.

Unrealised Profit = ($1/$1,000 - $1/$1,250) * 1,000 = 0.20 XBT

The last price of XBTUSD is $1,500. However for the calculation of unrealised PNL, the mark price is used not the last price. To understand why, please read Fair Price Marking.

John decides to sell 500 XBTUSD contracts at $1,500 and realise some profit.

John’s realised PNL is based on the difference between his average entry price and the price at which he sells XBTUSD.

Realised Profit = ($1/1,000 - $1/$1,500) * 500 = 0.17 XBT

Realised PNL is based on where you can actually buy or sell your position, which in most cases is not the mark price. If John had sold his 500 contracts at the mark price of $1,250, he would have a realised profit of 0.10 XBT.

Example 2, Funding Fees

BitMEX has a type of derivative contract called a Perpetual Contract. Buyers and sellers of perpetual contacts pay and receive funding fees periodically throughout the trading day. To learn more, please read the Perpetual Contracts Guide.

John is trading XBTUSD, which is a perpetual contract. Every 8 hours, there is a funding fee. The funding fee is currently 1%, and is paid from buyers to sellers.

John is currently long 100 XBT worth of XBTUSD. The position has no realised PNL. It is funding time and John must pay 1 XBT because he is long XBTUSD. After the funding fee has been paid, John’s realised PNL is now -1 XBT.

If John had been short 100 XBT worth of XBTUSD instead, he would have received 1 XBT. His realised profit would then be 1 XBT instead of -1 XBT.

Example 3, Trading Fees

All trading fees are accounted for through realised PNL.

John bought XBTUSD. The market has not moved. His unrealised PNL is 0, but his realised PNL is negative. John’s realised PNL is negative because he paid a taker fee when he bought XBTUSD.

If John had placed a passive limit order, he would be classified as a maker once the order was executed. As a maker, John would have been paid a rebate on the trade. In that situation, his unrealised PNL would be 0 and realised PNL positive.

Example 4, Realised PNL Accounting

Realised PNL is displayed in different locations on the BitMEX trading dashboard depending on whether you are merely reducing the size of an existing position, or closing it entirely.

If you have an open position with a realised profit of 10 XBT, this amount will show on the Open Positions tab.

If you completely close the same position and you realise a profit of 10 XBT, this 10 XBT will be shown on the Closed Positions tab.

If you then create a new position on the same contract, realised PNL will be reset to 0 XBT on the Open Positions tab. Realised PNL resulting from a partial closure of this new position will be displayed on the Open Positions tab.

If you then completely close this new position, any realised PNL will be added to that symbol on the Closed Positions tab.