Quant techniques · numerical methods

Backing out implied volatility: Newton, vega and a safe starting point

Markets quote options in volatility, but trades happen in prices. Going from price to vol means inverting Black–Scholes, and that has no closed form. Every pricing library does it with a root-finder, usually Newton’s method, which converges in a handful of steps when started well and shoots off to infinity when started badly.

1σn+1=σn−C(σn)−CmktV(σn)\sigma_{n+1} = \sigma_n - \dfrac{C(\sigma_n) - C_{\text{mkt}}}{\mathcal V(\sigma_n)} Newton’s method. The derivative of the price with respect to vol is vega, V=ST φ(d1)\mathcal V = S\sqrt T\,\varphi(d_1).
2σ0≈C0.4 ST\sigma_0 \approx \dfrac{C}{0.4\,S\sqrt T} Brenner–Subrahmanyam: near the money, C≈0.4 SσTC \approx 0.4\,S\sigma\sqrt T, so this is a very good first guess.
3σ∗=2 ∣ln⁡(S/K)+rT∣T\sigma^* = \sqrt{\dfrac{2\,\lvert\ln(S/K) + rT\rvert}{T}} Manaster–Koehler: C(σ) is convex below σ* and concave above it, and vega peaks there. Starting at σ* always converges.
4intrinsic≤Cmkt≤S\text{intrinsic} \le C_{\text{mkt}} \le S Check first: outside these bounds there’s no implied vol to find.
Newton’s method

Follow the tangent

C(σ) is the Black–Scholes price as a function of volatility, with everything else fixed. It increases with σ, from intrinsic value at σ = 0 up to S as σ → ∞. So for any market price between those bounds there is exactly one implied vol.

Newton’s method replaces the curve by its tangent at the current guess and jumps to where the tangent hits the market price. The slope of the tangent is vega, which Black–Scholes gives in closed form. Near the answer the error roughly squares each step (quadratic convergence): an error of 10⁻² becomes 10⁻⁴, then 10⁻⁸.

For a 6-month at-the-money call priced at 6, the Brenner–Subrahmanyam guess is 6/(0.4×100×0.5)=0.21216/(0.4 \times 100 \times \sqrt{0.5}) = 0.2121. One Newton step gives 0.212895, and the second is already correct to 10 decimal places.

strikestart σ₀
Black–Scholes price C(σ)market priceNewton steps (tangent lines)inflection σ*: C is convex left of it, concave right

The figure starts on the 150-strike call priced at 0.50 (true implied vol 33.3%). From σ₀ = 0.20, Newton overshoots to 1.07 and then walks back down. Slide σ₀ to 0.15 and the first step lands at about 22, then the next goes negative. Press the σ* button and it converges smoothly from above. Switch to the at-the-money strike, where C(σ) is concave and nearly straight: any start converges in two or three steps.

Why it fails

Tiny vega, giant steps

For a far out-of-the-money option at low vol, the option is almost worthless and barely reacts to vol: vega is close to zero. Newton divides by vega, so the step is enormous. At σ = 0.10, the 150-strike call has vega around 2.5 × 10⁻⁶ and the first step goes to about 200,000.

The shape of C(σ) explains when this happens. Differentiating vega,

∂V∂σ=V d1d2σ\frac{\partial \mathcal V}{\partial \sigma} = \mathcal V\,\frac{d_1 d_2}{\sigma}

which changes sign where d1d2=0d_1 d_2 = 0, at σ∗2T=2∣ln⁡(S/K)+rT∣\sigma^{*2} T = 2\lvert\ln(S/K) + rT\rvert. So C is convex below σ* and concave above it. On a convex stretch the tangent lies below the curve: start above the root and every step lands between the root and the current guess, so the iterates walk down monotonically; start below it and the first step overshoots, by a lot if vega is tiny. On a concave stretch it’s the mirror image: starting below the root is safe. Starting at σ*, where vega is largest, you’re always on the safe side: if the root is below σ* you’re above it on the convex part, and if it’s above σ* you’re below it on the concave part. Either way the iterates move monotonically to the root. That’s Manaster and Koehler’s (1982) guarantee.

In practice

A robust solver

Production code combines a good start, Newton for speed and a bracket for safety:

import numpy as np
from scipy.stats import norm

def bs_call(S, K, T, r, sigma):
    sq = sigma * np.sqrt(T)
    d1 = (np.log(S / K) + (r + 0.5 * sigma**2) * T) / sq
    price = S * norm.cdf(d1) - K * np.exp(-r * T) * norm.cdf(d1 - sq)
    vega = S * np.sqrt(T) * norm.pdf(d1)
    return price, vega

