Enter Your 15-Puzzle and Follow Every Move
Copy the 4×4 board row by row, using 0 for the empty square. The solver validates the position, checks whether it can reach the standard goal, and shows a legal sequence you can follow tile by tile.
Tap a square and type its number. Enter 0 for the blank. Press Next after entering tile 1; two-digit tiles advance automatically.
- Enter 16 remaining cells, including the blank square.
The 4×4 board is selected. Enter tiles 1–15 and use 0 for the blank.
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.
- Select Solve. 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, the on-screen keypad, and full-sequence paste all use that same row-by-row order.
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.
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.
15-Puzzle Solver FAQ
What is the 15 puzzle?
The 15 puzzle is a 4×4 sliding board with tiles numbered 1 through 15 and one empty square. The standard goal places the numbers in reading order with the blank at the bottom right.
How do I enter the blank square?
Use 0 for the blank. Enter all 16 positions from left to right, starting with the top row and ending with the bottom row.
Can every 15-puzzle position be solved?
No. A 4×4 board has two solvability classes, and legal tile moves cannot cross from one class to the other. The solver checks the board before searching for moves.
Does the solver show every move?
Yes. It highlights the next tile to slide into the blank and provides controls to move forward, go back, restart, or play the sequence automatically.
Where does the calculation run?
Board validation and solution search run in your web browser. You do not need an account or a separate app.