Calculation Methodology

Every PnLMath calculator runs deterministically in your browser with zero hidden server state. Outputs are model estimates for planning and education, not live broker quotes or tax advice.

1. Options Pricing (Black-Scholes-Merton)

European option values are computed with Black-Scholes-Merton. At expiration (0 DTE), each leg equals intrinsic value: max(0, S − K) for calls and max(0, K − S) for puts. Before expiration, the model uses scenario stock price (S), strike (K), calendar time T = DTE / 365, risk-free rate (r), and per-leg implied volatility (σ).

  • 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)

Signed position value sums each leg's mark × 100 × contracts (positive for buys, negative for sells) plus held stock shares. Before expiry both opening and closing fees are subtracted; at expiry only opening fees apply. Greeks use the same per-leg IV and signed quantities (Theta per calendar day; Vega and Rho per 1 percentage point).

2. Auto IV, Probability of Profit & Limitations

By default, each leg's IV is fitted to its entered premium at spot and DTE via Newton-Raphson with bracketed bisection fallback. IV shifts add percentage points uniformly across legs (clamped to 0.5%–500%). Model Probability of Profit (PoP) integrates the risk-neutral lognormal terminal distribution over all profitable expiration intervals—it is a theoretical model estimate, not a historical win rate.

  • European exercise only — no American early assignment or dividend ex-date adjustments.
  • Constant risk-free rate and volatility surface; no bid-ask spread, slippage, or margin call simulation.
  • Return on Risk divides P&L by exact maximum expiration loss (including opening fees) and is omitted for uncapped strategies.

3. Capital Gains Tax (US Federal 2025 & 2026)

Federal short-term ordinary brackets and long-term capital gains thresholds follow official IRS Rev. Proc. 2025-32 (2026 tax year) and IRS Rev. Proc. 2024-40 (2025 tax year). Your realized capital gain stacks on top of your entered taxable ordinary income (after standard or itemized deductions).

The 3.8% Net Investment Income Tax (NIIT) applies to the lesser of net investment income or MAGI above $200,000 (Single/HOH) or $250,000 (Married Filing Jointly). Because MAGI is measured before the standard deduction, you can supply an explicit MAGI override inside the NIIT settings drawer. State tax is applied as a flat user-editable rate estimate.

4. Stock Profit, Position Sizing & Future Value

  • Stock Profit: Computes gross profit, round-trip fees, optional estimated tax (applied only to positive gains), net profit, and exact breakeven price for both Long and Short trades. Short ROI uses initial short proceeds (entry × shares) as cost basis so commission placement does not distort return.
  • Position Size: Sizes whole shares or option contracts from floor(Risk Budget ÷ Risk per Unit), bounded by available buying power. Separates your target Risk Budget from the actual dollar risk of the rounded position and flags stop-loss gap/slippage risk.
  • Future Value & Fee Drag: Compounds monthly using effective annual rates ((1 + r)^(1/12) − 1) with compound annual expense drag ((1 − e)^(1/12)). Real (today's dollar) balances discount future dollars by inflation so that when annual return equals inflation with zero fees, real net growth is exactly $0.

Reproducible Options Examples

1. Long Call (debit)

Default Long Call: $200 spot, Buy 1× $205C 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. Expiry breakeven is $205 + ($580 + $0.65) ÷ 100 = $210.8065 (shown as $210.81).

2. Cash-Secured Put (credit & collateral)

At $200 spot, Sell 1× $190P at $3.60 ($360.00 gross credit) with $0.65 opening fee. Full cash collateral is $190 × 100 = $19,000. At or above $190 at expiry, max profit is $359.35. Effective buy price (breakeven) is $186.41.

3. Bull Call Spread (defined-risk vertical)

At $200 spot, Buy 1× $200C at $8.10 and Sell 1× $215C at $2.60, with $1.30 total opening fees. Net debit is $550.00, max loss is −$551.30, max profit is +$948.70, and breakeven is $205.51.