In the Monty Hall problem, should you switch doors?

Yes. Switching wins 2 out of 3 times. Your first pick is right only 1 time in 3, and the host, who knows where the car is, always opens an empty door. So the other 2 times, the car is behind the door he left shut. Play a thousand games and the win rates settle at 67% and 33%.

Game 1: you pick door 4, the host opens 3 empty doors1goatopen2carswitch?3goatopen4goatyours5goatopenswitch: 90% (expect 80%)stay: 10% (expect 20%)
Chance switching wins
80%
Chance staying wins
20%
Switching wins in these games
90%
Staying wins in these games
10%

Challenge: With 3 doors and 10 to 20 games, find a shuffle where staying beats switching. Luck can win a short run.

With more doors, the host opens all but one of the others.
More settings
A different shuffle plays a different set of games.

Play

Play 10 games, then 1,000. Then try 100 doors, where the answer becomes obvious.

Challenge: With 3 doors and 10 to 20 games, find a shuffle where staying beats switching. Luck can win a short run. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

P(win∣switch)=n−1n,P(win∣stay)=1nP(\text{win} \mid \text{switch}) = \frac{n - 1}{n},\quad P(\text{win} \mid \text{stay}) = \frac{1}{n}

Your first pick is right 1 time in 3. The host knows where the car is and always opens an empty door. That reveal can't change whether your first pick was right, so staying still wins 1 time in 3.

The other 2 times in 3, the car was behind one of the doors you didn't pick. The host has opened the empty one, so it's behind the door he left shut. Switching wins those.

The lines show win rates settling as the games pile up.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. Your first pick is right 1 time in nP(\text{first pick right}) = \frac{1}{5} = 20\%
  2. The host knows where the car is and only opens empty doors, so he never changes that\text{staying wins} \iff \text{your first pick was right}
  3. Every other time, the car is behind the one door he left shutP(\text{switch wins}) = \frac{5 - 1}{5} = 80\%
  4. In the games played here\text{switch } 18,\ \text{stay } 2\ \text{of } 20

Export

Export PDF

Set the doors and how many games to play. "More settings" reshuffles the games.

  • Each game is a fresh random shuffle. The same shuffle number always plays the same games.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

P(stay wins)=1nP(\text{stay wins}) = \frac{1}{n}
P(switch wins)=n−1nP(\text{switch wins}) = \frac{n - 1}{n}
SymbolMeaningUnit
nnnumber of doors
  • The host's choice isn't random. He knows where the car is, and that's the whole trick.
  • Staying wins only if your first pick was right.
  • With 100 doors, picture the host opening 98 empty ones. Would you stay?

Print this card

Where it’s used

  • Computer Science
    Simulations like this one check tricky probability by playing it out thousands of times.
  • Hobbies & Crafts
    Settle the argument at the dinner table by playing 1,000 games.
  • Sports & Games
    Any game where someone who knows more reveals information follows the same logic.

Questions people ask

Isn't it 50/50 once two doors are left?

No. The two doors aren't equally likely. Your door keeps its original 1-in-3 chance, because the host's reveal told you nothing new about it. The rest moves to the other door.

What if the host opened a door at random?

Then it changes. If he could accidentally reveal the car, switching and staying would each win half of the games where he didn't.

Why does 100 doors make it obvious?

Your first pick is right 1 time in 100. When the host opens 98 empty doors and leaves one shut, that door has the car the other 99 times.