Is Every Lights Out Puzzle Solvable? (And the Chasing-the-Lights Trick)

Lights Out
Lights Out - toggle lights on a 5x5 grid until the board goes dark. Free, no signup.

Pressing a tile in Lights Out toggles itself and its four orthogonal neighbours. Two basic facts follow immediately: pressing the same tile twice cancels out, and the order in which you press tiles does not matter at all.

Why 75 percent of random boards are impossible

Each button press is a linear operation in modulo-2 arithmetic. The 25 button-press vectors on a 5x5 grid have a rank of 23 rather than 25 โ€” meaning there are two independent 'quiet patterns' (combinations of presses that change zero lights). Those two dependencies restrict reachable boards to 2^23 out of 2^25 states, or exactly one quarter.

How to solve any solvable 5x5 board: Chasing the Lights

  1. Scan row 1. For every lit square in row 1, press the square directly below it in row 2. Row 1 is now completely dark.
  2. Repeat for rows 2, 3, and 4: always press the square directly below each remaining light until only row 5 has lights left.
  3. Read the remaining pattern on row 5, press the corresponding starting buttons on row 1, and chase the lights down one last time to clear the entire board.

Common questions

Does the order of clicks matter in Lights Out?

No. Toggling is commutative (mod 2 addition), so clicking A then B produces the exact same board as clicking B then A.

Should you ever click the same tile twice?

Never in an optimal solution โ€” two clicks on the same tile cancel each other out completely.

Are all 4x4 Lights Out boards solvable?

No; 4x4 has rank 12 out of 16, meaning only 1 in 16 random 4x4 states is solvable. A 3x3 grid, however, has full rank 9 โ€” every 3x3 pattern is solvable.