Free Slide Puzzle Solver, Step by Step
Stuck on a sliding puzzle and can't see the next move? Type in the board in front of you and this solver checks whether it can be finished at all, then shows you a way to the end — one move at a time.
It handles the classic 3×3, where eight numbered tiles circle a single empty square, and the 4×4 board most people call the 15 puzzle. If you would rather work the position out by hand first, the guide to solve a slide puzzle without a solver covers the same method step by step. A German version of that method is in the Schiebepuzzle guide, and notes in Japanese on unsolvable patterns and the last tiles are in the Japanese guide.
Most people arrive here in one of three situations: a physical puzzle that is two moves from done, an app level that went wrong halfway through, or a board they suspect cannot be solved at all. The last case gets an answer before any search starts.
How to Enter Your Board
- Pick the grid. Choose 3×3 or 4×4 to match the puzzle in front of you.
- Enter the tiles. Tap a square and type its number, or use the on-screen keypad. Use 0 for the empty square — a solved 3×3 reads 1 2 3 4 5 6 7 8 0.
- Find moves. The arrangement is checked first; if it can't be reached by legal moves you are told straight away.
- Follow the moves. Next and Prev step through the solution, Play runs it, Restart returns you to the first move.
Enter the board exactly as it looks: left to right, row by row. A single transposed digit changes the answer completely, and a 4×4 position is slow to retype — photograph a physical puzzle before you start.
What Board Sizes Can It Solve?
This solver takes 3×3 and 4×4 numbered boards — the two sizes behind nearly every sliding puzzle you meet in a shop, a game app or a puzzle book. Pick the grid before entering the position. The goal is the same on both: tiles in reading order with the blank in the bottom-right corner.
Working on a 5×5 or larger board? The row-and-column method still applies, it just needs more passes.
On 3×3 the result is the shortest solution possible; on 4×4 you get a working one.
Why Some Boards Cannot Be Solved
A 3×3 sliding puzzle has 362,880 possible arrangements of eight tiles and one blank. Exactly half of them — 181,440 — can be reached by sliding from the solved position. The rest cannot be finished, however long you try.
The test is the inversion count: every pair of tiles where the larger number sits before the smaller one. On 3×3 an even count can be solved and an odd count cannot. Any two tiles swapped by hand flips that parity, which is why a puzzle that was solvable is not, after the pieces go back in the wrong order.
On 4×4 the row holding the blank enters the calculation too; the idea is the same. That parity check is explained on its own in the 14-15 puzzle.
A slide never changes whether a board is solvable. Every legal move pushes one tile into the gap, and no sequence of moves bridges the two sets of positions. The solver runs this check first, so an impossible board comes back as an answer rather than a failed search.
How to Finish the Last 2×2 Yourself
When only 5, 6, 8 and the blank are left, the rest of the puzzle is fixed and should stay fixed — touching a locked tile undoes work you have already paid for. The four remaining squares form a loop, and each move rotates that loop one step with the blank travelling inside it.
Pick a direction and stay with it. Keep turning the same loop to put 5, 6 and 8 in order without moving anything outside the 2×2.
If you are still up on the top row, the same logic applies one row earlier: bring 2 and 3 across as a pair. Forcing 3 into the top-right corner while 2 is still loose pushes 2 straight back down.
Slide Puzzle, 8-Puzzle, 15 Puzzle — Same Puzzle
If you are not sure which grid you are holding, the names give it away:
- 8-puzzle — the 3×3 board: eight tiles, one blank.
- 15-puzzle, number slide puzzle, gem puzzle, mystic square — the 4×4 board: fifteen tiles, one blank.
- Sliding tile puzzle and sliding puzzle — general names for both, and for larger boards too.
A search for a 15 puzzle solver, an 8-puzzle solver or a number slide puzzle solver all land on the same tool. Choose 4×4 for the 15 puzzle and 3×3 for the 8-puzzle. If you only need the 3×3, the 8-puzzle solver page covers that grid on its own; the 15-puzzle solver page does the same for 4×4.