Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Unrealized P&L

Unrealized P&L is the theoretical profit or loss on an open, unsettled financial position, calculated by comparing the current market price to the position's entry price.
Chainscore © 2026
definition
TRADING METRICS

What is Unrealized P&L?

Unrealized P&L (Profit and Loss) is a critical financial metric representing the theoretical gain or loss on an open position, calculated using the current market price versus the entry price.

Unrealized P&L, also known as paper profit or loss, is the profit or loss that exists on a position that has not yet been closed. It is calculated by comparing the asset's current mark price (or last traded price) to the trader's average entry price. This metric is dynamic and updates in real-time with market fluctuations, providing a snapshot of a position's performance at any given moment. It is distinct from realized P&L, which is the actual profit or loss locked in when a trade is closed. The formula for an open long position is: Unrealized P&L = (Current Price - Entry Price) * Position Size.

In trading platforms, Unrealized P&L is a core component of the position dashboard. It directly impacts a trader's account equity and is used to calculate key risk metrics like margin requirements and potential liquidation prices. For example, in leveraged trading, a large negative Unrealized P&L can trigger a margin call if the position's losses erode the required maintenance margin. This metric is essential for risk management, helping traders decide when to take profits, cut losses, or adjust their position size. It is often displayed alongside the percentage change of the position for easier interpretation.

The concept is universal across asset classes, applying to cryptocurrencies, stocks, forex, and derivatives like futures and options. In DeFi, protocols for lending, liquidity provision, and yield farming all generate Unrealized P&L based on the fluctuating value of deposited assets versus rewards or fees accrued. A crucial consideration is that Unrealized P&L is not settled capital; it represents potential value that can vanish if the market reverses before the position is closed. Therefore, disciplined traders use it as an informational signal rather than confirmed profit, always mindful of the gap between paper gains and realized returns.

how-it-works
DEFINITION & MECHANICS

How Unrealized P&L is Calculated

A technical breakdown of the formula and logic behind calculating the paper profit or loss on an open position, a core metric for portfolio management.

Unrealized Profit and Loss (P&L) is calculated by comparing the current market value of an open position to its average entry price. For a long position, the formula is (Current Price - Average Entry Price) * Position Size. For a short position, it is (Average Entry Price - Current Price) * Position Size. The result is a paper gain or loss that fluctuates with the market until the position is closed and the P&L is realized. This calculation is fundamental for assessing the live performance of trades in spot markets, perpetual futures, and other derivative contracts.

The average entry price is critical for accuracy, especially when a position is built incrementally. It is calculated as the total cost of all purchases divided by the total quantity of the asset acquired. For example, buying 1 ETH at $2,000 and another 1 ETH at $3,000 results in an average entry price of $2,500 for a 2 ETH position. If the current ETH price is $3,500, the unrealized P&L is ($3,500 - $2,500) * 2 = $2,000. This method, often called FIFO (First-In, First-Out) accounting, provides a single cost basis for the entire holding.

In leveraged trading, such as with perpetual swaps, the calculation must account for funding rates and fees, but the core principle remains: mark-to-market valuation against the entry price. Platforms display this value in real-time, often as Unrealized P&L or Floating P&L. It directly impacts key risk metrics like margin balance and determines the liquidation price. A negative unrealized P&L erodes available margin, bringing the position closer to automatic closure by the protocol's liquidation engine.

Understanding unrealized P&L is essential for risk management. Traders use it to set stop-loss and take-profit levels, manage position sizing, and calculate return on investment (ROI) for open trades. It represents opportunity cost and potential risk, not settled capital. Importantly, this paper value does not affect taxable income in most jurisdictions until the position is closed and the gain or loss is realized, converting it into a concrete financial event.

key-features
GLOSSARY TERM

Key Features of Unrealized P&L

Unrealized P&L (Profit and Loss) is a paper gain or loss on an open position, calculated from the difference between the current market price and the entry price. It is a critical metric for risk management and position valuation that becomes realized only upon closing the position.

01

Definition & Core Calculation

Unrealized P&L is the theoretical profit or loss on an active, open position, based on current market prices. It is calculated as:

  • For a long position: (Current Price - Entry Price) * Position Size
  • For a short position: (Entry Price - Current Price) * Position Size This value fluctuates with every market tick and is a mark-to-market valuation, representing the immediate liquidation value of the position.
02

Unrealized vs. Realized P&L

These are the two fundamental states of profit and loss in trading.

  • Unrealized P&L: A paper gain/loss on an open position. It is volatile and not yet locked in.
  • Realized P&L: The actual profit or loss captured when a position is closed. It is calculated as the difference between the exit price and the entry price. A position's total lifecycle P&L is the sum of all realized gains/losses plus the final unrealized P&L.
03

Role in Risk Management

