> For the complete documentation index, see [llms.txt](https://help.rails.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rails.xyz/trading/options/margin-and-liquidation.md).

# Margin & Liquidation

Learn how Rails calculates margin for long and short options, why short-option margin changes as the market moves, and what triggers liquidation.

{% hint style="info" %}

#### New to Options?

If you are new to options trading, we strongly recommend starting with our [Intro to Options](https://help.rails.xyz/trading/options/intro-to-options.md) guide. It covers fundamental concepts like what calls and puts are, the difference between long and short positions, strike prices, expiration dates, and how intrinsic and time value work along with moneyness terms, so you have a solid grasp of the terminology.

Once you understand the basics, you can progress through the remaining sections [Pricing & Sensitivities: Black-76 & the Greeks](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks.md), [Margin & Liquidation](https://help.rails.xyz/trading/options/margin-and-liquidation.md), [Expiry & Settlement](https://help.rails.xyz/trading/options/expiry-and-settlement.md) before you get started.
{% endhint %}

{% hint style="danger" %}
**Disclaimer:** Options trading involves risk and is not suitable for all users. All guides are for educational purposes only and do not constitute financial, investment, or legal advice.
{% endhint %}

Margin is the collateral Rails holds in your account to support your options orders and positions. How much Rails holds depends on whether you are long (buying) or short (selling) an option. This guide covers Margin for each side, then Liquidation: when it happens and how Rails closes positions.

The following table shows what happens in each case for longs and shorts:

<table><thead><tr><th width="168.640625"></th><th>Long options (calls &#x26; puts)</th><th>Short options (calls &#x26; puts)</th></tr></thead><tbody><tr><td><strong>Maximum loss</strong></td><td>The Premium paid</td><td>Short call: no ceiling<br>Short put: large, but limited because the underlying can't fall below zero</td></tr><tr><td><strong>Margin to open</strong></td><td>Mark Price plus 16.5%</td><td>Initial Margin (IM)</td></tr><tr><td><strong>Margin while open</strong></td><td>16.5% Long Holding Buffer</td><td>Maintenance Margin (MM), monitored continuously</td></tr><tr><td><strong>OTM discount</strong></td><td>No</td><td>Yes: lowers IM and MM based on how far the Index Price is from the Strike Price</td></tr><tr><td><strong>At 85% Margin Ratio</strong></td><td>Long trades within your available margin are still allowed</td><td>New short positions and sell orders are blocked</td></tr><tr><td><strong>At 98% Margin Ratio</strong></td><td>Never liquidated</td><td>Short positions are reduced or closed.</td></tr></tbody></table>

## Margin

When you buy an option, you pay the Premium upfront, and that is the most you can lose. When you sell an option, you collect the Premium but take on an obligation to pay the payoff at expiry, and that obligation can grow well beyond the Premium if the market moves against you. Because of these differences, long and short options require different margin. Think of it as the difference between buying insurance for a fixed fee and underwriting insurance for a premium.

{% hint style="info" %}
The [Buying vs. Selling](https://help.rails.xyz/trading/options/intro-to-options#buying-vs.-selling) section of [Intro to Options](https://help.rails.xyz/trading/options/intro-to-options.md) explains these risks in detail. This guide covers the margin Rails requires for each.
{% endhint %}

The margin help by each open position is shown in the Rails UI against all your positions, as shown below:

<figure><img src="https://1893902947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvoJ4s2ha99AB453yyXn5%2Fuploads%2FpuUA3eZdaixo8BztX8NX%2FCleanShot%202026-11-12%20at%2010.19.53%20AM.jpg?alt=media&amp;token=2d3cf320-d612-46f5-8d48-488b9a36ba7d" alt=""><figcaption></figcaption></figure>

### Long options

Because your maximum loss is fixed when you buy, long options have no maintenance threshold and can't be liquidated. Rails holds a small buffer on top of the Premium to cover the costs that could apply when the position is closed.

How Rails applies margin to a long call or put:

1. When you place the order, Rails reserves the [Mark Price](https://help.rails.xyz/trading/price-feeds-and-sources#mark-price) plus 16.5% for each contract.
2. When the order fills, Rails charges the Premium and keeps the 16.5% Long Holding Buffer reserved against the Mark Price.
3. When you close the position or it settles at expiry, Rails releases the buffer back to your account.

{% hint style="info" %}
**Why 16.5%?** The buffer covers the costs that could apply when you exit: the maximum trading fee (12.5% of the Mark Price), a 1% insurance contribution and 3% for slippage. See [Pricing & Fees](https://help.rails.xyz/trading/options/pricing-and-fees) for how fees are charged.
{% endhint %}

The above is computed using the following formulas:

$$
\text{Margin Reserved (Long Order)} = \text{Mark Price} \times 1.165 \times \text{Quantity}
$$

$$
\text{Long Holding Buffer} = \text{Mark Price} \times 0.165 \times \text{Quantity}
$$

Where:

* Mark Price is the option's fair value, calculated with [Black-76](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks).
* Quantity is the number of contracts. One contract covers one unit of the underlying asset.
* 1.165 is the Mark Price plus the 16.5% buffer, and 0.165 is the buffer alone, held after the Premium is charged.

**Example: buying a BTC call**

*This example assumes you buy 1 BTC call contract when its Mark Price is $3,690 USDT, and the order fills at the Mark Price (Premium).*

<table><thead><tr><th>Step</th><th width="188.02734375">Calculation</th><th width="161.67578125">Result</th></tr></thead><tbody><tr><td>Margin reserved when you place the order</td><td>$3,690 × 1.165 × 1</td><td>$4,298.85 USDT</td></tr><tr><td>Premium charged when the order fills</td><td>$3,690 × 1</td><td>$3,690 USDT</td></tr><tr><td>Long Holding Buffer kept reserved</td><td>$3,690 × 0.165 × 1</td><td>$608.85 USDT</td></tr></tbody></table>

{% hint style="info" %}
In the example above, you initially need $4,298.85 USDT of available balance to place the order, not just the $3,690 Premium. Once the order is filled, you are charged the Premium of $3,690, and the Long Holding Buffer is $608.85.
{% endhint %}

### Short options

A short option keeps its risk after the trade opens, so Rails checks your collateral when you open the position and keeps checking it for as long as the position is open. Short options use two thresholds:

<table><thead><tr><th width="174.84375">Threshold</th><th width="560.00390625">What it does</th></tr></thead><tbody><tr><td>Initial Margin (IM)</td><td>The collateral required to open a short position. It's never lower than your required Maintenance Margin.</td></tr><tr><td>Maintenance Margin (MM)</td><td>The minimum collateral required to keep a short position open. Rails monitors it continuously and uses it to measure how close your account is to liquidation.</td></tr></tbody></table>

Both thresholds are built from the same three parts:

* A share of the [Index Price](https://help.rails.xyz/trading/price-feeds-and-sources#index-price) (15% for IM, 5% for MM), reduced by the [OTM discount](#otm-discount).
* A Short Margin Floor (10% of the Mark Price for IM, 5% for MM). Rails uses the floor when it's higher than the index-based amount, so margin never falls below it.
* The Mark Price itself. The [Mark Price Floor](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks.md#intrinsic-value-floor-mark-price-floor) keeps the Mark Price from falling below the option's Intrinsic Value, so an in-the-money short position always holds at least its Intrinsic Value in margin.

{% hint style="info" %}
**Short-option margin is not fixed.** It depends on the current Index Price and Mark Price, so it rises when the market moves toward your Strike Price, when Implied Volatility rises, or both. A short position can need much more margin than it did when you opened it.
{% endhint %}

#### **OTM discount**

The OTM discount lowers both IM and MM for short options. It's based on the [Index Price](https://help.rails.xyz/trading/price-feeds-and-sources#index-price), and it measures how far the Index Price is from your Strike Price:

* **Short call:** the discount is the amount the Index Price is **below** the Strike Price.
* **Short put:** the discount is the amount the Index Price is **above** the Strike Price.

The discount shrinks as the Index Price moves toward the Strike Price, and it's zero once the Index Price reaches or passes the Strike Price.

{% hint style="info" %}
**Why don't we use the Forward Price for OTM Discounts?** The Forward Price is the market’s expected price of the underlying asset at expiry, so Rails uses it to [price options](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks.md). The Index Price is the asset’s current price, and it’s also what your option settles against: the [Settlement Price](https://help.rails.xyz/trading/price-feeds-and-sources.md#settlement-price) at 08:00 UTC on expiry is a single snapshot of the Index Price. Margin covers what you could owe on a short position, and that amount is calculated from the Index Price. Measuring margin against the Index Price keeps your collateral tied to the price your payoff is actually calculated from. See [Price Feeds & Sources](https://help.rails.xyz/trading/price-feeds-and-sources#index-price) and [Expiry & Settlement](https://help.rails.xyz/trading/options/expiry-and-settlement.md) for more information.
{% endhint %}

The OTM discount and margin floors work together. As the Index Price moves toward or away from your Strike Price, a different part of the formula sets your margin:

<table><thead><tr><th width="226.91796875">Index Price vs. Strike Price</th><th>OTM discount</th><th>What sets your margin</th></tr></thead><tbody><tr><td><strong>Far from the Strike Price</strong> (below it for a call, above it for a put)</td><td>Large. It can cancel most or all of the index-based amount.</td><td>The Short Margin Floor (10% of the Mark Price for IM, 5% for MM), plus the Mark Price.</td></tr><tr><td><strong>Moving toward the Strike Price</strong></td><td>Shrinks by $1 for every $1 the Index Price moves toward the Strike Price.</td><td>Once the index-based amount is higher than the floor, it sets the margin, so margin rises as the Index Price moves.</td></tr><tr><td><strong>At or past the Strike Price</strong></td><td>Zero.</td><td>The full index-based amount (15% of the Index Price for IM, 5% for MM), plus a Mark Price that the Mark Price Floor keeps at or above the option's Intrinsic Value.</td></tr></tbody></table>

The example further below shows this for a short call as the Index Price rises to the Strike Price.

#### **Short-option formulas**

The same formulas apply to short calls and short puts. Only the OTM discount differs.

**OTM discount:**

$$
\text{OTM Discount (Short Call)} = \max(0,\ \text{Strike Price} - \text{Index Price})
$$

$$
\text{OTM Discount (Short Put)} = \max(0,\ \text{Index Price} - \text{Strike Price})
$$

**Per contract:**

$$
IM' = \max(0.15 \times \text{Index Price} - \text{OTM Discount},\ 0.10 \times \text{Mark Price}) + \text{Mark Price}
$$

$$
MM' = \max(0.05 \times \text{Index Price} - \text{OTM Discount},\ 0.05 \times \text{Mark Price}) + \text{Mark Price}
$$

**For the position:**

$$
\text{Initial Margin} = \max(IM',\ MM') \times \text{Quantity}
$$

$$
\text{Maintenance Margin} = MM' \times \text{Quantity}
$$

Where:

* **Index Price** is the current price of the underlying asset. See [Price Feeds & Sources](https://help.rails.xyz/trading/price-feeds-and-sources#index-price).
* **Mark Price** is the option's fair value from [Black-76](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks), never lower than its Intrinsic Value (the Mark Price Floor).
* **Strike Price** is the fixed price in the contract.
* **Quantity** is the number of contracts.
* $$IM'$$ and $$MM'$$ are the per-contract Initial Margin and Maintenance Margin.
  * Taking the higher of $$IM'$$ and $$MM'$$ in the Initial Margin formula for each position makes sure a new position never opens below its own maintenance level.

#### **Example: how short-call margin changes as the market moves**

*This example assumes you sell 1 BTC call contract with a $105,000 Strike Price, 30 days to expiry and 50% Implied Volatility. For simplicity, the Index Price and Forward Price are equal, and the price move happens instantly. The Mark Prices come from Black-76 and are rounded: about $3,690 USDT at a $100,000 Index Price (see the* [*Worked Pricing Example*](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks#worked-pricing-example)*) and about $6,000 USDT at $105,000.*

<table data-search="false"><thead><tr><th width="202.1796875">Step</th><th>Index Price $100,000</th><th>Index Price $105,000 (equal to the Strike Price)</th></tr></thead><tbody><tr><td>Mark Price</td><td>$3,690</td><td>$6,000</td></tr><tr><td>OTM discount</td><td>$105,000 − $100,000 = $5,000</td><td>$0</td></tr><tr><td colspan="3"><strong>Initial Margin</strong></td></tr><tr><td>15% of Index Price, less OTM discount</td><td>$15,000 − $5,000 = $10,000</td><td>$15,750 − $0 = $15,750</td></tr><tr><td>Short Margin Floor (10% of Mark Price)</td><td>$369</td><td>$600</td></tr><tr><td>Higher of the two, plus Mark Price</td><td>$10,000 + $3,690 = <strong>$13,690</strong></td><td>$15,750 + $6,000 = <strong>$21,750</strong></td></tr><tr><td colspan="3"><strong>Maintenance Margin</strong></td></tr><tr><td>5% of Index Price, less OTM discount</td><td>$5,000 − $5,000 = $0</td><td>$5,250 − $0 = $5,250</td></tr><tr><td>Short Margin Floor (5% of Mark Price)</td><td>$184.50</td><td>$300</td></tr><tr><td>Higher of the two, plus Mark Price</td><td>$184.50 + $3,690 = <strong>$3,874.50</strong></td><td>$5,250 + $6,000 = <strong>$11,250</strong></td></tr></tbody></table>

A few things to notice:

1. The OTM discount does most of the work. At $100,000, the $5,000 discount cancels the 5% index-based part of MM completely, so the 5% Short Margin Floor sets it instead.
2. Margin moves with the market. A 5% rise in BTC takes MM from $3,874.50 to $11,250 USDT, roughly 2.9 times higher, even though you didn't change the position.
3. Initial Margin is never below Maintenance Margin. In both cases IM is already higher, so no adjustment is needed.

{% hint style="info" %}
Rails adds up the Maintenance Margin on your short positions and the long holding buffer, and compares it with your [Account Equity](https://help.rails.xyz/trading/options/options-metrics-guide#account-equity) to calculate your [Margin Ratio](https://help.rails.xyz/trading/options/options-metrics-guide#margin-ratio). As MM rises, so does your Margin Ratio. At 85%, you can't open new short positions or place new sell orders. At 98%, liquidation begins. See Liquidation below.
{% endhint %}

## Liquidation

Liquidation is how Rails reduces risk in an account when its short positions no longer have enough margin. Rails checks this at the account level, not position by position, using your [Margin Ratio](#margin-ratio). Only short positions can be liquidated. This section covers when liquidation happens, how positions are liquidated and how to avoid liquidation.

The [Long Holding Buffer](#long-options) counts toward your Margin Ratio, but only short positions are liquidated: a long option can't lose more than the Premium you paid, so it has no liquidation price. Because we add a long position holding buffer to your margin, it is included in your margin ratio, however only short positions are liquidated.

### Margin Ratio

Rails monitors every account that holds short positions or open sell orders, continuously, against Maintenance Margin to determine when liquidation is triggered by our risk engine. Your **Margin Ratio** shows how much of your Account Equity your Maintenance Margin is using:

<table><thead><tr><th width="143.9375">Margin Ratio</th><th>What happens</th></tr></thead><tbody><tr><td><strong>85% or higher</strong></td><td>You're approaching liquidation. You can't open new short positions or place new sell orders. Long trades that fit within your available margin are still allowed.</td></tr><tr><td><strong>98% or higher</strong></td><td>Liquidation starts. Rails reduces or closes at-risk short positions to bring the account back within limits.</td></tr></tbody></table>

Your Margin Ratio rises when your Maintenance Margin goes up (for example, when the Index Price moves toward your Strike Price) or when your Account Equity goes down (for example, when the Mark Price of your short positions rises). See [Short options](#short-options) for what moves Maintenance Margin.

{% columns %}
{% column %}
The Margin Ratio for your account can be found in your Account Summary, at the bottom right of the Options Trade screen.

{% endcolumn %}

{% column %}

<figure><img src="https://1893902947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvoJ4s2ha99AB453yyXn5%2Fuploads%2FxkV53z8W9BFb1Cd3rXNm%2FCleanShot%202026-11-12%20at%2010.15.01%20AM.jpg?alt=media&amp;token=742e8cbe-ef32-4bbc-859c-16dba59cca10" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

**Margin Ratio formula**

$$
\text{Margin Ratio} = \frac{\text{Total Maintenance Margin}}{\text{Account Equity}}
$$

$$
\text{Account Equity} = \text{Total Balance} + \text{Positions Mark Value}
$$

Where:

* Total Maintenance Margin is the sum of the Maintenance Margin of every open short position plus  the total of all Long Holding Buffers for any long positons.
* Account Equity is the real-time value of your account. See [Account Equity](https://help.rails.xyz/trading/options/options-metrics-guide#account-equity).
* Total Balance is your settled cash, including deposits and Premiums. It doesn't include unrealized P\&L. See [Total Balance](https://help.rails.xyz/trading/options/options-metrics-guide#total-balance).
* Positions Mark Value is the Mark Price × Quantity of each open position, counted as negative for short positions. See [Position Mark Value](https://help.rails.xyz/trading/options/options-metrics-guide#position-mark-value).

#### **Example: a short call moving toward liquidation**

*This example continues the* [*short call example*](#example-how-short-call-margin-changes-as-the-market-moves) *above: you sell 1 BTC call contract with a $105,000 Strike Price, 30 days to expiry and 50% Implied Volatility. It assumes you deposited $15,000 USDT, collected a $3,690 USDT Premium, paid no fees, and hold no other positions. The Index Price and Forward Price are equal, and each price move happens instantly. Mark Prices come from* [*Black-76*](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks.md)*, rounded to the nearest dollar.*

<table><thead><tr><th width="139.01171875">Step</th><th>Index Price $100,000</th><th>Index Price $105,000</th><th>Index Price $106,500</th></tr></thead><tbody><tr><td>Mark Price</td><td>$3,690</td><td>$6,000</td><td>$6,822</td></tr><tr><td>Total Balance</td><td><p>= $15,000 + $3,690</p><p>= $18,690</p></td><td>$18,690</td><td>$18,690</td></tr><tr><td>Account Equity</td><td>= $18,690 − $3,690<br>= $15,000</td><td><p>= $18,690 − $6,000</p><p>= $12,690</p></td><td><p>= $18,690 − $6,822</p><p>= $11,868</p></td></tr><tr><td>Maintenance Margin</td><td>$3,874.50</td><td>$11,250</td><td>$12,147</td></tr><tr><td><strong>Margin Ratio</strong></td><td><p>= $3,874.50 ÷ $15,000</p><p>= <strong>25.83%</strong></p></td><td><p>= $11,250 ÷ $12,690</p><p>= <strong>88.65%</strong></p></td><td><p>= $12,147 ÷ $11,868</p><p>= <strong>102.35%</strong></p></td></tr><tr><td>Account status</td><td>Below 85%</td><td>New short positions and sell orders blocked</td><td>Liquidation starts</td></tr></tbody></table>

A few things to notice:

1. Both sides of the ratio move. As BTC rises, Maintenance Margin goes up and Account Equity goes down, because the short call's Mark Price is subtracted from your Total Balance.
2. The ratio can move quickly. A 5% rise in BTC takes the ratio from 25.83% to 88.65%. A further 1.4% rise takes it past 98%.
3. Your Total Balance doesn't change. It reflects settled cash only. The change comes from the Mark Price and Maintenance Margin of the open position.

### Liquidation Process

When your Margin Ratio reaches 98%, Rails cancels open orders on the contracts it acts on, then reduces or closes short positions in a set order. Rails uses [the Greeks](https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks#the-greeks) to set that order:

<table><thead><tr><th width="97.390625">Order</th><th width="177.05859375">Measure</th><th>What it shows</th></tr></thead><tbody><tr><td>1st</td><td>Largest <a href="https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks#delta">Delta</a></td><td>The largest directional exposure.</td></tr><tr><td>2nd</td><td>Highest <a href="https://help.rails.xyz/trading/options/pricing-and-sensitivities-black-76-and-the-greeks#gamma">Gamma</a></td><td>Delta changes fastest, so a seller's losses can accelerate.</td></tr><tr><td>3rd</td><td>Nearest expiry</td><td>Gamma and time decay are highest close to expiry, especially for at-the-money options.</td></tr><tr><td>4th</td><td>Remaining positions</td><td>Any short positions still open.</td></tr></tbody></table>

After each position is reduced or closed, Rails recalculates your Margin Ratio. Once it's back below 98%, liquidation stops and your remaining positions stay open.

**A 1% liquidation fee applies.** Rails charges 1% of the liquidated value on every liquidated position, in addition to trading fees. The fee goes to a liquidation fund, which Rails uses to bring an account back to zero if liquidation leaves it with a negative balance. See [Pricing & Fees](https://help.rails.xyz/trading/options/pricing-and-fees).

**Liquidation fee formula:**

$$
\text{Liquidation Fee} = 0.01 \times \text{Liquidated Value}
$$

Where the Liquidated Value is the value of the position Rails reduces or closes. See [Liquidation Fee](https://help.rails.xyz/trading/options/options-metrics-guide#liquidation-fee).

### Avoiding liquidation

Your Margin Ratio goes down when your Account Equity goes up or your Maintenance Margin goes down. To lower it:

* **Add funds.** [Deposit](https://help.rails.xyz/manage-account/manage-funds/deposit) USDT, or [transfer](https://help.rails.xyz/manage-account/manage-funds/transfer) it from your Perps account, to increase your Total Balance and Account Equity.
* **Reduce or close short positions.** Closing a short removes its Maintenance Margin from the total. Closing orders are **Reduce Only**. See [Order Types & Placing Orders](https://help.rails.xyz/trading/options/order-types-and-placing-orders).
* **Watch your strikes.** Maintenance Margin rises as the Index Price moves toward the Strike Price of a short position, so check your Margin Ratio more often when that happens.

***

### Where to go next

* [Expiry & Settlement](https://help.rails.xyz/trading/options/expiry-and-settlement.md)
