Profit and loss calculator

Net profit or loss = (exit value − entry value) for a long, the other way for a short, minus the entry and exit fees, the spread and the slippage. Add a stop loss price to see the result in R.

A trade's result is more than the price move. Each order pays a fee on its value, a market order buys at the ask and sells at the bid, so it pays half the spread, and it can fill a little worse than the price you saw: the slippage. These costs are paid on the way in and on the way out.

This calculator fills both orders as market orders the way backtests on Algonney do: the price moved by half the spread and by the slippage the backtest charges for that market, rounded on the coin's tick, with the fee at the taker rate. It gives each cost on its own line, the net result in USDT and in percent of the entry value, and with a stop loss price the result in R: the net result divided by the money at risk between the entry and the stop. Funding of a perpetual held over funding times is not included: the funding calculator gives it.

Your numbers

Worked example

Example inputs

ExchangeBinance
MarketUSDT perpetual futures
CoinBTC
SideLong
Entry price65000
Exit price67000
Quantity (coins)0.1
Stop loss price63700

Result

Entry fill price65,026.1
Exit fill price66,973.2
Profit or loss before costs (USDT)194.71
Entry fee at the taker rate (USDT)3.251305
Exit fee at the taker rate (USDT)3.34866
Spread paid (USDT)1.32
Slippage paid (USDT)3.97
Net profit or loss (USDT)188.110035
Net profit or loss (% of the entry value)2.8928
Result in R (net, against the stop)1.42
Costs usedtaker fee 0.05 %, half spread 0.01 %, slippage 0.03 % (the same as a backtest on Algonney)

Calculated with Binance's symbol rules, fee rates and funding as stored on 2026-11-22. The example prices are inputs, not a forecast.

Fee rates used

Published standard fee rates of every enabled exchange (the symbol's own rate is used when the exchange gives one).

ExchangeMarketMakerTaker
BybitSpot0.1 %0.1 %
BybitUSDT perpetual futures0.02 %0.055 %
BinanceSpot0.1 %0.1 %
BinanceUSDT perpetual futures0.02 %0.05 %
OKXSpot0.08 %0.1 %
OKXUSDT perpetual futures0.02 %0.05 %