What Is Mark Price?

Understanding the fair price mechanism that protects traders from manipulation and determines when positions are liquidated.

Mark Price Definition

Mark price is a calculated fair value price used by perpetual futures exchanges to determine unrealized profit and loss (PnL), margin requirements, and most importantly, liquidation triggers. It is not the same as the last traded price on the exchange - it is a more stable and manipulation-resistant reference price.

The core purpose of mark price is to prevent unfair liquidations. Without it, a single large market order could temporarily crash the price on one exchange, triggering cascading liquidations of otherwise healthy positions. Mark price anchors to external reference data, making such manipulation impractical.

How Mark Price Is Calculated

Mark price is typically derived from two components: the index price and a basis (premium or discount). The index price is a weighted average of spot prices from multiple major exchanges, providing a reliable reference for the asset's true market value. The basis accounts for the difference between the perpetual contract price and the spot price.

On most exchanges including Hyperliquid, the formula looks something like: Mark Price = Index Price + Decaying Moving Average of (Contract Price - Index Price). The decaying average ensures that temporary spikes in the contract price do not immediately shift the mark price, providing a buffer against manipulation and flash crashes.

The specific parameters - decay rate, index sources, and weighting methodology - vary by exchange and by asset. Exchanges publish these parameters so traders can understand exactly how their positions are being valued and when liquidation would occur.

Why Mark Price Matters for Liquidation

Liquidation is the process by which an exchange force-closes a position when the trader's margin is no longer sufficient to cover potential losses. The critical question is: what price is used to determine when that threshold is crossed? The answer is mark price.

Consider this scenario: you have a long BTC position, and someone places a massive sell order that temporarily pushes the last traded price down 5%. If liquidation were based on last traded price, your position might be closed at the bottom of that temporary dip. But because liquidation is based on mark price - which remains stable because the broader market (index) has not moved - your position survives the artificial price spike.

This protection is especially valuable in crypto markets, which can experience violent short-term price movements due to lower liquidity compared to traditional markets. Mark price is your shield against being liquidated by noise rather than genuine market moves. You can check your liquidation price against mark price using our liquidation calculator.

Mark Price vs Last Price vs Index Price

Last price is the price at which the most recent trade was executed on the exchange. It changes with every trade and can be volatile, especially in thin markets. It is used for calculating realized PnL when you actually close a position.

Index price is the weighted average spot price from multiple exchanges. It represents the consensus market price across the broader ecosystem. It is the foundation upon which mark price is built.

Mark price combines the index price with the perpetual contract's premium or discount. It is the most important price for managing risk because it determines your unrealized PnL, maintenance margin requirements, and liquidation thresholds. In normal market conditions, all three prices are very close to each other. They diverge during periods of high volatility or low liquidity.

Mark Price on Hyperliquid

Hyperliquid calculates mark price using oracle feeds from providers like Pyth Network. For crypto assets, these oracles aggregate price data from multiple major centralized and decentralized exchanges. For stock perpetual futures, the oracle provides real-time stock prices during market hours and fixes to the closing price outside market hours.

The mark price is displayed prominently in the Beacon trading interface alongside the last traded price. When you hover over a position, you can see both your PnL based on mark price (used for margin calculations) and the estimated PnL you would realize if you closed at the current market price. Understanding this distinction is essential for managing leveraged positions effectively.

Frequently Asked Questions

Mark price is designed to reflect the fair value of a contract, not just the most recent trade. It incorporates the index price (spot price from multiple exchanges) and a decaying basis to prevent manipulation. The last traded price can be temporarily distorted by a single large order or thin liquidity, but mark price smooths out these anomalies.
Liquidation is triggered based on mark price, not the last traded price. This protects you from being liquidated by temporary price wicks or manipulation. If the last traded price briefly spikes but the mark price remains stable, your position will not be liquidated. This is one of the most important functions of the mark price system.
The index price is the weighted average spot price from multiple exchanges. Mark price is derived from the index price plus a premium or discount based on the perpetual contract's current trading price relative to the index. In simple terms: Mark Price = Index Price + Decaying Premium. This keeps mark price grounded in reality while accounting for supply and demand in the futures market.
Mark price is much harder to manipulate than last traded price because it is based on the index price, which aggregates data from multiple exchanges. To manipulate mark price, an attacker would need to simultaneously move prices on several major spot exchanges - a far more expensive and difficult task than manipulating a single futures order book.
Hyperliquid uses mark price for calculating unrealized PnL, margin ratios, and liquidation thresholds. Realized PnL is based on your actual entry and exit prices. This means your unrealized PnL displayed on the interface reflects the fair value of your position according to the mark price, while your actual profit or loss when closing depends on the execution price you receive.

Continue Learning

Ready to Start Trading?

Trade perpetual futures on Hyperliquid with real-time mark price data. Self-custodial, no KYC, 24/7.

Open Beacon App