OKX PnL Calculator
Perpetual futures ยท Long & Short ยท All fees included
Calculate net profit and loss on OKX perpetual futures. Enter entry price, exit price, position size and fees โ get instant results.
Position Side
How to calculate PnL on OKX
On OKX perpetual futures, your net profit depends on four inputs: entry price, exit price, position size and fees. The gross PnL is simply the price difference multiplied by size. The net PnL subtracts both the opening fee (paid at entry) and the closing fee (paid at exit):
- Gross PnL (Long) = (exitPrice โ entryPrice) ร size
- Open fee = entryPrice ร size ร 0.02% (maker)
- Close fee = exitPrice ร size ร 0.05% (taker)
- Net PnL = Gross PnL โ Open fee โ Close fee
ROE (return on equity) shows how efficiently your margin worked: Net PnL / (positionSize / leverage) ร 100%. With 100ร maximum leverage on OKX, ROE can be amplified significantly โ but losses are equally amplified.
OKX fee structure
OKX charges maker fee 0.02% and taker fee 0.05% on perpetual futures. Maximum available leverage is 100ร. This calculator pre-fills these defaults so you get accurate results without needing to look up the fee schedule. If you are on a VIP tier with discounted fees, adjust the fee fields accordingly.
Maker orders (limit orders that add liquidity) cost less than taker orders (market orders that remove liquidity). On OKX, using limit orders for both entry and exit can reduce your total fee cost significantly compared to market orders.
Frequently Asked Questions
What is PnL in futures trading?
PnL (Profit and Loss) is the net gain or loss on a trade after all fees. Net PnL = (exit โ entry) ร size โ opening fee โ closing fee.
What is ROE in futures?
Return on Equity is profit as a percentage of your margin. With 10ร leverage a 1% price move yields roughly 10% ROE.
What are OKX perpetual futures fees?
OKX charges maker fee 0.02% and taker fee 0.05%. Maximum leverage is 100ร. This calculator uses these defaults but you can adjust them for your actual rate tier.
Is this calculator specific to OKX?
Yes โ the exchange is pre-selected to OKX with live prices pulled from their API. You can switch to any other supported exchange using the instrument selector.