How perp PnL is worked out
- Long.
(Exit − Entry) × Size - Short.
(Entry − Exit) × Size - Fees.
Entry × Size × Entry fee + Exit × Size × Exit fee - Return on margin.
Net PnL ÷ (Entry × Size ÷ Leverage)
Worked example
A 5 ETH long from $2,000 to $2,100 at 10x, with a 0.05% fee on each fill.
- Before fees, $100 × 5 = $500
- Fees are $10,000 × 0.05% = $5 in, plus $10,500 × 0.05% = $5.25 out
- After fees, $489.75
- Margin at 10x is $10,000 ÷ 10 = $1,000, so the return on margin is 48.98%
The same trade as a short loses $510.25 after fees, a 51.03% loss on margin. That's the other side of leverage. A 5% move against a 10x position takes about half the margin.
Leverage changes the percent, not the dollars
A 5 ETH position makes or loses the same dollars at 2x or 20x. What leverage changes is the margin you post, so the same dollars show up as a bigger percentage. It also moves your liquidation price closer. Size the trade from your stop with the position size calculator, then check the result here.
Don't forget funding
This calculator leaves funding out, since it depends on the rate at each funding time while you hold. On a trade held for days, add it with the funding rate calculator.