Monty Hall Problem Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the number of doors and how many empty doors the host opens to compare your chance of winning if you stay or switch.
Result
Chance of winning if you switch to one other closed door
Chance of winning if you stay
- Switching is this many times better
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of doors: enter 3 or more.
- Empty doors the host opens (at most doors − 2): enter 1 or more.
- Read the result: Chance of winning if you switch to one other closed door; the panel also shows Chance of winning if you stay and Switching is this many times better.
How this calculator works
One door hides the prize. You pick a door; the host, who knows where the prize is, opens k empty doors among the others, then offers a switch. Your first door keeps its 1 ÷ n chance, because the host can always open empty doors whatever you picked.
The other n − 1 doors share the remaining (n − 1) ÷ n chance, now spread over the n − k − 1 doors still closed, so switching to one of them wins with probability (n − 1) ÷ (n(n − k − 1)). With 3 doors and 1 opened, that is 2/3 against 1/3 (the problem as posed by Steve Selvin in The American Statistician, 1975).
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Number of doors | ||
| Empty doors the host opens (at most doors − 2) | ||
| Chance of winning if you switch to one other closed door | % |
Worked example
| Number of doors | 3 |
|---|---|
| Empty doors the host opens (at most doors − 2) | 1 |
| Chance of winning if you stay | 33.33% |
|---|---|
| Switching is this many times better | 2 |
Chance of winning if you switch to one other closed door 66.67%
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Why is switching better with three doors?
Your first pick is right only 1 time in 3. In the other 2 cases the host must leave the prize behind the remaining door, so switching wins 2 times in 3.
What if there are 100 doors and the host opens 98?
Staying wins 1% of the time; switching to the one door left wins 99% of the time.