Long / Short PnL Calculator
Calculate gross and net PnL from entry, exit, quantity, and optional fee rate.
Calculate
Results
From estimate to a live bot scenario
Carry the same logic into Veles: set comparable parameters, preview the order grid, then backtest before you launch.
- Match direction, leverage, grid, Martingale, and TP/SL
- Inspect orders, capital allocation, and average entry
- Stress-test fees, drawdown, and MAE in a backtest
Assumptions & conventions
- Linear PnL; fees on entry + exit notional (futures convention).
- Quantity in base asset. Enter percents as numbers: 0.04 for 0.04%.
Frequently asked questions
How is long/short crypto PnL percent calculated?
Gross PnL percent is the price move relative to entry, signed for direction: longs gain when exit > entry; shorts gain when exit < entry. Absolute PnL still uses (price difference) × quantity on a linear contract.
Net percent subtracts fee drag on entry and exit notionals.
When should I use this instead of the futures calculator?
Use long/short PnL for a fast directional outcome with percent move and fees. Use the futures calculator when you also need initial margin and ROI on margin from leverage.
Neither tool includes funding or liquidation — open those calculators separately when holding time or leverage risk matters.
How are fees applied to long and short PnL?
Fees ≈ feeRate × (entry notional + exit notional), with feeRate entered per side as a human percent. That mirrors the futures calculator’s closed-trade fee treatment.
Maker vs taker still depends on how you expect to fill.
Does quantity unit matter?
Yes. Enter base-asset quantity (BTC, ETH, …), not quote notional, unless you convert first. Mixing units is a common source of 100× errors.
If your UI shows quote size, convert with quantity ≈ quoteNotional ÷ entry price before calculating.
Can short PnL be positive when price falls?
Yes. Shorts profit when exit is below entry on a linear contract. The calculator validates direction-aware percent and cash PnL so falling markets are not reported as long-style gains.