🔀 Sliding Puzzle

Click a tile next to the gap to slide it

🔢 Moves: 0 0:00
🔥 Streak: 0 🏆 Best: ---

How to Play the Sliding Puzzle

The Sliding Puzzle, also known as the 15 Puzzle or number slide, is one of the oldest and most satisfying mechanical puzzles ever devised. The goal is straightforward: rearrange numbered tiles on a grid so they appear in sequential order, from 1 in the top-left to the last number in the bottom-right, with the empty space in the final position. It sounds simple, but the constraint of only being able to slide tiles into the adjacent empty space makes it a genuine mental challenge.

How to Play

Click or tap any tile that is directly adjacent (horizontally or vertically) to the empty gap. That tile will slide into the gap's position. You can also use the arrow keys on your keyboard — pressing an arrow key slides the tile from that direction into the gap. For example, pressing the right arrow moves the tile to the left of the gap into the gap position.

Choose from three grid sizes: 3×3 (8 tiles — great for beginners), 4×4 (15 tiles — the classic difficulty), or 5×5 (24 tiles — a serious challenge). The game tracks both your move count and time elapsed. Try to solve the puzzle in as few moves as possible.

History & Origin

The sliding puzzle was invented in the 1870s by Noyes Palmer Chapman, a postmaster in Canastota, New York. It was initially a physical wooden toy with 15 numbered blocks in a 4×4 tray. The puzzle became a worldwide sensation in the 1880s, with newspapers offering cash prizes for solutions. Notably, mathematicians proved that exactly half of all possible starting configurations are unsolvable — the puzzle can only be solved if the permutation of tiles is "even." Sam Loyd, the famous puzzle designer, famously offered $1,000 for solving a specific unsolvable configuration, knowing it was impossible. This game generates only solvable configurations, so you can always reach the solution.

Strategy & Tips

Frequently Asked Questions

Can every Sliding Puzzle configuration be solved?

No — mathematically, only half of all possible tile arrangements are solvable. However, this online version always generates solvable starting positions, so you will never encounter an impossible puzzle.

What is a good move count for the 4×4 puzzle?

The optimal solution for a 15-puzzle averages around 50–80 moves, though the theoretical minimum varies by starting configuration. Casual solvers typically use 100–200 moves. Competitive speed-solvers aim for under 60 moves with sub-30-second times.

Is the Sliding Puzzle good for your brain?

Yes. Sliding puzzles exercise spatial reasoning, sequential planning, and working memory. They are commonly recommended as brain-training exercises. For more brain-boosting games, see our Best Free Puzzle Games roundup.

Play the Sliding Puzzle free right here in your browser — no downloads, no accounts. Pick a grid size and start sliding.