Understanding how to calculate your profit and loss (PnL) is essential for any trader engaging in cryptocurrency futures. Whether you're holding an open position or closing one, knowing the difference between unrealized and realized PnL helps you manage risk, assess performance, and make informed trading decisions.
This guide breaks down the formulas used to compute both types of PnL, explains key terms like mark price, contract multiplier, and leverage, and shows how these metrics impact your returns—especially in leveraged trading environments.
👉 Discover how to track your trading performance with advanced tools
What Is Unrealized PnL?
Unrealized PnL refers to the profit or loss on an open futures position. Since the trade hasn’t been closed yet, the gain or loss fluctuates with market prices and isn’t locked in.
The calculation differs depending on whether you've taken a long (buy) or short (sell) position.
For Long Positions (Buyers)
If you’ve gone long on a futures contract, your unrealized PnL is calculated as:
Unrealized PnL = (Mark Price - Entry Price) × Contract Multiplier × Number of Contracts- Mark Price: The current fair market value of the contract, designed to prevent price manipulation.
- Entry Price: The average price at which you opened your position.
- Contract Multiplier: A fixed value per contract (e.g., 0.001 BTC for many BTC futures).
- Number of Contracts: Total quantity of contracts held.
For Short Positions (Sellers)
For short trades, where you profit from price declines:
Unrealized PnL = (Entry Price - Mark Price) × Contract Multiplier × Number of ContractsAs the mark price drops below your entry level, your unrealized gains increase.
Calculating Unrealized Return (%)
To understand performance relative to capital at risk, use return on investment (ROI):
- Long ROI (%) =
(Mark Price - Entry Price) × Leverage / Entry Price × 100% - Short ROI (%) =
(Entry Price - Mark Price) × Leverage / Entry Price × 100%
🔍 Note: Leverage amplifies both gains and losses. A 10x leveraged position will see 10 times the percentage return—or loss—compared to a spot trade.
What Is Realized PnL?
Realized PnL is the actual profit or loss locked in when you close all or part of a position. Unlike unrealized PnL, this figure is final and impacts your account balance directly.
For Closed Long Positions
Realized PnL = (Exit Price - Entry Price) × Contract Multiplier × Number of Contracts ClosedFor Closed Short Positions
Realized PnL = (Entry Price - Exit Price) × Contract Multiplier × Number of Contracts ClosedThese calculations reflect net gains or losses after execution, excluding fees unless specified by the platform.
👉 Learn how to optimize your exit strategy using real-time data
Key Concepts in PnL Calculation
To fully grasp PnL mechanics, it's important to understand several core components used in futures trading:
🔹 Mark Price vs. Market Price
- Mark Price is used for calculating unrealized PnL and determining liquidation levels. It’s typically derived from a weighted average of prices across major exchanges to reduce volatility spikes.
- Market Price is the actual price at which a trade executes when closing a position. This determines realized PnL.
Using mark price prevents traders from being unfairly liquidated during brief price wicks.
🔹 Contract Multiplier
Each futures contract represents a specific amount of the underlying asset. For example:
- BTCUSD Perpetual Contract: 0.001 BTC per contract
- ETHUSD Perpetual Contract: 0.01 ETH per contract
Always confirm the multiplier for the specific instrument you're trading.
🔹 Leverage and Its Impact
Leverage allows traders to control large positions with relatively small capital. However, it magnifies both potential returns and risks.
For instance:
- With 20x leverage, a 5% favorable move can yield a 100% return.
- Conversely, a 5% adverse move can lead to full liquidation.
This makes accurate PnL tracking crucial for risk management.
Frequently Asked Questions (FAQ)
Q1: Why does my unrealized PnL change even if the market price doesn’t move much?
Unrealized PnL uses mark price, not just the last traded price. Mark price incorporates funding rates, index prices, and time decay, so it may fluctuate slightly even in stable markets.
Q2: Can I have negative realized PnL?
Yes. A negative realized PnL means you incurred a loss when closing the position. This is normal in trading and reflects an unprofitable trade.
Q3: How are trading fees factored into PnL?
Most platforms subtract fees separately from PnL calculations. So while base formulas don’t include them, your actual net profit will be lower by the total fees paid (taker/maker fees).
Q4: Does leverage affect the PnL formula directly?
Not in the base equation—but leverage affects your margin requirement and return percentage. Higher leverage increases ROI sensitivity but doesn't alter the raw PnL amount.
Q5: What happens to PnL if I partially close a position?
Only the closed portion counts toward realized PnL. The remaining contracts continue to generate unrealized PnL based on current pricing.
Practical Example: Calculating PnL Step-by-Step
Let’s walk through a real-world scenario:
You open a long position on BTCUSD perpetual futures:
- Entry Price: $60,000
- Exit Price: $63,000
- Number of Contracts: 100
- Contract Multiplier: 0.001 BTC
- Leverage: 10x
Step 1: Unrealized PnL (Before Closing)
At a mark price of $62,500:
= ($62,500 - $60,000) × 0.001 × 100
= $250 unrealized profitStep 2: Realized PnL (After Closing at $63,000)
= ($63,000 - $60,000) × 0.001 × 100
= $300 realized profitYour ROI:
= ($63,000 - $60,000) × 10 / $60,000 × 100%
= 50% return👉 See how automated tools simplify complex PnL tracking
Final Thoughts
Accurately calculating unrealized and realized PnL empowers traders to monitor performance, adjust strategies, and maintain disciplined risk control. By understanding how variables like leverage, mark price, and contract size influence outcomes, you can trade more confidently—even in volatile crypto markets.
Remember: consistent profitability comes not just from winning trades, but from precise measurement and continuous learning.
Stay informed, stay analytical, and let data drive your decisions.