Tools

All calculators

Monte Carlo

This lab draws a terminal stock price for each simulation from geometric Brownian motion. It does not generate daily trajectories. You type a hypothetical spot, strike, and premium. There is no live chain, Journal, Practice, or Replay request.

Drift is an annualized expected-return assumption (μ). Before any shock the model uses E[ST] = S0 × exp(μT), so an 8% entry is not 8% simple annual growth. Volatility and drift stay constant. Time is calendar days / 365. One standard 100-share contract. No dividends, fees, early exercise, jumps, or volatility clustering.

Shock is a deterministic percent applied to each terminal price, not an estimated crash probability. −100% sets that terminal spot to zero. Headline P/L is expiration intrinsic minus the typed premium, in dollars per contract.

Example math. Not financial advice.

Simulation controls

% per year

Annualized, constant

% per year

8 means mu=0.08, so expected stock value before shock is S0×exp(0.08×T), not simple 8% growth.

calendar days

Calendar days / 365

paths

Whole number 100–10,000

%

Deterministic terminal-price adjustment. −100% is a complete loss (spot zero).

integer

Whole number 0–4,294,967,295. Same seed and inputs replay the run.

Effective seed 1. Resampling draws a new seed and keeps the other assumptions.

$

$

$ per share

Per share, one contract, hypothetical

call or put

5,000 simulations. Seed 1. Example POP is the fraction of simulated expirations with strictly positive P/L, not a market forecast.

Example POP

17.2%

16.1%–18.2% Wilson 95% interval. Simulation uncertainty only; actual outcomes depend on the assumptions.

Mean expiration P/L

-$122.76

Arithmetic average of simulated expiration P/L, dollars per contract.

Median expiration P/L

-$250.00

Middle simulated outcome.

Central 90% of simulated P/L

-$250.00 · $538.07

5th to 95th percentile of the same expiration P/L sample.

Simulations used

5,000

Premium at risk

$250.00

$100 × typed premium.

Expiration breakeven

$107.50

Strike plus premium.

Worthless expirations

72.5%

Share of paths whose option intrinsic is exactly zero, before cent rounding.

P/L histogram

Monte Carlo P/L histogramHistogram of expiration profit and loss in dollars per contract. Vertical axis is outcome count. Horizontal axis is P/L dollars. P/L -$250.00 to -$189.10: 3,760 outcomes (75.2% of simulations)Outcome count01,0002,0003,0003,760−$250$0$1,000$2,000Expiration P/L ($ per contract)

P/L -$250.00 to -$189.10: 3,760 outcomes (75.2% of simulations)

  • Outcome count (bars)
  • $0 P/L (solid gold)
  • 5th percentile (dashed)
  • 95th percentile (dashed)

One 100-share option. Tick labels are compact; the readout and table keep exact dollars.

Each bar is how many of the 5,000 simulated expirations landed in that dollar band. The gold line is $0 when that value sits in the plotted range. Example POP is the share of outcomes strictly to the right of $0. Mean is the arithmetic average. Median is the middle outcome. The dashed purple and teal lines are the 5th and 95th percentiles of this sample. The Wilson interval on the POP card is simulation sampling uncertainty, not model or market confidence.

