Pin Risk and Options Expiration for Quants
Pin risk is the uncertainty, into options expiration, about whether a short option finishes in or out of the money — and therefore whether you are assigned the underlying. Near the strike, gamma explodes, hedges become unstable, and small price moves flip large delta. This article explains pin mechanics, why "max pain" is mostly folklore, and how quants should flatten or hedge into expiry.
What pin risk actually is
You are short a call struck at 100. At the final print:
- Stock at 100.05 → likely assigned → you are short stock
- Stock at 99.95 → likely expires worthless → flat
Between those outcomes sits a binary inventory shock. Pin risk is that shock plus the path of frantic hedging in the last hours.
pin_exposure ≈ short_open_interest_at_strike × contract_multiplier
Long options have less pin risk (you choose exercise); short American options can be assigned early around dividends too — see put-call parity.
Gamma into expiry
For ATM options, gamma scales roughly like:
Γ ∝ 1 / (S σ √T)
As T → 0, gamma → ∞ at the strike. Market makers short gamma must buy strength and sell weakness with increasing aggression — which can pin the underlying near a large open-interest strike for stretches of the afternoon (especially weekly SPX/SPY).
This is related to, but not the same as, volatility trading P&L: you can be flat vega and still be killed by gamma into the print.
import math
def bs_gamma(S, K, T, sigma, r=0.0) -> float:
if T <= 1e-8 or sigma <= 0:
return 0.0 if abs(S - K) > 1e-6 else float("inf")
d1 = (math.log(S / K) + (r + 0.5 * sigma**2) * T) / (sigma * math.sqrt(T))
pdf = math.exp(-0.5 * d1 * d1) / math.sqrt(2 * math.pi)
return pdf / (S * sigma * math.sqrt(T))
Max pain: useful map, bad signal
Max pain is the strike where aggregate option buyer P&L is minimized (writers maximize). It maps open interest; it does not reliably predict the expiry print.
| Claim | Reality |
|---|---|
| Price is magnetized to max pain | Sometimes drifts near large OI; often does not settle there |
| Trade toward max pain | Crowded, low Sharpe after costs |
| Ignore OI into expiry | Unwise for hedging — gamma concentration is real |
Use open interest as a risk map for where gamma sits, not as an alpha forecast.
Assignment and cash-settled vs physical
| Product | Settlement | Pin implication |
|---|---|---|
| Equity options | Physical | Share delivery / short stock overnight |
| SPX | Cash (European) | No share delivery; P&L at SOQ/settlement |
| SPY | Physical ETF | Delivery of shares |
| Crypto options | Usually cash | PnL in stable/coin; still gamma risk |
Cash-settled index options remove delivery pin but keep settlement print risk (special opening quotation). Model the settlement mechanism explicitly in event-driven sims.
Playbook into expiry
T-2 days: reduce short gamma near large OI strikes
T-1 day: decide flat vs controlled residual; widen hedges
Expiry day: prefer closing vs dynamic hedging through the pin
If short ITM: assume assignment; pre-hedge the delta you will inherit
For systematic vol books:
- Cut position size as a function of 1/√T for ATM shorts
- Ban new short ATM strikes inside N days without hard caps
- Stress inventory after forced assignment
- Avoid relying on last-second delta hedges in a thin auction
Earnings and event pins
Single-stock pins into earnings week combine IV crush with binary moves. Short straddles into earnings are not "pin trades" — they are event vol bets. Separate:
- Expiry pin — strike magnetism / assignment
- Event vol — jump risk priced in IV (jump diffusion)
Backtest traps
- Assuming European exercise on American names
- Ignoring early assignment on calls into ex-dividend
- Marking options at mid through the last hour (fantasy liquidity)
- Treating Friday 0DTE like a 30-day option with scaled theta
0DTE volume changed index microstructure; historical pin stats pre-2022 understate intraday gamma flows.
Key takeaways
- Pin risk is assignment / inventory uncertainty as T→0 near the strike
- Gamma explodes ATM into expiry — hedge or flatten early
- Max pain maps OI; it is not a trading signal by itself
- Know cash vs physical settlement for each product
- Size short gamma by 1/√T and stress post-assignment inventory
