Skip to content

Monty Hall Problem Simulator

Pick a door. When the host opens a door with a goat, decide: stay or switch. Then let the computer play 100 games.

Number of doors
Your chance of winning if you switch–
If you stay with your first pick–
How much better is switching?–

Play

Your games: wins when you stayed0 / 0
Your games: wins when you switched0 / 0

Play 100 games automatically

The computer plays 100 games with each strategy: one player always stays, the other always switches.

Always stays
–
Always switches
–

Updated: December 1, 2026Sources and method ↓

What is the Monty Hall problem, and how do you solve it?

You are on a game show facing three closed doors. Behind one is a car; behind the other two are goats. You pick a door, say door 1. The host, who knows what is behind every door, opens another door, say door 3, and shows you a goat. Then he asks: do you want to stay with door 1, or switch to door 2?

Most people feel it makes no difference. Two doors are left, so surely it is 50-50. It isn't. If you switch you win the car 2 times out of 3; if you stay you win only 1 time out of 3.

The short version

When you first choose, your door has a 1/3 chance of hiding the car, and the two other doors together have 2/3. The host always opens a goat door from that pair; he never reveals the car and never opens yours. So his move tells you nothing new about your door, which stays at 1/3. The full 2/3 that belonged to the other two doors now sits on the one door he left closed.

P(win by staying) = 1/3  ·  P(win by switching) = 2/3

Checking every possible case

If the argument still feels slippery, list every case. Say you always pick door 1:

Car is behindHost opensStaySwitch
Door 1Door 2 or 3🚗 Win🐐 Lose
Door 2Door 3🐐 Lose🚗 Win
Door 3Door 2🐐 Lose🚗 Win

The three rows are equally likely. Staying wins in one of them and switching wins in two. The only way switching loses is if you happened to pick the car first, and that only happens a third of the time.

Example: Imagine playing 300 times. On about 100 of those, your first pick is the car; stay and you win about 100 cars. On the other 200, your first pick is a goat, the host opens the other goat, and the remaining door must hide the car. Switch every time and you drive home in about 200 cars.

Thinking with 100 doors makes it obvious

Now picture 100 doors. You pick one. The host, who knows where the car is, opens 98 of the others and every one is a goat. Two doors are left: yours, which you chose blind out of 100, and one the host carefully avoided. Few people would stay put. Your door is still a 1-in-100 shot, and the other one carries the remaining 99 in 100.

Example: In the 100-door game, staying wins 1/100 = 1% of the time and switching wins 99/100 = 99%. Switching is 99 times as likely to win.

You can try both versions in the game above. With 100 doors, the right answer feels obvious, and the three-door game works the same way on a smaller scale.

The key: the host uses what he knows

The 2/3 answer depends on the rules. The host must always open a door you did not pick, it must always have a goat behind it, and he must always offer the switch. If the host picked a door at random and it just happened to reveal a goat, the two remaining doors really would be 50-50. The paradox comes entirely from the host's knowledge shaping which door he opens.

Why do so many people get it wrong?

The puzzle became famous in 1990 when Marilyn vos Savant answered it in her Parade magazine column. She said "switch", and thousands of readers wrote in to tell her she was wrong, many of them with PhDs. She was right. Even the mathematician Paul Erdős reportedly stayed unconvinced until he saw a computer simulation. Our brains are good at counting doors and bad at tracking how new information changes probability.

Why don't the automatic games show exactly 2/3?

Random results always scatter. Over 100 games, the always-switch player will usually win somewhere between about 57 and 76 cars, not exactly 67. The more games you run, the closer the share gets to 66.7%. The simulation uses your browser's cryptographic random numbers, so the car's position is truly unpredictable.

Like counterintuitive odds? See the birthday paradox, find out what a ticket is really worth in the lottery odds calculator, or count possible picks with the combination calculator.

Frequently asked questions

Should you switch doors in the Monty Hall problem?
Yes. Switching wins 2/3 of the time and staying wins only 1/3, so switching doubles your chances.
Why isn't it 50-50 when two doors are left?
Because the host knows where the car is and always opens a goat door. Your first pick keeps its 1/3 chance, and the other 2/3 moves onto the one door he leaves closed.
What if the host opened a door at random?
If he did not know where the car was and happened to reveal a goat, the two remaining doors would each have a 1/2 chance. The paradox depends on the host's knowledge.
What are the odds of winning by switching with 100 doors?
99% if you switch and 1% if you stay, because the host opens 98 goat doors and leaves just one other door closed.
Where does the name Monty Hall come from?
From Monty Hall, the host of the American TV game show "Let's Make a Deal". The puzzle is based on the door choices on that show.

Sources: Probabilities on this page are calculated by enumerating every case (car position × player's pick × host's choice). History: Marilyn vos Savant, "Ask Marilyn", Parade (September 9, 1990). The simulation uses the browser's cryptographic random number generator.

Last updated: December 1, 2026

Results are for information only. For official or financial decisions, consult a qualified professional.

You might also need