Fifteen Puzzle · Guide

How to Play the 15 Puzzle: Sliding Rules and Solvability (2026)

slug: fifteen-puzzle-how-to-play · Last verified 2026-09-03

Try it yourself — play Fifteen Puzzle now

Free in your browser, no download or sign-up.

Play Fifteen Puzzle

Last updated: December 2026 · Written against Playnesta's Fifteen Puzzle build (self-hosted 4x4; the solvability law double-sourced from Wikipedia "15 puzzle" and the classic Johnson-Story parity analysis) · every mechanic below was read directly out of the shipped page
Method: this is the from-zero rules page — read it top to bottom and you can play any sliding puzzle. Every rule below (tap a tile next to the gap to slide it, the arrow keys move tiles into the gap, the goal order 1 to 15, and the solvability law) was read directly out of the code that runs on this site's Fifteen Puzzle page.

1. What the 15 puzzle is

The 15 puzzle is the sliding-tile classic: a 4x4 frame holding fifteen numbered tiles and one empty gap, with tiles too big to lift — the only legal move is sliding a tile into the empty space. It sold in its millions in the 1880s, drove a genuine craze with prize money for solutions, and it is still the purest test of orderly thinking under a scramble. On this site's Fifteen Puzzle page the tiles, the shuffle and the keyboard controls are ready to go.

2. The rules in one read

  • Goal. Arrange the tiles so they read 1, 2, 3 ... 15 in order, left to right, top to bottom, with the gap in the last cell.
  • Moves. Any tile horizontally or vertically adjacent to the gap can slide into it — one tile per move, no lifting, no corner turns.
  • Controls. On this page tap a tile beside the gap to slide it; the arrow keys also move tiles into the gap.
  • No score, no timer.The classic puzzle is played against yourself — moves and time are the measure.

3. The solvability law

Here is the famous part: not every scramble can be solved. Count how many pairs of tiles stand in the wrong order (an "inversion"): tile 12 before tile 5, and so on, ignoring the gap. On a 4x4 board the scramble is solvable exactly when the number of inversions is even — and every sequence of legal slides preserves that parity, which is why no amount of cleverness rescues an odd position. This site's shuffles are always solvable; the physical toys of the 1880s sometimes were not, which is where the money prizes went.

4. A solve method that always works

  • Top row first.Place 1 and 2, then lock 3 and 4 as a pair using the two free cells in columns 3-4.
  • Then the left column: 5, then 9 beneath it, working the pair the same way.
  • Reduce.Each solved row and column shrinks the board; a 4x4 becomes a 3x3, then a 2x3 — the last two rows are solved as one unit, right to left.
  • Rotate, never lift.When a tile you need sits in a finished region, cycle three tiles around a 2x2 square to free it, then restore the rest.

FAQ

Can every scramble be solved?

No — exactly half of the 16! layouts are unreachable. A scramble with an odd number of inversions can never reach the ordered goal, no matter what you do.

What counts as few moves?

A decent human solve runs 80-120 moves; computer-optimal solutions of random scrambles average around 50. Don't chase that — chase clean rows.

Do the arrow keys slide the gap or the tile?

On this page the arrows move the tile into the gap: press right and the tile left of the gap slides right.

Why is 14-15 swapped famous?

In the 1880s Sam Loyd offered $1,000 for solving the puzzle with 14 and 15 swapped — an odd-inversion position, provably impossible. The prize was never paid.

More games to play

More free browser games on Playnesta — pick your next round.