What the 15 Puzzle is
The 15 Puzzle is a square tray of four rows and four columns holding fifteen numbered tiles and one empty space. A tile beside the space can slide into it, which moves the space to where the tile was. The tiles start mixed up, and the goal is to slide them back into order: 1 to 4 across the top, 5 to 8 below, and so on, with the empty space in the bottom right corner.
Playing the 15 Puzzle on AllFun
AllFun 15 Puzzle has four trays, Easy 3×3, Classic 4×4, Big 5×5 and Huge 6×6, and a Daily 4×4 puzzle shuffled the same way for every player. Tap a tile to slide it; tap a tile further along the gap's row or column and the whole line moves together.
Each tile's number and edge are coloured by the row it belongs in, which makes the method below much easier to follow, and a tile glows once it is home. Hint shows the next slide of a full solution, and Undo steps back; three of each are free in every puzzle.
The rules
- Only tiles in line with the empty space can move, and they always move towards it.
- Tiles never jump over each other and are never lifted out of the tray.
- The puzzle is solved when every tile is in order and the space sits in the last corner.
- Your score is the number of tile moves and the time you took: fewer and faster is better.
Half of all possible orders can never be solved, because every slide keeps a hidden balance between the tiles. A tray with just two tiles swapped is one of those. Every puzzle our game deals you has been checked to be solvable.
The method, step by step
1. The top row
Bring tile 1 to the top left corner, then tile 2 beside it. Move the space around a tile to walk it where you want: to push a tile left, put the space on its left and slide it over. Leave the last two tiles of the row for the next step.
2. The last two tiles of a row
These two need a little trick. On a 4×4 tray, put tile 3 in the top right corner, where 4 belongs, then bring tile 4 directly under it. Now move the space to the left of tile 3 and slide 3 left, then 4 up. Both drop into place at once.
3. The left column
With the top row done, never disturb it again. Solve the left column the same way, tile by tile from the top; the last two use the same corner trick, turned on its side.
4. What is left
You now have a smaller tray. On a 4×4, that is a 3×3 puzzle: repeat the row and column steps, and the last few tiles fall into place by turning them around the space in a small loop. On 5×5 and 6×6 trays, keep peeling off a row and a column until a 3×3 is left.
Tips for fewer moves
- Plan with the space, not the tiles. Think about where the empty space has to go next; the tiles follow it.
- Push lines. Tapping a tile far along the gap's row moves several tiles in one go, which is quick even though each tile counts as a move.
- Look one tile ahead. While you place a tile, try not to push the next one further away.
- Use the colours. A tile whose colour does not match its row is a long way from home; deal with those first.
- Learn from the hint. Follow a few hints in a row and watch how the solver walks a tile into place.
A short history
The sliding puzzle appeared in the 1870s and soon became a worldwide craze, sold as a little wooden box of numbered blocks. Prizes were offered for solving a tray with only 14 and 15 swapped, a puzzle that mathematicians soon proved impossible. It has been a favourite example in mathematics and computer science ever since.
15 Puzzle FAQ
How many moves does a 15 Puzzle take?
The shortest possible solution of the hardest 4×4 tray is 80 moves. A person using the method above usually needs between 80 and 150.
Is the 8 puzzle easier?
Much easier: it never needs more than 31 moves, and it is the best way to practise the end of a bigger puzzle.
Why does my last row look almost done but stay wrong?
Usually because two tiles were placed one by one. Take them out and use the corner trick to turn them in together.
Ready for a game? AllFun 15 Puzzle is free and opens right here in your browser.
Play 15 Puzzle


