Chaoschemy

Puzzle · Logic

Lights Out: how to play and solve the puzzle

Press a rune lamp to flip it and its four neighbors, and turn every light off. Play the Lights Out game free on 3×3 to 7×7 boards, then learn the chasing method that solves any of them.

3×3 beginner · 5×5 classic · 7×7 expertFree · No account needed

Start a game

Play Lights Out

Pick a board size and press any lamp. Start with 3×3 to see how one press spreads, then try the classic 5×5 Lights Out puzzle.

Lights Out cover art

The Lights Out puzzle game, free in your browser: press a rune lamp to flip it and its neighbors until every light is off, on 3×3 to 7×7 boards. Always solvable, with par, hints and best scores.

How to play

  1. Some rune lamps start lit. The goal is a dark board: every lamp off.
  2. Pressing a lamp flips it and the lamps directly above, below, left and right of it. Lit lamps go dark and dark lamps light up. Lamps on the edge have fewer neighbors.
  3. Pressing the same lamp twice puts everything back, and the order of presses never changes the result, so a solution is just a set of lamps to press once each.
  4. Each press counts. Par is the fewest presses that clear the board; the timer starts with your first press and pauses when you choose Pause or leave the tab.
  5. Every board is made by pressing random lamps on a dark board, so it can always be switched off.
  6. Hint rings one lamp from the shortest way out. Restart brings back the starting lamps; New puzzle deals a fresh board.

Controls

Mouse
Click a lamp to press it.
Touch
Tap a lamp to press it. Each lamp is a large target, even on the 7×7 board.
Keyboard
Arrow keys or WASD move between lamps; Space or Enter presses the focused lamp. Tab reaches the size picker, Hint and Restart.

Score and progress

The press counter adds one for every lamp you press. The timer has no limit and stops when the board goes dark. Fewest presses and fastest time are saved separately for each board size in this browser when local storage is available; boards solved with a hint count as solved but do not set a best.

Tips

Stuck? The game opens your current board in the Lights Out Solver, which shows the fewest presses from there and replays them one at a time.

How to solve Lights Out by hand: chase the lights

You do not need to see the whole answer at once. Push the lights down to the bottom row, then use what is left to fix the top row.

  1. Chase down. For every lit lamp in the top row, press the lamp directly below it. The top row is now dark. Repeat for the second row, pressing under each of its lit lamps, and so on to the bottom.
  2. Read the bottom row. After a full chase only the bottom row can still be lit. On a 5×5 board there are only seven patterns it can show.
  3. Fix the top row. Each bottom pattern matches a set of top-row presses. On 5×5: if the bottom reads lit-off-off-off-lit (first and last), press the 1st and 2nd lamps of the top row; if it reads off-lit-off-lit-off, press the 1st and 4th; if it reads lit-lit-lit-off-off, press the 2nd.
  4. Chase again. After the top-row presses, chase the lights down once more. The board ends dark.
  5. Tidy up for par. A chase solution is rarely the shortest one. Any lamp you pressed twice cancels out, and on 4×4 and 5×5 some boards have several solutions; par counts the shortest.

Why some Lights Out puzzles cannot be solved

Every press is its own undo, and presses commute, so solving Lights Out is a system of equations over the numbers 0 and 1: one equation per lamp, one unknown per press. On some sizes the presses are not independent. On 5×5, three different sets of presses (besides pressing nothing) leave the board unchanged, which means only one light pattern in four can be switched off; on 4×4 it is one in sixteen. On 3×3, 6×6 and 7×7 every pattern has exactly one solution. Boards in this game come from random presses on a dark board, so they are always among the solvable ones.

Questions before you play

How do you play Lights Out?

Press a light to switch it and its neighbors above, below, left and right: lit ones go off and dark ones come on. The puzzle is solved when every light on the board is off.

How do you solve the Lights Out puzzle?

Chase the lights down. From the second row on, press the light under every lit light in the row above, until only the bottom row is lit. That bottom pattern tells you which top-row lights to press; press them and chase again to clear the board.

Is every Lights Out puzzle solvable?

Not on every board size. On 5 by 5 only one in four light patterns can be switched off, and on 4 by 4 one in sixteen. Every board in this game is made by random presses on a dark board, so it can always be solved.

What does par mean?

Par is the fewest presses that clear the board, found by checking every solution. Pressing a light twice cancels out and order never matters, so a perfect solve presses each needed light exactly once.

Can a solver finish my board?

Yes. Stuck at any point, open the board in the free Lights Out Solver from the game. It shows the fewest presses from your current position and replays them one at a time.