How to Solve the Sliding Puzzle (8-Puzzle) Every Time
The sliding tile puzzle — numbers 1 to 8 in a 3×3 grid with one empty space — is one of the oldest and most satisfying brain teasers around. Most people solve it by trial and error, shuffling tiles until it works or (more often) giving up.
There is a better way. The 8-puzzle has a reliable, repeatable method that solves it every time, and once you learn it you will never be stuck again. Here is the technique, step by step. You can play the 8-Puzzle here and follow along.
The golden rule: work in order, and never disturb what's done
The whole method rests on one principle: solve the tiles in a fixed order, and once a tile is in place, do not knock it out again. You build the solution piece by piece, locking each part as you go, so the puzzle only ever gets smaller.
The order for a 3×3 puzzle is:
- The top row (tiles 1, 2, 3)
- The left column of what remains (tiles 4 and 7)
- The final four tiles (5, 6, 8 and the space)
Step 1: Solve the top row
Place 1, then 2, then 3 along the top.
- Getting 1 and 2 into place is usually straightforward — slide them into the top-left and top-middle.
- The right corner (3) is the tricky one. If 3 will not slot in directly, use the classic corner trick: put 2 and 3 stacked vertically on the right side (2 above 3), then rotate them into the top-right corner together. This avoids the trap of placing 3 but being unable to fit 2.
Once the top row reads 1-2-3, you never touch those three tiles again.
Step 2: Solve the left column
Now place 4 and 7 down the left side, treating the bottom two rows as a smaller puzzle.
- The same corner trick applies: if 4 will not go in, stack 4 and 7 together on the bottom and rotate them into place as a pair.
- With the top row and left column locked, you are left with just a 2×2 area in the bottom-right.
Step 3: Solve the final four
The last four tiles (5, 6, 8 and the empty space) form a 2×2 square. Here you simply rotate the three numbered tiles around the empty space until they click into their correct spots. If they will not resolve after a full rotation, the puzzle is solvable — keep rotating and they fall into place.
The method at a glance
| Stage | Tiles | Key trick |
|---|---|---|
| Top row | 1, 2, 3 | Stack 2+3, rotate the corner in |
| Left column | 4, 7 | Stack 4+7, rotate into place |
| Final square | 5, 6, 8 | Rotate around the empty space |
Tips to solve it faster
- Plan two or three moves ahead. Random sliding is slow; deliberate sequences are fast.
- Keep the empty space near the tile you are moving. The space is your only tool — position it where you need it before you start a sequence.
- Practise the corner trick until it is automatic. It is the one move that trips people up, and once it is muscle memory the whole puzzle becomes easy.
Why this puzzle is good for you
Beyond being satisfying, the sliding puzzle is a genuine little workout for planning and spatial reasoning — you have to hold a goal in mind and sequence moves toward it, exactly the kind of thinking that keeps the mind sharp.
The bottom line
The 8-puzzle is not about luck — it is a solved problem. Build the top row, then the left column, then rotate the final square, and never disturb what you have locked in. Do that and you will solve it every single time, faster with each attempt.
Give it a try — play the 8-Puzzle now — and find more brain teasers in the puzzle games.