logic solverFree • Instant • Step-by-step Hints

Minesweeper Solver

Enter your Minesweeper grid or sample a screenshot to highlight 100% safe cells, guaranteed mines, and exact cell probabilities. Free, no sign-up.

Size:
Try Pattern:
1. Select Brush (or click any cell & type 0–8, F, or ?)

How to Use the Minesweeper Solver

  1. 1

    Choose your board size or load a classic pattern preset

    Select a standard grid size (5×5, 6×6, 8×8, 9×9 Beginner, or 12×12) or set custom row, column, and remaining mine counts—or click a pattern preset like 1-2-1 Edge or 1-2-2-1 Wall.

  2. 2

    Enter revealed numbers and flags (or sample a screenshot)

    Tap cells with the brush palette or use arrow keys and number keys (0–8, F for flag, U for unknown, R for opened empty) to enter your frontier clues. You can also paste a text grid or sample a cropped screenshot.

  3. 3

    Click Solve Board or Hint Only

    Press "Solve Board" to highlight every 100% safe cell in green, guaranteed mines in red, and exact per-cell mine probabilities, or click "Hint Only" to reveal just a single forced move without spoiling the rest of the board.

  4. 4

    Apply guaranteed flags or share your board URL

    Use "Flag Sure Mines" to place confirmed flags in one click and re-run deductions, or click "Share Board" to copy a link with your exact grid encoded in the URL.

How It Works

This interactive minesweeper solver analyzes your grid by turning every revealed number clue (0 through 8) into an exact constraint over its up to eight surrounding squares. First, the engine subtracts any flags you have already placed to find each clue's effective remaining mine count. It then runs single-cell saturation checks—immediately marking adjacent unknown squares safe in green when a clue's remaining count drops to zero, and marking neighbors as guaranteed mines in red when the remaining count equals the number of adjacent unknown squares.

Next, the solver performs pairwise subset reduction across overlapping frontier clues to spot classic edge deductions like the 1-1 wall rule, 1-2-1, and 1-2-2-1 patterns. Any frontier squares that remain unresolved after algebraic reduction are partitioned into independent connected components. A fast backtracking enumerator generates every valid mine assignment for each component, weights each configuration by the total remaining mine count on the board, and displays exact marginal mine probabilities for every unknown square—or reveals a single logical step when you click Hint Only.

Minesweeper Rules & Reading Effective Clue Numbers

Every safe square in Minesweeper reveals a digit from 0 to 8 showing how many mines occupy its up to eight adjacent squares (horizontally, vertically, and diagonally). Experienced players track the "effective number" of each clue by subtracting the flags already placed around it from its printed digit. Whenever a clue's effective number drops to zero, every remaining unrevealed neighbor around that square is 100% safe to open.

Classic Frontier Patterns: 1-2-1, 1-2-2-1, 2-1-2 & the 1-1 Wall Rule

Most mid-game breakthroughs come from subset reduction along a flat wall of unknown cells. In the classic 1-2-1 edge pattern, the center 2 shares its three unknown neighbors with the two flanking 1s—forcing the two mines directly above the outer 1s and leaving the middle square above the 2 guaranteed safe. In a 1-2-2-1 wall pattern, subset subtraction proves the two mines sit directly in front of the twin 2s. And when a 1-1 pair touches a board border, the outer 1's two neighbors are a subset of the inner 1's three neighbors, proving the third square from the wall is always safe.

Is Minesweeper Luck? Probability Endgames vs. No-Guessing Mode

In classic random-board Minesweeper, isolated 2×2 pockets can occasionally force a true 50/50 endgame guess. However, many positions that look like guesses actually have heavily skewed odds (such as an 11% mine risk vs. a 67% mine risk) once you count how many ways the remaining global mines can fit across all frontier components. In No-Guessing mode, the generator runs a constraint solver before your first click to guarantee a pure deduction path from start to finish.

Frequently Asked Questions

Can this Minesweeper solver read a screenshot of my board?

Yes, with an important limitation to know upfront: the built-in screenshot importer samples a cropped, flat rectangular grid image matching your selected rows and columns to estimate unopened, empty, and flagged tiles. Because different Minesweeper apps use different fonts, themes, and 3D borders, you should always verify and tap-correct any number clues before clicking Solve.

Does it support 9×9 Beginner, 12×12, and custom board sizes?

Yes. You can switch between one-tap presets for 5×5, 6×6, 8×8, 9×9 (Beginner), and 12×12 grids, or enter any custom row and column dimensions from 3×3 up to 16×16 along with your remaining mine count.

How does the solver explain patterns like 1-2-1 and 1-2-2-1?

Whenever the solver finds a forced move, it records the exact deduction rule used—including single-clue saturation, subset reduction (1-1 wall rule), and linear patterns like 1-2-1, 1-2-2-1, and 2-1-2—and lists them step by step below the grid.

How are mine probabilities calculated when no move is 100% safe?

When every pure logical deduction is exhausted, the solver enumerates all valid mine configurations across connected frontier components and weights them by the total remaining mine count. It then displays the exact percentage chance of a mine on each unknown square and highlights the lowest-risk square in blue.

What happens if I enter a contradictory or invalid Minesweeper board?

If a clue has more adjacent flags than its printed number allows, or needs more mines than there are adjacent unknown squares, the solver immediately stops and pinpoints the exact cell coordinate (such as R2C3) so you can fix the typo.

Ready to Play?

Put Your Strategy to the Test

Practice live word and logic games right in your browser or explore related solvers and daily hints.