Home › Sliding Puzzle

Sliding Puzzle

Slide the tiles to put the numbers in order from 1 to 15, with the empty space last. Tap a tile next to the gap to slide it, or use the arrow keys. Every shuffle is guaranteed solvable.

Moves
0
Time
0:00
Best moves
—

Solved!

Tap a tile beside the empty space to slide it in, or use the arrow keys.

About the Sliding Puzzle

The 15 puzzle is a classic sliding tile puzzle invented in the 1870s. Fifteen numbered tiles sit in a 4×4 frame with one empty space; slide tiles into the gap until they read 1 to 15 in order. Our shuffle always produces a solvable arrangement, so every game can be finished.

How to solve a sliding puzzle

The 15 puzzle looks like it needs cleverness, but it is really a fixed procedure. Solving it in a set order stops later moves from undoing earlier ones.

Only half of all possible arrangements of the tiles can be solved at all, which is why the shuffle matters — see below.

Frequently asked questions

Is every shuffle solvable?

Yes. The board is scrambled by making many random legal slides from the solved state, which can never create an unsolvable arrangement.

How is my best score measured?

By the fewest moves to solve. Your best is saved locally in your browser. The timer is shown for reference and to help you race yourself.

Why can only half the arrangements be solved?

Every legal slide changes the arrangement in a way that preserves a mathematical property called parity. Positions with the wrong parity simply cannot be reached, no matter how many moves you make — which is why the shuffle has to be generated carefully rather than at random.

Is there a fastest possible solution?

Yes. Any solvable 15 puzzle can be finished in at most 80 moves with perfect play. Solving it row by row takes many more than that, but it is a method a person can actually hold in their head.

Does it matter how fast I slide?

No. Nothing is timed against you mid-puzzle, so the count of moves is what your result reflects. Thinking before sliding costs nothing.