Minesweeper Solver

Type in the position you are stuck on and this works out which covered cells are guaranteed mines and which are guaranteed safe. It proves its answers by enumerating every mine arrangement your numbers allow, so it reports a cell only when all of them agree — and tells you honestly when a position genuinely cannot be resolved.

covered mine safe region too large to prove
Click a cell to cycle it through 0–8, then click Solve. Leave every cell you cannot see as covered.

How to use it

  1. Set the width and height to cover the region you are stuck on. You do not need the whole board — just the numbers touching the cells in question, plus those cells.
  2. Click a cell to cycle it: covered → 0 → 1 → 2 … → 8 → covered. Enter every number you can actually see.
  3. Leave everything you cannot see as covered.
  4. Press Solve. Red cells are mines in every consistent arrangement; green cells are safe in every one.

How it decides

Each number you enter is a constraint: the covered cells touching it contain exactly that many mines. The solver groups the covered cells into connected components — sets of cells linked by shared constraints — and enumerates every possible mine arrangement within each component, discarding any that violates a number.

A cell is reported as a mine only if it holds a mine in every surviving arrangement, and safe only if it is empty in every one. If some arrangements put a mine there and others do not, the cell is genuinely undetermined and the solver says so rather than guessing. That is the same method used to verify the pattern answers in the pattern guide.

When it cannot answer

Two situations produce no result. The first is a true 50/50: two covered cells, one mine, and nothing anywhere that separates them. No solver resolves that, because the information does not exist — only a guess does. The second is a component larger than 22 covered cells, where exhaustive enumeration stops being practical; those cells are marked amber rather than reported as either answer. Add more of the surrounding numbers and the components usually break apart into solvable pieces.

If you would rather never guess

No-Guessing mode runs this kind of check before you ever see the board: every board is generated, tested for solvability by pure logic, and discarded if it would force a coin flip.

FAQ

Is there a Minesweeper solver?

Yes. Enter the numbers you can see and this solver works out which covered cells are definitely mines and which are definitely safe. It only reports a cell when every mine arrangement consistent with your numbers agrees, so it never guesses.

Why does the solver say a cell is undetermined?

Because the numbers you entered genuinely do not settle it. If two covered cells could each hold the mine and nothing on the board separates them, that is a true 50/50 and no solver can resolve it - only more information can.

Does using a solver count as cheating?

Not on a board you have already finished or on a position you are studying. It is a learning tool: work a position out yourself, then check it. Ranked games on this site record every move, so solver-assisted play is detectable.

Also useful: the 3BV calculator for how much work a board demanded, Is My Time Good? for where your time places, and the cheat sheet for every pattern on one page.