Lights Out
Turn every light off. Each press flips its neighbours.
Presses
0
Par
–
Time
0:00
Best
–
Lights on
0
Presses needed
0
Lights out!
5×5 · Medium
Settings
Play Lights Out online
Lights Out is a logic puzzle on a square grid of lights. Some start on, some start off, and your goal is to switch every one of them off. The catch: pressing a light flips it and the lights directly above, below, left and right of it, so fixing one light usually disturbs its neighbours. This free version runs in your browser on a phone, tablet or computer. You can play the classic 5×5 board or anything from 3×3 to 7×7 in three difficulties, try the daily puzzle, see the par (the fewest presses that solve each board), take a hint, undo presses, and send a friend a link to the exact puzzle you played. If you're stuck on a Lights Out puzzle somewhere else, the solver works out the shortest answer for any board you copy in.
How to play Lights Out
- Pick a board size and a difficulty, or choose Daily for today's puzzle. Lit squares glow; dark ones are already off.
- Press a light. It flips together with its up, down, left and right neighbours. A corner press flips three lights, an edge press four and any other press five.
- Keep going until the whole board is dark. Presses counts your moves and Par shows the fewest presses that solve the puzzle.
- The clock starts with your first press. When the last light goes out you'll see your presses, your time and how you did against par.
- New deals another puzzle of the same size and difficulty; Restart puts the lights back the way this one started.
Controls
| Action | Mouse or touch | Keyboard |
|---|---|---|
| Press a light | Tap or click it | Arrow keys to move, Enter or Space to press |
| Take back a press | Undo | U or Z |
| Get a hint | Hint | H |
With a mouse, hovering over a light outlines the lights a press would flip, which makes it easy to plan a move before you commit to it.
Board sizes and difficulty
The rule is the same on every board, but the sizes behave very differently. On some sizes every pattern of lights can be switched off; on others most patterns can't, and the ones that can have several different solutions. The figures below were worked out exactly by the same solver the game uses.
| Board | Solvable patterns | Solutions per board | Hardest par | What it's like |
|---|---|---|---|---|
| 3×3 | All 512 | 1 | 9 | A warm-up. Good for learning how one press spreads. |
| 4×4 | 4,096 of 65,536 (1 in 16) | 16 | 7 | Small but tricky: many shortcuts, few patterns solvable. |
| 5×5 | 8,388,608 of 33,554,432 (1 in 4) | 4 | 15 | The classic handheld size, and today's daily puzzle. |
| 6×6 | Every pattern | 1 | 36 | Long chases; corners and edges need planning. |
| 7×7 | Every pattern | 1 | 49 | The marathon board. |
Difficulty sets how many presses a deal needs. On 5×5, Easy puzzles have a par of 3 to 6, Medium 7 to 10 and Hard 11 or more; the other sizes scale the same way. Every puzzle is dealt by pressing lights on a dark board, so it can always be solved.
How to solve Lights Out: the light-chasing method
You don't need to see the whole solution in advance. Light chasing is a mechanical routine that clears any solvable board, and it's how most people first beat the 5×5 puzzle:
- Chase down. For every lit light in the top row, press the light directly beneath it. That switches the top-row light off without touching the rest of the top row. Do the same for each row in turn, down to the second-to-last.
- Read the bottom row. Only the bottom row can still have lights on. On a 5×5 board it will show one of the seven patterns in the table below.
- Fix the top, chase again. Press the top-row lights the table lists, then chase the lights down exactly as before. The board goes dark.
| Bottom row lights still on | Press these top-row lights |
|---|---|
| 1 and 5 | 1 and 2 |
| 2 and 4 | 1 and 4 |
| 1, 2 and 3 | 2 |
| 3, 4 and 5 | 4 |
| 1, 3 and 4 | 5 |
| 2, 3 and 5 | 1 |
| 1, 2, 4 and 5 | 3 |
Light chasing is reliable rather than short. On this game's 5×5 Medium and Hard deals we measured a median of 20 presses for the full routine, against pars of 7 to 15, so once the routine feels automatic, start looking for shortcuts before you chase.
A worked example
Take a 3×3 board with only the centre light on. Pressing the centre would switch it off but light the four squares around it. Instead, press the centre and its four neighbours, five presses in all. Count what each light receives: the centre is flipped five times (an odd number, so it goes off), every edge light twice and every corner twice (even numbers, so they end as they started). That's the whole idea behind solving Lights Out: a light ends up off when it's flipped an odd number of times if it started on, and an even number of times if it started off.
Tips for shorter solves
- Order never matters. Pressing A then B leaves the same board as B then A, so plan the set of presses, not a sequence.
- Double presses cancel. Pressing a light twice does nothing, so a solution never needs the same light twice and a misclick is free to fix.
- Spot pluses. A plus-shaped group of five lit squares goes out with one press in its middle; on an edge it's a T of four, in a corner an L of three.
- Work from the corners. A corner light can only be flipped by three presses (itself and its two neighbours), so corners constrain the solution most.
- Compare with par. If you finish well over par, try Restart and look for a shorter set. The hint always points to a press from a shortest solution.
Common mistakes
- Chasing upward. Light chasing only works top to bottom (or consistently in one direction). Pressing above a light disturbs rows you've already cleared.
- Pressing the lit light itself. It switches that light off but flips up to four others, often making things worse.
- Assuming a stuck board is impossible. Every deal here is solvable. If the bottom row shows a pattern not in the table, a press was missed while chasing.
Lights Out solver
Many video games and puzzle books include Lights Out puzzles. Choose Solver, pick the size, and tap each light that's on in your puzzle; in the solver a tap switches only that light, so you can copy a board exactly. The dots show the shortest set of presses, and pressing those lights once each, in any order, switches the board off. If your pattern can't be solved, the solver says so: on 5×5 only 1 in 4 patterns can be switched off, and even a single lit corner is impossible there. When that happens, check every row of your copy. When you're done, Play this board turns it into a puzzle you can solve yourself.
Par, hints, the daily puzzle and statistics
Par is the fewest presses that solve the puzzle, found exactly by the solver. On 4×4 and 5×5 several different sets of presses solve the same board, and par is the size of the smallest. Hint lights up one press from a shortest solution; following hints all the way solves the board in exactly par. Show the solution (in Settings) marks every press of a shortest solution and updates as you play. Solves that used either don't set records. Daily gives everyone the same 5×5 puzzle each day; your first solve counts toward your daily streak. Stats keeps, for each size and difficulty, the puzzles you've played and solved, solves at par, your best time, your fewest presses and your average time. Everything, including the puzzle you're playing, is stored in this browser only.
The maths behind Lights Out
Two facts make Lights Out a maths puzzle: presses can be done in any order, and two presses of the same light cancel. So each light is either pressed or not, and whether a light ends up on depends only on whether it's flipped an odd or even number of times. That turns the puzzle into a system of equations with just two values, 0 and 1, where 1 + 1 = 0. Solving those equations is how the game finds par and how the solver handles any board. On some board sizes, certain sets of presses change nothing at all; on 5×5 there are three such "quiet" sets. Adding one to a solution gives another solution, which is why every solvable 5×5 board has four solutions, and why only one pattern in four can be solved.
A little history
Tiger Electronics released Lights Out in 1995 as a handheld game with a 5×5 grid of light-up buttons and a set of built-in puzzles. Earlier electronic games had played with similar toggling ideas, but Tiger's version gave the puzzle its name, and recreational mathematicians have studied its linear algebra ever since.
More puzzle games
Like grid puzzles with a clean rule? Try the sliding puzzle, where tiles slide into a gap, or a daily Sudoku and Minesweeper for pure deduction. Find your way through a fresh maze, merge tiles in 2048, or give your memory a workout with Memory Match and Simon.
Frequently asked questions
Is every Lights Out puzzle solvable?
No. On the classic 5×5 board only 1 in 4 of all on/off patterns can be switched off, and on 4×4 only 1 in 16. On 3×3, 6×6 and 7×7 every pattern can be solved. Every puzzle this game deals is built by pressing lights on a dark board, so it is always solvable; the solver tells you when a pattern you copied from somewhere else can't be.
What is the trick to solving Lights Out?
Light chasing. Working down from the top row, press the light directly below every light that is on. Only the bottom row can still be lit; look its pattern up in the table on this page, press the top-row lights it lists, and chase the lights down once more. The board goes dark every time.
What is the fewest number of moves to solve Lights Out?
It depends on the board, which is why each puzzle here shows its par: the fewest presses that solve it, worked out exactly. Any solvable 5×5 board can be cleared in 15 presses or fewer, any 4×4 board in 7 or fewer and any 3×3 board in 9 or fewer. On 5×5 the board with every light on is one of the hardest: it needs all 15.
Does the order of presses matter?
No. Pressing the same lights in any order leaves the same board, and pressing a light twice cancels out. So a solution is really a set of lights, each pressed once. That is also why the solver can mark the presses as dots without numbering them.
How do I solve a Lights Out puzzle from another game?
Open Solver, pick the board size, and tap every light that is on in your puzzle. In the solver a tap switches only that one light. The dots then show which lights to press, in any order, to switch the board off. It works for any puzzle that uses the standard rule: a press flips a light and the lights above, below, left and right of it.
Why does the solver say my board can't be solved?
On 4×4 and 5×5 boards most patterns genuinely have no solution. If a puzzle from another game is reported as unsolvable, the likeliest cause is a light copied wrongly, so check each row. Some games also use different rules, such as presses that flip diagonal neighbours or lights with more than two states; this solver only covers the standard rule.
What does par mean in Lights Out?
Par is the smallest number of presses that switches the board off, worked out exactly for every puzzle. Finishing in par is a perfect solve. Light chasing always works, but it usually takes more presses than par.
Can I undo a move?
Yes. Undo takes back your last press, as many times as you like, and Restart puts every light back the way the puzzle started (the clock keeps running). On a keyboard, U or Z undoes. Pressing the same light again also reverses a press exactly.
Is there a daily Lights Out puzzle?
Yes. Choose Daily for today's 5×5 puzzle, which is the same for everyone, so you can compare presses and times with friends. Your first solve each day counts toward your daily streak, and a new puzzle starts at local midnight.
How do I send a puzzle to a friend?
Press Share. It opens your phone's share sheet or copies a message with a link, and the link opens exactly the same board for your friend. Shared puzzles can be played by anyone but don't count toward statistics.
Are my progress and statistics saved?
Yes, in your browser's local storage on this device: the puzzle you're playing on each board size, today's daily, the board in the solver, and your statistics and best times. Nothing is uploaded, and clearing this site's data resets it.
Who invented Lights Out?
Lights Out was released by Tiger Electronics in 1995 as a handheld game with a 5×5 grid of lit buttons. Its rule is simple enough that mathematicians soon worked out exactly which boards can be solved, using linear algebra with just two values, on and off.
More games to play
Free, browser-based, and instant — no installs or accounts.