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

Cross-margin

Cross-margin is a risk management model in decentralized finance (DeFi) where a user's entire portfolio of deposited assets serves as collateral for their aggregate debt across multiple positions.
Chainscore © 2026
definition
TRADING & FINANCE

What is Cross-margin?

A margin account structure where all available collateral is pooled to support multiple open positions simultaneously.

Cross-margin is a risk management method in leveraged trading where the total available collateral in a trader's account forms a single, shared pool. This pool is used to cover the margin requirements and potential losses for all open positions at once. Unlike isolated margin, which confines risk to individual trades, cross-margin allows unused equity from one position to automatically cover the maintenance margin needs of another, preventing liquidation of otherwise healthy positions due to isolated volatility.

The primary mechanism involves a centralized margin calculator that continuously monitors the total account equity against the aggregate initial margin and maintenance margin for all positions. If the total equity falls below the maintenance level, a margin call is triggered for the entire account, potentially leading to the liquidation of one or more positions to restore the required collateral ratio. This system maximizes capital efficiency but increases systemic risk, as a major loss in one trade can jeopardize all others.

In decentralized finance (DeFi) and on centralized exchanges, cross-margin is commonly used in perpetual futures and margin trading of spot assets. For example, a trader with $10,000 in cross-margin can open a long BTC position and a short ETH position; gains on one can offset losses on the other, and the entire $10,000 acts as a buffer. This contrasts with portfolio margin in traditional finance, which uses sophisticated risk models but shares the core concept of netting risk across a portfolio.

Key advantages include superior capital efficiency and flexibility, as traders are not forced to over-collateralize each position individually. The main disadvantage is heightened liquidation risk; a sharp move against any single, large position can deplete the shared collateral pool, triggering a cascade that closes all positions. Prudent use requires rigorous position sizing and stop-loss orders to manage the interconnected risk profile inherent to the cross-margin model.

how-it-works
MECHANISM

How Cross-margin Works

An explanation of the cross-margin mechanism, a risk management system used in leveraged trading.

Cross-margin is a risk management method in leveraged trading where the total collateral in a trader's account is pooled into a single, shared margin balance that backs all open positions simultaneously. This unified pool of assets—which can include the initial margin, any additional deposited funds, and unrealized profits—serves as the collateral for the aggregate risk of the entire portfolio. Unlike isolated margin, losses in one position can be covered by the excess collateral from other, more profitable positions, allowing for more efficient capital utilization but increasing the risk of a cascading liquidation event across the entire account if the total margin falls below maintenance requirements.

The system operates by continuously calculating the account's health metrics, primarily the margin ratio or maintenance margin requirement. The total value of the pooled collateral is compared against the total margin requirement for all open leveraged positions. If the account's equity (total collateral value minus total position losses) drops too close to the maintenance level, the trader receives a margin call and must add more funds. Failure to do so triggers an automatic liquidation of some or all positions to bring the account back to a solvent state, protecting the platform from loss.

This mechanism is fundamental to perpetual futures contracts and margin trading on centralized exchanges (CEXs) like Binance and Bybit. Its efficiency comes from netting: profitable positions can offset the mark price losses of others within the shared pool, preventing premature liquidation of a single trade. However, this creates systemic risk for the trader, as a sharp move against one major position can deplete the shared collateral, potentially liquidating unrelated, even profitable, trades. Advanced platforms may offer cross-margin with portfolio-level hedging benefits, where offsetting positions (e.g., long BTC/short ETH) reduce the net margin requirement.

From a technical perspective, cross-margin engines must perform real-time calculations using oracle prices to determine unrealized PnL and update the available balance. The key formula governing account safety is Margin Ratio = Total Equity / Total Maintenance Margin. When this ratio hits 100% (or a protocol-specific threshold), liquidation begins. This is distinct from decentralized finance (DeFi) lending protocols, which typically use over-collateralized, isolated vaults. In practice, traders use cross-margin for strategies like arbitrage or managing a diversified portfolio under a single risk umbrella, accepting the higher stakes for greater capital flexibility.

key-features
MECHANISM

Key Features of Cross-margin

Cross-margin is a risk management model where a single, pooled collateral balance is used to secure multiple open positions simultaneously.

01

Unified Collateral Pool

