Skip to content
Markets with Ivy

Perp PnL calculator

Enter your entry, exit, size and fees. You'll see the profit or loss after fees, the return on your margin and the price you need just to break even.

Side
$
$
coins
x
%
%

Use your venue's maker fee for limit orders and taker fee for market orders. Set 0 to leave fees out.

Profit or loss after fees

-

Return on margin

-

Price move

-

Before fees

-

Fees

-

Margin posted

-

Breakeven price

-

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.

Questions traders ask

How do you calculate PnL on a perp?+

For a long, subtract the entry price from the exit price and multiply by the size. For a short, subtract the exit from the entry. Then take off the fees on both fills. Funding paid or received during the hold also counts toward the final result.

What is ROE on a perp trade?+

Return on equity, or return on margin. It is your profit or loss divided by the margin you posted. At 10x, a 1% price move is about a 10% ROE before fees, in either direction.

Does leverage change my profit in dollars?+

No. The size and the price move set the dollar result. Leverage only changes how much margin you post, so the same dollar result is a bigger percentage of a smaller margin.

What is a breakeven price?+

The exit price where your profit exactly pays for the fees on both fills. For a long it sits a little above your entry. For a short it sits a little below.

Does this include funding?+

No. Funding depends on the rate at each funding time while you hold. Use the funding rate calculator for that, then add it to this result.

Keep going

Updated December 5, 2026.