15 Puzzle: Slide the Numbers in Order
The 15 puzzle is a tray with fifteen numbered tiles and one gap. Slide the tiles until the numbers are in order. Start with easy 3 × 3 trays, then work up to the classic one.
How to play
- Tap a tile in the same row or column as the gap. It slides, and takes the tiles between along.
- Put the tiles in the order of the small model. The gap has its place too.
- On a keyboard, the arrow keys push a tile into the gap.
How to solve the 15 puzzle
You do not need to see many moves ahead. Solve it in parts and do not break what is finished.
- Place 1 and 2. This is easy, there is a lot of free space.
- Now 3 and 4, the only tricky part. Put 4 where 3 belongs and 3 right below it. Bring the gap to the corner, then slide 4 to the right and 3 up.
- Do the second row in the same way, with 5, 6, 7 and 8.
- Change direction. In the two last rows, finish the left column first (9 and 13), then the next one (10 and 14). It is the same trick, turned on its side.
- Three tiles are left: 11, 12 and 15. Turn them around the gap until they are right.

Most people get stuck at step 2, because they place 3 first and then cannot bring 4 in without pushing 3 out. Once you know the turn, every row of every size works, also in 5 × 5.
Is every 15 puzzle solvable?
No. If you take the tiles out and put them back at random, half of the positions can never be solved. The famous case is a tray that is perfect except that 14 and 15 are swapped. Sam Loyd offered $1,000 for a solution, but it had already been proved impossible in 1879. Loyd also claimed that the puzzle was his own idea. It was not: its history leads to Noyes Palmer Chapman, a postmaster in Canastota, New York.
Every tray on this page is mixed with legal moves only, so it can always be solved. The 4 × 4 has 10,461,394,944,000 solvable positions, and none of them needs more than 80 moves. For the 3 × 3, the longest takes 31.
Sizes, pictures and other orders
| Tray | Tiles | What to expect |
|---|---|---|
| 3 × 3 | 8 | A good start, often solved in a minute |
| 4 × 4 | 15 | The classic |
| 5 × 5 | 24 | The same method, more patience |
| 6 × 6 | 35 | For a quiet evening |
In Free play you can also change the order (columns, a snake or a spiral) or slide a picture. Use one of ours or a photo of your own. The photo stays on your device. With a picture, study the corners first, and turn the numbers on if you are lost.
Fewer moves or less time?
They are two different games. For time, use the method above without thinking. For few moves, look at where the gap must go before you move a tile, and try to place two tiles on one trip. The puzzle of the day counts moves, and it is the same for everybody.
Questions and answers
What is the fastest way to solve a 15 puzzle?
Row by row for the first two rows, then column by column for the rest. Learn the turn for the last two tiles of a row until you do it without thinking.
How many moves do you need?
Nobody needs more than 80 if they play perfectly. People who solve it row by row usually take more than that, and that is fine.
Can I play with my own photo?
Yes, in Free play. The picture is cut in your browser. It is not sent or stored.
Why do two tiles stay swapped at the end?
On a real tray, a tile was probably taken out and put back in the wrong place. Here it cannot happen. If two tiles look swapped, one of the rows above is not really finished.
Can I challenge a friend?
Yes. After a game in Free play, copy the link. Your friend gets the same tray and sees your result.
