CryptoPaperTrading

Crypto PnL calculator for futures and spot

The interactive calculator loads here. The formula and worked examples below show exactly how it works.

Enter your side, entry, exit, quantity and leverage, and the calculator shows gross profit or loss, the fees on both sides, net PnL, return on margin (ROE) and the exit price you need just to break even.

What the inputs mean

The formulas

Long PnL   = (exit − entry) × qty
Short PnL  = (entry − exit) × qty
Fees       = (entry + exit) × qty × fee rate
Net PnL    = PnL − fees
Margin     = entry × qty / leverage
ROE        = net PnL / margin

Fees are charged on position value at entry and again at exit, which is why both prices appear in the fee line.

Breakeven price

To break even, the price move has to pay for both fees. For a long with fee f on both sides, set (X − E)·q = f·(E + X)·q and solve for the exit X:

Long breakeven exit  = entry × (1 + f) / (1 − f)
Short breakeven exit = entry × (1 − f) / (1 + f)

At 0.05% taker on both sides that is about a 0.10% move. At the 0.1% spot fee it is about 0.20%. If you enter with a maker order and exit with a taker order, use entry × (1 + 0.0002) / (1 − 0.0005) for a long, which is about 0.07%.

Worked example: a winning BTC long

Long 0.1 BTC at $90,000, closed at $94,500, 10x leverage, taker fees on both sides.

PnL    = (94,500 − 90,000) × 0.1          = $450.00
Fees   = (90,000 + 94,500) × 0.1 × 0.0005 = $9.225
Net    = 450.00 − 9.225                   = $440.775 ≈ $440.78
Margin = 90,000 × 0.1 / 10                = $900
ROE    = 440.775 / 900                    ≈ 48.98%

Breakeven exit: $90,000 × 1.0005 / 0.9995 = $90,090.05. Below that, the trade loses money after fees even though the price went up.

Worked example: a losing BTC long

Same position, but closed at $87,300.

PnL  = (87,300 − 90,000) × 0.1          = −$270.00
Fees = (90,000 + 87,300) × 0.1 × 0.0005 = $8.865
Net  = −270.00 − 8.865                  = −$278.865 ≈ −$278.87
ROE  = −278.865 / 900                   ≈ −31.0%

A 3% price drop became a 31% loss of margin. That is what 10x leverage does, in both directions.

Worked example: a SOL short

Short 20 SOL at $200, closed at $190, 5x leverage, taker fees on both sides.

PnL    = (200 − 190) × 20             = $200.00
Fees   = (200 + 190) × 20 × 0.0005    = $3.90
Net    = 200.00 − 3.90                = $196.10
Margin = 200 × 20 / 5                 = $800
ROE    = 196.10 / 800                 ≈ 24.51%

Breakeven exit for the short: $200 × 0.9995 / 1.0005 = $199.80. The price has to fall at least that far before the trade is ahead.

What the calculator leaves out

To plan the size before you calculate the result, use the position size calculator. Then try the trade with virtual money on the crypto futures simulator.

Frequently asked questions

How do I calculate profit on a crypto trade?

For a long, profit = (exit − entry) × quantity. For a short, profit = (entry − exit) × quantity. Subtract fees on both sides, (entry + exit) × quantity × fee rate, to get net PnL.

What is ROE in crypto futures?

Return on equity: net PnL divided by the margin you posted. A $440.78 profit on $900 of margin is about 49% ROE, even though the price only moved 5%.

Why did I lose money when the price moved in my favour?

The move was smaller than the fees. At 0.05% taker on both sides a long needs about a 0.10% rise to break even, and spot at 0.1% needs about 0.20%.

Does leverage change my dollar profit?

No. Dollar PnL depends on quantity and price move. Leverage only changes the margin, so it changes ROE and how close the liquidation price is.

Are funding fees included?

No. Funding payments are not simulated on CryptoPaperTrading, and this calculator does not include them.