Unrealized Profit and Loss (Unrealized PnL)
Unrealized PnL is the gain or loss on an open position calculated by comparing entry price to current market price.
Key Takeaways
- Unrealized PnL measures the paper gain or loss on a position that has not yet been closed. It is calculated by comparing the entry price to the current mark price and only becomes real (realized) when the position is closed.
- Unrealized PnL directly affects margin calculations and liquidation risk: exchanges add unrealized PnL to account equity, meaning a large unrealized loss can trigger forced liquidation even if the trader has not sold.
- In most jurisdictions, unrealized gains are not taxed until a disposal event occurs. This distinction between unrealized and realized PnL shapes cost basis tracking and tax planning strategies like tax-loss harvesting.
What Is Unrealized PnL?
Unrealized profit and loss (unrealized PnL) is the theoretical gain or loss on an open position, calculated by comparing the price at which the position was entered to the current market price. Because the position has not been closed, the gain or loss remains "on paper" and can still change as the market moves. Traders also refer to unrealized PnL as floating PnL, open PnL, or paper profit/loss.
The counterpart is realized PnL: the actual profit or loss locked in once a position is closed, stop-loss or take-profit orders execute, liquidation occurs, or a futures contract expires. Realized PnL accounts for all trading fees, funding payments, and slippage incurred during the trade. Unrealized PnL, by contrast, typically reflects only the raw price movement between entry and the current reference price.
Understanding the difference is essential for anyone trading spot, perpetual futures, or DeFi positions. A large unrealized gain is not profit until the position is closed, and a large unrealized loss can worsen rapidly if market conditions deteriorate.
How It Works
The basic formula for unrealized PnL depends on whether the position is long (betting on a price increase) or short (betting on a price decrease):
Long Position Formula
Unrealized PnL = (Current Price - Entry Price) × Position SizeIf a trader buys 2 BTC at $60,000 and the current price is $65,000:
Unrealized PnL = (65,000 - 60,000) × 2 = +$10,000Short Position Formula
Unrealized PnL = (Entry Price - Current Price) × Position SizeIf a trader shorts 2 BTC at $60,000 and the current price drops to $55,000:
Unrealized PnL = (60,000 - 55,000) × 2 = +$10,000In both cases, the PnL is unrealized because the position is still open. The trader has not locked in the gain by closing.
Inverse (Coin-Margined) Contracts
Exchanges that offer coin-margined (inverse) contracts use a different formula because the contract is denominated in USD but settled in crypto:
Unrealized PnL = Contracts × Multiplier × (1/Entry Price - 1/Current Price)This formula produces a PnL denominated in the base asset (e.g., BTC) rather than a stablecoin. The non-linear relationship between price and PnL means gains and losses are asymmetric: a 50% price increase yields less profit (in BTC terms) than a 50% decrease yields in losses.
Which Price Is "Current Price"?
Exchanges use different reference prices for calculating unrealized PnL, and the choice matters:
- Mark price: a smoothed, manipulation-resistant price derived from multiple spot exchanges. Most perpetual futures platforms use mark price for unrealized PnL and liquidation calculations, protecting traders from wicks caused by thin order books on a single venue.
- Last traded price: the price of the most recent fill on the exchange. Some platforms let traders toggle between mark price and last price for display purposes, though liquidation always uses mark price.
- Index price: a weighted average of spot prices across multiple exchanges. The mark price is typically derived from the index price plus a decaying funding basis.
Unrealized PnL and Margin
For leveraged positions, unrealized PnL is not just an informational number: it directly determines whether a position survives or gets liquidated. Exchanges calculate account equity as:
Equity = Wallet Balance + Unrealized PnLWhen equity falls to the maintenance margin level, the exchange triggers liquidation. This means a trader with a $10,000 balance and $9,500 in unrealized losses has only $500 in effective equity, regardless of whether they have "actually lost" anything.
Cross Margin vs. Isolated Margin
The impact of unrealized PnL depends on the margin mode:
- Cross margin: the entire account balance serves as collateral for all open positions. An unrealized gain on one position can offset an unrealized loss on another, but a sudden move can liquidate the entire account.
- Isolated margin: each position has its own margin allocation. Unrealized losses can only trigger liquidation of that specific position, limiting risk to the allocated margin.
Traders using high leverage should monitor unrealized PnL closely. A liquidation price calculator can help estimate at what price level a position would be forcibly closed.
Unrealized PnL in DeFi
Unrealized PnL appears in decentralized finance in several forms beyond simple spot holdings:
- Liquidity provider positions: LPs in AMMs experience unrealized PnL through both fee accrual (positive) and impermanent loss (negative). The net unrealized PnL only becomes realized when liquidity is withdrawn.
- Lending collateral: assets deposited in lending protocols have unrealized PnL that affects the health factor. If collateral value drops (unrealized loss), the position risks liquidation.
- Perpetual DEXs: on-chain perpetual futures platforms calculate unrealized PnL using oracle-fed mark prices, with smart contracts enforcing margin requirements and liquidation logic transparently.
Tax Implications
In most jurisdictions, unrealized gains and losses are not taxable events. The U.S. Internal Revenue Service classifies cryptocurrency as property under Notice 2014-21, meaning capital gains tax applies only when a disposal occurs: selling, trading, or spending the asset. Simply holding an asset that has appreciated does not create a tax liability.
This distinction has practical consequences:
- Holding indefinitely defers taxes on gains, regardless of how large the unrealized PnL grows.
- Tax-loss harvesting strategies involve deliberately realizing losses (closing underwater positions) to offset realized gains elsewhere, reducing total tax liability.
- Cost basis tracking is essential because the entry price that determines unrealized PnL is also the basis for calculating realized gains when the position eventually closes.
A notable exception under discussion involves the U.S. corporate alternative minimum tax, which could require certain large corporations to pay taxes on unrealized crypto gains reported under FASB fair-value accounting rules. As of 2026, the IRS is still drafting implementation rules, and this does not apply to individual taxpayers.
Unrealized PnL vs. Realized PnL
| Aspect | Unrealized PnL | Realized PnL |
|---|---|---|
| Position status | Open | Closed |
| Can change | Yes, fluctuates with market | No, permanently locked in |
| Includes fees | Typically excludes fees | Includes all fees and funding |
| Affects equity | Yes, used for margin calculations | Yes, added to wallet balance |
| Taxable (most jurisdictions) | No | Yes |
| Reference price | Mark price or last price | Actual execution price |
Why It Matters
Unrealized PnL is not just a display number: it drives real-time risk management decisions. Traders use it to decide when to take profits, cut losses, or adjust position sizes. Portfolio managers track aggregate unrealized PnL across all holdings to assess overall exposure and risk-adjusted returns.
For Bitcoin holders and spot traders, the MVRV ratio is a network-wide measure of aggregate unrealized PnL. When MVRV is significantly above 1, the average holder is sitting on unrealized gains, which historically correlates with increased selling pressure. Understanding unrealized PnL at both the individual and market level provides insight into likely participant behavior.
In the context of stablecoin-denominated portfolios, unrealized PnL is straightforward: the difference between the dollar value at entry and now. For Bitcoin-native platforms like Spark, where users may hold BTC and stablecoin assets like USDB, unrealized PnL depends on which denomination the user is tracking against: sats, dollars, or both.
Risks and Considerations
Psychological Traps
Unrealized PnL creates cognitive biases that can lead to poor trading decisions. The disposition effect causes traders to sell winning positions too early (to "lock in" unrealized gains) while holding losing positions too long (hoping unrealized losses will recover). Studies consistently show this behavior reduces overall portfolio returns.
Liquidation Cascades
In leveraged markets, widespread unrealized losses across many traders can trigger liquidation cascades. As prices drop, positions with large unrealized losses get forcibly closed, which pushes prices down further and triggers more liquidations. This feedback loop can amplify market moves far beyond what fundamental supply and demand would produce.
Mark Price Divergence
Because unrealized PnL is calculated against a reference price rather than an actual trade, it can be misleading. A large position may show a favorable unrealized PnL based on the mark price, but attempting to close the position could move the market due to slippage and market depth limitations, resulting in a realized PnL significantly worse than the unrealized figure suggested.
Funding Rate Impact
On perpetual futures platforms, the funding rate is typically excluded from unrealized PnL calculations. A position may show a positive unrealized PnL while the trader has been paying substantial funding fees that erode the actual return. Always consider total PnL (unrealized PnL plus cumulative funding payments and fees) when evaluating position performance.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.