How to Calculate Crypto Profit and Loss — Long, Short, Leverage & Fees

Bottom line: PnL is the net dollar outcome after subtracting every fee from the gross price move. This guide covers long and short positions, ROE vs ROI, exchange fee impact, funding costs, and break-even math — with real BTC, ETH, and SOL examples.

~14 min read · Updated June 2026

Quick answer

Gross PnLLong: (Exit − Entry) × Qty. Short: (Entry − Exit) × Qty.
Net PnLGross PnL − entry fee − exit fee − funding costs − slippage.
ROENet PnL / Margin × 100%. Leverage amplifies this. Easy to misread.
Last updatedJune 2026.

Table of Contents

1. Long Position PnL — with Real Examples

For a long position, you profit when the price rises above your entry. The gross PnL formula is:

Long Gross PnL = (Exit Price − Entry Price) × Quantity

But gross PnL only tells half the story. Below are three worked examples across major coins, showing how to go from gross to net PnL.

BTC Example — Moderate Pump
Buy 0.5 BTC @ $60,000. Sell @ $66,000.
Gross PnL = ($66,000 − $60,000) × 0.5 = $3,000
Binance spot: maker 0.02% × $30,000 entry + taker 0.04% × $33,000 exit = $6 + $13.20 = $19.20
Net PnL = $3,000 − $19.20 = $2,980.80 (ROI = 9.94% on $30,000)
ETH Example — Larger Size, Different Fees
Buy 2 ETH @ $3,500. Sell @ $4,200.
Gross PnL = ($4,200 − $3,500) × 2 = $1,400
Bybit spot: taker 0.1% × $7,000 entry + taker 0.1% × $8,400 exit = $7 + $8.40 = $15.40
Net PnL = $1,400 − $15.40 = $1,384.60 (ROI = 19.78% on $7,000)
SOL Example — Multi-Coin Trade
Buy 100 SOL @ $150. Sell @ $180.
Gross PnL = ($180 − $150) × 100 = $3,000
OKX spot: taker 0.08% × $15,000 entry + taker 0.08% × $18,000 exit = $12 + $14.40 = $26.40
Net PnL = $3,000 − $26.40 = $2,973.60 (ROI = 19.82% on $15,000)

Calculate Your Exact PnL — With All Fees

Enter your entry, exit, quantity, leverage, and exchange to see gross and net PnL instantly.

Open PnL Calculator →

2. Short Position PnL — and Why Unlimited Loss Matters

For a short position, you profit when the price falls below your entry. The gross formula reverses:

Short Gross PnL = (Entry Price − Exit Price) × Quantity

If you short 1 ETH at $3,500 and close at $3,200, gross PnL is ($3,500 − $3,200) × 1 = $300.

⚠ Critical Warning — Short Squeeze Risk: Losses Are Unlimited

A long position can lose at most 100% of your capital (the asset goes to zero). A short position has no theoretical cap on losses. If you short a memecoin at $1 and a short squeeze pushes it to $100 overnight, you lose 100× your entry — far more than your margin. This is not a theoretical scenario. The 2021 GME-style crypto squeezes (DOGE, SHIB, PEPE) liquidated thousands of overleveraged shorts. Before opening any short position, calculate your liquidation price and understand that the market can always move against you faster than you can react.

BTC Short Example
Short 0.3 BTC @ $65,000. Close @ $61,000.
Gross PnL = ($65,000 − $61,000) × 0.3 = $1,200
Binance perps: taker 0.04% × $19,500 entry + taker 0.04% × $18,300 exit = $7.80 + $7.32 = $15.12
Held 5 days at 0.01%/8h: $19,500 × 0.0001 × 15 intervals = $29.25 funding paid
Net PnL = $1,200 − $15.12 − $29.25 = $1,155.63

3. Fees — The Silent Profit Killer

Gross PnL looks good until you subtract fees. On small trades, fees can turn a profitable trade into a loss. On large trades, the absolute dollar amount of fees can be shocking. Every exchange charges differently, and the difference between a maker order and a taker order can be 3-5×.

Exchange Spot Maker Spot Taker Perp Maker Perp Taker
Binance0.02%0.075%0.02%0.04%
Bybit0.02%0.10%0.02%0.055%
OKX0.02%0.08%0.02%0.05%

A $10,000 round-trip trade with taker fees on Bybit costs $20 in fees alone. For a scalper making 10 such trades per day, that is $200/day in fees — or $73,000 per year. Fees are not a rounding error; they are the largest recurring cost in active trading. Always use limit orders when possible to capture maker rebates, and choose your exchange based on the fee schedule that matches your trading style. For a full comparison across all supported exchanges, use our Exchange Fee Calculator.

4. ROE vs ROI — Understanding Your True Return

This is the most commonly misunderstood concept in leveraged crypto trading. ROE (Return on Equity, or margin) and ROI (Return on Investment, or total capital) are not the same number, and confusing them is how traders deceive themselves about performance.

