How to Solve the 15 Puzzle (Sliding Puzzle) Step by Step

By Yashkumar Savaliya · December 1, 2026

The 15 puzzle is a small square tray with fifteen numbered tiles and one empty space. You slide tiles into the gap until they read 1 to 15 in order. It became a huge craze in the United States and Europe around 1880, and it is still one of the best-known puzzles in the world. It looks hard, but there is a reliable method that anyone can learn.

🔢

Follow along
Open the free 15 puzzle and solve it with this method.

Play free

The goal

Arrange the tiles in order: 1-2-3-4 in the top row, 5-6-7-8 in the second, 9-10-11-12 in the third and 13-14-15 in the bottom row, with the empty space in the bottom-right corner.

Step 1: Solve the top row

Place tiles 1 and 2 in their positions first - this is usually easy. The tricky part is placing 3 and 4 together, because putting 3 in place first often leaves no room for 4. Instead, move 4 into the position where 3 belongs, then move 3 directly below it. Now bring the empty space around and slide them both into place with one smooth rotation: 4 moves right into the corner and 3 follows it.

Step 2: Solve the second row

Do exactly the same for tiles 5 to 8. Never disturb the top row - if you have to move a solved tile temporarily, put it back straight away.

Step 3: Solve the last two rows together

With two rows left, work column by column instead of row by row. Place 9 and 13 in the first column using the same "pair" trick: put 13 where 9 belongs, 9 next to it, then rotate them into place. Then do 10 and 14. Finally, the last four tiles (11, 12, 15 and the gap) can be cycled around until they fall into place.

Why some 15 puzzles cannot be solved

If you take the tiles out and put them back randomly, exactly half of all arrangements are impossible to solve. The puzzle writer Sam Loyd later claimed he had offered a large prize for solving a version with only the 14 and 15 swapped - a challenge that is mathematically impossible, so no prize could ever be won. Our game shuffles the tiles by making random legal moves from the solved position, so every puzzle can be solved.

Tips for faster solving

  • Think about moving the empty space, not the tiles. Plan where the gap needs to go.
  • Learn to "cycle" three tiles around a 2x2 square - it is the core move of the whole method.
  • Once you can solve it reliably, start counting your moves and try to reduce them.

Different sizes

The same method works on every size. Warm up on the 3x3 8-puzzle, master the 4x4 15 puzzle, and then take on the 5x5 24-tile puzzle.

🎮 Play the games from this article