Sapero
Log in

What Do the Numbers Mean in Minesweeper?

Updated

A number on an open cell shows how many mines are hidden in the cells touching it: above, below, left, right and on the four diagonals. A 1 says one of those cells holds a mine, a 4 says four of them do. A blank open cell is a zero. No number can go above 8.

That is the whole rule. The rest of this page is about the details, and the percentages in it come from 8,000 boards we generated with the game’s own code, 2,000 per board size.

Which cells a number counts

Only the immediate neighbors, and a diagonal neighbor counts exactly as much as the cell beside it. Away from the walls that makes eight cells. A mine two steps away is not included, however close it looks.

The 4 sees four mines: three on the diagonals and one to its right. The flagged mine in the top-right corner is two steps away and does not count.

Neighbors you have already opened still sit inside that ring, but they are safe. What matters is how many neighbors are still covered and how many mines must be among them. A 2 that touches five covered cells is vague. A 2 that touches two covered cells has just told you where both mines are.

What does a 1 mean in Minesweeper?

A 1 tells you that exactly one of the cells touching it is a mine. You will read a lot of them: 1 is the most common digit on every board size we measured, and on Pro, the 16×16 board with 40 mines, 38.5% of all safe cells show a 1.

Once you know which neighbor holds that mine, every other covered neighbor of the 1 is safe and can be opened right away. If the 1 has only a single covered cell next to it, that cell is the mine. A 2 or a 3 works the same way with more mines to place, and when the mines a number still needs equal its covered neighbors, all of those neighbors are mines.

Hard spots usually need two neighboring numbers read together. The patterns chapter is about exactly that: 1-2-1, 1-1, 1-2 and the others all come down to comparing two or three neighboring numbers.

What does a blank cell mean?

Click once and a big piece of the board opens by itself. That is a zero at work. A blank open cell has no mines touching it, and since the game does not print a 0, it opens those neighbors for you instead of making you click them one by one. If one of them is also a zero, the opening keeps growing until it is bordered by numbers or the edge of the board.

The first click in Sapero always opens a patch like that. Mines are placed after that click, never in the clicked cell or its eight neighbors, so the cell you click is always a zero. Classic Windows Minesweeper was less generous: it promised only that the first cell was not a mine, and a guaranteed opening on the first click came with Windows Vista.

Flags don’t change the count

Put two flags next to a 3 and it still says 3. A number shows the total count of mines around the cell, in Sapero as in the classic game. At least one clone, chridd’s Minesweep, can show the remaining count instead, but the total is the standard.

So you subtract in your head. A 3 that already touches two of your flags works like a 1: one more mine among its other covered neighbors. It also means a wrong flag throws off every number around it by one.

In Sapero you can check a flag before you rely on it. Tap it, then let a second pass. A real mine shows up green; a wrong flag vanishes and the cell under it opens. Checking flags is also how a game ends here: you win once every mine is found and green.

What is the highest number in Minesweeper?

The highest possible number is 8, a cell away from the walls with a mine in every one of its eight neighbors. There is no 9 because there is no ninth neighbor. Near the walls the ceiling drops. A corner cell has only three neighbors, so it shows at most a 3, and a cell on an edge has five, so it cannot go above 5.

The corner cell can never show more than 3, and a cell on the top edge can never show more than 5.

On our 8,000 test boards no corner ever showed more than 3 and no edge cell more than 5.

An 8 needs a mine in every one of its eight neighbors.

An 8 is also the rarest thing in the game, and the board size decides whether you will see one at all. We worked out the expected counts for a board with mines placed completely at random. On a 9×9 board holding 10 mines an 8 turns up about once in 15 million boards, and with 5 mines it cannot happen. On 16×16 with 40 mines it is about once in 31,000 boards. The 30×16 board with 99 mines, the classic Expert size and our Evil board (it opens at level 15 after you log in), is the only size where you have a real shot: about one board in 1,200 has an 8 somewhere. For any one interior cell on that board, the odds are about 1 in 477,000.

Our generator run agreed. Across all 8,000 boards we found exactly two 8s, on two different Evil boards. Sevens were more common: 35 of the 2,000 Evil boards had one, and 4 of the 2,000 Pro boards. In a 2002 thread on the Straight Dope message board, a player opened by asking what color the 8 even is: “I’ve seen a few 7s but no 8.” The one reply with a sighting came from someone who had set a custom 20×20 board to 300 mines.

How often each number shows up

On Pro, nine safe cells in ten show 0, 1 or 2; on Evil, about eight in ten. Here is the breakdown from 2,000 boards per size, first click in the center.

NumberBeginner 9×9, 5 minesIntermediate 9×9, 10 minesPro 16×16, 40 minesEvil 30×16, 99 mines
0 (blank)62.5%41.8%29.7%18.5%
132.1%39.4%38.5%34.1%
25.1%15.3%22.6%28.7%
30.29%3.1%7.5%13.7%
49 cells in total0.35%1.5%4.1%
5never29 cells0.21%0.78%
6never3 cells69 cells0.095%
7nevernever4 cells35 cells
8nevernevernever2 cells

Percentages are shares of all safe cells, including the ones the first click opens. “Cells” means the total number of cells with that value across 2,000 boards.

Counted per board instead of per cell: a 4 appears on 95.6% of Pro boards and on every Evil board. A 5 is on about a third of Pro boards and on 94% of Evil boards. A 6 shows up on one Pro board in thirty and on roughly three Evil boards in ten. Beginner never went past 4 in 2,000 games, and only 9 of those games had a 4 at all.

Every Sapero board passes a solver before you get it, so we checked whether that skews the numbers. The same count on plain random boards with the same first-click rule barely moved: on Pro and Evil the shares of 0, 1, 2 and 3 differed by less than 0.6 of a percentage point. The clearest difference is on Beginner, where our boards have fewer blanks, 62.5% against 65.1%. With only 5 mines on a 9×9 grid the first click would often open nearly everything, and the generator throws those boards away. Rarer numbers shifted a little too. Evil boards with a 7 came to 35 out of 2,000 in our run and 64 on random boards, though one run is too small to read much into that.

Number colors

The colors carry no extra information. A blue 1 and a black 1 mean the same thing; each number gets its own color so the board reads at a glance.

The look most people remember is the Windows one, and Simon Tatham’s open-source Mines uses the same palette: 1 blue, 2 green, 3 red, 4 dark blue, 5 maroon, 6 teal, 7 black, 8 grey. Versions differ, especially for 7 and 8. Some, chridd’s Minesweep among them, let you switch colors off and play with plain black digits.

Sapero keeps the same order of hues in its own shades: blue, green, red, dark blue, a dark red-brown, teal, near-black and grey. In the dark theme they get lighter so they stay readable, and the 7 flips to near-white. A zero has no digit and no color in either theme.

From numbers to mines

Where two numbers share covered neighbors, comparing them settles cells that neither settles alone. On Sapero boards the numbers are always enough. The solver that checks every board looks only at open numbers, as you do, and accepts a board only if it can reach the end without a guess. On Beginner, Intermediate and Pro it may use nothing beyond reading one number at a time and comparing two neighboring numbers. Only Evil can require a longer chain of reasoning.

In 2000, Sadie Kaye proved that Minesweeper is NP-complete: telling whether a given position is even possible is, in general, as hard as the classic hard problems of computer science. That is one reason a no-guess generator runs a real solver on each board instead of trusting a shortcut.

New to the game? The rules chapter covers the basics, and the chapter on 50/50s explains the spots where the numbers genuinely cannot tell two cells apart, and why you will not meet them here. After that, play a few games on the home-page board, and before each click count the covered neighbors of the number you are reading.