# Impact Margin Notional (IMN): Impact Bid & Ask Depth Math

> Calculate perpetual futures Impact Bid Price and Impact Ask Price by sweeping L2 orderbook rungs to the exact Impact Margin Notional (IMN) depth threshold.

Canonical: https://instrumentledger.com/specs/impact-bid-ask-margin-notional-l2-orderbook-depth-weighting
Last updated: 2026-11-15T07:54:47.138Z

**Publication:** Instrument Ledger
**Category:** Perpetual Funding Rate Mark Price Math
**Published:** 2026-11-14T08:20:25.915Z
**Author:** Grant Holloway, FRM, ERP (Financial Risk Manager (GARP FRM), Energy Risk Professional (ERP, Chicago))
**Reviewer:** Not recorded

## Answer-first summary

Perpetual funding engines never read top-of-book 1-lot quotes; instead, they walk L2 bids and asks up to a standardized Impact Margin Notional (IMN) depth to compute manipulation-resistant Impact Bid and Impact Ask prices.

## Key takeaways

- Impact Bid and Impact Ask represent the VWAP fill prices of sweeping L2 bids and asks up to the contract Impact Margin Notional (IMN, e.g., $25k–$250k).
- Weighting across full IMN depth dilutes 1-lot top-of-book BBO spoofing by over 95%, forcing manipulators to expose real resting capital to arbitrageurs.
- Because Premium Index P uses Max(0, Impact_Bid - Spot) - Max(0, Spot - Impact_Ask), P equals 0.00% whenever Spot sits anywhere between Impact Bid and Impact Ask.
- This straddle-zero property prevents wide, illiquid orderbook spreads during macro volatility spikes from generating false funding rate surges.
- When flash crashes drain total resting book depth below IMN, matching engines substitute the deepest resting rung or cap deviation at MMR bounds.

## Related financial entities

- **CME E-mini & Micro E-mini Index Contract Specs** (ES-MES-SPEC) — product: Standardized exchange-traded equity index futures contracts providing liquid exposure to the S&P 500 index with identical settlement and distinct multipliers.
- **Perpetual Contract Funding Rate Convention** (PERP-FUND) — product: Continuous settlement mechanism without expiration date that ties perpetual swap contract prices to spot index prices via periodic funding fee transfers.

## Analysis

Inside every institutional perpetual swap specification, the **Premium Index (`P`)** is explicitly anchored NOT to top-of-book Best Bid/Offer (`BBO`), nor to Last Traded Price, but to **`Impact_Bid_Price`** and **`Impact_Ask_Price`**—the volume-weighted average execution prices of walking the central limit order book (`CLOB`) until cumulative filled quote notional equals the contract's **Impact Margin Notional (`IMN`)**. Typically parameterized as **`IMN = Base_Initial_Margin_Bucket / Initial_Margin_Rate`** (for example, `200 USDT / 0.008 = 25,000 USDT` on mid-caps, or `500–2,000 USDT / 0.008 = $62,500–$250,000` on [Bitcoin BTC](/exchanges/bitcoin-btc-spec) and [Ethereum ETH](/exchanges/ethereum-eth-spec)), `IMN` forces any would-be funding manipulator to post real capital across deep L2 orderbook rungs rather than flashing micro-lots at the inside tick.

Within our [Perpetual Futures Funding Clamps, Mark Price and ADL Master Guide](/specs/perpetual-swap-funding-rate-clamps-mark-price-adl-master-guide) under the [Perpetual Swap Funding Clamps, Impact Margin Notional, Mark Price & ADL](/topics/perpetual-funding-rate-mark-price-math) hub, this L2 book walkthrough pairs with [8-Hour Perpetual Funding Clamp Math](/specs/eight-hour-perpetual-funding-clamp-5-bps-interest-differential) and [Three-Component Fair Mark Price Median Specs](/specs/three-component-fair-mark-price-median-anti-manipulation-spec).

## Exact L2 Orderbook Walk Algorithm for Impact Bid & Impact Ask

