Minesweeper is a game of logic, but where logic cannot settle things, probability becomes a clue. Here we calculate a few probabilities, using ordinary Minesweeper with randomly placed mines as the example.

The boards in the Minesweeper app can be solved by logic alone, so there are no places where you depend on probability. Even so, knowing about probability changes how you see a board a little.

The Chance of Hitting a Mine on the First Tap

Without a way to protect the first square, the chance of hitting a mine on the first tap is number of mines ÷ number of squares. Calculated for boards the same size as the app’s, it comes out like this.

BoardMinesProbability
9×78about 12.7%
12×916about 14.8%
15×102718.0%
20×1245about 18.8%
26×1575about 19.2%

On big boards, that works out to losing on the first tap nearly once in five games. In the app, no mines are placed on the first square you tap or around it, so this probability is 0.

Count Every Layout and You Get the Probability

The probability for a square that logic cannot settle is found by counting every mine layout that does not contradict the visible numbers. The share of those layouts in which the square holds a mine is the probability that the square is a mine.

The diagram below is a board with only the “1” at the top left and the “2” at the top right open. Say there are 6 mines in all. The number in each square is the probability that the square is a mine, found by counting every layout.

1234561234133%19%19%67%233%33%19%19%67%67%19%19%19%19%19%19%19%19%19%19%19%19%
  • The 3 squares around the “1”: one mine goes into one of the 3 squares, so each is one in three (about 33%).
  • The 3 squares around the “2”: two mines go into two of the 3 squares, so each is two in three (about 67%).
  • Squares that touch no number: the mines left are 6 − 1 − 2 = 3, and they go somewhere among the 16 squares. Each is 3 ÷ 16, about 19%.

Squares next to the “1” may look safe, but on this board, squares far from the numbers have a lower chance of being a mine. When logic cannot decide and you have to pick somewhere, calculations like this help.

A 50/50 Is Exactly 50%

The classic position that logic cannot settle is the “50/50.” When there is one mine in one of two squares and every number sees the two squares in the same way, there are two possible layouts, and each has a 50% chance. What shape this takes is shown in diagrams in Is Minesweeper a Game of Luck?.

Probability Calculations Get Harder and Harder

As covered squares increase, the number of mine layouts grows very fast. For example, the number of ways to place 75 mines on a 26×15 board is the number of ways to choose 75 squares out of 390, a number with more than 80 digits. To actually work out probabilities, people use tricks such as counting finely only the squares that touch a number and counting the squares that touch none all together.

Why the problem of checking a Minesweeper board is said to belong to the family of hard problems in the world of computing is covered in Minesweeper and Math.

In the App, You Do Not Need Probability

The Minesweeper app gives you only boards that can be fully opened by logic alone from the square you tap first. Since the board was checked to be fully openable by logic from the first square, you never need to bet on probability. If you are unsure, “Hint” tells you the next square you can work out by logic.