Gamma
Gamma is the curvature of the option price: the rate at which delta changes. Calls and puts with the same strike and expiry have the same gamma.
01The formula
- how much delta changes for a $1 move in the stock
- the standard normal density, e^(−x²/2)/√(2π)
- stock price, volatility, years to expiry
02See it move
03Where it is used
- Option sellersWatch short gamma closely: big moves force them to buy high and sell low when they re-hedge.
- Volatility tradersBuy gamma (long options) and re-hedge, earning money when the stock moves more than implied volatility predicted.
- Market strategistsEstimate dealers' total gamma ('gamma exposure') to judge whether hedging flows will calm or amplify moves.
04Why traders use it
Delta tells you your risk now; gamma tells you how fast that risk changes. Most blow-ups in option books come from large short gamma near expiry.
05Worked example
With the default inputs gamma is 0.0188: a $5 move changes the call's delta by about 0.094.
06How it is built
- Gamma is the derivative of delta: .
- Since contains , .
- So : largest at the money, and larger the shorter the time left.
07The common mistake
Thinking short-dated options are low risk because they are cheap. Their gamma near the strike is huge, so a short position can swing from safe to deep loss in one move.
08In Python and LaTeX
from math import log, sqrt, exp, pi S, K, r, sigma, T = 100, 100, 0.05, 0.2, 1.0 d1 = (log(S/K) + (r + sigma**2/2)*T) / (sigma*sqrt(T)) gamma = exp(-d1**2/2)/sqrt(2*pi) / (S*sigma*sqrt(T)) print(round(gamma, 5))
\Gamma = \frac{\partial^2 C}{\partial S^2} = \frac{n(d_1)}{S\sigma\sqrt{T}}09Where it fits
Rather not code the maths yourself? Describe your trading idea and let AI build the bot.
Build a bot with AgenKitThe worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.