Step-by-step guide

How to solve Number Path: the rules and 10 techniques

Number Path is a grid in which the numbers from 1 to the last square form one path: each number sits beside the next, up, down, left or right but never diagonally, and some of them are printed. You close the gaps between printed numbers first, then count the steps between them, rows plus columns, and use the colours of a checkerboard to rule squares out.

  • 10 techniques, each on a real puzzle
  • 7 grids to solve on this page
  • How to count steps and colours
  • No sign-up

Making a puzzle book? Number Path book generator

By Wisdom Effect · Updated

On this page

What is Number Path?

Number Path is a number puzzle about one path. The numbers from 1 to the last square run through the grid in order, each one in a square beside the one before it: above, below, left or right, never on a diagonal. A few of them are printed, and you write the rest. There is no sum to work out and no row to complete: the only question is where the path can go next. Also known as a Hamiltonian path puzzle or an orthogonal number chain, it is solved with the same small set of moves at every size.

Goal
Fill in the missing numbers so that 1, 2, 3 and on up to the last square form one path, each number beside the next.
You need
A pencil, or the grids on this page.
Moves
One square up, down, left or right from each number to the next. Never on a diagonal.
Sizes
5×5 to 10×10. Our books use 6×6 for Easy, 7×7 for Medium, 8×8 for Hard and 9×9 for Expert by default, and children’s books start at 4×4.
Origin
The United States, 2008, through Marilyn vos Savant’s column in Parade magazine.
Other names
Hamiltonian path puzzle and orthogonal number chain.
7
8
15
16
17
6
9
14
19
18
5
10
13
20
21
4
11
12
25
22
3
2
1
24
23
A solved Number Path. The line runs from 1 to 25, each number beside the next.

The rules of Number Path

  1. Every number once

    The grid holds the numbers from 1 up to its count of squares, one in each square: 1 to 25 in a 5×5 grid, 1 to 81 in a 9×9.

  2. Each number beside the next

    2 is beside 1, 3 beside 2, and so on to the end. Beside means directly above, below, left or right; squares that only meet at a corner do not count.

  3. One path through the grid

    Read in order, the numbers trace one path that passes through every square once. It turns as often as it likes, but it never jumps and never crosses itself.

  4. Both ends are printed

    1 and the last number are always given and ringed, so you know where the path starts and where it stops. The other printed numbers lie along the path between them.

  5. One solution

    The printed numbers allow one path only, and logic finds it without any guessing.

7
8
16
14
19
21
25
1
24
23
10 of 25 numbers printed. The ringed ones, 1 and 25, are the two ends of the path.

Solve your first Number Path

A 5×5 Easy puzzle from our generator: the numbers 1 to 25, ten of them printed. The steps under the grid solve it a few numbers at a time, each one beside a number already written. Try it yourself first, then compare with the steps.

Numbers 1 to 25 · one path

Tap a square, then type its number from 1 to 25. Each number sits beside the next, up, down, left or right.

  1. Step 1

    Close the two gaps of one

    7
    8
    15
    16
    14
    19
    21
    25
    22
    1
    24
    23

    14 and 16 sit on a diagonal, and two squares are beside both: row 1, column 3 and row 2, column 4. 19 fills row 2, column 4, so 15 goes in row 1, column 3. 21 and 23 are two rows apart in column 5, and 22 goes in the square between them.

  2. Step 2

    Round the two top corners

    7
    8
    15
    16
    17
    6
    9
    14
    19
    18
    21
    25
    22
    1
    24
    23

    16 now has 15 on one side and 19 below, so 17 takes its last free square, row 1, column 5, and 18 closes the gap between 17 and 19 in row 2, column 5. In the other corner 7 has 8 beside it, so 6 goes below it in row 2, column 1, and 8, with 7 and 15 around it, sends 9 to row 2, column 2.

  3. Step 3

    One row down

    7
    8
    15
    16
    17
    6
    9
    14
    19
    18
    5
    10
    13
    20
    21
    25
    22
    1
    24
    23

    Each number of row 2 now has one free square below it. 6 has 7 and 9 around it, so 5 goes in row 3, column 1. 9 has 8 and 6, so 10 goes in row 3, column 2. 14 has 15, 9 and 19, so 13 goes in row 3, column 3. 20 fills the gap between 19 and 21, in row 3, column 4, as 18 holds the other square beside both.

  4. Step 4

    The same again, one row lower

    7
    8
    15
    16
    17
    6
    9
    14
    19
    18
    5
    10
    13
    20
    21
    4
    11
    12
    25
    22
    1
    24
    23

    5 sends 4 to row 4, column 1, and 10 sends 11 to row 4, column 2. 12 then fills the gap between 11 and 13, in row 4, column 3.

  5. Step 5

    Back to 1

    7
    8
    15
    16
    17
    6
    9
    14
    19
    18
    5
    10
    13
    20
    21
    4
    11
    12
    25
    22
    3
    2
    1
    24
    23

    4 has one free square left, the corner below it, so 3 goes there, and 2 goes between 3 and 1 in row 5, column 2. Every number from 1 to 25 is in the grid once, each one beside the next. Solved.

