The 15 Puzzle is a classic sliding-tile game played on a 4x4 grid containing 15 numbered tiles and one empty space, and the goal is to slide tiles into that gap until the numbers read 1 through 15 in order, left to right and top to bottom. To play, you press the arrow keys on your keyboard to push the tile next to the empty slot in that direction, or you click any tile that sits directly beside the empty space to move it there with the mouse. The game is played one move at a time, and every move counts toward your total. You can start a fresh round, shuffle the board into a new random order, and try to beat the lowest move count you have ever recorded on that device.
The 15 puzzle has been around since the 1870s, when it became a craze in America and Europe under nicknames like the Gem Puzzle, Boss Puzzle, and Mystic Square. Despite its age, the rules have stayed identical for more than a hundred years, which is part of why it keeps showing up in browsers, phones, and even coding tutorials today. If you have ever seen a picture divided into 15 squares with one missing, you have already met a close cousin of this game. The numbered version below is the cleanest way to practice the logic, because every tile has a fixed home and you can measure progress one square at a time.

What the Board Looks Like
The play area is a 4x4 grid with 16 cells. Fifteen of those cells hold tiles numbered 1 through 15, and the sixteenth cell is the empty space, often called the gap or the blank. Only the tiles sitting directly next to the blank can move, and a move means sliding one tile into the gap, which opens up a new space somewhere else. Because there is only one empty cell on the board, you can never lift a tile or swap two of them around; every move is a single slide in one of four directions (up, down, left, or right). The order of the numbers on the board changes with each shuffle, but the board itself stays exactly 4 rows by 4 columns the whole time you play.
The Goal in Plain Words
You win when the first row reads 1, 2, 3, 4 from left to right, the second row reads 5, 6, 7, 8, the third row reads 9, 10, 11, 12, and the bottom row reads 13, 14, 15 with the empty space in the bottom-right corner. Anything short of that, and the round is still in progress. Most solvers focus on getting the top-left corner right first, because the home position of tile 1 is the easiest to lock down once you understand the up, down, left, right pattern of moves.
Opening the Game in Your Browser
Our free 15 Puzzle runs entirely in your web browser, so there is nothing to install, no account to create, and no pop-ups to dismiss. Open the page on a laptop or desktop computer for the smoothest experience, although the layout also adapts to tablets and large phones. The board loads already shuffled, the move counter sits just above the grid, and the controls are placed where your hands naturally rest. The same board state will not be generated twice on the same device, which gives every puzzle a fresh shuffle each round.
Controls and Basic Moves
Pick whichever input feels most natural; both work at the same time.
| Input | Action | Result |
|---|---|---|
| Arrow Up | Push the tile below the gap upward | Tiles slide down to fill, gap moves up |
| Arrow Down | Push the tile above the gap downward | Tiles slide up to fill, gap moves down |
| Arrow Left | Push the tile right of the gap leftward | Tiles slide right to fill, gap moves left |
| Arrow Right | Push the tile left of the gap rightward | Tiles slide left to fill, gap moves right |
| Mouse click on a tile | Slide that tile into the gap if it borders the empty space | Tile swaps into the gap, counter increments |
If you click a tile that does not touch the gap, nothing happens. The board locks that move so you cannot break the rules by accident, and the move counter only goes up when a tile actually slides.
How to Play 15 Puzzle
This walk-through covers every action from opening the page to finishing the board, including the controls you press and the order in which to fix the rows.
- Open the 15 Puzzle page in your browser and wait a moment for the board to shuffle into a random starting layout.
- Locate tile 1 and slide it toward the top-left corner by tapping the arrow keys until it sits in the very first cell of the grid.
- Move the gap to the right of tile 1, then slide tile 2 into the cell to the right of tile 1 so the top row begins with 1, 2.
- Repeat the same pattern for tiles 3 and 4, keeping the gap just to the right of the last placed tile each time, until the entire top row reads 1, 2, 3, 4.
- Shift the gap down to row two, slide tile 5 directly under tile 1, then slide 6, 7, and 8 into place left to right the same way you built row one.
- Keep working down row by row until rows one, two, and three are complete and only the bottom row (13, 14, 15) remains.
- For the last three tiles, use a four-move cycle: bring the target tile to the top-right of its goal, shift it down into the corner, rotate the remaining two tiles, and finish when 13, 14, 15 line up under 9, 10, 11 with the gap in the bottom-right cell.
- Watch the move counter freeze when the board is fully sorted; that number is the score for this round and your best result is saved on the same device for the next time you play.
- Hit the shuffle button to start a new puzzle, and use the saved best score as the number you try to beat.
Why the Puzzle Is Harder Than It Looks
The board has 16 cells, but only one is empty, so every move shifts a whole column or row by exactly one tile. It is easy to slide a tile into the wrong place and waste ten moves unsticking the mess, which is why most beginners finish their first puzzle in a few hundred moves even though expert solvers land under 80. The hidden difficulty is parity: a mathematical rule discovered in 1879 says that exactly half of all shuffled positions can actually be solved, and the other half are mathematically impossible. You can read more about that rule in the Wikipedia entry on the 15-puzzle, which explains why some shuffles you get are guaranteed unsolvable. Practically, that means if you ever feel stuck for a very long time, the issue might be the shuffle rather than your strategy.
Simple Method to Solve Faster
Once you can finish a puzzle at all, the next goal is to do it in fewer moves. The fastest real-world method follows the row-and-column pattern from the step-by-step above: lock the top row, then the left column, then solve the remaining 2x3 block, and finish the bottom row tile by tile. Trying to place every tile in its final home as soon as you see it usually creates dead ends, because a tile placed too early blocks the path for other tiles that still need to slide past. Keep the gap working the top-right of your current target so the next tile can be brought in without disturbing what is already locked.
If you want a deeper sequence-by-sequence breakdown, the 15 Puzzle Strategy guide walks through the exact move loops used to rotate tiles in the bottom-right corner. For a refresher on the basic rules alongside winning tips, the rules and tips guide is a good companion read while you practice.
Tracking Your Best Score
The browser version keeps one number per device: your lowest move count ever recorded. The counter only resets when the board is fully solved, so a botched shuffle still gets counted toward your session but does not replace your saved best. Because storage is local, clearing your browser data, opening the game on another computer, or using a private window will reset the score to zero. This is also why the same browser on the same machine is the fairest place to challenge yourself against earlier runs.
What to Do When You Get Stuck
If the board stops making obvious progress, the gap is usually on the wrong side of the next tile you need. Move the empty space around the target tile first, then push the tile in from the correct direction. Avoid shuffling the already-finished rows and columns unless the gap is trapped inside them, because disturbing a solved row costs moves you cannot recover. Finally, if a shuffle feels impossible no matter what you try, start a new puzzle with the shuffle button; the parity rule mentioned above may simply have given you an unsolvable layout.
Quick Rules Reference
| Element | Value | Notes |
|---|---|---|
| Grid size | 4 x 4 cells | 16 positions total |
| Numbered tiles | 1 through 15 | One tile per number |
| Empty spaces | 1 (the gap) | Moves by sliding, never by teleport |
| Allowed moves | Up, down, left, right only | Diagonal slides are not allowed |
| Winning layout | 1-15 in reading order, gap bottom-right | Counts in rows then columns |
| Solvable shuffles | About half of all arrangements | Other half are mathematically impossible |
| Move counter | Increments per valid slide | Lowest score saved locally |
Once you finish your first board, you can branch out to other free browser games on the site, such as the 2048 game, which uses arrow keys to merge tiles in a similar grid setup.
If you're weighing options, How to Play 2048: Quick Start Guide for Beginners | Lizely covers this in detail.