How to Use the 15-Puzzle Solver
- Read the board row by row. Start at the top-left and finish at the bottom-right.
- Enter every position. Use tiles 1 through 15 once each and enter 0 for the blank.
- Find moves. The tool validates the position and checks its solvability before searching.
- Move the highlighted tile. Follow each step on your physical puzzle or app board.
The standard solved sequence is 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0. Direct entry and the on-screen keypad both use that same row-by-row order. Two-digit tiles advance the cursor automatically.
Read the 4×4 Solution Without Losing Your Place
The highlighted number is the tile that moves into the current blank. After making that move on your puzzle, select Next. Use Prev to recheck a step or Play to watch the sequence on the on-screen board.
Restart returns to the exact board you entered. That makes it easy to begin again if the physical board and the playback fall out of sync. A 4×4 board takes far longer to retype than a 3×3 one, so photograph your puzzle before you start entering numbers.
How 15-Puzzle Solvability Is Checked
For a 4×4 board, solvability depends on both the inversion count and the blank's row counted from the bottom. The combination stays in the same solvability class through every legal slide.
If two physical pieces were lifted and swapped, the resulting position may sit in the other class even when it looks almost complete. The solver reports that before starting the solution search, so you can verify the board entry immediately. The story behind that rule is in the 14-15 puzzle.
3×3 or 4×4?
This page is set to the 4×4 grid. If your puzzle has only eight tiles, switch to the 8 puzzle solver, where the answer is a shortest path. The unset version, which lets you pick either grid, is on the slide puzzle solver page. For the longest shortest solution a 4×4 board can have, see God's number for the 15 puzzle.