Black-Scholes Solver

Solve the Black-Scholes formula for any input.
Examples: implied volatility from a price, the strike for a target delta, or the spot or maturity at which a Greek reaches a given value.
All solutions are shown.

Inputs

iChoose the unknown input (S,K,T,σ,r or q) and a target: the price or a Greek of a single call or put.

The solver finds every value x with g(x)=VBS(x)target−target value=0 by scanning the input over a wide range and refining each sign change by bisection.

Ranges: 10−3–103 times the reference for S and K, T up to 50, σ up to 500 %, r,q between −50 % and 50 %.

Some targets have more than one solution, e.g. Gamma as a function of S; all are listed.

Greeks are in raw units (Vega per 1.0 of σ, Theta =−∂V/∂T per year).

Examples: implied volatility (unknown σ, target Price) or the strike of a 25-delta call (unknown K, target Delta = 0.25).

Result

σ=20.0000%

Check: Price at this value = 9.319738000