Back to BlogBrain Training & Logic

How to Play Minesweeper, and When You Have to Guess

The rules of Minesweeper, what the numbers mean, two patterns that get you unstuck, and how often a perfect player still has to guess, from 360,000 boards played by computer.

How to Play Minesweeper, and When You Have to Guess

Minesweeper looks like a game of luck. You click a gray square and either it opens or you lose. In fact most of the game is pure logic: every number on the board is a clue, and on an easy board you can usually clear every square without ever guessing. Usually, but not always.

This guide covers the rules, how to read the numbers, and two patterns that get you out of stuck spots. Then it answers the questions players argue about: how often you are forced to guess, and whether your first click should go in the corner or the middle. We answered them by playing 360,000 boards with a computer player that never guesses unless it has to.

Play it here: Mine Finder in Game Attic, free in your browser, with five board sizes from Easy to Master and no sign-up. Your first tap is always safe, and every board can be solved without guessing.

How to play Minesweeper

The board is a grid of covered squares. Some of them hide mines. Your job is to open every square that is not a mine.

  1. Click a square to open it. If it hides a mine, the game is over.
  2. A number tells you how many mines touch that square. "Touch" means the eight squares around it: above, below, left, right and the four corners. A 1 means exactly one of those eight is a mine. A 3 means three.
  3. A square with no mines around it opens its neighbours for you. These are the 0 squares. The game shows them as blank and opens everything around them, which is why one click can clear a big patch.
  4. Right click to plant a flag on a square you know is a mine. Flags are only notes for you. They stop you from opening that square by accident.
  5. You win when every safe square is open. You do not have to flag the mines.

Two examples of what a Minesweeper number counts. A 3 in the middle of the board with three mines among its eight neighbours. A 1 in the corner of the board, which has only three neighbours, one of them a mine.

A square in the middle of the board has eight neighbours. A square on the edge has five, and a corner square only three. Keep that in mind, because it comes back when we get to the first click.

The three standard sizes, as in Windows XP and most versions since, are:

LevelBoardMinesShare of squares that are mines
Beginner9 by 91012%
Intermediate16 by 164016%
Expert30 by 169921%

Your first click is always safe. Many versions today, including Google's and most Minesweeper websites, go further and make sure the first click lands on a 0, so it always opens a patch of board. The classic Windows game only promised that the first click would not be a mine. That small rule change turns out to matter a lot, as you will see below.

Reading the numbers

Here is a real beginner board, one click in. We clicked the top left corner. It was a 0, so the game opened that corner and kept going until it hit numbers.

A real 9 by 9 beginner board after one click in the top left corner. The click was a 0, so 19 squares opened. The 1 at the top edge touches only one hidden square, which must be a mine.

Look at the 1 in the top row. Of its neighbours, only one square is still covered: the one to its right, outlined in red. The 1 says one mine touches it, and there is only one place for that mine. So that square is a mine. Flag it.

That is the first rule of reading the board: if a number has exactly as many covered squares around it as its value, they are all mines. The second rule is the other way round: if a number already touches as many flags as its value, every other covered square around it is safe. Once you flag that red square, any 1 that touches it is "full", and you can open everything else next to that 1.

Almost every move you make on an easy board is one of those two rules.

Two patterns worth learning

Sometimes neither rule works on a single number, but two numbers side by side settle it.

The 1-1 against a wall. Picture a row of 1s along the edge of an open area, with covered squares on the other side. The first 1 at the end of a wall touches only two covered squares, A and B. The 1 next to it touches A, B and C. Both 1s need one mine, and the first one says that mine is in A or B. So the second 1 already has its mine among A and B, and C must be safe.

The 1-2-1. A row reading 1, 2, 1 with covered squares above it, the kind you see along a flat edge. The mines are always above the two 1s, and the square above the 2 is safe. Try putting a mine above the 2 instead: then each 1 already has its mine, nothing else can be a mine, and the 2 only gets one. So that square is safe, and the 2 needs both squares above the 1s.

Two Minesweeper patterns. Left: two 1s along a wall. The 1 by the wall touches only squares A and B, so its mine is there, and the next 1 is already satisfied, so square C is safe. Right: numbers 1, 2, 1 in a row under five covered squares. The mines are above the two 1s, and the square above the 2 and the squares at both ends are safe.

Both patterns are the same idea: compare what two numbers share and what each one has to itself. Our computer player uses exactly that, plus one more step for the hard spots. When nothing else works, it tries every possible way to place mines in the covered squares next to the numbers, keeps only the layouts that fit every number and the total mine count, and opens any square that is safe in all of them. If no square is safe in all of them, the player is stuck. That is a forced guess.

How we checked

We wrote a Minesweeper player that follows the rules above in order: single numbers first, then pairs of numbers, then every possible layout of the squares next to the numbers, counting the mines left on the board. It only guesses when none of those finds a safe square, and then it picks the square with the lowest chance of being a mine, worked out exactly from the same layouts.

It played 20,000 random boards for every combination of level (beginner, intermediate, expert), first click (corner, middle of an edge, middle of the board) and first click rule (always a 0, or only safe). That is 360,000 games. On 0.5% of expert games the covered area next to the numbers grew too big to try every layout, and there the player guessed, so the expert numbers are a little low. The script and its output are saved with this post. A "logic only" board below means the player cleared it with no guess at all.

