STEP-BY-STEP SOLVER

Enter Your 15-Puzzle and Follow Every Move

Enter tiles 1–15 and the blank, check whether the 4×4 board is solvable, and follow a legal move sequence step by step in your browser.

3×3 & 4×4 grids supported Instant solvability check 100% local in your browser
3 × 3 BOARD 0 / 9 filled

Enter all tiles (0 for the blank) or load a random example.

1. Enter Tiles Tap a square, then a number (0 = blank)
2. Solve & Playback
Paste a board as text

Separate numbers with spaces, commas, or slashes — e.g. 1 2 3, 4 5 6, 7 8 _. Use 0 or _ for the blank.

How to Use the 15-Puzzle Solver

  1. Read the board row by row. Start at the top-left and finish at the bottom-right.
  2. Enter every position. Use tiles 1 through 15 once each and enter 0 for the blank.
  3. Find moves. The tool validates the position and checks its solvability before searching.
  4. 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.

SOLVER FAQ

Frequently Asked Questions

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 the solution search run in your web browser. You do not need an account or a separate app.

CONTINUE EXPLORING

Keep Going