StatGardenREF. DESK
Calculators/Statistics/Monty Hall problem
Statistics

Monty Hall problem calculator

Win probability from staying versus switching after the host reveals losing doors.

What this calculator does

Monty Hall problem works out win probability from staying versus switching after the host reveals losing doors. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaWith n doors, one prize and the host opening all but one of the remaining losing doors: P(stay) = 1/n, P(switch) = (n−1)/n

The inputs explained

FieldWhat to enter
Number of doorsA number. Starts at 3.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with number of doors

Every other input is held at the calculator’s starting values while number of doors varies. Select any row to load that scenario into the calculator.

How the answer changes with number of doors
Number of doorsThere must be at least 3 doors for the switch to help
1.5N/AN/AN/A
2.25N/AN/AN/A
333.3%66.7%33.3% points
4.520.0%80.0%60.0% points
616.7%83.3%66.7% points
911.1%88.9%77.8% points