ROE = Net PnL / Margin × 100% controls emotional reactions — it is what you feel when your $1,000 margin position swings $500. ROI = Net PnL / Total Capital × 100% is what you actually earn relative to everything you risked. The gap between them is leverage.

Scenario Margin Leverage Price Move Net PnL ROE ROI
ETH long, small win$1,00010x+5%$48048%4.8%
BTC short, scalp$5,0003x−2%$2905.8%5.8%
SOL long, high lev$50020x−2%−$415−83%−8.3%

The key lesson: a 48% ROE sounds impressive, but it is only 4.8% of your total capital if you could have deployed the full $10,000 position size in a spot trade. ROE helps you compare trades with different leverage; ROI tells you whether the trade was worth the opportunity cost. Before entering any leveraged position, use the PnL Calculator to see both numbers side by side.

5. Funding Costs — The Hidden Drain on Perpetual Positions

If you hold a perpetual futures position overnight, you pay or receive funding every 8 hours. For a long position during positive funding, this is a steady cost that reduces your net PnL. For a short position, it can be income — but it can also flip negative and become a cost.

Funding Cost Example — BTC Long Held 3 Months
Position = 0.5 BTC long @ $65,000 = $32,500 notional
Average funding rate over period = 0.01% per 8h
Daily cost = $32,500 × 0.0001 × 3 = $9.75/day
3-month total funding paid = $9.75 × 90 = $877.50
If BTC rose 10% in that period, gross PnL = $3,250. Net after funding = $3,250 − $877.50 − $26 fees = $2,346.50
Funding alone consumed 27% of the gross profit.

This is why professional traders track funding rates as closely as they track price. A position that looks profitable on a price chart can be losing money once funding costs are factored in. Before holding any leveraged perpetual overnight, model your funding costs with the Funding Rate Calculator. For deeper understanding of how funding works, read the Funding Rate Guide.

6. Break-Even Price After Fees

Your break-even is the exit price where net PnL is exactly zero after all costs are subtracted. It is always further from your entry than the gross break-even, because fees and funding push it outward.

Break-Even Example — Long Position
Buy 0.5 BTC @ $60,000 ($30,000). Total entry fees = $6 (0.02% maker). Exit fee = 0.04%.
To break even: Exit Price × 0.5 − $30,000 = $6 + 0.0004 × Exit Price × 0.5
Simplified: 0.5 × Exit Price − $30,000 = $6 + 0.0002 × Exit Price
Break-even ≈ $60,025 — a 0.042% move above entry just to get flat.

For a short position, the break-even is below entry by the same logic. The market must move against your fees before you can even start to profit. Before opening any trade, calculate the break-even with the PnL Calculator, then size the position using the Position Size Calculator to ensure your stop-loss stays well outside the break-even zone.

7. Common PnL Calculation Mistakes

Mistake 1: Forgetting to subtract entry AND exit fees. Many traders only subtract entry fees and are surprised when their net PnL at exit is lower than expected.

Mistake 2: Confusing ROE with ROI. A 100% ROE on a 10x leveraged position sounds like a home run — but it is only 10% of the total position size, and fees and funding have not been subtracted yet.

Mistake 3: Ignoring funding costs on perpetual positions. A trade break-even on price can be a net loss after 3 weeks of 0.01% funding payments.

Mistake 4: Calculating PnL in percentage terms without converting to dollars. A 5% gain on a $100 position is $5. A 5% gain on a $100,000 position is $5,000. The percentage obscures the absolute risk.

Mistake 5: Not tracking PnL per trade separately from portfolio PnL. A winning trade can mask a string of losing trades if you only look at the aggregate. Track each trade's gross PnL, net PnL, ROE, and fees independently to identify patterns.

Mistake 6: Using the wrong fee tier. If you trade enough volume to qualify for a VIP fee discount but forget to check your current tier, you may be overestimating costs. Use the Exchange Fee Calculator to confirm your exact fee rate.

Track Every Trade — Use the PnL Calculator

Enter entry, exit, quantity, leverage, and fee rate. See gross PnL, net PnL, ROE, and break-even in one view.

Open PnL Calculator →

Frequently Asked Questions

What is the basic crypto PnL formula?

For a long position, gross PnL is exit value minus entry value. For a short position, gross PnL is entry value minus exit value.

Should fees be included in PnL?

Yes. Net PnL subtracts entry fees, exit fees, spread, slippage, and any funding costs from gross PnL.

Does leverage change PnL?

Leverage does not change the price move itself, but it increases position size relative to your margin. That magnifies return on equity and liquidation risk.

What is break-even price after fees?

Break-even is the exit price where gross profit equals all trading costs. It is higher than entry for longs and lower than entry for shorts once fees are included.

Next Study

Related Calculators

🍪

We value your privacy

We use cookies to improve your browsing experience, show more relevant content, and analyze site traffic.

Manage Cookies