Monty Hall Problem Calculator

Explore the Monty Hall problem with analytical probabilities and Monte Carlo simulation for 3+ doors, variable reveals, and strategy comparison visuals.

How many goat doors the host opens
P(Win | Stay)
33.333%
1/3 = 0.333333
P(Win | Switch)
66.667%
(2)/(3ร—1) = 0.666667
Switch Advantage
2.00ร—
Switching is 2.00ร— better than staying
Recommended
โœ… SWITCH
+33.33 percentage points
Your Strategy EV
66.667%
With switch strategy

Strategy Comparison

Stay (33.3%)
33.3%
Switch (66.7%)
66.7%

Effect of Number of Doors

DoorsP(Stay)P(Switch)AdvantageVisual
333.33%66.67%2.00ร—
425.00%37.50%1.50ร—
520.00%26.67%1.33ร—
616.67%20.83%1.25ร—
714.29%17.14%1.20ร—
812.50%14.58%1.17ร—
911.11%12.70%1.14ร—
1010.00%11.25%1.13ร—
119.09%10.10%1.11ร—
128.33%9.17%1.10ร—
Planning notes, formulas, and examples

About the Monty Hall Problem Calculator

The Monty Hall problem calculator explores the classic door-switching puzzle using both exact probability and Monte Carlo simulation. In the standard setup, you pick one door, the host reveals a losing door, and you decide whether to stay or switch.

The point of the puzzle is that the host's informed reveal changes the odds. What looks like a 50/50 choice after one door opens is actually asymmetric, and switching is better in the classic three-door case.

This page lets you vary the number of doors and reveals to see how the advantage changes when the puzzle is generalized beyond the television version.

When This Page Helps

Monty Hall is a compact way to show how information changes probability. The host's reveal is not neutral, so the remaining doors are not equally informative even though they look symmetrical at first glance.

Seeing the exact odds and the simulation together makes the switching advantage easier to trust than a verbal explanation alone.

How to Use the Inputs

  1. Set the number of doors (minimum 3) and doors revealed by the host.
  2. Choose your strategy: always switch or always stay.
  3. Click "Run Simulation" to run a Monte Carlo simulation with specified rounds.
  4. Compare analytical probabilities with simulation results.
  5. Study the multi-door table to see how the advantage scales.
  6. Try presets for 3, 4, 5, 10, and 100 doors.
Formula used
P(Win | Stay) = 1/n. P(Win | Switch) = (nโˆ’1)/(n(nโˆ’1โˆ’r)), where n = doors, r = doors revealed. For classic 3-door: P(Stay) = 1/3, P(Switch) = 2/3.

Example Calculation

Result: P(Win | Switch) = 66.67%, P(Win | Stay) = 33.33%

With 3 doors, your initial choice has a 1/3 chance of being correct. The host reveals a goat door, so the remaining door has a 2/3 chance. Switching doubles your odds.

Tips & Best Practices

  • With 100 doors, the advantage is dramatic: staying wins 1% of the time, switching wins ~1.01% per remaining door but 99% overall โ€” nearly guaranteed.
  • The key insight: the host's reveal is not random. The host always reveals a losing door, which concentrates the probability onto the remaining unchosen doors.
  • Run thousands of simulations to see the results converge to the analytical probability โ€” this is the law of large numbers in action.
  • The more doors revealed, the stronger the switching advantage, because more "probability mass" shifts to the remaining unchosen door.
  • This problem is mathematically equivalent to: "Would you rather keep your 1 card or trade for all the other nโˆ’1 cards (minus the revealed losers)?"
  • The Monty Hall problem illustrates conditional probability โ€” the probability changes because the host's action provides information.

The Psychology of Probability

The Monty Hall problem famously stumped even mathematicians when Marilyn vos Savant published the correct answer in 1990. The error stems from ignoring conditional probability โ€” our intuition treats the two remaining doors as equally likely, but the host's informed action breaks this symmetry.

Generalizations and Variants

The N-door generalization shows the effect scales dramatically. With 1,000,000 doors, switching gives 99.9999% win probability. The "Monty Fall" variant (host opens a random door and happens to reveal a goat) changes the answer to 50/50 โ€” proof that the host's knowledge is the crucial ingredient.

Game Theory and Decision Making

The Monty Hall problem illustrates a broader principle: when someone with information takes an action, that action itself contains information. This principle appears in poker (reading opponents), negotiation (interpreting offers), and machine learning (feature selection based on outcomes).

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Your initial pick has a 1/n chance of being right. The remaining nโˆ’1 doors collectively hold (nโˆ’1)/n probability. When the host eliminates losing doors, that (nโˆ’1)/n probability concentrates on the remaining unchosen door(s). Switching accesses this concentrated probability.