Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Monty Hall Problem Calculator

Number of doors: enter 3 or more. Prefilled example: 3.

Empty doors the host opens (at most doors − 2): enter 1 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of doors: enter 3 or more.
  2. Empty doors the host opens (at most doors − 2): enter 1 or more.
  3. 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

  1. Sw={n−1n×(n−k−1)×100if n−k−1≥110otherwise
Symbols used in the formula
SymbolMeaningUnit
nNumber of doors
kEmpty doors the host opens (at most doors − 2)
SwChance of winning if you switch to one other closed door%

Worked example

Number of doors3
Empty doors the host opens (at most doors − 2)1
Chance of winning if you stay33.33%
Switching is this many times better2
  1. Sw=3−13×(3−1−1)×100=66.6667

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.

Questions answered

Related calculators