Lights Out

Press a square and it flips itself and its neighbours, on to off or off to on. The board starts lit, and the puzzle is getting every light out before the moves run out.

How to play

Only the four squares directly touching yours flip with it — the diagonals stay as they are, which is what makes the corners awkward.

  1. Press any square It flips, and so do the squares above, below, left and right of it.
  2. Watch the count Still on tells you how many lights are left. Moves left is your budget.
  3. Work from the top down Deal with the top row first, then the next, using the row below to fix the one above.
Full instructions
In depth

Flipping squares to darkness

How the toggle mechanic works, why only one board in four is actually solvable, the chase technique that cracks any size grid, and how to read the bottom row when the rest of the board is already dark.

Screenshot: How to play Lights Out
How to play Lights Out as it appears when the page opens.

A puzzle about neighbours

Lights Out gives you a grid of squares, some lit and some dark. Press any square and it flips, but so do the squares directly above, below, left and right of it. If a square was on it turns off. If it was off it turns on. Your goal is to make every square dark before you run out of moves.

The catch is that every press changes five squares at once, or fewer along the edges where some neighbours are missing. A corner press flips three squares. An edge press flips four. A centre press flips five. You cannot touch one square without disturbing the ones around it, and that is what makes the puzzle interesting.

The board sizes and controls

Three levels are on offer. Easy uses a four-by-four grid with sixteen squares. Normal is five-by-five, the classic size for this puzzle, with twenty-five squares. Hard stretches to six-by-six and thirty-six squares.

Controls are simple. Click or tap a square to press it. That is the only action in the game. There are no dragging gestures and no keyboard shortcuts to learn. The board scales to fit your screen, so it works the same way on a phone as on a wide monitor.

A button labelled How do I start shows a short hint about the chase technique. Picking a different level from the dropdown and pressing New game starts a fresh puzzle at that size. Your best score at each level is tracked and shown when you beat it.

What the scoreboard tracks

Three numbers sit above the board. Still on counts how many lights remain. Moves used counts your presses so far. Moves left is your budget.

The move limit is not a guess. Each puzzle is built from a known number of presses, so the shortest possible solution is known before you start. The limit adds a margin on top of that, usually around eighty percent extra, so a clean solve always fits without trouble. When you clear the board, the win message tells you both your count and the shortest path, so you can see how close you came to perfect.

Why every puzzle here can be solved

Not all Lights Out boards have an answer. On a five-by-five grid, roughly three boards out of four are impossible no matter what you press. Scattering lights at random would hand out unsolvable puzzles most of the time.

The generator avoids that trap by building backwards. It starts from a board where every square is dark, then presses a random set of squares. Because every press can be undone by pressing the same square again, whatever the generator did can always be reversed. The board you receive is guaranteed to have at least one solution.

This also means the puzzle knows its own par. The generator counts how many distinct squares it pressed. If it pressed the same square twice those cancel out, so the real count of squares you need to press is never more than what the generator used.

The chase technique

The most reliable strategy for any board size is called the chase. It works top to bottom, one row at a time, and turns a confusing grid into a set of small problems.

Start with the top row. For every lit square in that row, press the square directly below it. That press flips the lit square off, which is what you want, and it also flips the square you pressed and its own neighbours, which you will deal with later. Move to the second row and do the same thing: wherever a light is still on, press the square below it.

Keep going row by row until you reach the bottom. By this point, every row except the bottom one is guaranteed to be dark. The bottom row may still have some lights on, and those form a pattern you can handle separately.

The beauty of this method is that it does not ask you to see the whole board at once. Each row is its own small task. You look at one row, press below each of its lights, then forget about it and move on.

Finishing the bottom row

After chasing the grid from top to bottom, the bottom row is the only place with lights left. The patterns that can appear there are limited, and each one has a fix.

The fix is not to press squares in the bottom row itself. Instead, you go back to the top row and press certain squares there, then chase the whole board again. Which squares you press at the top depends on which pattern the bottom row ended up with.

On the four-by-four board, the bottom row patterns are short and there are only a few of them, so trial and error works fast. On the five-by-five board the standard patterns are well documented. The important thing is that the answer always exists. If you chased correctly, one of the known top-row adjustments will clear the bottom.

For a first attempt, do not worry about the bottom-row fix. Just chase top to bottom and see what you get. You will start to notice the same bottom-row patterns coming up again, and eventually you will remember which top-row presses fix each one.

Order does not matter

