Should you stay or switch doors?
Play the Monty Hall game, then let the simulation play thousands of games and watch the odds appear.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Play the game
More options
Key values as a table
| Way of playing | Exact chance | Simulated |
|---|---|---|
| Stay | 33.3% | — |
| Switch | 66.7% | — |
Chance of winning by switching
66.7%
With 3 doors, switching wins 66.7% of the games; staying wins only 33.3%.
The tally
- Exact chances, switching and staying
- 66.7% and 33.3%
What to notice
- Pick a door: a car is behind one of them, goats behind the others.
- Your first pick is usually wrong, and the host's goat doors do not change that. So the other door holds the car whenever your first pick missed.
Play the Monty Hall game, then let the simulation play thousands of games and watch the odds appear.
How to use
- Pick a door. The host, who knows where the car is, opens other doors that hide goats. Then choose to stay with your door or switch to the one other closed door.
- Play a few rounds, then press Simulate to play thousands of games in a second and watch the win rates of staying and switching settle.
- Under More options, change the number of doors: with more doors, switching wins even more often.
How it works
The Monty Hall problem looks like a coin flip: two closed doors are left, so surely each has a 50 % chance of hiding the car? It does not, because the host does not open a door at random. He always opens a door with a goat, and he can only do that without touching your door.
Your first pick has a 1 in 3 chance of being right, and nothing the host does changes that. So staying wins with probability 1/n, and switching wins in all the other cases, with probability (n − 1)/n. With three doors, that is 2 out of 3 for switching. With 100 doors and 98 opened, switching wins 99 times out of 100.
For example, with 3 doors, staying wins 33.3% of the games and switching 66.7%. The simulation plays that many games with random cars and random first picks, so its rates wander around the exact ones and close in as the games pile up. The rules assumed here are the standard ones: the host always knows where the car is and always opens goat doors. Source: Wikipedia, Monty Hall problem.
Worked example
What are the chances with 3 doors?
- Staying wins only if your first pick was right: 1 in 3, 33.3%.
- Switching wins in every other case: 66.7%.
Switching wins 66.7% of the games, staying 33.3%.
Method
No outside data is used: the result is worked out directly from the formula P(switch) = (n − 1) / n, explained under How it works.
Frequently asked questions
Why is it not 50-50 between the two closed doors?
Because the host's choice carries information. He had to avoid the car, so the other closed door is the car's whenever your first pick was wrong, and that happens two times out of three.
Does it matter that the host knows where the car is?
Yes. If he opened a door at random and happened to show a goat, staying and switching would be equally good. The 2 in 3 for switching needs a host who never opens the car's door.
Will switching win every time?
No. It wins about two games in three. Play a few rounds yourself and you will see switching lose now and then; the simulation shows the pattern over thousands of games.
Is the simulation really random?
Yes. Each game picks the car's door and your first door with secure random numbers from your browser, and nothing is sent anywhere.
What changes with more doors?
Your first pick is right less often, 1 in n, so switching wins (n − 1)/n of the games. Here the host opens all doors but yours and one other.




