PnLMath

Calculation Methodology

PnLMath calculates theoretical US equity option values locally in your browser. These are model estimates, not live market quotes.

Core pricing model

European option prices are computed with the Black-Scholes-Merton formula. At expiration (0 DTE), each leg is valued at intrinsic value: max(0, S − K) for calls, max(0, K − S) for puts. Before expiration, use the scenario stock price (S), strike price (K), remaining calendar days divided by 365 (T), the displayed risk-free rate (r), and the leg's model IV (σ).

  • d1 = [ln(S/K) + (r + σ²/2)T] / (σ√T)
  • d2 = d1 − σ√T
  • Call = S·N(d1) − K·e^(−rT)·N(d2)
  • Put = K·e^(−rT)·N(−d2) − S·N(−d1)

The signed position value is the sum of each leg's mark × 100 × contracts (positive for buys, negative for sells), plus the market value of held shares. P&L is the same signed sum of (mark − premium), plus shares × (scenario price − share cost basis), minus total fees. Greeks use the same per-leg IV and signed quantities; Theta is per calendar day, and Vega and Rho are per percentage point.

Implied volatility (Auto IV)

By default, each leg is fitted to its entered premium at the entered stock price and DTE. If a premium cannot be fitted, that leg uses the displayed fallback IV. In manual mode every leg starts at the same base IV. The IV shift adds the same number of percentage points to each leg (e.g. 30% − 10 points = 20%); effective IV is limited to 0.5%–500%. The calculator shows each leg's effective IV. At the entered spot and DTE, with no shift and all legs fitted, option P&L is approximately zero before fees; stock P&L still uses the entered share cost basis.

Commissions & fees

Opening and closing fees are separate editable estimates (each defaults to $0.65 per contract and can be set to $0). Before expiry the model assumes all legs are closed and subtracts both fees. At expiry it subtracts opening fees only, with no assumed closing trade; exercise and assignment fees are not modeled. Stock trading fees, taxes and other broker charges are excluded.

Expiration risk and percent return

Expiration P&L is linear between option strikes. The calculator checks $0, each strike and the slope beyond the highest strike to find the best and worst outcomes, zero crossings and any ranges with zero P&L. Breakeven prices are displayed to the nearest cent. Percent return divides scenario P&L by the absolute maximum expiration loss, including opening fees. Return is omitted for unlimited or zero risk. This denominator is not a broker's buying-power or margin requirement.

Assumptions & limitations

  • European exercise only — no early assignment or American exercise.
  • No dividends, borrow costs, or financing fees on the underlying.
  • Constant risk-free rate and volatility; no term structure.
  • No bid-ask spread, slippage, or assignment risk.
  • Commissions are estimates; verify with your broker.

For educational and estimation purposes only. Not financial, investment, or tax advice.

Reproducible example

Default Long Call: one $205 call entered at $5.80 × 100 = $580, with $0.65 to open and $0.65 to close. At expiry at or below $205, P&L = $0 − $580 − $0.65 = −$580.65. At a $215 expiry, P&L = ($215 − $205) × 100 − $580 − $0.65 = $419.35. The expiry breakeven is $205 + ($580 + $0.65) ÷ 100 = $210.8065 (shown as $210.81). At the initial $200 spot and 30 DTE, with Auto IV and no shift, theoretical option value fits the $580 premium, so closing P&L is approximately −$1.30 after both fees.