Bin counts
Simulated P/L bins in dollars per contract, with count and percent of 5000 simulations
P/L rangeCountShare of simulations
-$250.00 to -$189.103,76075.2%
-$189.10 to -$128.211302.6%
-$128.21 to -$67.311322.6%
-$67.31 to -$6.411102.2%
-$6.41 to $54.49901.8%
$54.49 to $115.381092.2%
$115.38 to $176.28841.7%
$176.28 to $237.18701.4%
$237.18 to $298.07671.3%
$298.07 to $358.97601.2%
$358.97 to $419.87491.0%
$419.87 to $480.77491.0%
$480.77 to $541.66410.8%
$541.66 to $602.56340.7%
$602.56 to $663.46270.5%
$663.46 to $724.36280.6%
$724.36 to $785.25250.5%
$785.25 to $846.15190.4%
$846.15 to $907.05190.4%
$907.05 to $967.94240.5%
$967.94 to $1,028.84110.2%
$1,028.84 to $1,089.74130.3%
$1,089.74 to $1,150.6490.2%
$1,150.64 to $1,211.5360.1%
$1,211.53 to $1,272.4350.1%
$1,272.43 to $1,333.3340.1%
$1,333.33 to $1,394.2290.2%
$1,394.22 to $1,455.1220.0%
$1,455.12 to $1,516.0230.1%
$1,516.02 to $1,576.9210.0%
$1,576.92 to $1,637.8140.1%
$1,637.81 to $1,698.7100.0%
$1,698.71 to $1,759.6100.0%
$1,759.61 to $1,820.5020.0%
$1,820.50 to $1,881.4020.0%
$1,881.40 to $1,942.3000.0%
$1,942.30 to $2,003.2010.0%
$2,003.20 to $2,064.0900.0%
$2,064.09 to $2,124.9900.0%
$2,124.99 to $2,185.8910.0%
Model formula

Step A — convert displayed inputs. T = calendar days / 365. μ = entered drift percent / 100, so 8 means mu=0.08. σ = entered volatility percent / 100, so 25 means 0.25. s = entered shock percent / 100, so −20 means −0.20, not −20 inside (1+s). Z is standard normal, drawn independently in this beginner mode.

Step B — terminal stock. ST = S0 × exp((μ − σ²/2)×T + σ√T × Z) × (1+s). The −σ²/2 term makes E[ST] = S0×exp(μT) before the shock. Shock is a deterministic terminal-price stress, not a crash probability. At T=0 the payoff is already known; volatility is not used.

Step C — payoff and P/L. Call payoff max(ST−K, 0), put payoff max(K−ST, 0). Default P/L = 1 contract × 100 shares × (payoff − premium per share). Premium is paid at t=0 and is not discounted as if it were paid at expiration.

Step D — summaries. POP is the fraction with unrounded P/L strictly above zero. Finishing ITM (intrinsic > 0) is a different event. p5/p95 are sample quantiles, not guaranteed bounds. Min/max are sample extrema. Worthless means intrinsic is exactly zero.

Guided example: spot $100, strike $105, premium $2.50, 30 days, σ=25%, μ=8%, seed 1. That is T=30/365, a long 100-share call, and undiscounted expiration P/L. It is a scenario sample, not a fair option price.

Glossary
  • μ: continuous expected price drift. Not simple annual growth unless you switch conventions in Advanced.
  • σ: constant annualized log-return volatility.
  • q, r, funding: unused in this beginner P/L. Advanced labels them separately.
  • Quantity × multiplier: default 1 × 100 teaching shares.
  • Same seed and inputs replay this beginner run.
Advanced robustness

Beginner results above keep the undiscounted one-contract trading P/L. This panel is a separate teaching mode. Scenario probabilities are not risk-neutral pricing probabilities. The full Run button uses the requested draw count, capped at 100,000 draws and 2,000,000 work units. Open cost uses the fee-scope selector below.

Shared controls: spot, strike, premium, right, volatility, expected return, days, seed, shock, quantity, fee, fee scope, sampler, measure, drift convention, P/L convention, r, q, and funding. Changing any of those marks the completed snapshot stale. Comparison, vertical, path, and research panels cap themselves before they run and can override the draw count.

Scenario versus risk-neutral pricing

Scenario mode uses the typed drift. If 8% is a continuous μ, S grows like exp(0.08 T). If 8% is an effective simple return, the engine uses ln(1.08) instead. Risk-neutral mode ignores that typed drift and uses r − q so the discounted stock is a martingale.

Example: S0 = 100, T = 1, σ = 0, no jumps. Continuous μ = 100% sends S_T to 100e ≈ 271.83. Effective simple g = 100% sends S_T to 200. More simulations do not repair an unrealistic drift; they only shrink sampling error around that model.

