Max Pain

Canonical definition, formula, interpretation rules, and live API reference for the max pain strike.

Definition

The strike price where total option holder intrinsic value is minimized at expiration — where dealers/option sellers collectively lose the least money. Max pain acts as a gravitational center, especially during expiration week.

Formula
Pain(K) = Σ max(K - Kᵢ_put, 0) × OIᵢ_put + Σ max(Kⱼ_call - K, 0) × OIⱼ_call
max_pain = argmin(Pain(K))

Where K is each candidate strike, OI is open interest for calls and puts at each strike, and the sum runs across all strikes in the chain. The strike that produces the minimum total pain is the max pain strike.

Inputs
open interest (calls) open interest (puts) strike prices
Output
max_pain_strike pain curve pin probability dealer alignment
Interpretation
  • Gravitational pull: price tends to drift toward max pain as expiration approaches, especially when pin probability is high (> 60%).
  • Dealer alignment: when gamma flip, call wall, and put wall converge near max pain, the pinning effect is strongest.
  • Breakaway risk: a large directional flow or macro catalyst can override the max pain magnet, especially early in the expiration cycle.

Live Example: SPY

Live SPY max pain data temporarily unavailable. See /stock/spy/max-pain for current values.

Get Max Pain via API

Endpoint
GET /v1/maxpain/{symbol}
Tier
Basic+
Parameters
  • symbol (path, required) — underlying ticker, e.g. SPY
  • expiration (query, optional) — filter to single expiry (yyyy-MM-dd)
Response shape
{
  "symbol": "SPY",
  "underlying_price": number,
  "max_pain_strike": number,
  "pain_curve": [
    { "strike": number, "total_pain": number }
  ],
  "pin_probability": number,
  "dealer_alignment": string
}
curl -H "X-Api-Key: YOUR_KEY" \
  https://lab.flashalpha.com/v1/maxpain/SPY
import requests
r = requests.get(
    "https://lab.flashalpha.com/v1/maxpain/SPY",
    headers={"X-Api-Key": "YOUR_KEY"}
)
d = r.json()
print(f"Max Pain: {d['max_pain_strike']}  Pin Prob: {d['pin_probability']:.0%}")
const r = await fetch(
  "https://lab.flashalpha.com/v1/maxpain/SPY",
  { headers: { "X-Api-Key": "YOUR_KEY" } }
);
const d = await r.json();
console.log(`Max Pain: ${d.max_pain_strike}  Pin Prob: ${d.pin_probability}`);

Why Max Pain Matters for Trading

TL;DR

Max pain is the strike where option writers lose the least at expiry — historically, price gravitates toward it on expiry day on liquid names.

What it measures
The strike that minimises the combined value of all outstanding options at expiration, computed across the full chain per expiry.
What it signals
Where the aggregate option-seller payoff is lowest — i.e. where dealer hedging flow wants to settle.
Why we measure it
Option writers (typically dealers) have an implicit interest in pinning price at max pain. When OI is large and concentrated, the mechanical pin forces become real.
Who uses it
Expiry-day traders, pin specialists, OPEX scalpers, anyone trading index ETFs into Friday close.

How to read Max Pain

Large-OI names on expiry day
  • Pin effect measurable
  • Spot drifts toward max pain
  • Short strangles centered there work
  • Reliable on SPY/SPX/QQQ
Good for: short strangles at max pain, butterflies
Negative gamma or catalyst day
  • Pin effect absent
  • Dealer flow overwhelmed by direction
  • Trades fail if size at max pain
  • Common earnings/CPI days
Bad for: pin plays — no edge
Thin-OI or single names
  • Max pain is statistical noise
  • OI too small for pin mechanics
  • Use only top-10 liquid tickers
  • Ignore signal
Unreliable

Rules of thumb

  • Max pain needs OI scale. The pin only happens with enough dealer gamma. SPX/SPY yes, most single stocks no.
  • Effect concentrates into the close. Max pain pulls strongest in the last 60 minutes.
  • Ignore on catalyst days. Earnings, FOMC, CPI destroy the pin — directional flow dominates.
  • Pair with pain curve. A steep, U-shaped pain curve means stronger pin than a shallow one.
  • Works with positive gamma. Pin is a dampening effect — negative gamma regimes break it.

How to Read Max Pain

Start with distance. How far is spot from the max pain strike? When spot is within 1% of max pain during expiration week, the pinning effect is strongest — dealer hedging flows act as a gravitational pull, pushing price back toward the strike. The closer to OpEx, the more powerful this effect becomes.

Next check pin probability. This metric estimates the likelihood that the underlying closes at or very near the max pain strike at expiration. A pin probability above 60% suggests strong convergence. Below 40%, other forces (macro catalysts, earnings, large directional flows) are likely to dominate.

Then look at dealer alignment. When the gamma flip, call wall, and put wall all converge near the max pain strike, dealers are positioned to aggressively pull price toward that level. When these levels diverge, the gravitational pull weakens and directional risk increases.

Ship faster

Live for 6,000+ US symbols. One API call, sub-200ms.

Stop scraping chains and coding Black—Scholes from scratch. FlashAlpha computes GEX, DEX, VEX, CHEX, 15 BSM Greeks, SVI surfaces, max pain, VRP and more — fresh every 30s, cached at the edge. Free tier, no credit card, no rate-limit games.

Free · 5/day
GEX, regime, gamma flip, max pain preview. No card.
Basic · 100/day
DEX, VEX, CHEX, full max pain, VRP, IV rank.
Alpha · higher limits
SVI surfaces, fair-vol, harvest scores, directional VRP.