Unrealized P&L is a primary dashboard metric for traders and risk engines. It is used to monitor:

  • Margin Health: Large negative Unrealized P&L can trigger margin calls or liquidation if it erodes the required collateral.
  • Stop-Loss & Take-Profit Triggers: These automated orders are often set based on specific Unrealized P&L thresholds.
  • Portfolio VaR (Value at Risk): Contributes to calculating potential losses over a given time horizon.
04

Accounting & Tax Implications

The distinction between unrealized and realized P&L has significant financial reporting consequences.

  • Generally Accepted Accounting Principles (GAAP): May require marking certain portfolios to market, making Unrealized P&L affect earnings.
  • Tax Jurisdictions: Most tax authorities (e.g., IRS) tax realized gains only. Unrealized gains are typically not a taxable event until the asset is sold, a key concept in tax-loss harvesting strategies.
05

Impact of Leverage & Funding

In leveraged trading (e.g., perpetual swaps), Unrealized P&L is magnified and directly interacts with funding mechanisms.

  • Leverage Effect: A 1% price move creates a much larger percentage move in Unrealized P&L (e.g., 10x leverage = ~10% P&L move).
  • Funding Rate Payments: In perpetual contracts, Unrealized P&L can determine the side (longs or shorts) that pays the periodic funding rate to maintain the contract's price peg to the spot market.
06

Example: Crypto Futures Trade

Scenario: Buy 1 Bitcoin futures contract at an entry price of $60,000.

  • If BTC price rises to $65,000: Unrealized P&L = ($65,000 - $60,000) * 1 = +$5,000. This is a paper profit.
  • If BTC price falls to $58,000: Unrealized P&L = ($58,000 - $60,000) * 1 = -$2,000. This is a paper loss.
  • Closing at $65,000: The +$5,000 Unrealized P&L becomes Realized P&L. The initial -$2,000 paper loss would have been avoided if closed earlier.
KEY DIFFERENCES

Unrealized P&L vs. Realized P&L

A comparison of paper gains/losses on open positions versus actual profit/loss from closed positions.

FeatureUnrealized P&LRealized P&L

Definition

The theoretical profit or loss on an open position based on current market price.

The actual profit or loss recorded after a position is fully or partially closed.

Taxation

Capital Impact

Does not affect settled capital or wallet balance.

Directly increases or decreases settled capital and wallet balance.

Trigger Event

Continuous price movement.

Trade execution (close, partial close, liquidation).

Volatility

Highly volatile; changes with every market tick.

Fixed and immutable once the closing trade is settled.

Accounting Status

A memo entry; not recorded on the ledger.

Recorded on the ledger as a definitive transaction.

Liquidity

Remains locked in the open position.

Freed as available capital after position closure.

Risk Management

Used for monitoring position health and margin requirements.

Used for performance analysis and portfolio accounting.

ecosystem-usage
GLOSSARY

Unrealized P&L in DeFi Protocols

Unrealized Profit and Loss (P&L) represents the theoretical gain or loss on an open position, calculated as the difference between the current market value and the cost basis. In DeFi, this is a critical metric for managing leveraged positions, liquidity provision, and collateral health.

01

Core Definition & Calculation

Unrealized P&L is the paper profit or loss on an asset or position that has not yet been closed. It is calculated as:

Unrealized P&L = Current Market Value - Cost Basis

  • Realized P&L is only recorded upon closing the position (e.g., selling an asset, closing a loan, exiting a liquidity pool).
  • In DeFi, this is often tracked in real-time by protocols and dashboards to inform user decisions.
02

Leveraged Trading & Lending

On lending protocols like Aave or Compound, and perpetual futures DEXs like dYdX or GMX, unrealized P&L is vital for risk management.

  • For a leveraged long position, if the collateral asset's price falls, the unrealized loss increases, risking liquidation.
  • The protocol continuously compares the position's health (including unrealized P&L) against the liquidation threshold to trigger automatic margin calls.
03

Liquidity Provision (AMMs)

Liquidity providers (LPs) in Automated Market Makers experience unrealized P&L due to impermanent loss.

  • The value of the LP's pool share is compared to the value of holding the initial assets separately.
  • This loss is 'impermanent' and unrealized until the LP withdraws liquidity from the pool, at which point it becomes a realized loss (or gain).
  • Tools like Uniswap V3 position managers display this metric prominently.
04

Oracle Dependence & Mark Price

Accurate unrealized P&L calculation is entirely dependent on a reliable oracle price feed.

  • Protocols use a mark price (a fair market value from an oracle) rather than the last traded price on their own venue to prevent manipulation.
  • A discrepancy between the oracle price and the DEX's internal price can create arbitrage opportunities but is essential for fair liquidation events.
05

Impact on Collateral & Health Factor

In lending protocols, unrealized losses directly degrade a position's Health Factor.

Health Factor = (Collateral Value * Liquidation Threshold) / Total Borrowed

  • A drop in collateral value (increasing unrealized loss) reduces the numerator, lowering the Health Factor.
  • If Health Factor ≤ 1, the position becomes eligible for liquidation. Thus, monitoring unrealized P&L is crucial for borrowers.
