How to solve a 15 puzzle: easy step-by-step method

Almost everyone gets stuck on the 15 puzzle in the same place. The 1 and the 2 go in without a fight. Then you put the 3 next to them and find there is no way to get the 4 past it. Pull the 3 out to let the 4 through, and now the 3 has nowhere to go.
Learning how to solve a 15 puzzle mostly means learning the fix for that one moment. After that the rest is a routine you can repeat on any board.
The method in four lines
Solve it row by row from the top, and never place the last tile of a row on its own.
- Top row: place 1 and 2, then bring 3 and 4 in together.
- Second row: the same, with 7 and 8 as the pair.
- Last two rows: work column by column from the left. 13 and 9 first, then 14 and 10.
- Rotate the three tiles that are left until they drop into place.
You can try each step as you read on our free 15 Puzzle, which runs in the browser on a phone or a computer.

How the 15 puzzle works
The board is a 4 by 4 frame holding fifteen numbered tiles and one empty space. A tile next to the space can slide into it, and that is the only move there is. The goal is to get the numbers in reading order, 1 to 15, with the space in the bottom right corner.
Because only the tiles around the space can move, a 15 puzzle is really about steering the gap. If you want the 6 to go left, your job is to walk the gap around to the left side of the 6. Walk it around the tile, never through it, and never through anything you’ve already finished.
The method below shrinks the board as you go. Finish the top row, then pretend it isn’t there. Finish the second row and you’re left with a strip two rows deep. That strip gets filled from the left, a column at a time.
Step 1: solve the top row
Place 1 and 2
Bring the 1 to the top left corner, then the 2 next to it. Nothing clever is needed. There’s plenty of room and nothing to protect yet.
Bring 3 and 4 in as a pair
This is the trick the whole method hangs on. Don’t place the 3. Do this instead:
- Put the 4 where the 3 belongs, third from the left in the top row.
- Put the 3 directly underneath the 4.
- Bring the gap to the top right corner.
- Slide the 4 into the corner, then slide the 3 up.
Both tiles land at the same time, and the 1 and the 2 never move.
There is one way to spoil it. If the 3 happens to be sitting in the top right corner when you park the 4, the row reads 1 2 4 3. It looks one move from done, and it isn’t close. Don’t try to squeeze the tiles past each other. Take both of them down into the lower half of the board, anywhere at all, and bring them back up as a pair: 4 first, then 3 under it.
Step 2: solve the second row the same way
Place the 5 and the 6 the ordinary way. Then repeat the trick with the next pair: put the 8 in the 7’s spot, the 7 under it, the gap at the end of the row. Slide the 8 across, slide the 7 up.
Half the board is done now, and you won’t touch it again.
Step 3: solve the last two rows column by column
This is where most people go wrong, because the obvious next move is a trap. If you finish the third row, the bottom row turns into a single corridor where no tile can pass another.
So stop thinking in rows. Fill the left column of the strip first, with the same pair trick turned on its side. The pair is 9 and 13.
- Put the 13 where the 9 belongs, at the left end of the third row.
- Put the 9 right beside it.
- Bring the gap to the bottom left corner.
- Slide the 13 down, then slide the 9 left.
Then do it once more for the next column. The 14 goes where the 10 belongs, the 10 sits to its right, and the gap goes under the 14. Slide the 14 down and the 10 left.
The earlier warning applies here too. If the 9 is stuck in the bottom corner while the 13 sits above it, back both tiles out to the right and set the pair up again.
Step 4: rotate the last three tiles into place
Only 11, 12, 15 and the gap are left, sharing a two by two square. Move the gap around that square in a circle and the three tiles chase each other around it. Keep circling. Within a dozen moves the 11 and 12 are on top, the 15 is under the 11, and the gap drops into the corner.
That’s it. If you’d like to run the whole thing again while it’s fresh, shuffle a new board.
Why some 15 puzzles are impossible
Sometimes you reach the end and find two tiles swapped, usually 14 and 15, with everything else perfect. You didn’t make a mistake. That board could never have been solved.
Exactly half of all the ways to arrange the tiles are dead ends. Each slide changes the arrangement in a way that keeps it in its own half, so a board that starts in the wrong half stays there however long you try. Two American mathematicians, Johnson and Story, proved this in 1879. It is the reason a famous $1,000 prize for swapping the 14 and 15 was never paid, a story we tell in the history of the 15 puzzle.
You only meet a dead board in two situations. One is a physical puzzle where somebody popped the tiles out and pushed them back in at random. The other is a careless app that deals the tiles like cards. Our 15 Puzzle shuffles by making real moves from the solved position, so every game it gives you can be finished.
Tips to solve it faster
- Move whole lines. In our version, tapping any tile in the same row or column as the gap slides everything in between at once. That’s one tap for two or three moves.
- Don’t be tidy too early. The 1 doesn’t have to be home before you start bringing the 2 over. If a tile you’ll need soon is passing by, take it along.
- Circle the short way. In the last square, look before you spin. One direction is always quicker than the other.
- Use the keyboard. On a computer the arrow keys beat the mouse.
For a sense of what’s possible, the chess champion Bobby Fischer was timed solving a 15 puzzle in 17 seconds and showed it off on The Tonight Show in 1972.
Does this work on 3x3 and 5x5 sliding puzzles?
Yes. The method doesn’t care how big the board is.
On the 3 by 3 version, often called the 8 puzzle, place the 1, then bring in 2 and 3 with the pair trick (3 in the 2’s spot, 2 under it). Bring in 4 and 7 as a sideways pair and spin the last three tiles.
On a 5 by 5 board you fill rows until two are left, then go column by column. It takes longer, and there’s nothing new to learn. Picture sliding puzzles work the same way too, once you’ve worked out which piece belongs where.
FAQ
Is every 15 puzzle solvable?
No. Exactly half of all possible arrangements can’t be solved. In practice you only run into one if the tiles of a physical puzzle were taken out and put back at random, or if an app shuffles badly. Any board that was mixed up by sliding tiles can be slid back.
Why is my 15 puzzle impossible to finish, with 14 and 15 swapped?
Because that arrangement belongs to the unsolvable half. If everything is in order except two neighboring tiles, no series of slides will fix it. On a physical puzzle, lift the two tiles out and swap them by hand. In an app, start a new game, and consider a different app.
How many moves does it take to solve a 15 puzzle?
No solvable board needs more than 80 single moves, and only 17 boards need all 80. That comes from a computer search finished in 1999. The row-by-row method takes more moves than the shortest route. What you get in exchange is that you never have to plan far ahead.
What is the fastest way to solve a 15 puzzle?
The row-by-row method is the fastest to learn. To get quicker with it, plan the next two tiles while you’re still moving the current one, slide whole lines in one go, and practice until the pair trick takes no thought at all. Speed comes from fewer pauses, not from a secret technique.
Does the same method work for a 3x3 or 5x5 sliding puzzle?
Yes. Solve rows from the top until two rows are left, then fill columns from the left, and rotate the last three tiles. A 3 by 3 board only has one row to do before you switch to columns. A 5 by 5 board has three.
If sliding things into place is your kind of puzzle, try Sliding Block Puzzle: Jewels or Jewel Slider, where you slide blocks sideways to complete rows. There are more in our puzzle games, and some of them play right in the browser.