Games

Monty Hall Problem Simulator

Play or simulate thousands of rounds and watch the real odds emerge.

Total rounds: 0 Manual

Game mode

Pick a door, Monty opens a losing one, and decide whether to switch.

Door panel

Manual

Cumulative stats

Updates in real time as you play or simulate.

SwitchStay
Wins00
Losses00
Win rate
0%
0%
Car distribution by door
Door 1
0
0%
Door 2
0
0%
Door 3
0
0%
With enough rounds, each door should approach ~33%.

Convergence chart

The blue line shows win rate when switching and the orange line when staying. As rounds increase, both curves should settle near 66% and 33%.

About this tool

The Monty Hall problem is one of the most famous and counterintuitive probability puzzles. There are three doors: behind one is a car, behind the other two are goats. You choose a door. The host, who knows where the car is, opens one of the other two revealing a goat. Should you switch?

The correct answer is to always switch. The key is applying Bayes' theorem. When you initially choose, the probability of having picked correctly is P(car∣choice)=1/3P(\text{car} \mid \text{choice}) = 1/3. When the host opens a door with a goat, this probability does not change for your door, but the probability that the car is behind the other remaining door rises to 2/32/3. The host does not open a door at random — they always open one with a goat, and that additional information updates the probabilities asymmetrically.

This tool simulates the problem thousands of times to empirically verify the result. Compare the winning frequencies of the stay versus switch strategies and observe how the proportion converges to the theoretical values 1/31/3 and 2/32/3 as the number of simulations increases.