Black–Scholes
I built an option pricer to understand what risk managers look at, not to rediscover the formula.
European option, no dividends, constant volatility σ.
- value today
- payoff at expiry
- Option price
- –
- Δ delta
- –
- Γ gamma
- –
- ν vega (per 1 pp of σ)
- –
- Θ theta (per day)
- –
- Intrinsic value
- –
- Time value
- –
Theta accelerates as expiry approaches: an at-the-money option loses value fastest in its final weeks. Shorten T and watch the curve collapse onto the payoff.
How it is computed
- C = S·N(d₁) − K·e^(−rT)·N(d₂); P = K·e^(−rT)·N(−d₂) − S·N(−d₁)
- d₁ = [ln(S/K) + (r + σ²/2)·T] / (σ·√T); d₂ = d₁ − σ·√T
- N(x) is computed through erf (Abramowitz–Stegun 7.1.26, error below 1.5·10⁻⁷).
- Δ = N(d₁) for a call, N(d₁) − 1 for a put; Γ = φ(d₁)/(S·σ·√T); ν = S·φ(d₁)·√T / 100 (per 1 pp of σ); Θ per day = Θ per year / 365.
- Assumptions: European exercise, no dividends, constant σ and r, continuous compounding.