Steps and colours

Every move in a Number Path comes down to two questions: which squares are beside each other, and how far the path can get in the numbers it has. A square is beside the squares above, below, left and right of it, never the ones on its corners. From one number to the next the path moves one square, so the gap between two written numbers tells you how far apart they can be, and the colours of a checkerboard tell you which squares fit at all.

Two, three or four neighbours

A square in the middle of the grid has four neighbours, one on each side. A square on the edge has three and a corner only two. An empty square needs two of them for the numbers on either side of it, so an empty corner always holds the number between its two neighbours.

Rows plus columns

The path cannot cut across a corner, so the steps between two squares are the rows between them plus the columns between them. From row 2, column 2 to row 4, column 5 is 2 + 3 = 5 steps: 12 and 17 can stand that far apart, but 12 and 16 cannot.

Odd on one colour, even on the other

Shade the grid like a checkerboard. Each step moves to the other colour, so every odd number stands on the colour of 1 and every even number on the other. Two numbers an odd count apart, like 12 and 17, sit on different colours; an even count apart, like 12 and 18, on the same one.

7
8
15
16
17
6
9
14
19
18
5
10
13
20
21
4
11
12
25
22
3
2
1
24
23
The first puzzle solved, with the squares of 1’s colour shaded. All 13 odd numbers stand on them: in a 5×5 grid that colour has 13 squares, the four corners among them, so 1 and 25 both sit on it.

The order to work in

Every Number Path, small or large, is solved in the same loop. Go down this list, and start again from the top of it each time you write a number.

  1. Find 1 and the last number, both ringed, and read the printed numbers in order. Note the ones only a few numbers apart.

  2. Close every gap of one: a missing number between two written ones goes in the square beside both, when only one is free.

  3. Look around each written number. When one of its partners in the path is in place and one square beside it is empty, the other partner goes there.

  4. Count the steps, rows plus columns, from the nearest written numbers before and after each missing one, and check the colour of the square. Write a number when one square is left for it, or when it is the only number that can reach a square.

  5. Write the squares each missing number can take, and cross out the ones the path could not use: with no square of the next number beside it, without room for both neighbours, taken by a pair, or in a closed-off area it cannot fill.

  6. Still stuck: take a number with two squares, try one and follow the sure moves. If a number is left with nowhere to go, the other square is right. After each new number, go back to the second step.

10 Number Path solving techniques

From a gap of one number to a number tried and followed, in the order you need them. Each one is shown on a real puzzle from our Number Path generator, at the moment the move applies.

  • printed
  • found earlier
  • new in this move
  • the numbers the move reads
  • the squares to look at
  • a number crossed out of a square
  • tried, not sure

Easy: beside the numbers you can see

Easy puzzles in our books are 6×6 grids with 15 of the 36 numbers printed. Most missing numbers sit right beside a written one in the path, so you only look at the squares around it.

Close a gap of one number

36
7
9
34
5
32
1
3
20
18
27
28
26
25
24
23

When the numbers on both sides of a missing one are written, it goes in a square beside both. Two numbers in a straight line leave one such square between them; two on a diagonal leave two, and one of those is often full already.

25 is in row 6, column 2 and 27 in row 5, column 1, on a diagonal. Two squares are beside both of them: row 5, column 2 and row 6, column 1. 28 already fills row 5, column 2, so 26 goes in the corner, row 6, column 1.

Follow a number into its last free square

35
34
11
36
33
9
8
32
13
14
1
4
17
16
15
2
3
18
19
23

A written number needs the number before it and the number after it among its neighbours. When one of them is in place and only one square around it is still empty, the other one goes there.

14 is in row 3, column 4 with four neighbours: 9 above, 15 below, 1 on the right and an empty square on the left. 15 is one of its two partners in the path, and 9 and 1 are neither. So 13, the other partner, takes the empty square, row 3, column 3.