def implied_vol(C, S, K, T, r=0.0, tol=1e-10, max_iter=50):
    intrinsic = max(S - K * np.exp(-r * T), 0.0)
    if not intrinsic < C < S:
        raise ValueError("price outside no-arbitrage bounds")
    lo, hi = 1e-6, 5.0                                    # bracket
    sigma = np.sqrt(2 * abs(np.log(S / K) + r * T) / T)   # Manaster–Koehler start
    sigma = sigma if sigma > 1e-3 else C / (0.4 * S * np.sqrt(T))   # ATM: Brenner–Subrahmanyam
    for _ in range(max_iter):
        price, vega = bs_call(S, K, T, r, sigma)
        diff = price - C
        if abs(diff) < tol:
            return sigma
        if diff > 0: hi = sigma                           # keep the bracket tight
        else:        lo = sigma
        step = sigma - diff / vega if vega > 1e-12 else np.nan
        sigma = step if lo < step < hi else 0.5 * (lo + hi)   # fall back to bisection
    return sigma

print(implied_vol(6.0, 100, 100, 0.5))    # 0.212895...
print(implied_vol(0.5, 100, 150, 0.5))    # 0.333358...

For puts, convert with put–call parity first, C=P+S−Ke−rTC = P + S - Ke^{-rT}, or use the put formula directly. Both give the same implied vol. For huge numbers of options, Jäckel’s “Let’s be rational” (2015) gets machine precision in two iterations with a carefully transformed problem.

Where 0.4 comes from

At the money with r = 0, d1=12σTd_1 = \tfrac12\sigma\sqrt T and d2=−12σTd_2 = -\tfrac12\sigma\sqrt T, so C=S(2Φ(12σT)−1)C = S\left(2\Phi(\tfrac12\sigma\sqrt T) - 1\right). For small arguments Φ(x)≈12+x φ(0)\Phi(x) \approx \tfrac12 + x\,\varphi(0), giving C≈SσT φ(0)=SσT/2π≈0.3989 SσTC \approx S\sigma\sqrt T\,\varphi(0) = S\sigma\sqrt T/\sqrt{2\pi} \approx 0.3989\,S\sigma\sqrt T. The same calculation says ATM vega is about 0.4 ST0.4\,S\sqrt T.

Where people slip in interviews

  • Not checking the bounds. A price below intrinsic value or above S has no implied vol; Newton will wander forever.
  • Starting low on far out-of-the-money options. Vega is tiny there, and the first step explodes.
  • Using the put price in the call formula. Convert with parity, or use the matching formula.
  • Forgetting dividends and rates in the forward. The moneyness that matters is ln⁡(F/K)\ln(F/K) with F=Se(r−q)TF = Se^{(r-q)T}.
  • Expecting implied vol to be well-defined for very short-dated, deep OTM options. Prices there are a tick or two; tiny price changes move the implied vol a lot.
Practice

Try these before you open the answer

Warm-upA 3-month at-the-money call on a $100 stock costs $4. Estimate its implied vol without a computer.
Show answer
σ≈40.4×100×0.25=420=20%\sigma \approx \frac{4}{0.4 \times 100 \times \sqrt{0.25}} = \frac{4}{20} = 20\%
VegaWhat's the approximate vega of a 1-year at-the-money option on a $50 stock, per vol point?
Show answer

0.4×50×1=200.4 \times 50 \times 1 = 20 per unit of vol, so about $0.20 per vol point.

ConvergenceNewton's method has error 0.01 after one step on a smooth problem near the root. Roughly what is the error after two more steps?
Show answer

Quadratic convergence squares the error (times a constant): about 10⁻⁴ after one more step, about 10⁻⁸ after two.

BoundsS = 100, K = 90, r = 0. A trader quotes the call at 9.50. What implied vol?
Show answer

None. The intrinsic value is 10, and with zero rates a European call must be worth at least S−K=10S - K = 10. A price of 9.50 is an arbitrage, not a vol.

InflectionS = 100, K = 120, T = 1, r = 0. Where should Newton start to be guaranteed to converge?
Show answer
σ∗=2 ∣ln⁡(100/120)∣/1=2×0.1823≈0.604\sigma^* = \sqrt{2\,\lvert\ln(100/120)\rvert / 1} = \sqrt{2 \times 0.1823} \approx 0.604
ParityWhy do a call and a put with the same strike and expiry have the same implied vol (in theory)?
Show answer

Put–call parity, C−P=S−Ke−rTC - P = S - Ke^{-rT}, doesn’t involve σ. So the Black–Scholes call and put prices satisfy it for every σ, and the σ that matches the call’s market price also matches the put’s, if the market prices satisfy parity too.

All iteration sequences on this page were reproduced in Python with scipy. The figure runs Newton’s method live in your browser.