Skip to main content

Puzzle solver tool

Minesweeper Solver

This Minesweeper solver helps you map your board, identify safe clicks, and flag forced mines without leaving the browser. Enter your current puzzle, run the analysis, and use the highlighted next moves to solve faster.

💣

Minesweeper Solver

Advanced constraint-based solver

Fill the board with numbers and flags, then click Solve to find safe moves!

🚩 40
Tools (or use keys 0-8, F, G, C):

📖 How to use the Minesweeper Solver

1. Set the board size and number of mines to match your game.

2. Click a tool, then click board cells to enter numbers or mark flags.

3. Right-click any cell to quickly toggle a mine flag.

4. Use Find Next Move to reveal definite safe squares and mines.

5. Green markers are safe squares. Red markers are mines.

6. A ? marks the cells with the highest safety probability when no forced move exists.

Keyboard Shortcuts

0-8 Select number F Flag tool G Safe tool C Clear tool R Reset board
Minesweeper Solver | Advanced Constraint Satisfaction Algorithm

Minesweeper solver

Expert Minesweeper is often described as a coin-flip game. It mostly is not. Most boards are pure logic with a small genuinely unlucky core, and this solver separates the two. You enter the board you are looking at — numbers, flags, unknowns — and it marks every cell that can be decided with certainty, then ranks the genuinely ambiguous ones by mine probability. Below is the logic it uses, the patterns worth memorizing, and the habits that make the difference between fast and lucky.

The two rules the entire game reduces to

The whole game rests on two sentences. A numbered cell tells you how many mines sit in its eight neighbors. When that count is already satisfied by flags, every other neighbor is safe; when the number equals the count of unknown neighbors, every one of those is a mine.

Apply those two rules over and over, recursively, and a surprising share of every board solves itself. A 3 with three flags around it clears its whole neighborhood. A 1 with exactly one unknown neighbor flags it. Beginners look at the grid; the game is actually a list of these little counting facts, chained together.

The solver does nothing more mystical than that. It takes your visible numbers and flags, derives every certainty it can, updates the board, and repeats until nothing new falls out. Whatever remains is honest ambiguity, and for that it switches to probabilities.

Four patterns worth memorizing, because they are most of the game

You can derive everything from the two base rules, but deriving mid-game is slow. What speedrunners do is recognize packaged shapes on sight. These four cover most walls you will ever meet:

Every pattern is the base rule in a costume, which is the reassuring part: if you forget a pattern mid-game, you can re-derive it. The 1-2-1 and 1-2-2-1 walls are worth drilling first, because they resolve entire regions in one glance and they show up constantly.

What the solver adds is parallelism. On an expert board there are dozens of these deductions live at once, and a human eye holds maybe three. The solver finds them all, including the ones attention skips — which is where most manual play leaks time, re-deriving facts already established elsewhere on the board.

The shapes the solver checks on every pass

  • 1-2-1 against a wall: the two mines sit under the 2, and the cells under the 1s are safe
  • 1-2-2-1 against a wall: the mines sit under the two 2s, and the outer cells are safe
  • The corner count: a corner 1 with only one unknown neighbor means that neighbor is a mine; a satisfied 3 clears its entire corner
  • The subtraction: a 2 with one flag already placed needs exactly one more mine among its remaining neighbors, which often crosses off half of them

When the logic runs out, the odds take over

Almost every board eventually stalls: a region where two or three cells could hide the mine in mutually exclusive ways, and no counting rule can decide. This is the ambiguous core, and how you play it decides whether you are a good Minesweeper player or a lucky one.

The solver handles the core by computing each remaining cell's actual mine probability and pointing at the safest click, weighted by position risk like corners and edges. It does not guess blindly. It guesses the best number available, which is a different thing entirely.

The counterintuitive part: a scary-looking cell can carry a 1-in-10 chance while an innocent-looking one carries 1-in-3. The board's vibes mean nothing; the constraint math means everything. Internalizing that single idea does more for endgame survival than every pattern combined, because the endgame is where the vibes die and the odds decide.