Medium: count the steps and the colours

Medium puzzles are 7×7 in our books and print just 7 to 13 of their 49 numbers. Most missing numbers have no written neighbour now, so count how far the path can get from the written numbers before and after them, and which colour of a checkerboard it lands on.

Count the steps to the next written number

28
24
1
19
11
4
36

From one number to the next the path moves one square up, down, left or right, so the steps between two squares are the rows plus the columns between them. A missing number is never more steps from a written one than the numbers between them: 3 is at most two steps from 1.

1 is in row 4, column 4 and 4 in row 5, column 6, with 2 and 3 missing. 3 has to be beside 4, and 19 fills row 4, column 6, so 3 goes in row 5, column 5 or row 6, column 6. 3 is also at most two steps from 1. Row 6, column 6 is two rows and two columns from 1, four steps, so 3 goes in row 5, column 5.

Check the colour of the square

9
36
1
13
15
23
27

Shade the grid like a checkerboard. Every step lands on the other colour, so a number an even count away from a written one stands on that number’s colour, and a number an odd count away on the other colour.

9 is in the top-left corner and 13 two rows below it, in row 3, column 1. 11 is two numbers from each, so it is at most two steps from both, which leaves row 2, column 1 and row 2, column 2. But two steps from 9 come back to 9’s colour, and row 2, column 1 is one step away, on the other colour, where only even numbers go. So 11 goes in row 2, column 2.

Find the only number for a square

1
22
6
25
11
17
36
31

Every empty square needs a number. Count the steps from the written numbers to it: when only one missing number can get there, write it in.

Which number goes in the top-right corner? It is five steps from 17 in row 4, column 4 and three from 25 in row 3, column 5. A number between them gets there only if it comes at least five after 17 and at least three before 25, and only 22 does both. The other missing runs, 2 to 5, 7 to 10, 12 to 16, 26 to 30 and 32 to 35, all start or end too far away, so the corner is 22.

Hard: cross out squares the path cannot use

Hard puzzles are 8×8 in our books with only 7 to 11 of the 64 numbers printed, and counting alone no longer solves them. Write the squares each missing number can still take, then cross out the ones the path could not pass through. When a number has one square left, write it in.

Look one number further

6
3
1
36
29
22

A missing number needs a square beside the number before it and one beside the number after it. When that number is missing too, cross out every square that has none of its squares beside it.

3 is in row 1, column 3 and 6 right beside it in row 1, column 2, with 4 and 5 missing between them. 4 has to be beside 3, in row 1, column 4 or row 2, column 3. 5 has to be beside 6, in row 1, column 1 or row 2, column 2. 4 also has to be beside 5, and row 1, column 4 is next to neither of 5’s squares. So 4 goes in row 2, column 3.

Leave room on both sides

31
30
29
28
32
24
36
15
14
16
17
1

A missing number between two missing ones needs two different squares around it, one for the number before and one for the number after. A square with room for only one of them is crossed out.

24 is in row 2, column 5 and 28 in row 1, column 4, with 25, 26 and 27 missing. 26 is two numbers from each, which leaves it two empty squares: row 1, column 6 and row 2, column 3. 25 has to go beside 24 and 27 beside 28, on two different squares. Around row 2, column 3 only row 2, column 4 can take either of them, and one square cannot hold both. Around the corner, 27 fits in row 1, column 5 and 25 in row 2, column 6, so 26 goes in row 1, column 6.

Pair up two numbers

11
10
9
8
7
6
12
35
36
5
13
1
4
14
2
3
15
28
22
16
17
18

When two missing numbers have the same two squares left, they take both of them between them, and no other number can go in either.

22 is in row 5, column 6. 20 and 24 are both two numbers from it, so each stands exactly two steps away: one step is the wrong colour, and 22’s own square is full. Only row 5, column 4 and row 6, column 5 are empty and two steps away, so 20 and 24 take those two squares between them. 26 has to be at most two steps from 28 in row 5, column 2 and at most four from 22, which leaves row 4, column 3 and row 5, column 4. The pair holds row 5, column 4, so 26 goes in row 4, column 3.

Fill closed-off areas exactly

1
10
26
11
24
12
33
36
23
13
16
17
22
14
15
18
19
20
21

Empty squares walled in by written numbers form an area of their own. A run of missing numbers never leaves its area, so the runs that go in must fill it with nothing left over.