Instead of isolating collateral per position, cross-margin aggregates all deposited assets into a single margin account. This pool backs the total risk of all open positions. The margin requirement is calculated against the net exposure of the entire portfolio, not each individual trade. This allows for more efficient use of capital, as excess margin from one position can cover the requirements of another.

02

Increased Capital Efficiency

The primary advantage is the optimal utilization of capital. Unused or excess margin from profitable or low-risk positions is automatically available to support new or under-margined positions. This reduces the need for frequent top-ups and allows traders to take on larger aggregate exposures with the same amount of initial capital compared to an isolated margin system.

03

Portfolio-Based Liquidation

Liquidation risk is assessed at the portfolio level. A liquidation event is triggered when the total value of the collateral pool falls below the maintenance margin requirement for the entire book of positions. This means a profitable position can help prevent the liquidation of a losing one, but conversely, one large losing position can jeopardize all others in the pool.

04

Net Exposure Calculation

Risk is managed by calculating the portfolio's net exposure. For example, in perpetual futures trading, long and short positions in the same asset may partially offset each other, reducing the overall margin requirement. The system dynamically computes the net delta or notional value, requiring margin only for the net risk, not the gross sum of all positions.

05

Contrast with Isolated Margin

This is the direct counterpart to isolated margin, where collateral is allocated and risk is contained per position. Key differences:

  • Cross-margin: Capital efficiency, portfolio-level risk, higher potential for cascading liquidations.
  • Isolated Margin: Defined risk per trade, no cross-position collateral sharing, liquidation isolates loss to a single position.
06

Primary Use Cases

Cross-margin is favored by:

  • Sophisticated traders & funds managing complex, multi-leg strategies (e.g., delta-neutral portfolios, hedging).
  • Arbitrageurs who need capital efficiency across correlated positions.
  • High-frequency trading algorithms that benefit from reduced collateral friction. It is less suitable for beginners or for highly speculative, uncorrelated bets where risk containment is a priority.
MARGIN MODE COMPARISON

Cross-margin vs. Isolated Margin

A comparison of the two primary margin account structures used in leveraged trading on decentralized and centralized exchanges.

FeatureCross-MarginIsolated Margin

Risk Pooling

All open positions share a single, pooled margin balance.

Each position has its own isolated, dedicated margin balance.

Liquidation Risk

High. A losing position can draw collateral from other positions, risking the entire account.

Contained. Losses are limited to the margin allocated to the specific position.

Capital Efficiency

High. Unused collateral automatically supports all positions.

Lower. Capital is siloed and cannot be reallocated without manual adjustment.

Margin Call / Liquidation

Triggered when total account equity falls below maintenance margin requirements.

Triggered when the equity for a specific isolated position is depleted.

Management Complexity

Low. Automatic reallocation requires less manual monitoring of individual positions.

High. Requires active management of margin for each position to avoid liquidation.

Ideal Use Case

Hedged portfolios or experienced traders managing correlated positions.

Speculative trades on volatile assets or for testing new strategies.

Maximum Loss

Entire margin account balance.

Only the margin allocated to the losing position.

examples
CROSS-MARGIN IMPLEMENTATIONS

Protocol Examples

Cross-margin is a risk management feature implemented by major DeFi protocols to allow users to collateralize their entire portfolio against multiple positions, optimizing capital efficiency. These examples showcase different architectural approaches.

06

Key Differentiator vs. Isolated Margin

Understanding the core architectural difference is crucial.

  • Cross-Margin: A single pool of collateral is shared. Liquidation occurs if: Total Account Value < Total Maintenance Margin Requirement.
  • Isolated Margin: Collateral is ring-fenced per position. Liquidation occurs if: Position Margin < Position Maintenance Margin.

Trade-off: Cross-margin provides superior capital efficiency and hedged portfolio management but exposes the user's entire collateral to liquidation from any underperforming position. Isolated margin limits risk to the allocated collateral but is capital-inefficient.

security-considerations
CROSS-MARGIN

Security & Risk Considerations

Cross-margin is a risk management mechanism in DeFi lending and derivatives protocols where a single pool of collateral secures multiple positions, amplifying both capital efficiency and systemic risk.

01

Liquidation Cascade Risk

