Knight's Tour: The Chess Puzzle, a Solution and How to Find One
Dec 2, 2026 · The Editors
A knight's tour is a sequence of knight moves that lands on every square of a chessboard exactly once. Open and closed tours, how many there are, a complete 8×8 solution, the simple rule that finds one by hand, and its long history.
A knight's tour is a sequence of moves by a single chess knight that lands on every square of the board exactly once. On a standard 8×8 board it takes 63 moves to visit all 64 squares. If the knight's last square is one knight's move from its first, so it could jump straight back to the start, the tour is closed; otherwise it is open. Tours exist on the standard board in enormous numbers, and you can find one by hand with a simple rule.
How the knight moves
A knight moves in an L: two squares in one direction and one square at right angles, jumping over anything in between. It always lands on a square of the opposite colour to the one it left. From a centre square it has eight possible moves; from a corner, only two. That difference is the key to solving the puzzle. A refresher on all the pieces is in how do chess pieces move.
A complete knight's tour solution (8×8)
This open tour starts at a1 (move 1) and finishes at g6 (move 64). Follow the numbers in order; each step is a legal knight move.
| a | b | c | d | e | f | g | h | |
|---|---|---|---|---|---|---|---|---|
| 8 | 22 | 7 | 44 | 39 | 24 | 9 | 28 | 63 |
| 7 | 43 | 40 | 23 | 8 | 45 | 62 | 25 | 10 |
| 6 | 6 | 21 | 42 | 59 | 38 | 27 | 64 | 29 |
| 5 | 41 | 58 | 37 | 46 | 61 | 54 | 11 | 26 |
| 4 | 20 | 5 | 60 | 53 | 36 | 47 | 30 | 51 |
| 3 | 57 | 2 | 35 | 48 | 55 | 52 | 15 | 12 |
| 2 | 4 | 19 | 56 | 33 | 14 | 17 | 50 | 31 |
| 1 | 1 | 34 | 3 | 18 | 49 | 32 | 13 | 16 |
Set it up on a real board and walk the knight through it, placing a coin or a pawn on each visited square. It is the best way to see how the tour sweeps the edges first and finishes in the middle.
How to find a knight's tour yourself: Warnsdorff's rule
In 1823 H. C. von Warnsdorff published a simple rule: always move the knight to the square from which it will have the fewest onward moves. Count, for each square you could move to, how many unvisited squares the knight could reach from there, and pick the smallest. Break ties however you like.
The rule works because it deals with awkward squares, the corners and edges, early, before they get cut off. It is not guaranteed to succeed from every start and with every tie-break, but on an 8×8 board it almost always does, and the tour above was found this way.
How many knight's tours are there?
On the standard board there are 26,534,728,821,064 directed closed tours (counting each direction separately), a figure established by computer in the 1990s. Open tours are far more numerous still. For other boards:
| Board | Tours? |
|---|---|
| 3×3 and 4×4 | No complete tour |
| 5×5, 7×7 and other odd sizes | Open tours only |
| 6×6, 8×8 and other even sizes | Both open and closed |
A closed tour is impossible on any board with an odd number of squares, because the knight changes colour on every move and has to finish on the opposite colour to the start.
A long history
Knight's tours appear in medieval Indian and Arabic writings, and in the West they became a favourite of mathematicians. Leonhard Euler wrote a paper on them in 1759, and they have been studied ever since as an early example of what is now called a Hamiltonian path problem. Tours have also been used as the basis for poems, magic squares and puzzles in newspapers, and some magicians and memory performers present a knight's tour, called out square by square from a spectator's choice of start, as a feat of memory.
Try it
You need a board, a knight and something to mark visited squares. A magnetic folding chess set keeps the pieces in place if you leave a half-finished tour on the table overnight, and a three-in-one set gives you checkers to mark the squares. To make it a race, time each other with a chess clock. For a second classic chessboard puzzle, try the eight queens puzzle.
Frequently asked questions
Is a knight's tour possible?
Yes. On a standard 8×8 board there are trillions of knight's tours, both open and closed. Only very small boards, such as 3×3 and 4×4, have none.
What is the difference between an open and a closed knight's tour?
In a closed tour the last square is a knight's move from the first, so the tour could loop back to the start. In an open tour it is not.
What is the trick to a knight's tour?
Warnsdorff's rule: always move to the square that has the fewest onward moves. It handles corners and edges early and almost always completes the tour.
Who invented the knight's tour?
Nobody knows. It appears in medieval Indian and Arabic writing, and Leonhard Euler studied it mathematically in 1759.


