American Option Pricer – Numerical PDE
Price American calls and puts by solving the Black–Scholes PDE on a finite-difference grid with Crank–Nicolson time stepping, and enforcing early exercise with projected successive over-relaxation (PSOR). All calculations run in your browser.
Method
With \(x=\ln S\) and time to maturity \(\tau\), the option value solves \( V_\tau = \tfrac12\sigma^2 V_{xx} + (r-q-\tfrac12\sigma^2)V_x - rV \). American exercise adds the constraint \(V\ge g\), where \(g\) is the payoff: the PDE holds wherever \(V>g\), and the option is exercised where \(V=g\).
The grid is uniform in \(x\), centred on the spot and extending about five standard deviations. Each step uses Crank–Nicolson (second-order in time), with the first steps replaced by fully implicit half steps (Rannacher start-up) to damp oscillations from the payoff kink. The resulting tridiagonal system is solved with PSOR, projecting onto the payoff after every update. Delta and gamma come from central differences at the spot node. The European value on the same grid, using the Thomas algorithm, isolates the early exercise premium.
Pros and cons of the PDE approach
Advantages
- Accuracy and smooth convergence: Crank–Nicolson is second-order in time and space, so errors shrink predictably as the grid is refined. There is no sampling noise, unlike Monte Carlo.
- Early exercise is natural: the PSOR projection handles the American constraint directly and, unlike least-squares Monte Carlo, needs no regression basis or estimated exercise rule.
- Greeks and the exercise boundary come for free: delta and gamma are read off the same grid, and the free boundary appears where the value meets the payoff.
- Flexible: discrete dividends, local volatility or barriers can be added by changing coefficients or boundary conditions.
- Fast in low dimensions: a single-asset problem solves in milliseconds in the browser.
Limitations
- Curse of dimensionality: cost grows exponentially with the number of underlyings or stochastic factors, so baskets and high-dimensional models favour Monte Carlo.
- Discretisation choices matter: results depend on grid width, step counts and boundary treatment. The payoff kink at the strike can reduce accuracy, which is why Rannacher start-up is used here, and a coarse grid can make delta and gamma noisy.
- Iterative solve: PSOR is simple and robust but slower than direct solvers, and its speed depends on the relaxation parameter and tolerance.
- Path dependence is awkward: features that depend on the price history need extra state variables, which enlarge the grid.
- Heavier than closed-form approximations: Barone-Adesi–Whaley or Bjerksund–Stensland are instant but less accurate, especially for long maturities or high dividend yields.
References: Wilmott, Dewynne and Howison, "Option Pricing: Mathematical Models and Computation"; Cryer (1971) on projected SOR. This is an educational calculator, not investment advice.
Search
Methods
Derivatives Markets
- Stock Options
Including Exotic Options - Interest Rate Derivatives
Short Rate Model - Credit Derivatives
structural Models and Reduced Models