Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

New to Options?

If you are new to options trading, we strongly recommend starting with our Intro to Options 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, Margin & Liquidation, Expiry & Settlement before you get started.

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:

Long options (calls & puts)
Short options (calls & puts)

Maximum loss

The Premium paid

Short call: no ceiling Short put: large, but limited because the underlying can't fall below zero

Margin to open

Mark Price plus 16.5%

Initial Margin (IM)

Margin while open

16.5% Long Holding Buffer

Maintenance Margin (MM), monitored continuously

OTM discount

No

Yes: lowers IM and MM based on how far the Index Price is from the Strike Price

At 85% Margin Ratio

Long trades within your available margin are still allowed

New short positions and sell orders are blocked

At 98% Margin Ratio

Never liquidated

Short positions are reduced or closed.

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.

The Buying vs. Selling section of Intro to Options explains these risks in detail. This guide covers the margin Rails requires for each.

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

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 plus 16.5% for each contract.

  2. When the order fills, Rails charges the Premium and keeps the 16.5% Long Holding Buffer reserved.

  3. When you close the position or it settles at expiry, Rails releases the buffer back to your account.

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 for how fees are charged.

The above is computed using the following formulas:

Margin Reserved (Long Order)=Mark Price×1.165×Quantity\text{Margin Reserved (Long Order)} = \text{Mark Price} \times 1.165 \times \text{Quantity}
Long Holding Buffer=Premium×0.165×Quantity\text{Long Holding Buffer} = \text{Premium} \times 0.165 \times \text{Quantity}

Where:

  • Mark Price is the option's fair value, calculated with Black-76.

  • Quantity is the number of contracts. One contract covers one unit of the underlying asset.

  • 1.165 is the Premium 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).

Step
Calculation
Result

Margin reserved when you place the order

$3,690 × 1.165 × 1

$4,298.85 USDT

Premium charged when the order fills

$3,690 × 1

$3,690 USDT

Long Holding Buffer kept reserved

$3,690 × 0.165 × 1

$608.85 USDT

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.

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:

Threshold
What it does

Initial Margin (IM)

The collateral required to open a short position. It's never lower than your required Maintenance Margin.

Maintenance Margin (MM)

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.

Both thresholds are built from the same three parts:

  • A share of the Index Price (15% for IM, 5% for MM), reduced by the 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 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.

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.

OTM discount

The OTM discount lowers both IM and MM for short options. It's based on the 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.

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. The Index Price is the asset’s current price, and it’s also what your option settles against: the 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 and Expiry & Settlement for more information.

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:

Index Price vs. Strike Price
OTM discount
What sets your margin

Far from the Strike Price (below it for a call, above it for a put)

Large. It can cancel most or all of the index-based amount.

The Short Margin Floor (10% of the Mark Price for IM, 5% for MM), plus the Mark Price.

Moving toward the Strike Price

Shrinks by $1 for every $1 the Index Price moves toward the Strike Price.

Once the index-based amount is higher than the floor, it sets the margin, so margin rises as the Index Price moves.

At or past the Strike Price

Zero.

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.

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:

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

Per contract:

IM′=max⁡(0.15×Index Price−OTM Discount, 0.10×Mark Price)+Mark PriceIM' = \max(0.15 \times \text{Index Price} - \text{OTM Discount},\ 0.10 \times \text{Mark Price}) + \text{Mark Price}
MM′=max⁡(0.05×Index Price−OTM Discount, 0.05×Mark Price)+Mark PriceMM' = \max(0.05 \times \text{Index Price} - \text{OTM Discount},\ 0.05 \times \text{Mark Price}) + \text{Mark Price}

For the position:

Initial Margin=max⁡(IM′, MM′)×Quantity\text{Initial Margin} = \max(IM',\ MM') \times \text{Quantity}
Maintenance Margin=MM′×Quantity\text{Maintenance Margin} = MM' \times \text{Quantity}

Where:

  • Index Price is the current price of the underlying asset. See Price Feeds & Sources.

  • Mark Price is the option's fair value from Black-76, 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′IM' and MM′MM' are the per-contract Initial Margin and Maintenance Margin.

    • Taking the higher of IM′IM' and MM′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) and about $6,000 USDT at $105,000.

Step
Index Price $100,000
Index Price $105,000 (equal to the Strike Price)

Mark Price

$3,690

$6,000

OTM discount

$105,000 − $100,000 = $5,000

$0

Initial Margin

15% of Index Price, less OTM discount

$15,000 − $5,000 = $10,000

$15,750 − $0 = $15,750

Short Margin Floor (10% of Mark Price)

$369

$600

Higher of the two, plus Mark Price

$10,000 + $3,690 = $13,690

$15,750 + $6,000 = $21,750

Maintenance Margin

5% of Index Price, less OTM discount

$5,000 − $5,000 = $0

$5,250 − $0 = $5,250

Short Margin Floor (5% of Mark Price)

$184.50

$300

Higher of the two, plus Mark Price

$184.50 + $3,690 = $3,874.50

$5,250 + $6,000 = $11,250

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.

Rails adds up the Maintenance Margin on your short positions and the long holding buffer, and compares it with your Account Equity to calculate your 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.

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. 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 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:

Margin Ratio
What happens

85% or higher

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.

98% or higher

Liquidation starts. Rails reduces or closes at-risk short positions to bring the account back within limits.

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 for what moves Maintenance Margin.

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

Margin Ratio formula

Margin Ratio=Total Maintenance MarginAccount Equity\text{Margin Ratio} = \frac{\text{Total Maintenance Margin}}{\text{Account Equity}}
Account Equity=Total Balance+Positions Mark Value\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.

  • Total Balance is your settled cash, including deposits and Premiums. It doesn't include unrealized P&L. See Total Balance.

  • Positions Mark Value is the Mark Price × Quantity of each open position, counted as negative for short positions. See Position Mark Value.

Example: a short call moving toward liquidation

This example continues the short call example 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, rounded to the nearest dollar.

Step
Index Price $100,000
Index Price $105,000
Index Price $106,500

Mark Price

$3,690

$6,000

$6,822

Total Balance

= $15,000 + $3,690

= $18,690

$18,690

$18,690

Account Equity

= $18,690 − $3,690 = $15,000

= $18,690 − $6,000

= $12,690

= $18,690 − $6,822

= $11,868

Maintenance Margin

$3,874.50

$11,250

$12,147

Margin Ratio

= $3,874.50 ÷ $15,000

= 25.83%

= $11,250 ÷ $12,690

= 88.65%

= $12,147 ÷ $11,868

= 102.35%

Account status

Below 85%

New short positions and sell orders blocked

Liquidation starts

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 to set that order:

Order
Measure
What it shows

1st

Largest Delta

The largest directional exposure.

2nd

Highest Gamma

Delta changes fastest, so a seller's losses can accelerate.

3rd

Nearest expiry

Gamma and time decay are highest close to expiry, especially for at-the-money options.

4th

Remaining positions

Any short positions still open.

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.

Liquidation fee formula:

Liquidation Fee=0.01×Liquidated Value\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.

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 USDT, or 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.

  • 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

Last updated

Was this helpful?