Skip to content
Omnikalc

Should you switch doors?

Enter the number of doors and how many the host opens: get the chance of winning if you stay or switch, and the expected wins over many games.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Results

Chance of winning if you switch

66.67%

Switching wins more often than staying
Chance of winning if you stay
33.33%
Switching multiplies your chances by
2.00 ×
Expected wins by staying
333.3
Expected wins by switching
666.7
Extra wins from switching
333.3

The Monty Hall problem is a famous probability puzzle based on an old television game show. You pick one of three doors, one hiding a car and two hiding goats. The host, who knows where the car is, opens another door that hides a goat and offers you the chance to switch. Most people think the odds are now 50-50, but switching wins two times out of three. This calculator generalizes the game to any number of doors and any number of doors opened by the host.

How the calculation works

  • Chance of winning by staying = 1 ÷ n, because your first pick does not change
  • Chance of winning by switching = (n − 1) ÷ (n × (n − 1 − k)), where k is the number of doors the host opens
  • Advantage = switching chance ÷ staying chance
  • Expected wins = chance × number of games

Example

In the classic game with 3 doors and 1 door opened, staying wins 33.33% of the time and switching wins 66.67%, which is 2 times better. Over 1,000 games, you expect about 333 wins by staying and 667 by switching, so 333 more wins from switching.

Why it works

Your first choice has a one-in-three chance of being right, and it keeps that chance. The remaining two doors together hold the other two-thirds. When the host opens a losing door among them, the whole two-thirds falls on the door that is left. The host’s knowledge is what makes the opened door informative. If you picture 100 doors with 98 opened, the intuition is clearer: your first pick was almost surely wrong, so the door left standing is almost surely the prize.

Good to know

The result depends on the rules. The host must know where the prize is, must always open a losing door, and must always offer the switch. If the host opens a door at random and happens to reveal a goat, the odds of staying and switching become equal. The puzzle caused a famous public debate in 1990, and many mathematicians first rejected the answer before simulations confirmed it. You can test it yourself with three cups and a coin.

For other counter-intuitive results, try the birthday paradox calculator, and for conditional probabilities, Bayes’ theorem. The probability calculator covers independent events and the coin flip calculator covers repeated trials.

Frequently asked questions

Why does switching doors double the chances?

Your first pick is right only 1 time in 3. The host, who knows where the prize is, always opens a losing door, so the other 2 in 3 of the cases transfer to the one remaining door.

Does the host have to know where the prize is?

Yes. The result holds only if the host always opens a door with no prize and always offers the switch. If the host opens a door at random, the odds change.

What happens with more doors?

Staying always wins 1 time in n. Switching wins (n − 1) ÷ (n × (n − 1 − opened)). With 100 doors and 98 opened, switching wins 99% of the time.

Is the 50-50 answer wrong?

Yes. After a door is opened, two doors remain, but they are not equally likely, because the opened door was chosen with knowledge of the prize.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.