Trading, terminal-financed, and present-value P/L

Buy one 100-share call for $2.00 ($200) plus a $1 order fee. After one year the three conventions treat that $201 differently:

Trading P/L subtracts $201 from the expiration payoff. Terminal-financed P/L grows the $201 at the funding rate: 201 × exp(0.05) ≈ $211.33. Present-value P/L discounts the payoff at r and still subtracts the $201 today. r, funding, and q are continuous annual rates, not a discrete dividend calendar.

Independent, antithetic, and control-variate samplers

Independent draws one Z per path. Antithetic pairs Z and −Z; the convergence chart x-axis counts those independent pairs, not raw draws. Control variate adjusts only the reported mean with the known E[S_T]. It does not change POP, VaR, or the histogram.

POP versus ITM, mean, median, and percentiles

ITM is P(intrinsic > 0). POP is P(P/L > 0), which is 1 − F(0) on the empirical CDF. Exact break-even is the terminal spot that makes P/L = 0 after premium, quantity, multiplier, and fees.

Mean is the average P/L. Median is the middle outcome. Standard error is sampling uncertainty of the mean, not a 95% interval and not model uncertainty. p5 / p95 are outcome percentiles of the completed sample.

VaR and ES of L = −P/L

Loss is L = −P/L. A +$40 profit is L = −40. 95% VaR is a high quantile of L; ES is the average of losses beyond that quantile. Negative VaR means the sample did not produce a loss at that level. Thin tails (under about 20 tail observations) make ES unstable.

Seed, reproducibility, and what more simulations cannot do

The same seed, sampler, and inputs replay the same uniforms. Changing the seed changes the sample, not the model. More simulations reduce Monte Carlo noise. They do not fix a wrong drift, a wrong jump law, or pasted returns that are not a real history.

paths

Whole number 100–100,000. Auxiliary panels cap themselves before they run.

contracts

Long count for the main advanced run. The vertical uses its own spread-count control.

$ per order

Each fee is charged once per order, regardless of contract quantity.

$ P/L

Probability of finishing at or below this P/L.

independent or variance-reduction

Independent is the default teaching sampler. Antithetic pairs Z and −Z. Control variate adjusts only the mean.

continuous μ or simple g

Continuous μ treats 8 as 0.08. Effective simple return converts g with ln(1+g). Merton scenario mode uses this same rule.

cash-flow timing

Trading leaves premium and fees at t=0. Terminal-financed grows them at the funding rate. Present-value discounts the payoff at r.

scenario or pricing

Scenario uses the typed drift. Risk-neutral uses r − q and reports a discounted European teaching price.

$ per order

Each fee is charged once per order, regardless of contract quantity. Strategy legs use the same selector: one order fee, or the fee times the sum of absolute traded quantities.

Press Run to compute an advanced sample. Beginner results above stay on the default P/L convention.

Technical snapshot metadata

Draft fingerprint "legacy-box-muller-mulberry32-v1"|"independent"|"scenario"|"undiscountedTrading"|"continuousMu"|"perOrder"|0.95|0|true|100|105|2.5|"call"|25|8|30|5000|0|1|1|100|0.05|0.05|0. Sampler legacy-box-muller-mulberry32-v1. Seed 1. Resolved drift μ=0.08. Convention continuousMu. σ=0.25. T=0.0821917808219178 years.

Scenario comparison and sensitivity

Uses shared spot, premium, vol, drift, measure, P/L, fees, and seed. Overrides only the alternate shock and the one-dimensional volatility slice. Caps at 400 comparison draws and 200 sensitivity draws before execution. Ignores the vertical, path, and research extras.

%

Deterministic terminal-price stress, same seed as the base run.

Press the panel button to compute. Previous output is not shown as current.

European risk-neutral pricing

This panel uses the shared Run snapshot. It does not launch a separate engine. Drift is r − q. The option payoff is discounted from expiration; the premium stays at t=0. Pricing runs do not inherit the beginner terminal shock. It is not American exercise, not a live chain, and not the scenario POP above.