Row 5, columns 4 and 5 are two empty squares with written numbers all around them. Whatever goes in has to fill both with whole runs, two numbers in all. The missing runs are 2 to 9, 25 alone, 27 to 32, and 34 and 35, and only 34 and 35 make exactly two. 34 has to be beside 33 in row 4, column 4, so it goes in row 5, column 4, and 35 in row 5, column 5, beside 36.

Expert: try a number

Expert puzzles are 9×9 in our books: the numbers 1 to 81, with only 8 to 11 of them printed. At some point no sure move is left. Then a number goes in one of its two squares on trial, and you follow it until the grid either holds or breaks.

Try a number and follow it

1
17
33
18
25
34
35
36

Take a number with two squares left, write it in one of them and follow the sure moves only. If a number is left with nowhere to go, the try was wrong and the other square is right.

36 is in row 6, column 3, and 35 has to be beside it: row 6, column 2 or row 6, column 4. Try row 6, column 2. 34 then has one free square beside 35, row 6, column 1, and 33 one beside 34, row 5, column 1. Now 18 in row 5, column 2 has only row 4, column 2 empty around it, but it needs room for both 17 and 19. The try was wrong, so 35 goes in row 6, column 4.

Practice puzzles

6 grids from our generator, each a step harder than the one before. Each is solved with the moves of this guide; the hint button names the numbers or the squares of the next move. Tap a square and type its number, digit by digit.

Puzzle 1

6×6 Easy, the size of our Easy books: the numbers 1 to 36 with fifteen printed. Each missing number goes beside a number already written.

Numbers 1 to 36 · one path

Tap a square, then type its number from 1 to 36. Each number sits beside the next, up, down, left or right.

Puzzle 2

6×6 Medium: the numbers 1 to 36 with eight printed. Count the steps between the written numbers and check the colours.

Numbers 1 to 36 · one path

Tap a square, then type its number from 1 to 36. Each number sits beside the next, up, down, left or right.

Puzzle 3

7×7 Medium, the size of our Medium books: the numbers 1 to 49 with ten printed and four of the seven rows empty.

Numbers 1 to 49 · one path

Tap a square, then type its number from 1 to 49. Each number sits beside the next, up, down, left or right.

Puzzle 4

7×7 Hard: the numbers 1 to 49 with seven printed. When counting runs out, write the squares each number can take and cross them out.

Numbers 1 to 49 · one path

Tap a square, then type its number from 1 to 49. Each number sits beside the next, up, down, left or right.

Puzzle 5

8×8 Hard, the size of our Hard books: the numbers 1 to 64 with nine printed.

Numbers 1 to 64 · one path

Tap a square, then type its number from 1 to 64. Each number sits beside the next, up, down, left or right.

Puzzle 6

9×9 Expert, the size of our Expert books and the hardest here: the numbers 1 to 81 with eleven printed. Somewhere it needs a number tried.

Numbers 1 to 81 · one path

Tap a square, then type its number from 1 to 81. Each number sits beside the next, up, down, left or right.

Want more? Make a fresh page with the Free Number Path Puzzle Generator and print it, with its answers.

Five mistakes that cost the most time

Stepping on a diagonal

Squares that meet only at a corner are not neighbours here. 8 and 9 on a diagonal look close, but the path cannot get from one to the other in a single step.

Counting steps the short way

The steps between two squares are the rows plus the columns, not the larger of the two. From row 1, column 1 to row 3, column 3 is four steps, not two, so the path gets less far than it looks.

Forgetting the colours

If 9 stands on a shaded square, every odd number does, and every even number stands on a white one. A square of the wrong colour is out for a number, however close it is.

Walling in a square

An empty square needs two neighbours left for the numbers on either side of it. A move that leaves an empty square with only one way in turns it into a dead end, and the only dead ends of the path, 1 and the last number, are already printed.

Guessing

A guessed number can sit there quietly for twenty moves and then break the path. A tried number is different: you follow it with sure moves only, and rub out everything that came from it the moment a number has nowhere to go.

Number Path levels and sizes

A bigger grid and fewer printed numbers make a puzzle longer, but what sets the level is the logic it needs. This is how our book generator makes its four levels, with the grid each one uses by default.

LevelGridPrinted numbers
Easy6×615 of 36
A gap of one number and the last free square around a number.
Medium7×77 to 13 of 49
Those, then counting the steps, the colours of the squares and the only number for a square.
Hard8×87 to 11 of 64
All of those, then crossing out squares: one number further, room on both sides, pairs and closed-off areas.
Expert9×98 to 11 of 81
All of those, then a number tried and followed.

