Sliding puzzle: the classic 15 puzzle, online

Slide the tiles into order, 1 to 15, using the one empty space.

Loading puzzle…

The sliding puzzle, online and free

The sliding puzzle, also known as the 15 puzzle or Game of Fifteen, is one of the oldest brain teasers there is: fifteen numbered tiles, one empty space, and a jumbled order to put right. There is no luck involved, just a plan and some patience.

Play it free in your browser with unlimited shuffles. Start with the classic 4×4 board, then pick Custom in the Size & level menu for bigger or smaller frames.

A famous puzzle craze

The sliding puzzle, often called the 15 puzzle, caused a craze in the United States in 1880, when people everywhere tried to slide fifteen numbered tiles back into order. Mathematicians soon proved that exactly half of all possible arrangements cannot be solved at all, because of a property called parity. Every puzzle here is generated from a solvable arrangement, so a solution always exists.

How to play here

Click or tap a tile in the same row or column as the empty space to slide it, together with any tiles between them, toward the gap. The goal is to put the numbers in order, left to right and top to bottom, with the empty space in the bottom-right corner.

How to solve a sliding puzzle

The easiest way to solve a sliding puzzle is row by row. You finish one row, never touch it again, and the puzzle gets smaller each time. On the 4×4 board it goes like this.

  1. Solve the top row. Move 1 into the top-left corner, then 2 next to it. Do not try to place 3 and then 4 one after the other: the last tile of a row always knocks the one before it out.
  2. Use the corner trick for the last two tiles. Put 4 where 3 belongs, and 3 directly below it. Move the gap to the top-right corner, slide 4 right, then slide 3 up. The row is done.
  3. Solve the second row the same way. Place 5 and 6, then use the same trick for 7 and 8. Only the bottom two rows are left.
  4. Solve the last two rows column by column. Rows are no use now, so turn the trick sideways. Put 13 where 9 belongs and 9 just to its right. Move the gap below 13’s target spot, slide 13 down, then slide 9 left. Do the same for 10 and 14.
  5. Finish the last 2×2. Tiles 11, 12 and 15 sit in a small square with the gap. Move the gap round the square in one direction until they line up.

Two habits make every step easier. Think in loops: to move a tile one square, you walk the gap round it, usually in a small 2×3 loop. And never undo a solved row to fix a later one; there is always a way to move tiles below it.

On bigger custom boards, the method is the same: solve rows from the top until two are left, then finish column by column from the left.

Why play the sliding puzzle?

The sliding puzzle is a great test of planning: every move affects several tiles, so you must think a few steps ahead. Once you know the method, try to solve it in fewer moves. For another planning challenge, try the Tower of Hanoi or Water Sort.

How to play Sliding Puzzle

  1. The board holds numbered tiles and one empty space.
  2. Click or tap a tile next to the empty space to slide it in.
  3. You can also slide a whole row or column of tiles toward the gap at once.
  4. Put the tiles in order, left to right and top to bottom, with the gap in the bottom-right corner.

Sliding Puzzle tips

Solve the top row first, then the left column

Finish the first row and never touch it again, then the first column. The puzzle shrinks to a smaller one each time, down to a simple 2×2 at the end.

Place the last two tiles of a row together

For the end of a row, park the last tile below its spot, bring the second-to-last into the corner, then rotate both in. Trying them one by one keeps knocking the first out.

Think in loops

Moving a tile always means moving the gap around it. Cycling three tiles around a small loop is the basic move behind every advanced sequence.

Frequently asked questions

What is the 15 puzzle?

The 15 puzzle is the classic sliding puzzle with fifteen numbered tiles in a 4×4 frame and one empty space. It was a worldwide craze in the 1880s and is still a favorite brain teaser.

Is every 15 puzzle solvable?

No. Exactly half of all random arrangements of the tiles can never be solved, because of a property called parity. The game here only deals solvable positions, so every board can be finished.

How many moves does a 15 puzzle need?

Any 4×4 position can be solved in at most 80 single-tile moves, but finding that shortest solution is very hard. Most people need a few hundred moves.

Add MindedGames to your home screen

  1. Tap Share
  2. Tap Add to Home Screen