What Is Mark Price?
The reference price exchanges use to prevent manipulation-driven liquidations and calculate unrealized PnL.
Mark price is a calculated reference price used by derivatives exchanges to determine unrealized profit and loss (PnL) and trigger liquidations. Rather than using the last traded price on the exchange—which can be temporarily manipulated through large orders on thin order books—mark price incorporates external data sources, typically the spot index price across multiple exchanges, adjusted for the contract's basis. This mechanism protects traders from being unfairly liquidated by momentary price wicks or manipulative trades on a single venue.
Why Exchanges Use Mark Price
If exchanges used the last traded price to calculate liquidations, a single large market order could temporarily spike the price, liquidating overleveraged traders and immediately reverting. This type of manipulation—sometimes called "stop hunting" or "wick liquidation"—was common in early crypto derivatives markets.
Mark price solves this by using a more robust price reference:
- It incorporates multiple data sources (spot prices from several exchanges) rather than relying on a single venue's order book.
- It uses time-weighted averaging to smooth out momentary spikes.
- It factors in the fair basis between the perpetual futures price and the spot index, preventing extreme deviations from triggering false liquidations.
The result is that a trader's position is evaluated against a price that more accurately reflects the true market value of the underlying asset, not the potentially manipulated price on any single exchange.
How Mark Price Is Calculated
Mark price calculation varies by exchange, but most implementations follow a general pattern:
Mark Price = Index Price + Decaying Fair Basis
Where:
- Index price – A weighted average of the spot price across multiple major exchanges (e.g., Binance, Coinbase, Kraken). This is the primary anchor.
- Fair basis – The difference between the perpetual futures price and the index price, averaged over a recent period. This accounts for the natural premium or discount at which the perp trades.
- Decay function – A time-weighted moving average that causes the fair basis to converge toward zero over the funding interval, smoothing short-term deviations.
Some exchanges add additional safeguards:
- Capping the maximum deviation of mark price from the index price.
- Using the median rather than the mean of exchange prices to reduce the impact of outliers.
- Applying circuit breakers that freeze mark price updates during extreme volatility.
Mark Price vs Last Traded Price
It is important to understand when each price type is used:
| Purpose | Price Used |
|---|---|
| Unrealized PnL calculation | Mark price |
| Liquidation trigger | Mark price |
| Realized PnL at close | Execution price (last traded) |
| Order matching | Order book price |
| Funding rate calculation | Mark price and index price |
A common source of confusion for new traders is seeing their unrealized PnL differ from what they would expect based on the last traded price shown on the chart. This discrepancy arises because unrealized PnL is calculated using mark price, which may differ from the current market price, especially during periods of high volatility or low liquidity.
When you close a position, your realized PnL is determined by the actual execution price—the price at which your closing order is filled in the order book. This can differ from both the mark price and the chart price, particularly for market orders in volatile conditions.
Mark Price and Liquidation Protection
Mark price is the primary defense against manipulation-driven liquidations. Here is a practical example:
- Assume the BTC spot index is $50,000 across major exchanges.
- A whale places a large sell order on Exchange A, temporarily dropping the price there to $48,000.
- If liquidation were based on Exchange A's last traded price, many long positions would be falsely liquidated.
- Mark price, however, incorporates prices from multiple exchanges where BTC still trades near $50,000, so the mark price remains close to $50,000 and no false liquidations occur.
This protection is especially important on lower-liquidity venues, including many decentralized exchanges, where a single large order can have outsized price impact. On platforms like Hyperliquid, the mark price mechanism is critical for maintaining fair liquidation conditions.
Mark Price on Decentralized Exchanges
Decentralized exchanges face unique challenges in implementing mark price:
- Oracle dependency – DEXs rely on oracle networks (Chainlink, Pyth, custom solutions) to feed external spot prices on-chain. Oracle latency, update frequency, and manipulation resistance are critical considerations.
- On-chain computation – Calculating a robust mark price on-chain requires balancing accuracy with gas efficiency. Some protocols compute mark price off-chain and post it on-chain at regular intervals.
- Trust assumptions – The choice of oracle and the mark price calculation methodology introduce trust assumptions that do not exist in centralized exchange implementations.
Hyperliquid, which operates its own L1 chain optimized for trading, runs its mark price calculation within the validator set, achieving low-latency updates without traditional oracle dependencies. Whitelabel platforms built on perps.studio that route through Hyperliquid inherit this robust mark price infrastructure.
Impact of Mark Price on Trading Strategy
Understanding mark price has practical implications for traders:
- Liquidation price accuracy – Your liquidation price is determined by mark price, not the chart price. During volatile periods, the difference can be significant.
- Unrealized PnL fluctuations – Mark price smoothing can cause your unrealized PnL to lag behind market movements. Do not panic if your PnL does not instantly reflect a price move you see on the chart.
- Basis trading – The relationship between mark price and index price represents the basis, which is directly tied to the funding rate. Monitoring mark-to-index deviation helps traders anticipate funding rate changes.
- Stop-loss placement – Stop-loss orders are typically triggered by the last traded price, not mark price. This means a stop-loss can trigger even when mark price would not have caused a liquidation. Consider this when setting both stop-losses and position leverage.
Frequently Asked Questions
What is the mark price in crypto futures?
Mark price is a reference price calculated by a derivatives exchange using external spot prices and fair basis adjustments. It is used to determine unrealized PnL and liquidation triggers. Unlike the last traded price, mark price is resistant to manipulation because it incorporates data from multiple exchanges and applies smoothing.
Why is my unrealized PnL different from what I expect?
Unrealized PnL is calculated using mark price, not the last traded price on the chart. During volatile periods or when the perpetual trades at a premium/discount to spot, mark price can deviate from the displayed chart price, causing apparent discrepancies in your PnL.
Can I be liquidated based on the last traded price?
No. Reputable exchanges use mark price for liquidation calculations, specifically to prevent manipulation-driven liquidations. Even if the last traded price briefly hits your theoretical liquidation level, you will not be liquidated unless the mark price also reaches that level.
How does mark price relate to the funding rate?
The funding rate is calculated based on the difference between the mark price (or the perpetual futures price) and the index price. When the mark price trades above the index, funding is positive (longs pay shorts). When below, funding is negative (shorts pay longs). The funding rate mechanism is what keeps mark price anchored near the index.
Is mark price the same across all exchanges?
No. Each exchange calculates its own mark price using its own methodology, index composition, and smoothing parameters. While mark prices across exchanges are generally similar (because they all reference the same spot markets), they can differ, especially during high volatility or when exchanges use different spot price sources.
Ready to launch your exchange?
perps.studio gives you the infrastructure to deploy a fully branded perpetual futures exchange in minutes.