PnL and ROE formulas
For linear USDT-settled futures — perpetual and dated — as described in the Bybit and Binance help centers as of 18 November 2026:
- PnL of a long is
size × (exit − entry), of a short —size × (entry − exit). Size is in coins: a 7,000 USDT position with BTC at 70,000 is 0.1 BTC. - Trading fee is
size × fill price × rate: the opening fee is charged on the entry price, the closing fee on the exit price. A market order pays the taker rate, a limit order that rests in the order book pays the maker rate. - Net PnL is
PnL − opening fee − closing fee ± funding— the way Bybit calculates the Closed P&L of a position. - Initial margin is
entry × size / leverage, and ROE isPnL / initial margin × 100%. Bybit and Binance label it ROI.
Worked example
Bybit's help center example: a long of 0.1 BTC at 70,000 closed at 75,000 with 10x leverage. PnL = 0.1 × (75,000 − 70,000) = 500 USDT, initial margin = 70,000 × 0.1 / 10 = 700 USDT, ROE = 500 / 700 = 71.43%. At 20x the margin is 350 USDT and ROE is 142.86% — the same PnL, only the margin has changed.
Now add Bybit's regular-user fees as of 18 November 2026: taker 0.055%, maker 0.02%. Entering with a market order costs 70,000 × 0.1 × 0.055% = 3.85 USDT, exiting with a limit order — 75,000 × 0.1 × 0.02% = 1.50 USDT. Net PnL is 494.65 USDT, ROE after fees is 70.66%, and the position breaks even at an exit of 70,052.51. This trade is the form's default.
How much of the margin fees eat
Fees are charged on the full position value while ROE is measured against the margin, so as a share of margin they grow with leverage: leverage × (opening rate + closing rate) for a trade closed at the entry price. At Bybit's regular-user rates as of 18 November 2026:
| Leverage | Market in, market out | Market in, limit out | Limit in, limit out |
|---|---|---|---|
| 1x | 0.11% | 0.075% | 0.04% |
| 5x | 0.55% | 0.375% | 0.2% |
| 10x | 1.1% | 0.75% | 0.4% |
| 20x | 2.2% | 1.5% | 0.8% |
| 50x | 5.5% | 3.75% | 2% |
| 100x | 11% | 7.5% | 4% |
At 100x a round trip of two market orders costs 11% of the margin: the price has to move about 0.11% your way just to get back to zero. Other exchanges and VIP tiers have their own rates — enter yours in the fee fields.
Why the exchange may show a different number
- Open positions. Bybit shows unrealized PnL by the last traded price by default (you can switch it to the mark price), Binance by the mark price. For an open position Bybit's help articles and Binance's unrealized ROI formula take the margin in the denominator at the mark price, while the calculator uses the entry price — as in Bybit's FAQ example and the Binance futures calculator.
- Bybit position ROI. Bybit's P&L calculation article divides PnL by the position margin — initial margin plus an estimated closing fee:
size × entry × (1 − 1/leverage) × taker ratefor a long and(1 + 1/leverage)instead of(1 − 1/leverage)for a short. In the example above that is 3.465 USDT and 71.08% instead of 71.43%. For the same trade scaled down (0.2 BTC, 7,000 → 7,500, 10x) the article shows 71.07%: percentages in its examples are cut to two decimals rather than rounded. - Binance ROI with fees. According to Binance's help center (updated 2 February 2026) ROI includes fees and funding: (realized PnL + commission + funding + insurance clearance fee) / (entry × size / leverage). That is the «ROE after fees and funding» line, minus the insurance clearance fee.
- Closed positions. Bybit's Closed P&L also deducts funding, and on a partial close it prorates the opening fee and funding to the closed part — how to read that export is covered in «Bybit trade history: how to export and analyze it». What funding costs over a long hold is in «Funding rate: what it is and what it costs you».
ROE of −100% means liquidation came first
In isolated margin a loss cannot exceed the position margin: liquidation happens earlier. A long of 0.1 BTC at 70,000 with 10x leverage closed at 63,000 would lose 700 USDT, or 100% of the margin, but with a 0.5% maintenance margin rate the exchange closes it about 9.55% below entry. The calculator warns you in that case; the exact price comes from the liquidation price calculator, and the exchanges' formulas are in «Bybit and Binance liquidation price: formulas and examples».
What Davinchu does
You don't have to work out every trade by hand. A Bybit futures account connects with a read-only key: Davinchu only reads the account and does not accept a key with withdrawal rights. Every closed position lands in the trading journal broken down the same way as in the calculator: size, entry and exit prices, «Commission» (opening and closing together), funding in the «Swap» field and «Net PnL», which matches the exchange's Closed P&L to the cent. After you connect, two years of closed positions are loaded — as much history as Bybit keeps.
Account analytics for a futures account shows fees and funding separately: the «Fees · 30 days» and «Funding · 30 days» rows and a Funding metric for the selected period. What arrives from each exchange is on the «Davinchu for crypto traders» page; the Free plan connects two accounts at no cost.