06

Accounting & Tax Implications

For regulatory and tax purposes, unrealized gains are typically not taxable events, while realized gains are.

  • This distinction is complex in DeFi, where actions like harvesting yield, swapping within a liquidity position, or closing a loan can trigger a realization event.
  • Specialized crypto tax software parses blockchain data to differentiate between unrealized and realized P&L across numerous protocols.
risk-implications
UNREALIZED P&L

Risk & Operational Implications

Unrealized P&L (Profit and Loss) represents the theoretical profit or loss on an open position, calculated as the difference between the current market price and the entry price. It is a critical metric for assessing portfolio risk and capital efficiency before a position is closed.

01

Liquidation Risk

Unrealized losses directly impact the health factor or collateral ratio of leveraged positions. As the loss grows, the position's equity decreases, bringing it closer to the liquidation threshold. This creates a feedback loop where large, unrealized losses across the market can trigger cascading liquidations.

  • Example: In a lending protocol, a user's $10,000 ETH collateral position with 70% Loan-to-Value (LTV) may face liquidation if the price drops, causing the unrealized loss to push the LTV above the 80% liquidation threshold.
02

Capital Efficiency & Opportunity Cost

Capital locked in a position with significant unrealized losses is inefficient. This locked capital cannot be redeployed for other opportunities, representing a substantial opportunity cost. For protocols and DAO treasuries, large unrealized losses on treasury assets can impair their ability to fund operations or grants.

  • Key Consideration: Protocols must manage asset concentration risk to avoid having operational runway tied to the volatile P&L of a single asset.
03

Accounting & Treasury Management

For institutional entities and DAOs, tracking unrealized P&L is essential for GAAP (Generally Accepted Accounting Principles) and on-chain accounting. It affects balance sheet valuations and reported equity. Treasury managers use it to make decisions about hedging, rebalancing, or realizing losses for tax purposes (tax-loss harvesting).

  • Operational Impact: Failure to account for unrealized losses can lead to inaccurate financial reporting and poor strategic capital allocation.
04

Oracle Manipulation & MEV

Unrealized P&L is vulnerable to oracle manipulation attacks. A malicious actor can temporarily distort the price feed to artificially inflate or deflate the unrealized P&L of large positions, potentially triggering unjust liquidations or enabling exploitative trades. This creates Maximal Extractable Value (MEV) opportunities for searchers and bots.

  • Defense: Protocols use time-weighted average prices (TWAPs) and multiple oracle sources to mitigate this risk.
05

Psychological & Behavioral Risk

Large unrealized losses can lead to poor decision-making, such as panic selling at a loss or doubling down on a losing position (revenge trading). For protocol governors, the fear of realizing a loss may prevent necessary portfolio rebalancing. Automated strategies may also have behavioral rules (e.g., stop-losses) triggered by unrealized P&L thresholds.

  • Risk Management: Distinguishing between paper losses and realized losses is crucial for disciplined trading and governance.
06

Protocol-Specific Risks (e.g., AMM LPs)

In Automated Market Makers (AMMs), liquidity providers (LPs) face impermanent loss, which is a specific type of unrealized P&L. It represents the loss compared to simply holding the assets, caused by divergence from the deposit price ratio. While unrealized, it impacts LP incentives and overall protocol liquidity depth.

  • Implication: High unrealized impermanent loss can lead to LP attrition, reducing liquidity and increasing slippage for all traders on the protocol.
CLARIFYING CRYPTO ACCOUNTING

Common Misconceptions About Unrealized P&L

Unrealized Profit and Loss (P&L) is a core metric for tracking portfolio performance, but its interpretation is often misunderstood. This section debunks prevalent myths, clarifying its role in risk management, tax implications, and on-chain versus exchange calculations.

No, unrealized P&L is not real money; it is a paper gain or loss representing the theoretical profit or loss on an open position if it were closed at the current market price. It is an accounting metric, not settled cash. Realized profit only occurs upon closing the position through a sale, swap, or other disposal event. Relying on unrealized gains for spending or collateral calculations can lead to significant risk, as market volatility can erase these paper profits before they are locked in.

UNREALIZED P&L

Frequently Asked Questions (FAQ)

Unrealized P&L is a critical metric for assessing the performance of open positions in DeFi, trading, and on-chain asset management. These questions address its calculation, significance, and practical implications.

Unrealized Profit and Loss (P&L) is the theoretical gain or loss on an open financial position, calculated based on the current market price versus the entry price, before the position is closed. It represents the paper profit or loss that would be realized if the position were settled at the current market rate. The core formula is: Unrealized P&L = (Current Market Price - Entry Price) * Position Size. For a short position, the formula is inverted: (Entry Price - Current Market Price) * Position Size. This metric is dynamic and updates continuously with price fluctuations, providing a real-time snapshot of a position's performance. It is a key dashboard figure in trading interfaces, DeFi vaults, and portfolio trackers.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team