Option calculator
Choose the option and set its inputs. The value, the chart and the Greeks change as you type, and the last part shows every step of the calculation with your numbers.
European options: the Black-Scholes-Merton formula
A European option can be exercised only at expiry. Its value comes from the Black-Scholes-Merton formula, here with a dividend yield (Level 7 explains the formula step by step):
\[ \begin{aligned} &c = S \times e^{-q \times T} \times N(d_1) - K \times e^{-r \times T} \times N(d_2),\\[0.6em] &p = K \times e^{-r \times T} \times N(-d_2) - S \times e^{-q \times T} \times N(-d_1), \end{aligned} \]
\[ \begin{aligned} &d_1 = \frac{\ln(S/K) + (r - q + \sigma^2/2) \times T}{\sigma \times \sqrt{T}},\\[0.6em] &d_2 = d_1 - \sigma \times \sqrt{T}, \end{aligned} \]
where \(c\) and \(p\) are the values of a call and a put, \(S\) is the share price today, \(K\) the strike price, \(T\) the time to expiry in years, \(r\) the risk-free rate and \(q\) the dividend yield, both yearly rates with continuous compounding, and \(\sigma\) the volatility, the standard deviation of the share’s yearly return with continuous compounding. The rates and the volatility are decimals, so 4% becomes 0.04. \(N(x)\) is the probability that a standard normal variable is below \(x\), and \(\ln\) is the natural logarithm.
American options: a binomial tree
An American option can also be exercised on any day before expiry, and there is no general formula for its value. The calculator divides the time to expiry into \(n\) steps of length \(\Delta t = T/n\). It uses 1,000 steps, or more, up to 6,000, when the volatility is low compared with the difference between the interest rate and the dividend yield. With longer steps, the probability \(p\) below could then fall below 0 or rise above 1. In each step the share price moves up by the factor \(u = e^{\sigma \times \sqrt{\Delta t}}\) or down by \(d = 1/u\), and an up move has the risk-neutral probability
\[ p = \frac{e^{(r - q) \times \Delta t} - d}{u - d}, \]
the probability at which the tree values the option without arbitrage. At expiry the option’s payoff is \(\max(S_T - K, 0)\) for a call and \(\max(K - S_T, 0)\) for a put, where \(S_T\) is the share price at expiry. Going back one step at a time, each node of the tree is worth the maximum of its intrinsic value, the payoff from exercising there, and the value of keeping the option:
\[ V = \max\Big(\text{intrinsic value},\ e^{-r \times \Delta t} \times \big[p \times V_u + (1 - p) \times V_d\big]\Big), \]
where \(V\) is the option’s value at a node, and \(V_u\) and \(V_d\) are its values one step later, after an up and after a down move. The calculator values the same tree twice, with and without early exercise. Their difference estimates the extra value of being able to exercise early, which is never negative. The calculator adds this estimate to the European value from the formula, then takes the maximum of that result and the intrinsic value. Where the tree says to exercise at once, the American value is the intrinsic value itself. This correction, known as the control variate technique, often reduces the tree’s error, but it does not remove all numerical error. When interest rates are zero or positive, a call on a share without dividends is never worth exercising early, so its American and European values are equal.
The Greeks
For a European option the Greeks come from the Black-Scholes-Merton formula. For an American option, the calculator estimates delta, gamma and theta from the first steps of the trees, corrected in the same way as the option’s value:
\[ \begin{aligned} \text{American Greek} = {} &\text{the formula's European Greek}\\[0.3em] &+ (\text{the American tree's Greek} - \text{the European tree's Greek}). \end{aligned} \]
Where the tree says to exercise at once, the option’s value is its intrinsic value, which moves one for one with the share price, so delta is 1 for a call and −1 for a put, and gamma and theta are zero. The calculator estimates vega and rho by pricing the option again with the volatility or the risk-free rate one percentage point higher and lower, or half the volatility higher and lower when the volatility is below 2%. Where a tree cannot give one of these prices, the estimate uses the other alone, and where it can give neither, the calculator shows the estimate as not available. All the American Greeks are numerical estimates. Theta is per calendar day, and vega and rho per percentage point.
What the calculator assumes
The risk-free rate and the dividend yield are yearly rates with continuous compounding, and the volatility is the standard deviation of the share’s yearly return with continuous compounding. A rate quoted another way is converted first, as in Level 3. All three stay the same until expiry, and the dividends are paid as a steady yield rather than as cash amounts on set dates. Values are per share, and an exchange-traded option contract usually covers 100 shares.
How the calculator is checked
Automated tests compare the calculator with values computed separately in Python. In every tested case, the American value is within half a cent of the value from trees of 10,000 steps, and it is never below the European value or the option’s intrinsic value. The tests also cover a volatility of 1% against an interest rate or a dividend yield of 15%, where the value is compared with trees of 20,000 steps.