Suppose an exchange specifies `IMN = $100,000 USDT` on a linear perpetual contract. Every 5 seconds (or 60 seconds), the matching engine snapshots the live L2 bid and ask ladders `(Price_k, Qty_k)` and executes a virtual market sell of `$100,000` notional down the bid side to find **`Impact_Bid`**, and a virtual market buy of `$100,000` notional up the ask side to find **`Impact_Ask`**:
- Walk rungs `k = 1, 2, ..., m-1` until adding rung `m` exceeds `IMN`.
- Take only the partial notional fraction needed on marginal rung `m` so cumulative quote notional equals `IMN` exactly.
- Divide `IMN` by total base coins accumulated across rungs `1..m`: **`Impact_Price = IMN / Total_Base_Units_Accumulated`**!

![Step-by-step L2 orderbook depth walk computing Impact Bid, Impact Ask, and zero-clipped Premium Index P](/api/figure?type=flow&title=L2%20Orderbook%20Walk%20for%20Impact%20Bid%2C%20Impact%20Ask%20%26%20Premium%20Index&subtitle=How%20%24100%2C000%20IMN%20depth%20weighting%20neutralizes%20micro-lot%20BBO%20spoofing%20and%20wide%20illiquid%20spreads.&steps=Set%20Contract%20IMN%3A%3ARead%20rulebook%20IMN%20%28e.g.%2C%20%2425k%20altcoin%2C%20%24100k%20SOL%2C%20%24250k%20BTC%20perp%29%7CWalk%20Bid%20%26%20Ask%20L2%3A%3AAccumulate%20rungs%20until%20Sum%28P_k%20*%20Q_k%29%20%3D%20IMN%3B%20compute%20VWAP%20fill%20prices%7CStraddle%20Check%20vs%20Spot%3A%3AIf%20Impact_Bid%20%3C%20Spot_Index%20%3C%20Impact_Ask%2C%20both%20Max%280%2C..%29%20terms%20%3D%200!%7CExport%20Premium%20P%3A%3AP%20%3D%20%5BMax%280%2C%20ImpBid%20-%20Spot%29%20-%20Max%280%2C%20Spot%20-%20ImpAsk%29%5D%20%2F%20Spot_Index&metrics=SPOOF%20DEFENSE%3A%3AFull%20IMN%20Depth%3A%3A1-lot%20BBO%20quotes%20ignored%20%3E99%25%7CWIDE%20SPREAD%20RULE%3A%3AP%20%3D%200.00%25%3A%3AWhen%20Spot%20sits%20inside%20ImpBid%2FAsk%7CTYPICAL%20BTC%20IMN%3A%3A%24100k%E2%80%93%24250k%3A%3AScales%20w%2F%20max%20leverage%20bracket%7CTHIN%20ALTCOIN%20IMN%3A%3A%245k%E2%80%93%2425k%3A%3APrevents%20empty-book%20exhaustion)

## The "Wide-Spread Zero-Premium" Property (`Impact_Bid < Spot < Impact_Ask`)

Look closely at the numerator of the canonical [Perpetual Contract Funding Rate Convention](/contracts/perpetual-contract-funding-convention) Premium Index equation:
**`P = [ Max(0, Impact_Bid - Spot_Index) - Max(0, Spot_Index - Impact_Ask) ] / Spot_Index`**!
Why doesn't the exchange simply use `(Perp_Mid - Spot_Index) / Spot_Index`? Suppose a sudden macro shock (like an FOMC announcement) drains L2 orderbook liquidity on an altcoin perpetual (such as [Avalanche AVAX](/exchanges/avalanche-avax-spec) or [Arbitrum ARB](/exchanges/arbitrum-arb-spec)) so `Spot = $10.00`, `Impact_Bid = $9.85`, and `Impact_Ask = $10.35` (`Mid = $10.10`, +1.00% apparent premium, solely because the ask book is temporarily thin!). Under the `Max(0, ...)` operator:
- `Max(0, $9.85 - $10.00) = Max(0, -$0.15) = 0`!
- `Max(0, $10.00 - $10.35) = Max(0, -$0.35) = 0`!
- **Result: `P = 0.00%`!** Whenever `Spot_Index` lies anywhere *between* `Impact_Bid` and `Impact_Ask`, **`P` evaluates to exactly zero**—preventing wide, illiquid orderbook spreads from hallucinating fake positive or negative funding spikes!

