Finite Difference Method
The Finite Difference Method solves the Black-Scholes partial differential equation of the option value backwards from the payoff at expiration on a grid of stock prices and times, and holds the value at or above the exercise value at every time step, which is how early exercise enters (Brennan and Schwartz, 1977).
The formula for the Finite Difference Method writes the Black-Scholes equation for the option value V in the log ratio x of the stock price S to the strike price K and the time to expiration tau, with r the continuously compounded risk free rate, q the continuously compounded dividend yield and sigma the annualized volatility, and \(V_{\tau}\), \(V_{x}\) and \(V_{\text{xx}}\) the derivatives of V:
\[x = \ln\left(\frac{S}{K}\right)\] \[V_{\tau} = \frac{\sigma^{2}}{2} \cdot V_{\text{xx}} + \left(r - q - \frac{\sigma^{2}}{2}\right) \cdot V_{x} - r \cdot V\]The Crank-Nicolson scheme (Crank and Nicolson, 1947) steps it from tau to tau + Delta tau by averaging the discretized operator L of the right-hand side over the two times, with I the identity:
\[\left(I - \frac{\Delta \tau}{2} \cdot L\right) \cdot V(\tau + \Delta \tau) = \left(I + \frac{\Delta \tau}{2} \cdot L\right) \cdot V(\tau)\]After every step the value is held at or above the exercise value, with phi equal to 1 for a call and -1 for a put:
- \[V \geq \phi \cdot (S - K)\]
It is a general method rather than a formula for this one option, and its precision depends on the grid: within about 1e-3 of the exact value for a stock price of 100, with an error that scales with the price.
Listed options on single stocks are American: they can be exercised at any time up to expiration. Exercising early gives up the option’s remaining time value but captures the interest on the strike of a put, or the dividends a call holder would miss, which makes an in-the-money put, or a call on a stock with a high dividend yield, worth more than the European option the Black-Scholes model prices. Early exercise pays once the stock price crosses the early exercise boundary, a critical stock price that changes with the time to expiration, and as that boundary has no closed form, neither has the American option. Its price is the European price plus an early exercise premium, which is either approximated in closed form, found from the boundary solved numerically, or found by solving the Black-Scholes equation on a grid. A call on a stock without dividends is never exercised early, and is worth the European price.
Also known as: Crank-Nicolson, finite differences, PDE method.
In the Finance Toolkit this is get_american_option with method="finite_difference", the same function as American Options.
Example · VZ · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_american_option:
from financetoolkit import Toolkit
toolkit = Toolkit(
["VZ"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-12-31",
)
american_put = toolkit.options.get_american_option(method="finite_difference", put_option=True, strike_price_range=0.15, strike_step_size=1, expiration_time_range=91)
american_put.loc["VZ", ["2026-01-30", "2026-03-01", "2026-03-31"]]
| Parameter | Type | Description | Example |
|---|---|---|---|
start_date | str | None | The date whose price, volatility and rates the values start from; a date without prices (a weekend or a holiday) uses the last trading day before it, and a ticker without a price on that day is left out with a warning. Defaults to None, which uses the last date of the historical data. | "2021-01-01" |
put_option | bool | Whether to calculate the put option price. Defaults to False which means it will calculate the call option price. | True |
method | str | The pricing method. Options are: “qd_plus” (QD+ Approximation), “barone_adesi_whaley” (Barone-Adesi-Whaley Approximation), “ju_zhong” (Ju-Zhong Approximation), “qd_fixed_point” (QD Fixed Point Method), “finite_difference” (Finite Difference Method, Crank-Nicolson), “bjerksund_stensland” (Bjerksund-Stensland 2002 Approximation, two flat trigger prices) and “bjerksund_stensland_1993” (Bjerksund-Stensland 1993 Approximation, one flat trigger price). Defaults to “qd_plus”. | "qd_plus" |
strike_price_range | float | The percentage range to use for the strike prices, between 0 and 1. Defaults to 0.25 which equals 25% and thus results in strike prices from 75 to 125 if the current stock price is 100. | 0.1 |
strike_step_size | float | The step size to use for the strike prices, above 0. Defaults to 5 which means that the strike prices will be 75, 80, 85, …, 120 and 125 if the current stock price is 100. | 1 |
expiration_time_range | int | The number of days to use for the time to expiration: the columns are the expirations 1 up to expiration_time_range - 1 days after the start date, so at least 2. Defaults to 30, which gives expirations of 1 to 29 days. | 90 |
risk_free_rate | float | The risk free rate to use for the calculation. Defaults to None, which uses the Toolkit’s risk-free rate on the pricing date: the 10-year Treasury yield unless the Toolkit’s risk_free_rate parameter selects ‘13w’, ‘5y’ or ‘30y’, converted from its semi-annual bond-equivalent quote to continuous compounding. A rate passed here is used as given, as a continuously compounded rate. | 0.04 |
dividend_yield | float | The dividend yield to use for the calculation. Defaults to None, which uses the dividend yield on the pricing date (the dividends of the 365 days up to it relative to its close, as the continuously compounded ln(1 + q)). A given value is used as a continuous yield. | 0.02 |
show_input_info | bool | Whether to show the input information. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
standardize | bool | Whether to standardize (Z-Score) the result across the time to expiration columns for each ticker and strike price. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
Which returns:
| Strike Price | 2026-01-30 | 2026-03-01 | 2026-03-31 |
|---|---|---|---|
| 34 | 0.0010 | 0.0226 | 0.0764 |
| 35 | 0.0050 | 0.0551 | 0.1464 |
| 36 | 0.0193 | 0.1202 | 0.2605 |
| 37 | 0.0606 | 0.2369 | 0.4335 |
| 38 | 0.1584 | 0.4268 | 0.6798 |
| 39 | 0.3522 | 0.7100 | 1.0107 |
| 40 | 0.6806 | 1.1012 | 1.4332 |
| 41 | 1.1664 | 1.6063 | 1.9492 |
| 42 | 1.8080 | 2.2221 | 2.5554 |
| 43 | 2.5816 | 2.9371 | 3.2440 |
| 44 | 3.4518 | 3.7350 | 4.0046 |
| 45 | 4.3838 | 4.5974 | 4.8251 |
| 46 | 5.3505 | 5.5069 | 5.6935 |
| 47 | 6.3345 | 6.4490 | 6.5986 |
14 rows
References
- Paper Brennan, M.J. and Schwartz, E.S. (1977). “The Valuation of American Put Options.” Journal of Finance, 32(2), 449-462.
- Paper Crank, J. and Nicolson, P. (1947). “A Practical Method for Numerical Evaluation of Solutions of Partial Differential Equations of the Heat-Conduction Type.” Mathematical Proceedings of the Cambridge Philosophical Society, 43(1), 50-67.
- Library Shares similar logic as QuantLib’s FdBlackScholesVanillaEngine (Finite Difference Method)
- Library Shares similar logic as FinancePy’s black_scholes_fd (Finite Difference Method)