How to play the 24 puzzle
Tap or click a tile in the same row or column as the gap to slide it, and every tile between them slides along. With a keyboard, click the board and use the arrow keys. You win when the tiles read 1 to 24 from the top-left, row by row, with the gap in the bottom-right corner.
How to solve it: shrink the board
A 5×5 board looks overwhelming, but you never have to think about all of it at once. Each step turns it into a smaller puzzle you already know:
- Top row, 1 to 5. Place 1, 2 and 3 one at a time. Bring 4 and 5 in together: park 5 where 4 belongs, 4 right below it, walk the gap round to the top-right corner, then slide 5 right and 4 up.
- Left column, 6, 11, 16 and 21. Place 6 and 11, then bring 16 and 21 in together: park 21 where 16 belongs, 16 to its right, the gap below 21, then slide 21 down and 16 left.
- Now it's a 15 puzzle. The 4×4 square that's left solves exactly like a 15 puzzle: its top row, then its left column.
- Then an 8 puzzle. The last 3×3 square is an 8 puzzle: top row, left column, and rotate the final three tiles into place.
Never undo a finished row or column. If a tile seems stuck, move it away from the edge, line it up, and bring it back in with its partner. Our step-by-step sliding puzzle guide shows the moves in pictures.
Tips for big boards
- Work on one or two tiles at a time. Find the next tile, plan a route for it, then bring the gap to the right side of it.
- Slide whole lines. Tapping a tile three squares from the gap moves all three at once: fewer taps, faster times.
- Keep the gap close. Most wasted moves come from walking the gap across the board and back.
The 24 puzzle by the numbers
- 7,755,605,021,665,492,992,000,000 positions can be solved, about 7.76 septillion: half of the 25! ways to arrange the board.
- About 741 billion times as many positions as the 15 puzzle.
- The board is far too big for computers to check every position, which is why the 24 puzzle has long been used to test the best puzzle-solving programs.
Questions about the 24 puzzle
How do you solve the 24 puzzle?
Shrink the board. Solve the top row (1 to 5) and the left column (6, 11, 16, 21), and what's left is a 4×4 puzzle. Solve its top row and left column the same way, and finish the last 3×3 like an 8 puzzle.
How many positions does the 24 puzzle have?
About 7.76 septillion can be solved: 7,755,605,021,665,492,992,000,000, which is half of the 25! ways to arrange the board.
Is the 24 puzzle harder than the 15 puzzle?
It takes longer and needs more planning, but the method is the same. Once you can solve the 15 puzzle, you can solve the 24 puzzle.