Deriving gamma and explaining pin risk
Gamma equals the Black-Scholes formula φ(d1) divided by (S·σ·√T), derived by differentiating delta N(d1) with respect to the underlying price. Gamma peaks at-the-money near expiration because as time to expiry shrinks, the denominator decreases and d1 approaches zero, making gamma very large. High gamma means delta changes rapidly with small underlying moves, forcing delta-neutral market makers to adjust hedges frequently; this creates pin risk as prices gravitate to the strike, increasing assignment uncertainty and amplifying hedging trading flows.
In the standard Black–Scholes–Merton framework a European call or put on a non‑dividend paying stock has the closed–form price
[
C(S,t) = S,N(d_1) - K e^{-r\tau} N(d_2),\qquad P(S,t) = K e^{-r\tau} N(-d_2) - S,N(-d_1)
]
with (\tau=T-t) the time to maturity, (N(\cdot)) the standard normal CDF and
[
d_{1,2} = \frac{\ln(S/K) + \bigl(r \pm \tfrac{1}{2}\sigma^2\bigr)\tau}{\sigma\sqrt{\tau}}.
]
The “delta” is the first derivative of price with respect to the underlying, e.g. for a call (\Delta = \partial C/\partial S = N(d_1)). “Gamma” is the second derivative, (\Gamma = \partial^2 C/\partial S^2 = \partial\Delta/\partial S). Differentiating (N(d_1)) with respect to (S) yields
[
\Gamma = \frac{\phi(d_1)}{S\sigma\sqrt{\tau}},
]
where (\phi) is the standard normal density. The same gamma applies to puts in this simple model.
Two features of this expression explain the empirical behaviour you mention:
-
(\phi(d_1)) is largest when (d_1) is near zero. (d_1\approx 0) corresponds to (S \approx K) (at‑the‑money). As (S) moves deep in‑ or out‑of‑the‑money, (d_1) becomes large in magnitude and (\phi(d_1)) tends to zero, so gamma diminishes.
-
The denominator contains (\sqrt{\tau}). As time to expiry shrinks, (\sqrt{\tau}) becomes small. For strikes near the current spot (so that (\phi(d_1)) is still appreciable), dividing by a small (\sqrt{\tau}) makes gamma very large. By contrast, for a deeply in‑ or out‑of‑the‑money option (\phi(d_1)) goes to zero faster than (1/\sqrt{\tau}) blows up, so their gamma remains low.
These properties mean that as expiry approaches, at‑the‑money options have very high curvature: a tiny move in the underlying produces a large change in delta.
For a dealer or market maker who is trying to run a delta‑neutral book, high gamma implies that their delta will not stay neutral for long. Around an at‑the‑money strike near expiration, maintaining neutrality requires frequent, large re‑hedging trades as the stock ticks up and down. Those hedging flows can themselves influence the underlying price, contributing to the well‑known tendency for prices to “pin” near a strike on expiry day. High gamma also magnifies “pin risk”: if the stock settles very close to the strike, the option’s delta can flip abruptly in the final moments, and whether or not the positions are assigned/exercised can change with a one‑tick move. A market maker caught short gamma in that situation faces the risk of being left with an unwanted directional exposure or assignment because their delta changes faster than they can hedge.