lazycatthemes
Lights Out Solver

Lights Out Solver

Free lights out solver. Solves the 5x5 Lights Out board over GF(2), so it either returns a solution or proves the board has none.

Lights Out Solver tool

Click each cell to match your board. Lit cells become orange. The solver shows which cells to press.

Press the 0 cells marked with ✕ above (in any order).

How the Lights Out Solver works

Every press toggles a cross of neighbours, which makes the board a linear system over GF(2): each cell is a variable that is either 0 or 1, and the rule that every cell ends up correct is an equation. Gaussian elimination solves it exactly.

The useful property is completeness. If the system is consistent, the tool hands you a real solution; if it is not, it can prove no press sequence exists for that layout, instead of looping or handing back a partial answer.

Why the answer is not unique

Several distinct press patterns often clear the same board. The solver returns one valid set, and any of the others would work identically — there is no single correct pattern, only correct ones.

Frequently asked questions

Is the Lights Out Solver free?

Yes. No signup, no paywall, nothing to install.

Where does the solving happen?

In your browser. The board state never leaves the page, and the search uses the same 359,039-word dictionary where words are involved.

What if it cannot find a solution?

It tells you. Exhausting the search space is a real answer, not a failure to be hidden.