One fact simplifies everything about this puzzle. Pressing a square twice puts it back exactly where it started. That means pressing the same square three times is the same as pressing it once, and pressing it four times is the same as not pressing it at all.

Because of this, the solution is a set of squares, not a sequence. It does not matter which order you press them in. Press them left to right, right to left, or in any other order, and the final board will be the same. If you press square A and then square B, the result is identical to pressing B first and then A.

This has a practical consequence. If you made a press that you know was wrong, you can undo it by pressing the same square again. You lose two moves from your budget, but the board returns to where it was.

Mistakes new players make

The most common mistake is pressing randomly and hoping for the best. Each press affects up to five squares, so random tapping creates chaos faster than it fixes anything. The chase technique works because it is systematic, not because it is clever.

  • Trying to fix one corner without a plan. A corner is three presses away from dark, and each of those presses disturbs other squares. Fixing one corner often lights up two others.
  • Forgetting that edge and corner presses flip fewer squares. A press in the centre flips five squares, but a press in the corner only flips three. The edges behave differently from the middle, and the corners differently from the edges.
  • Giving up when the bottom row is not dark after one chase. That is normal. The bottom row tells you what to change at the top, and a second pass finishes the job.
  • Pressing the same square over and over thinking it will cycle. It only toggles. Two presses undo each other completely, so you are wasting moves in pairs.
  • Ignoring the par number after a win. The win message shows the shortest possible solution. Comparing your count to par is the best way to judge whether your technique is tight or loose.

Thinking a few presses ahead

Once the chase technique is comfortable, you can start thinking about efficiency. The par for most five-by-five puzzles is between five and eight presses. If the chase takes you fifteen, you probably pressed squares that cancelled each other out along the way.

One habit that helps is to scan the board before you start. Count the lights. If only three or four are on, the solution might be just two or three presses. Try to find a single press that turns off two or three lights at once. On a sparse board, one good press near a cluster can clear most of it.

On denser boards, the chase is still the safest route, but look for clusters of four lights in an L shape or a line. Those patterns often collapse with two well-placed presses instead of the four the chase would use.

Everything stays on your machine

The puzzle runs entirely in your browser. No board is fetched from a server, no moves are sent anywhere, and no account is needed. Your best scores sit in your browser's own storage on this device and are never uploaded. If you close the tab, every trace of the game is gone. You can load the page, disconnect from the internet, and keep playing without a difference.

Help

How to play Lights Out

Only the four squares directly touching yours flip with it — the diagonals stay as they are, which is what makes the corners awkward. Pressing the same square twice puts the board back exactly as it was, so a wrong move costs you two of your allowance rather than the puzzle.

Press any square

It flips, and so do the squares above, below, left and right of it.

Watch the count

Still on tells you how many lights are left. Moves left is your budget.

Work from the top down

Deal with the top row first, then the next, using the row below to fix the one above.

Order does not matter

Pressing the same squares in a different order gives the same result, so you cannot press things in the wrong sequence.

Turn them all off

Clear the board inside the limit to win.

Runs on your device

The whole game is played inside this page. Nothing is uploaded, there is no account, and your best score is stored in this browser only. Once the page has loaded it works offline.

Good to know

The chase technique

Go down the board pressing the square directly below every light still on in the row above. By the bottom row only a handful of patterns remain, and each has a known fix.

Pressing twice does nothing

Two presses of the same square cancel out exactly. So the solution is a set of squares, not a sequence.

Every puzzle can be solved

Boards are built by starting from all-off and pressing random squares, so a solution always exists. Scattering lights at random would give an impossible board three times out of four.

The move limit is honest

It is based on the shortest possible solution plus a margin, so a clean solve always fits comfortably.

Common questions

Is it free?
Yes — no account, no limit on how many games you play, and no ads inside the game area itself. Ads on the page around it pay for the site.
Does it work on a phone?
Yes. The board scales to your screen and the controls are made big enough to use with a thumb.
Is every puzzle solvable?
Yes. Each is built backwards from a solved board, so a solution is guaranteed to exist. Only about one in four random arrangements can be solved at all, which is why generating them properly matters.
What is the trick?
Work top to bottom: press the square below each light still on in the row above. That clears everything except the bottom row, which then has a small number of known patterns.
Does the order of my presses matter?
No. Pressing a square twice undoes it, so only which squares you press matters, not when.
Where is my best score kept?
In your browser on this device. It is never sent anywhere and will not follow you to another computer.