The rule worth playing by

Never click a cell the logic has already decided. Certain mines get flagged, certain safes get cleared, and only the genuinely undecidable cells are worth a calculated risk.

Chording and flags: where real speed comes from

Chording is the move casual players never find: when a number's mine count is satisfied by flags, clicking that number opens every remaining neighbor at once. One click, up to seven cells. On a wall of 1-2-1 patterns, a couple of chords clear a dozen cells while a cell-clicker is still aiming.

Flagging more, not less, is the second half. Unflagged numbers force you to re-count neighborhoods in your head, over and over, and that re-counting is where both errors and seconds come from. A fully flagged board is a readable board, and a readable board is a chordable board. The solver marks every certain mine for exactly this reason: the flag layout is the interface for the rest of the logic.

The deepest habit shift is reading before clicking. Scanning for safe-looking cells is the slow way; reading number groups, resolving them, and letting the clicks follow is the fast one. That inversion — eye on the numbers, not the grid — is what separates a twenty-second beginner board from a five-second one, and the solver drills it by showing each deduction the moment it exists.

Training with the solver instead of leaning on it

Used honestly, this is a coach. Play a real board until you stall, then enter it here and study what you missed. The gap between your stall-point and the solver's stall-point is a syllabus: each missed deduction is a pattern not yet internalized. A few sessions of that and 1-2-1 walls start leaping off the grid.

The compare-your-solve habit is the useful one. Finish a board as far as logic allows, run the solver, and diff the two. Divergences cluster into a small number of signature mistakes — usually a missed subtraction and a mishandled endgame probability. Knowing your own two is worth more than any generic tip list.

And for the perfectionists: some endgames are true 50-50s. The solver picks the better side and moves on, which is the correct emotional model for the game. A perfect player still loses coin flips.

What runs where, and what the solver is good for beyond winning

Everything runs locally in your browser. The board you enter never leaves your machine, and results update instantly as you add numbers and flags — which matters less for privacy drama and more for the practical bit: you can iterate on a live board quickly, mid-game, without any round trips.

Beyond the win, two uses stand out for people who do not care about scores. It is a clean demonstration of constraint logic — every revealed number is a tiny constraint-satisfaction problem, and watching the deductions chain is a persuasive intro to that kind of thinking. And it is an honest expected-value teacher: when logic stalls, it shows the actual odds rather than a feeling, which is a lesson that transfers well past this game.

The last use is verification. Solved a board by hand and want to check you never guessed when you did not have to? Run it through and compare. Clean boards are satisfying; knowing exactly where your one necessary guess was, and that it was necessary, is better.

Minesweeper solver questions

How does a Minesweeper solver work?

It applies the counting rules to every visible number: when a number's mine count is met by flags, the rest of its neighbors are safe; when unknowns must all be mines, it flags them. It loops those deductions until nothing new is provable, then ranks whatever is left by mine probability.

Can every Minesweeper board be solved without guessing?

No, and anyone who says otherwise has not met enough endgames. Most boards reduce to a small ambiguous region where two configurations are equally valid. The solver picks the lowest-probability cell there, which is the best anyone can do.

What is the 1-2-1 pattern in Minesweeper?

A 1-2-1 row against a wall means both mines sit under the 2 and the cells under the 1s are safe. It clears a whole wall in one look, which is why it is the first pattern worth drilling.

Does the solver run on a server?

No — all the logic runs in your browser, so the board stays local and the analysis updates instantly as you enter numbers and flags.

Is using a Minesweeper solver cheating?

During a live game, it removes the challenge, so avoid it there. As a trainer — studying missed patterns and probability calls after you stall — it is a fast improvement tool, which is what this page covers.

More WordSolverX tools

Photo of Preston Hayes

Written by

Preston Hayes

Preston Hayes is the credited editor for WordSolverX answer pages and puzzle strategy content. His work focuses on clear answer presentation, source verification, solver guidance, and fast corrections when a game changes.