## Step-by-Step L2 Orderbook Sweep & Impact Price Formula

```formula
Base_Qty_for_IMN = Sum_{k=1..m-1} (Q_k) + [ IMN - Sum_{k=1..m-1} (P_k * Q_k) ] / P_m
Impact_Bid_or_Ask = IMN / Base_Qty_for_IMN
Premium_Index (P) = [ max(0, Impact_Bid - Spot) - max(0, Spot - Impact_Ask) ] / Spot

Worked L2 Depth Walk Audit (SOLUSDT Perpetual, IMN = $50,000, Spot Index = $180.00):
- Bid Ladder: Rung 1 = 20 SOL @ $180.30 ($3,606); Rung 2 = 100 SOL @ $180.20 ($18,020); Rung 3 = 300 SOL @ $180.10
- Remaining IMN on Rung 3 = $50,000 - ($3,606 + $18,020) = $28,374 -> Takes 28,374 / 180.10 = 157.5458 SOL
- Total Base SOL Sold = 20 + 100 + 157.5458 = 277.5458 SOL -> Impact_Bid = $50,000 / 277.5458 = $180.1505!
- Ask Ladder > $180.35 -> Since Impact_Bid ($180.1505) > Spot ($180.00):
 P = ($180.1505 - $180.00) / $180.00 = +0.0836% (+8.36 bps; spoofed $180.30 20-SOL top bid diluted by 93%!)
```

## Typical Impact Margin Notional (`IMN`) Calibration Across Tiers

Compare intraday volatility bands during thin-liquidity sweeps in our [Intraday 0DTE Sigma Band Calculator](/calculators/intraday-0dte-sigma-band-calculator) and fair-value basis in our [Listed Contract Basis and Implied Repo Calculator](/calculators/contract-basis-implied-repo-calculator).

| Asset Liquidity Tier | Representative Symbols | Max Leverage / Base IMR | Standard `IMN` Threshold | Empty-Book Fallback Rule |
| :--- | :--- | :--- | :--- | :--- |
| Tier 1 Mega-Cap | [BTC](/exchanges/bitcoin-btc-spec), [ETH](/exchanges/ethereum-eth-spec) | 100x–125x (0.8%–1.0%) | **$100,000 – $250,000** | Capped at 30th L2 rung or MMR band |
| Tier 2 Large-Cap L1 | [SOL](/exchanges/solana-sol-spec), [XRP](/exchanges/xrp-xrp-spec), [BNB](/exchanges/bnb-bnb-spec) | 50x–75x (1.33%–2.0%) | **$25,000 – $100,000** | Uses deepest available L2 VWAP |
| Tier 3 Mid-Cap DeFi | [ARB](/exchanges/arbitrum-arb-spec), [SUI](/exchanges/sui-sui-spec) | 20x–50x (2.0%–5.0%) | **$10,000 – $25,000** | Clamps max spread vs Spot Index |
| Tier 4 Newly Listed | Pre-market / Tail Tokens | 5x–10x (10.0%–20.0%) | **$2,500 – $5,000** | Falls back to EWMA internal trade price |

