15 Puzzle

Slide the tiles next to the empty square and put them back in order from 1. Choose any size from 3×3 to 6×6, or put a picture back together instead.

Choose your settings and press “Start”

Board size

Puzzle

Tiles
Report a bug

Only the site operators can read your report. It will not appear in public comments.

Do not include your name, school, address, contact details, or links. The game version and browser type are attached automatically. Privacy

ver 1.0.0 · Updated

Release notes
  1. · ver 1.0.0Added the version label and release notes.
  2. Added the English version.
  3. First published.

How to Play the 15 Puzzle

The 15 puzzle is the classic sliding puzzle: fifteen numbered tiles sit in a 4×4 frame with one square left empty. You slide tiles into the empty square, one after another, until the mixed-up tiles are back in order from 1 to 15. You can’t lift a tile out or jump over another one – sliding is the only move. The rules take ten seconds to learn, yet the puzzle has kept people thinking for 150 years. It works as a quick brain teaser, a relaxing number puzzle, or a serious challenge if you start chasing the fewest moves.

The start and the goal

Start and goal compared. On the left, tiles 1 to 15 are mixed up on a 4×4 board. On the right, they run in order 1, 2, 3 from the top left, with the empty square in the bottom-right corner
Put 1 to 15 in order from the top left, with the gap in the bottom-right corner.

In the solved position the top row reads 1, 2, 3, 4 from left to right, the second row 5, 6, 7, 8, the third row 9, 10, 11, 12, and the bottom row 13, 14, 15, with the empty square in the bottom-right corner. Every game starts from a shuffled version of this layout.

How to move the tiles

Sliding several tiles at once. The right end of the second row is empty. Pressing tile 5 at the left end of that row slides 5, 6 and 7 one square to the right, and the gap moves to the left end
Press a tile in the same row or column as the gap, and the tiles in between slide with it.

Any tile directly next to the empty square – above, below, left or right – can move. Press it and it slides into the gap. You can also press a tile further away, as long as it is in the same row or column as the gap: every tile between it and the gap slides along one square. In this game, each tile that moves counts as one move, so sliding three tiles at once counts as three moves.

You can also grab a tile with your finger or the mouse and drag it toward the gap. If you let go before it is halfway, it snaps back to where it was.

Arrow key diagram. Tile 10 is to the left of the gap. Pressing the right arrow key, or swiping right, moves tile 10 one square to the right
Arrow keys and swipes describe the direction the tile moves.

The arrow keys and swipes on the board work too. Both describe the direction the tile travels: right moves the tile on the left of the gap to the right, and up moves the tile below the gap upward, one square at a time.

The bar above the board shows your move count and time. The clock starts only when you make your first move, so feel free to study the board before you begin. “Undo” takes back your last move.

Sliding Puzzle Sizes, Puzzle Types and Picture Mode

Three boards compared. Left, a 3×3 board (the 8 puzzle). Middle, a 5×5 board (the 24 puzzle). Right, a 3×3 picture puzzle showing a picnic scene cut into squares
Boards run from 3×3 to 6×6, and you can play with a picture instead of numbers.
BoardTilesWhat to expect
3×3 (8 puzzle)8A good start. Any position can be solved in 31 moves or fewer
4×4 (15 puzzle)15The classic. Any position can be solved in 80 moves or fewer
5×5 (24 puzzle)24For when you’ve got the method down
6×6 (35 puzzle)35A long, patient challenge

There are three kinds of puzzle. “Random” picks an arrangement at random from all the ones that can be solved. “Quick mix” starts from the solved position and moves only a few tiles, so it can be finished in a handful of moves – ideal for your very first try. The “Daily puzzle” changes every day, and everyone who plays on the same day gets the same arrangement, so you can compare moves and times with friends and family.

Choose “Picture” and each tile shows part of an illustration instead of a number; solve the puzzle and the whole picture appears. You can keep small numbers in the tile corners as a guide while you get used to it, and the “Preview” button shows what the finished picture looks like.

Are Some 15 Puzzles Unsolvable?

Unsolvable position. On the left, a board where only 14 and 15 are swapped, marked with a red cross. On the right, the solved board with a green check. No series of moves leads from the left board to the right one
With only 14 and 15 swapped, no amount of sliding will ever finish the puzzle.

Yes. Some arrangements can never be solved, however you slide the tiles. The most famous is the solved board with just 14 and 15 swapped. Sliding a tile into the gap can never swap exactly two tiles and leave everything else in place – each move changes the order of the tiles in a way that keeps a hidden “parity” the same, and a single swap would break it. In fact, if you put the tiles into the frame completely at random, exactly half of all arrangements are unsolvable.

How to Solve the 15 Puzzle: Step-by-Step Strategy

