Minesweeper solver

Copy your board in: paint the numbers you can see, flag what you've flagged. S marks a square that's safe no matter what, M a square that's a mine no matter what, and every other square shows its chance of being a mine.

Beginner 9 × 9 (10 mines), Intermediate 16 × 16 (40), Expert 16 × 30 (99).

The patterns it's using

You can do most of this in your head once you know the classics:

The solver doesn't use a list of patterns. It checks every arrangement, so it also catches the ones that don't have names.

Common questions

How does a minesweeper solver work?

Every number is a rule: "exactly this many mines touch me." The solver tries every arrangement of mines in the unopened squares next to numbers that obeys all the rules at once. A square that is empty in every arrangement is safe; one that is a mine in every arrangement is a sure mine; the rest get the share of arrangements where they hold a mine.

Why does it ask for the total number of mines?

It helps near the end of a game. Knowing the total makes some arrangements more likely than others (they leave different numbers of mines for the squares nobody has touched), and it gives odds for those untouched squares too.

Is minesweeper always solvable without guessing?

No. Classic Minesweeper often deals positions where no square is provably safe, especially 50/50 pairs at the edges. When that happens the solver shows the lowest-risk square instead.

How do I enter my board quickly?

Pick a brush (a number, Flag or Unopened) and click squares to paint them. With a keyboard, Tab into the board, move with the arrow keys and type 0 to 8, F for a flag, or Backspace for unopened.

More solvers and ciphers