The printed numbers are the fewest and the most in 15 puzzles of each preset. Kids books start at 4×4 grids of 1 to 16 and keep to Easy and Medium; senior books use 5×5 to 7×7 grids by default, up to Hard.

Number Path words

Path
The numbers from 1 to the last in order: one line through every square, one step at a time.
Neighbour
A square directly above, below, left or right of another. A middle square has four, an edge square three and a corner two.
Gap
A missing number between two written ones, such as 26 between 25 and 27.
Steps
The moves from one square to another, one square at a time: the rows between them plus the columns.
Colour
A square’s colour when the grid is shaded like a checkerboard. Odd numbers all stand on one colour, even numbers on the other.
Run
Missing numbers one after another between two written ones, such as 25, 26 and 27 between 24 and 28.
Candidate
A square a missing number can still take. Written small, it is also called a pencil mark.
Pair
Two missing numbers with the same two squares left. They fill both, and no other number can.
Closed-off area
Empty squares walled in by written numbers. The runs that go in must fill it exactly.

Questions and answers

What are the rules of Number Path?

Write a number in every empty square so that the numbers from 1 to the last square each appear once and each one sits beside the next: above, below, left or right, never on a diagonal. Read in order they make one path through the whole grid. 1 and the last number are printed and ringed.

How do I start a Number Path puzzle?

Look for two printed numbers with one missing between them, like 14 and 16. If only one empty square is beside both, the missing number goes there. Then look for printed numbers with a single free square around them, starting in the corners, where a square has just two neighbours.

Is Number Path the same as Hidoku?

No, though the grids look alike and both hold one chain from 1 to the last square. A Hidoku chain may also step from corner to corner. In Number Path every step goes up, down, left or right, so a square has at most four neighbours, the path never crosses itself, and odd and even numbers stand on different colours of a checkerboard. The moves to solve them are close, but the counting differs.

What other names does Number Path have?

Hamiltonian path puzzle and orthogonal number chain are two you may meet. The first comes from mathematics, where a path that visits every point once is named after William Rowan Hamilton; the second says that every step is straight. A magazine column made the rules famous under a trade-marked name, and Number Path is the plain name we use.

Can the path cross itself?

No. Each step goes straight to a square beside the last one, and each square holds one number, so the path can turn and wind but never crosses or meets itself. That is one way it differs from Hidoku, where two diagonal steps can cross.

Why are 1 and the last number ringed?

They are the two ends of the path, and every puzzle prints both. A ring reminds you that the number has one partner, not two: 1 needs only 2 beside it, and the last number only the one before it. Every other square needs two neighbours in the path.

Do you ever have to guess in Number Path?

No. Every grid on this page is solved with the moves of this guide, and our generator checks each puzzle with the same moves before it goes into a book. Trying a number on the Expert level is not a guess either: you follow it with sure moves until the grid breaks or holds, and a broken grid leaves the other square.

What makes a Number Path puzzle hard?

A bigger grid and fewer printed numbers. In our books Easy puzzles are 6×6 with 15 of 36 numbers printed, Hard ones 8×8 with only 7 to 11 of 64, and Expert ones 9×9, the numbers 1 to 81, with a number to try somewhere. With so few numbers printed, counting the steps and the colours does most of the work.

Why do odd and even numbers stand on different colours?

Shade the squares like a checkerboard. Any step up, down, left or right changes the colour, so the path goes shaded, white, shaded, white all the way. 1 and every odd number share one colour, 2 and every even number the other, and a square of the wrong colour is out for a number at once.

Are Number Path puzzles good for children?

Yes. They practise counting on and back, and the straight steps are easy to follow with a finger. Our children’s books start at 4×4 grids of 1 to 16 with nine numbers printed, and keep to Easy and Medium puzzles.

Number Path on a printed page

A puzzle page and its answer key page, as they come out of a Number Path book.

Number Path puzzle page
A Number Path puzzle page
Number Path answer key page
An answer key page from the back of the book

Make your own Number Path book

Print-ready Number Path books for Amazon KDP, Easy to Expert on grids from 4×4 to 10×10, one solution per puzzle and the answer key. Number Path books are in every plan, Starter included, and in the free trial.

Number Path book generator

Just one page? Free Number Path Puzzle Generator