Step 1: Solve the top row first

Solving order. First, the top row 1 to 4. Second, the left column 5, 9 and 13. Third, the remaining 3×3 area in the bottom right
Top row, then left column, then the last 3×3.

The most reliable method is to finish the top row (1 to 4) first, then the left column (5, 9 and 13), and never touch those tiles again. What remains is a 3×3 corner, which is just the 8 puzzle. The same idea works for 5×5 and 6×6: solve the top row and the left column, and the puzzle shrinks to the next size down, again and again, until only a 3×3 is left.

Step 2: Move the gap, not the tile

To bring one tile to its target square, think about where the gap needs to be rather than about the tile itself. If you want a tile to move right, first walk the gap around to the square on its right, then slide the tile across. Repeat, and the tile creeps one square at a time toward its target. When you walk the gap around, take the long way below rather than cutting through the tiles you have already placed.

Step 3: Insert the last two tiles of a row together

Placing the last two tiles of a row. First, put 4 where 3 belongs and 3 directly below it, with the top-right square empty. Second, slide 4 to the right. Third, slide 3 up, and 1 to 4 are complete
Put 3 and 4 in as a pair, not one at a time.

The last two tiles of a row – 3 and 4 in the top row – are where most beginners get stuck. Put 3 in place first and there is no way to fit 4 into the corner without knocking 3 out again. The trick is to set them up as a pair: place 4 where 3 belongs and 3 directly underneath it, with the top-right square empty. Then slide 4 right and 3 up, and both drop into place as if they had swung around the corner. The last two tiles of the left column (9 and 13) go in the same way, turned on their side.

Step 4: Rotate the last 3×3 into place

Once only a 3×3 area is left, it helps to stop moving tiles one by one and start thinking in circles. On 4×4, put 6 in place, then 7 and 8 with the pair trick from Step 3. In the final two rows of three, arrange 10, 11, 12, 14 and 15 so that they are in the right order around a loop, then run the gap around that loop clockwise or counterclockwise until everything clicks into position.

15 Puzzle Tips for Fewer Moves

Plan where the gap ends up

Once you can solve the puzzle reliably, try to do it in fewer moves. After you deliver a tile, notice where the gap has ended up, and try to finish each step with the gap close to the next tile you need. Most wasted moves come from walking the gap across the board and back again.

Slide rows and columns in one go

Pressing a tile that is several squares away from the gap moves the whole line at once. It doesn’t save moves – each tile still counts – but it saves time, which matters if you are racing the clock.

Chase the shortest solution on 3×3

On the 3×3 board, the game works out the shortest possible solution for every puzzle and tells you when you finish. Matching it exactly is a great exercise in looking ahead.

Use hints when you are stuck

Press “Hint” and the next tile to move is framed with a dashed line, along with the direction to move it. Press “Hint” again and the game makes that move for you. On 3×3 the hint follows the shortest solution; on larger boards it follows a plan that gets you to the finish quickly. Games in which you use a hint or undo don’t count toward your personal best.

FAQ

What is the fewest number of moves?

It depends on the arrangement. Every position of the 3×3 8 puzzle can be solved in 31 moves or fewer, and every position of the 4×4 15 puzzle in 80 moves or fewer. On 3×3, this game tells you the shortest solution for your puzzle when you finish.

How are moves counted when several tiles slide at once?

Each tile that moves counts as one move, so sliding three tiles together is three moves. That is the same as moving them one at a time, so the way you slide never changes your move count.

What if I get stuck?

Use a hint to see your next move.

Is the daily puzzle the same for everyone?

Yes. On the same day, each board size has one arrangement that everyone gets. The date comes from your device. Your first attempt is saved as today’s record, and solving the daily puzzle on consecutive days builds a streak.

Can I stop and continue later?

If you come back on the same device and browser, “Continue” in the settings resumes your board, moves and time where you left off. Personal bests for each board size and puzzle type are also saved on this device. Sound is off at first; press “Sound: off” to hear the tiles slide and a chime when you solve the puzzle.

History of the 15 Puzzle

The 15 puzzle was invented in the United States in the 1870s, and is usually credited to Noyes Chapman, a postmaster in upstate New York. Around 1880 it became a nationwide craze, sold in small wooden boxes and played everywhere from offices to trains. The famous puzzle maker Sam Loyd later claimed he had invented it and offered a large prize to anyone who could solve the version with 14 and 15 swapped, but historians now believe he had nothing to do with its invention or its success. In any case, the prize was safe: mathematicians had already proved in 1879 that the swapped position can never be solved. The question of why half of all arrangements are impossible still makes the puzzle a favorite example in mathematics and computer science classes, and sliding puzzles of every size and shape are still made today.