In a cross-margin system, a single undercollateralized position can trigger the liquidation of the entire collateral pool. This creates a systemic risk where a price drop in one asset can cause forced selling across all positions, potentially leading to a liquidation cascade that depresses asset prices further and impacts all users of the pool.

02

Counterparty Risk Concentration

Cross-margin concentrates counterparty risk. Users are not just exposed to the protocol's smart contract risk, but also to the collective risk of all other participants in the pool. A failure or malicious action by one large participant can jeopardize the solvency of the entire shared margin pool for all others.

03

Oracle Manipulation Vulnerability

The integrity of the entire cross-margin pool depends on the accuracy of price oracles. A manipulated or stale price feed for any asset in the pool can incorrectly mark all positions, triggering unjustified liquidations or allowing positions to become undercollateralized without detection, risking pool insolvency.

04

Impermanent Loss for LPs

Liquidity Providers (LPs) to a cross-margin vault face amplified impermanent loss. The pool's collateral composition changes dynamically as positions are opened/closed and liquidations occur. LPs are exposed to the volatile performance of the entire portfolio of collateral assets, not just a single trading pair.

05

Protocol vs. Isolated Design

Contrasted with isolated margin, where risk is contained to individual positions, cross-margin's shared pool model is a fundamental protocol design choice with significant trade-offs:

  • Isolated Margin: Limits loss to initial collateral per position; higher capital cost.
  • Cross-Margin: Maximizes capital efficiency; creates interconnected, system-wide risk.
06

Risk Mitigations & Best Practices

Protocols implement safeguards to manage cross-margin risks:

  • Dynamic Risk Parameters: Adjusting Loan-to-Value (LTV) ratios and liquidation thresholds per asset.
  • Circuit Breakers: Pausing liquidations or new positions during extreme volatility.
  • Overcollateralization Requirements: Mandating high initial collateral ratios for the pool.
  • User Education: Clearly communicating that deposited funds back all positions.
CROSS-MARGIN

Technical Details

Cross-margin is a risk management method in leveraged trading where a single pool of collateral is used to back multiple open positions. This section details its mechanics, trade-offs, and implementation.

Cross-margin is a risk management model where all available collateral in a trading account is pooled into a single margin balance to support multiple open positions simultaneously. Unlike isolated margin, which segregates collateral per position, cross-margin treats the total account equity as a unified buffer against losses. The margin ratio is calculated based on the aggregate risk of all positions. If the total unrealized loss across positions reduces the equity below the maintenance margin requirement, a margin call or liquidation event can be triggered for one or all positions to restore the account's health. This system is common in centralized exchanges and perpetual futures protocols like dYdX and GMX.

CROSS-MARGIN

Common Misconceptions

Cross-margin is a powerful but often misunderstood feature in DeFi and trading. This section clarifies key misconceptions about its mechanics, risks, and applications.

No, cross-margin and portfolio margin are distinct risk management models. Cross-margin pools all available collateral in an account to cover the margin requirements for all open positions, allowing for greater capital efficiency but exposing the entire portfolio to liquidation if the combined risk increases. Portfolio margin is a more sophisticated system, often used in traditional finance, that calculates margin requirements based on the net risk of the entire portfolio, considering correlations and offsets between positions. While both aim for efficiency, portfolio margin uses complex risk models, whereas cross-margin is a simpler sum-of-collateral approach.

In DeFi, most protocols offering "cross-margin" are implementing the simpler, pooled collateral model, not a true, correlation-aware portfolio margin system.

CROSS-MARGIN

Frequently Asked Questions

Cross-margin is a risk management model in decentralized finance that allows a trader's collateral to be shared across multiple positions. These questions address its core mechanics, risks, and applications.

Cross-margin is a collateral management system where a single pool of assets is used to back multiple trading positions simultaneously, rather than isolating collateral for each position. In this model, the total collateral value is netted against the combined risk of all open positions. The system continuously calculates a user's health factor or margin ratio based on this aggregate collateral and debt. If the value of one position declines, the shared collateral cushion absorbs the loss, but this also increases the risk of liquidation for all positions if the overall health factor falls below a protocol's threshold. This is common in perpetual futures protocols and leveraged yield farming strategies.

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
Cross-margin: Definition & How It Works in DeFi | ChainScore Glossary