Lights Out Solver

Stuck on a Lights Out puzzle? Copy the lit squares onto this grid and the solver marks the shortest set of presses instantly. It also tells you when a pattern cannot be solved at all.

How to play Lights Out Solver

Controls

Tips

FAQ

How does the Lights Out solver work?

Each press flips a fixed set of lights, so the puzzle is a system of on/off equations. The solver eliminates them the same way you would solve simultaneous equations, using arithmetic where 1 + 1 = 0, then picks the answer with the fewest presses.

Why does the solver say there is no solution?

On some board sizes, including 4×4 and 5×5, certain patterns cannot be cleared no matter what you press. Check that you copied the lights exactly; a single wrong square can make a puzzle unsolvable.

Does the order of presses matter?

No. Every press simply flips the same lights, so you can press the marked squares in any order.