Put in your entry, your exit and what you pay in fees and funding. See the profit before and after costs, and the price where the trade breaks even.
Gross PnL = units × (exit − entry) for a long, × (entry − exit) for a short
Fees = units × (entry fee × entry + exit fee × exit)
Funding = position value × rate × (hours ÷ 8)
Net PnL = gross − fees − funding
Return on margin = net PnL ÷ (position value ÷ leverage)
The break-even price is the exit where net PnL is zero after fees and funding. It sits slightly past your entry, in the direction of the trade. The longer you hold and the higher the funding rate, the further it moves.
Return on margin is what exchanges show as ROE or ROI. It looks large because it is measured against the margin, not against the position value.
Questions people ask
How do I calculate futures profit?
Take the units you hold (position value divided by entry price), multiply by the price difference between exit and entry, flip the sign for a short, then subtract fees and funding.
What is the break-even price?
The exit price at which net profit is zero after fees on both sides and funding. It is a little above your entry for a long and a little below it for a short.
Why is my net result lower than the gross result?
Taker fees are charged on entry and exit, and perpetual funding is paid or received while you hold. On small moves, costs can turn a winner into a loser.