Lights Out

Lights Out puzzle online

Tap a wooden light to flip it and its four neighbours. Clear the whole board — classic Lights Out on 3×3, 5×5 or 7×7, with undo and a GF(2) hint. Free, no sign-up, made for touch.

Lights Out 5×5

Moves0Lit13Best—

Tap a light to flip it and its four neighbours (up, down, left, right). Turn every light off.

How to play Lights Out

  1. Look at the board. Lights that are on glow warm yellow; lights that are off sit as dark wood. The default board is 5×5; you can switch to 3, 5 or 7.
  2. Tap a light. Each tap flips that light and its four neighbours (up, down, left, right) — a plus-shaped cross. Corners have fewer neighbours.
  3. Turn every light off. The puzzle is solved when the whole board is dark. Your press count is shown above the board.
  4. Use Undo, New or Hint. Undo reverses the last press (toggles are their own inverse). New deals a fresh solvable board. Hint presses one cell from a linear-algebra solution over GF(2).

Lights Out strategy

  • Chase lights down a column: clear a lit cell by pressing the cell directly below it, then finish the last row with the linear solution.
  • Corners only flip three cells — they are powerful openers when a corner is lit.
  • Order does not matter and pressing twice cancels, so you never need more than one press per cell in an optimal plan.
  • If you are lost, Hint plays one press from a full GF(2) solution; games that used Hint do not update your best.

Why the puzzle is solvable (linear algebra over GF(2))

Each press is addition mod 2 on a set of cells. Stacking the 25 possible presses for a 5×5 board gives a 25×25 matrix over GF(2). Solving Ax = b with Gaussian elimination finds which cells to press. Our sample seed-20261023 board needed 14 presses in one particular solution, and replaying those presses leaves every light off.

That is also how Hint works — the same solver the unit tests replay on random reverse-generated boards.

More logic puzzles

Like planning ahead? Try peg solitaire, Tower of Hanoi, the 15 puzzle, or grid logic like Fillomino and LITS. Chinese speakers can play the 关灯游戏 version of this page with the same saved games.

FAQ

What are the rules of Lights Out?

You tap cells on a square grid. Each tap flips that cell and its orthogonal neighbours (the classic cross / plus shape). The goal is to turn every light off. Diagonals are not affected.

Is every Lights Out puzzle solvable?

Boards on this page are generated by starting from all lights off and pressing random cells — so every new puzzle is solvable. On a classic 5×5 grid the full linear system over GF(2) is always solvable for any starting pattern; on 3×3 and 7×7 some random patterns would be impossible, which is why we only deal reverse-generated ones.

How does the Hint button work?

It builds the 5×5-style influence matrix (pressing cell j flips cell i when they share a cross neighbour relation), then solves Ax = b over GF(2) with Gaussian elimination and presses one cell from that solution. For a sample 5×5 board our solver needed 14 presses in its particular solution.

Does Lights Out work on a phone?

Yes. The board is capped around 42svh so it fits above the fold on a phone, and each cell is a large tap target (at least about 44px on common widths for 5×5).

Is my game saved?

Yes, on this device only. Your current boards for 3×3, 5×5 and 7×7, move counts and personal bests stay in the browser under a local key — no account.

Is Lights Out free to play online?

Yes. All sizes, undo and hints are free in the browser with no download and no sign-up.