Crypto Trading Calculator

Published · 4 min read

Calculate crypto trading profit, ROI, break-even price, fees, funding, and leverage with formulas that use executable entry and exit values.

TL;DR: Net crypto PnL equals price profit minus entry fees, exit fees, spread, slippage, funding, gas, and borrow costs; a calculator omitting them overstates the trade.

crypto calculatortrading PnLbreak-even pricetrading fees
Table of contents

A precise trading calculator connected to entry, exit, fee, and funding markers

Crypto trading profit is quantity x (exit price - entry price) for a long position, minus every entry fee, exit fee, spread, slippage, funding payment, borrow charge, and network cost.

Calculate crypto trading profit

Linear spot or perpetual PnL; percentage fees apply to both entry and exit notional.

Position side
Leave blank to use entry notional.
Use a negative value for funding received.
Gas, spread, slippage, and borrow costs.

Net trade PnL

$582.40

$600.00 gross minus $17.60 in fees and costs.

Gross PnL
$600.00
Total costs
$17.60
Entry fee
$5.00
Exit fee
$5.60
Entry notional
$5,000.00
Return on entry notional
+11.65%
Return on capital
+11.65%
Break-even exit
$2,508.51

The calculator uses executable entry and exit prices. For shareable trade scenarios with flat fees, use the full Position PnL Calculator.

Crypto profit calculator formulas

For spot or linear contracts:

long gross PnL = quantity x (exit price - entry price)

short gross PnL = quantity x (entry price - exit price)

net PnL = gross PnL - entry fee - exit fee - spread - slippage - funding - borrow cost - gas

ROI = net PnL / capital committed x 100

Use notional value to calculate percentage trading fees. Leverage changes margin committed and liquidation risk; it does not reduce the notional on which most execution fees are charged.

Crypto trading calculator example

Buy 2 ETH at $2,500 and sell at $2,800:

  • gross PnL: 2 x ($2,800 - $2,500) = $600;
  • 0.10% entry fee: $5.00;
  • 0.10% exit fee: $5.60;
  • network and other fixed costs: $7.00;
  • net PnL: $582.40;
  • net return on the $5,000 entry notional: 11.65%.

The price rose 12%, but the position returned less after cost. If a UI reports 12% as the trade result, it is showing price change, not account PnL.

Crypto break-even calculator

For a long spot trade with percentage fees and fixed costs:

break-even exit = [quantity x entry x (1 + buy fee) + fixed costs] / [quantity x (1 - sell fee)]

Using the same 2 ETH entry, 0.10% on both sides, and $7 fixed cost gives a break-even exit near $2,508.51. Spread and slippage should be added to fixed costs or modeled in the executable prices.

For a short, include borrow fees and the cost to buy back. For a perpetual, include each funding interval rather than converting one current funding print into a fixed annual rate.

Crypto leverage calculator mistakes

If a $20,000 position uses $2,000 margin, a 2% favorable move produces $400 gross PnL, or 20% on margin before costs. The same 2% adverse move loses 20% of margin before liquidation effects.

Do not calculate liquidation price as simply entry +/- entry / leverage. Real liquidation includes maintenance margin, fees, collateral haircuts, cross-margin positions, and the venue's mark-price method. Use the exchange's product-specific liquidation estimate.

Our opinion: leverage is a risk-budget input, not a return multiplier. Size the loss at the invalidation price first; leverage is only the collateral implementation.

Crypto average price calculator

For multiple fills:

weighted average entry = sum(fill quantity x fill price) / total quantity

Fees paid in the acquired asset reduce the net quantity. Fees paid in a third token need a timestamped fair value if you want accurate account PnL and records.

Never average entry prices without quantities. A $100 buy at $10 and a $1,000 buy at $20 do not average to $15; the weighted average is about $18.33 before fees.

Which DeFi calculator to use

DecisionToolOutput that matters
Long or short tradePosition PnLNet PnL and return after costs
APR and compoundingAPR to APYEffective annual yield and frequency
LP versus holdingImpermanent lossRelative underperformance
Cross-chain routeBridge fee comparisonDelivered amount, time, and route
Yield riskYield health checkerRisk flags, not a guarantee

Calculate taxes separately. Taxable events, cost basis, and lot selection depend on jurisdiction and cannot be inferred from net PnL alone.

Track actual fills rather than candle prices with the crypto tracking spreadsheet. For perpetual-specific costs, see Coinbase perpetual futures fees.

Sources