![Cost of capital required to manipulate perpetual funding rate for 8 hours under BBO vs $250k IMN](/api/figure?type=bars&title=Anti-Manipulation%20Economics%3A%20Top-of-Book%20vs%20%24250k%20IMN&subtitle=Minimum%20resting%20capital%20exposed%20to%20arbitrageurs%20across%20an%208-hour%20TWAP%20window.&steps=Naive%20BBO%20%28Vulnerable%29%3A%3A%24500%20spoof%20quote%20shifts%201-tick%20BBO%3B%20instantly%20gamed%20for%20millions%7C%2425k%20Altcoin%20IMN%3A%3AAttacker%20must%20defend%20%2425%2C000%20wall%20against%20arb%20bots%20for%20480%20minutes%7C%24250k%20BTC%20Perp%20IMN%3A%3APushing%20Impact_Bid%20%3E%20Spot%20requires%20sustaining%20%3E%24250k%20aggressive%20bid%20wall%7CInsufficient%20Book%20Depth%3A%3AIf%20total%20L2%20bids%20%3C%20IMN%2C%20engine%20uses%20last%20resting%20level%20or%20clips%20P&metrics=BBO%20SPOOF%20WEIGHT%3A%3A%3C%202.0%25%3A%3A%243.6k%20BBO%20inside%20%24250k%20IMN%7CARB%20DEFENDER%20FLOW%3A%3AContinuous%3A%3AHFT%20bots%20hit%20mispriced%20IMN%20walls%7CSAMPLING%20RATE%3A%3A5s%20%E2%80%93%2060s%3A%3A96%20to%20576%20samples%20per%208h%20epoch%7CSUPERVISION%20STD%3A%3ACFTC%20%2F%20MiCA%3A%3AMarket%20abuse%20surveillance)

## Edge Case: What Happens When Total Orderbook Depth Falls Below `IMN`?

During severe flash crashes or API outages on smaller tokens, the sum of *all* resting bids on the entire L2 orderbook can temporarily drop below the contract's `IMN` (e.g., only `$8,400` of bids remain on a `$25,000 IMN` book). If coded naively, dividing `$25,000` by exhausted book units would divide by zero or return a price of `$0.00`! Institutional exchange rulebooks under [ESMA](/rulebooks/esma) MiCA and offshore standards handle insufficient depth via two deterministic fallbacks: either **capping the Impact Bid/Ask sweep at a maximum price deviation band** (such as `Spot_Index × (1 ± Maintenance_Margin_Ratio)`) or **substituting the lowest resting L2 price for the unfilled residual `IMN` notional**, preventing a 30-second liquidity vacuum from corrupting the 8-hour funding TWAP.

## Frequently asked questions

### Why did the perpetual funding Premium Index print 0.00% even though the perpetual midpoint was 0.40% above spot?

If the ask book is thin (pushing Impact Ask +0.90% above spot) while Impact Bid still sits -0.10% BELOW spot, Spot lies between Impact Bid and Impact Ask. Both Max(0, Impact_Bid - Spot) and Max(0, Spot - Impact_Ask) evaluate to zero, yielding P = 0.00%.

### How do exchanges choose the exact dollar value of Impact Margin Notional (IMN) for each contract?

Exchanges typically define IMN as a fixed base margin notional (e.g., 200 to 2,000 USDT) divided by the contract minimum Initial Margin Rate—scaling IMN to $100k–$250k on 100x BTC/ETH books and $5k–$25k on lower-leverage altcoins.

### How does Impact Bid/Ask calculation differ on inverse coin-margined perpetuals like BTCUSD?

On inverse contracts where contract size is 1 USD (or 100 USD) and collateral is BTC, IMN is denominated in native base coins (for example, 2 BTC or 5 BTC worth of cumulative resting L2 depth) rather than USDT.

### What happens if an illiquid perpetual orderbook has less total resting liquidity than its IMN?

Exchange engines fill available L2 levels and assign the unfilled residual IMN notional at the worst boundary level (capped at a maximum percentage offset from Spot Index) so empty books cannot trigger division-by-zero errors.


## Source URLs

- https://www.bis.org/publ/work1087.pdf
- https://www.cfbenchmarks.com/research/funding-rates-and-basis
- https://www.esma.europa.eu/esmas-activities/digital-finance-and-innovation/markets-crypto-assets-regulation-mica

## Citation

- APA: Grant Holloway, FRM, ERP. (2026). Impact Bid and Impact Ask Prices: L2 Depth-Weighted Impact Margin Notional Math. Instrument Ledger. https://instrumentledger.com/specs/impact-bid-ask-margin-notional-l2-orderbook-depth-weighting
- Canonical article: [Impact Bid and Impact Ask Prices: L2 Depth-Weighted Impact Margin Notional Math](https://instrumentledger.com/specs/impact-bid-ask-margin-notional-l2-orderbook-depth-weighting)
- Site research index: [Instrument Ledger](https://instrumentledger.com/llms-full.txt)
