Crypto Trading Calculator
Calculate crypto trading profit, ROI, break-even price, fees, funding, and leverage with formulas that use executable entry and exit values.
DeFi Farmer Research Desk
Jul 18, 2026 · 4 min read
In brief. 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.
On this page7 sections

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.
Net trade PnL
$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
| Decision | Tool | Output that matters |
|---|---|---|
| Long or short trade | Position PnL | Net PnL and return after costs |
| APR and compounding | APR to APY | Effective annual yield and frequency |
| LP versus holding | Impermanent loss | Relative underperformance |
| Cross-chain route | Bridge fee comparison | Delivered amount, time, and route |
| Yield risk | Yield health checker | Risk 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
Keep reading
Related research

Aster vs Hyperliquid: Fees, Funding, Liquidity, and Risk
Aster vs Hyperliquid compared using current fee documents, funding schedules, execution models, collateral, liquidation rules, and jurisdiction checks.

Perp Dex Points
How perp dex points are scored, what it costs to farm them, and the expected-value maths that decides whether a program is worth trading — plus the shutdown risk nobody prices.

Hyperliquid Fees
Every Hyperliquid fee, from the 0.045% base taker rate to the 40% staking discount: the full 14-day volume tiers, maker rebates, HIP-3 multipliers, and what funding actually costs.
Get the next field guide
New protocol research, risk checks, and practical DeFi tools.