15 puzzle online

Play the 15 puzzle online for free with no signup, right in your browser. The classic 4×4 board, plus 3×3 and 5×5. Tap a tile in the same row or column as the empty square and it slides along with its neighbours. Every shuffle is solvable, with a move counter, a timer and best results.

Board
Moves: 0Time: 0:00Best: —
Put the numbers in order, with the empty square in the bottom right corner

Arrow keys slide a tile into the empty square. Clicking a tile further away slides the whole row.Tap a tile or swipe toward the empty square.

15 puzzle rules

  • Board. A 4×4 frame holds 15 numbered tiles and one empty square. On 3×3 there are 8 tiles, on 5×5 there are 24.
  • Move. A tile next to the empty square slides into it. Tap a tile further along the same row or column and every tile between them slides at once.
  • Goal. Put the numbers in order from left to right and top to bottom, with the empty square in the bottom right corner.
  • Moves. Each tile that slides counts as one move. The timer starts with your first move.

How to solve the 15 puzzle

  1. Top row. Place 1 and 2 first. Then put 3 where 4 belongs and 4 right under it, and slide both into place together.
  2. Second row. Solve 5 to 8 the same way. Do not disturb the top row again.
  3. Last two rows. Now solve column by column from the left: 9 and 13, then 10 and 14. Put the bottom tile of the pair in the top spot first, the other next to it, and rotate them in.
  4. Last 2×2 square. The remaining tiles 11, 12 and 15 just cycle around the empty square until they line up.

On 5×5 the plan is the same: solve the rows and columns along the edges until a 3×3 square is left, then solve it like the 8 puzzle.

Why some positions cannot be solved

Every move swaps the empty square with a tile, and that keeps a hidden parity unchanged: the number of pairs of tiles that are out of order, together with the row of the empty square. So exactly half of all arrangements can never reach the solved position. The best-known one is solved except that 14 and 15 are swapped. This game only deals solvable shuffles.

A bit of history

The puzzle appeared in the United States in the 1870s, and in 1880 it became a craze across America and Europe. It is credited to Noyes Chapman, a postmaster from New York State. Puzzle maker Sam Loyd later claimed to have invented it and offered $1,000 for solving the 14-15 position, a prize nobody could win because that position is impossible. Back in 1879 mathematicians had already proved that only half of the arrangements can be solved.

A logic game for two: Highrise Heist

If you like planning moves ahead, try Highrise Heist: a two-player board strategy game with no luck, where you place blocks on 10 stands, transfer the top groups and fight for highrises. Play the AlphaZero-style AI on 5 levels, solve daily puzzles or play a live opponent online. Free and no signup.

FAQ

How do you play the 15 puzzle?

A 4×4 board holds 15 numbered tiles and one empty square. A tile next to the empty square can slide into it. The goal is to put the numbers in order, left to right and top to bottom, with the empty square in the bottom right corner.

Can every 15 puzzle be solved?

Here, yes: the game only deals solvable shuffles. But exactly half of all possible arrangements cannot be solved, for example the one where only 14 and 15 are swapped.

How are moves counted?

Every tile that slides is one move. If you tap a tile two squares away from the gap, two tiles slide, and that counts as two moves.

How do I solve the 15 puzzle faster?

Solve it row by row: the top row first, then the second, and the last two rows column by column from left to right. Place the last two tiles of a row together: put one in its neighbour's spot, the other under it, then rotate both into place.

What is the fewest number of moves?

Any solvable 4×4 arrangement can be solved in at most 80 moves, and any 3×3 one in at most 31. Finding such a shortest path by hand is very hard; people usually need 100 to 300 moves.

Are best results saved?

Yes: for each board size, this browser keeps your best result, ranked by moves first and then by time.