How often logic alone is enough

Bar chart of the share of boards a perfect logic player clears without any guess, first click in the middle. Beginner 90% with a first click that is always a 0 and 30% when the first click is only safe. Intermediate 70% and 17%. Expert 16% and 3%.

With today's rule, where the first click always opens a patch, 90% of beginner boards can be cleared by logic alone. On intermediate it is 70%. On expert it drops to 16%. Put another way, a perfect player still has to guess at least once on 84% of expert boards.

The old rule is much harsher. When the first click only has to be safe, it often lands on a number and opens a single square. Then you have one clue and the whole board to guess from. Clicking the middle, logic alone clears just 30% of beginner boards that way, 17% of intermediate and 3% of expert.

The win rates follow the same shape. Picking the safest square it can find when forced to guess, the player wins 96% of beginner games, 86% of intermediate and 49% of expert with today's rule. So if you lose an expert game now and then even when you play carefully, that is the board, not you.

Where to make your first click

Players argue about this a lot, and the answer depends on which rule your game uses.

Bar chart of the chance that the first click opens a patch of board when the first click is only guaranteed safe. Beginner: corner 67%, edge 51%, middle 33%. Intermediate: corner 59%, edge 43%, middle 25%. Expert: corner 50%, edge 31%, middle 16%.

If your game only promises a safe first click (the classic Windows game and some clones), click a corner. A corner square has only three neighbours, so it is much more likely that none of them is a mine. On expert, a corner click opens a patch 50% of the time, the middle only 16%. On beginner it is 67% against 33%. Over whole games the corner wins more often too: 92% of beginner games against 87% from the middle, and 39% of expert games against 35%.

If your game always gives you a 0 (Google's Minesweeper and most Minesweeper websites), stay out of the corner. Every first click opens a patch now, and a 0 in the middle opens more of the board: on average 64 squares on intermediate against 27 from the corner. The bigger opening gives you more numbers to work with, and more boards end without a guess: 70% of intermediate boards from the middle against 58% from the corner. Final win rates end up close, 85% from the corner against 86% from the middle, because a careful guess later rescues many corner starts. The real gain from the middle is having to guess less often.

Intermediate board, first click always a 0CornerEdgeMiddle
Squares opened by the first click (average)274264
Boards cleared with no guess58%68%70%
Games won85%87%86%

If you do not know which rule your game uses, click the middle of the board once and see. If you keep getting a single number from the first click, your game uses the old rule, and corners are better.

How many guesses an expert game needs

Bar chart of forced guesses per expert game: 0 guesses 16%, 1 guess 25%, 2 guesses 18%, 3 guesses 13%, 4 guesses 9%, 5 guesses 6%, 6 or more guesses 13%.

On expert with today's rule, only 16% of games need no guess. 25% need exactly one, and 40% need three or more. These counts include only the guesses the player got to make. A wrong guess ends the game, so a board that would have needed four guesses but went wrong on the second shows up as two.

A guess no one can avoid

Here is the end of a real beginner game from our run, the moment the player got stuck. Nine mines are flagged. One is left, and it is under one of the two squares marked with a question mark.

The end of a real 9 by 9 beginner game. Nine mines are flagged. The last mine is under one of two squares in the top right corner, and the only number touching them, a 5, already has four flags, so it cannot say which one.

The 5 below them touches four flags already, so it needs one more mine, and both question mark squares touch it. No other number touches either one. Every way of reading this board says the same thing: one mine, two squares, no clue. You have to pick one, and you will lose half of the time. Players call this a 50/50.

Some modern versions, often sold as "no guessing" Minesweeper, only deal boards that logic can solve from the first click. If forced guesses bother you, look for that option. Ours is Mine Finder: every board can be cleared by logic, so a 50/50 like this one never comes up.

Tips that come straight from the numbers

  • Work the easy rules first. Most moves are a number that is full (open the rest) or a number with exactly enough covered squares (flag them all).
  • Look at pairs of numbers before you guess. The 1-1 and 1-2-1 patterns often open a spot that looks stuck.
  • Count the mines left. Near the end of a game the mine counter can settle a spot that the numbers cannot.
  • If you must guess, check the squares far from the numbers too. A covered square away from all clues has the average mine chance for the rest of the board, which can be lower than a risky square next to a number, and if it opens it gives you fresh clues.
  • Pick the first click by your game's rule. Corner when the first click is only safe, middle when it is always a 0.

Where Minesweeper came from

Games about finding hidden mines go back to the mainframe days, but the version most people know was written at Microsoft by Robert Donner and Curt Johnson. It came out in the Microsoft Entertainment Pack for Windows in 1990 and was then included with Windows itself from Windows 3.1 on. Like Solitaire, it is often said to have been there to get people used to a mouse: left click to open, right click to flag, and the "chord", clicking both buttons on a full number to open everything around it at once.

If you like this kind of puzzle

Minesweeper is a logic puzzle in disguise, the same kind of reasoning you use in Sudoku and the Sudoku solving techniques guide, where every square is decided by what is around it. For more games that reward careful thinking over luck, see our list of the best brain training and logic games. For a tile game where the order of your moves decides the result, our Mahjong Solitaire guide tests the usual tips on 20,000 computer-played boards. If you would rather play with words, Pairdle is the daily word game we make.

Share this post