% per year

Continuous annual rate. Discounts payoff under present-value P/L and sets risk-neutral drift to r − q. It does not grow the opening premium.

% per year

Continuous yield assumption, not a discrete dividend date or dollar schedule.

% per year

Continuous annual rate that grows opening premium and fees under terminal-financed P/L only.

Cash-flow example for r, funding, and q

$200 premium + $1 fee, r = 5%, funding = 5%, q = 2%, T = 1. Present-value P/L discounts the payoff by exp(−0.05) and subtracts $201 today. Terminal-financed P/L grows $201 to about $211.33. q = 2% only enters GBM as a continuous yield in the drift, never as a cash dividend on a stated date.

Set the measure to European risk-neutral and press Run.

Same-expiry two-leg vertical

Uses shared spot, vol, drift, measure, P/L convention, r, funding, fee, fee scope, and seed. Overrides quantity with the spread-count control: +N long / −N short of the same right. Caps at 400 draws before execution. Not a calendar, not a margin engine, and not American assignment.

$

$ per share

long / short contracts

Whole-number debit-spread size. 2 means +2 / −2, not a hidden +1 / −1 pair. Fractions such as 1.9 are rejected.

Press the panel button to compute. Previous output is not shown as current.

Press Run vertical. Legs share one terminal stock draw.

Path-simulation lab

Uses shared GBM inputs and the shared expiry. Overrides the path count (cap 400) and adds steps plus an optional barrier. Exact GBM increments on a calendar grid. Barrier counts are discrete at the plotted steps, including S0 and the stressed terminal.

observations

Time points after t=0. The x-axis is elapsed calendar days, not an inferred trading calendar.

$

Leave blank to skip discrete touch counts. Down-and-touch uses S ≤ barrier.

Press the panel button to compute. Previous output is not shown as current.

Press Run path lab.

Research models (experimental)

These stay labeled experimental. Heston is blocked until the Euler scheme matches an independent reference. Paste synthetic returns only — this panel does not read Journal, Practice, Replay, or a live feed.

Bootstrap uses shared spot, strike, premium, right, and seed. It ignores shared expiry, volatility, drift, r, q, and P/L convention. Enter the resampling step count yourself; the source-return count is not a calendar and is not converted into years. Caps at 400 paths. Merton uses shared spot, option, vol, r, q, expiry, seed, measure, and the selected drift convention. Caps at 800 paths. In scenario mode Merton reports Expected expiry payoff per share. In risk-neutral mode it reports the Discounted European price per share.

0.01 means +1%. Sampling is IID with replacement. Original order and volatility clustering are not preserved. Shared expiry is ignored; this is an N-period experiment, not a GBM expiry path.

future IID draws

How many future simple returns to draw. This is not inferred from the pasted list and is not converted from the shared expiry.

Press the panel button to compute. Previous output is not shown as current. Press the panel button to compute. Previous output is not shown as current.

Bootstrap: press Run experimental models.

per year

Expected Poisson jumps per year. Compensated drift subtracts λk̄ so the continuous part does not double-count jump mean.

log

Mean of ln(1+J). −0.08 is about an 8% downward jump, not −8 dollars.

%

Volatility of the log-jump size, entered in percent. 15 means 0.15.

Compensated Merton jumps

Each path draws N ~ Poisson(λT) jumps and adds N independent log-jumps. The continuous drift is reduced by λk̄, where k̄ = exp(m + v²/2) − 1, so E[S_T] still follows the selected drift. Example: λ = 0, v = 0, and the selected convention then collapse to ordinary GBM.

Merton (experimental): press Run experimental models.

Heston (blocked): Euler–Maruyama full-truncation Heston remains biased versus Black–Scholes at modest step counts (see monteCarloAdvanced.test.ts). Not offered for ordinary use.

Trades | Learn. Practice. Analyze. Improve.