Minesweeper Solver: Find the Next Safe Move

Stuck on a Minesweeper board? This solver analyzes your current board state and identifies every cell that can be determined through pure logic — no guessing required. Enter the numbers you see, mark the cells you have already revealed, and the solver will show you the next guaranteed safe moves or confirmed mines.

Stuck on a Minesweeper puzzle? Enter your current board state below — mark revealed numbers and flags to match your game, then click Find Safe Moves. The solver uses constraint analysis to identify guaranteed safe cells and mines.

Tile:
Click tile, then paint on grid. Right-click to toggle flag.

How to Use

  1. Choose a grid size that matches your game
  2. Select a tile from the palette, then click or drag on the grid to paint cells
  3. Mark all revealed numbers and any flags you've placed
  4. Click Find Safe Moves
  5. Green cells are safe to click — Red cells are mines
  6. Go to your game, make the moves, come back and update the grid, then solve again

Tip: Hover over a cell and press 08 to set a number. Press U for unrevealed, F for flag.


How the Minesweeper Solver Works

The solver uses constraint propagation — the same logical technique that expert human players use, but applied exhaustively to every cell on the board simultaneously.

  1. Enter your board state. Mark each cell as revealed (with its number), flagged, or unrevealed.
  2. The solver reads every constraint. Each numbered cell creates a constraint: “exactly N of my unrevealed neighbors are mines.”
  3. It propagates those constraints. When one constraint overlaps with another, the solver combines them to deduce which cells must be mines and which must be safe.
  4. Results are highlighted on the board. Green cells are guaranteed safe. Red cells are guaranteed mines. Gray cells cannot be determined from logic alone.

What the Solver Cannot Do

Because Minesweeper is NP-complete, no solver can guarantee a solution for every possible board state. When the board reaches a position where no cell can be determined through pure logic — a true 50/50 or ambiguous endgame — the solver will tell you that a guess is required. In those cases, our probability guide explains how to make the best possible guess.

When Should You Use a Solver?

  • Learning patterns. If the solver finds a safe move you missed, look at the numbers around that cell. You just discovered a pattern you did not know — study it and you will recognize it next time.
  • Verifying your logic. Run the solver to check whether your deduction was correct before committing to a risky click.
  • Understanding difficult positions. Some Expert boards produce genuinely hard constraint combinations. The solver breaks down exactly why a cell is safe or a mine.
  • Improving your game. Use the solver as a teacher, not a crutch. The goal is to eventually spot every move the solver finds, on your own.

Learn to Solve Without Help

The best way to need the solver less often is to internalize the patterns and strategies that expert players use: