How to Solve Nonograms

Nonograms, also known as Picross, Griddlers or Hanjie, can be solved by logic alone. This page walks through the basic techniques with diagrams. Every step uses only what a single row or column's clues guarantee, so no guessing is needed until the very last resort.

The rules and how to read the diagrams

The numbers to the left of each row and above each column are clues. Each clue is the length of a run of filled cells in that line, in order. "3 1" means a run of 3 cells, then at least one empty cell, then a run of 1 cell. Fill in every cell correctly and a picture appears.

The diagrams below show a single row of 10 cells, with the row's clue on the left.

Unknown Filled ×Empty ×Determined in this step

1. Overlap: slide the blocks left and right

This is the technique you will use most. Imagine every block pushed as far left as it can go, then as far right as it can go. Cells covered by the same block in both positions are filled wherever the block really is.

Left8
Right8
Result8
A row of 10 cells with the clue "8". Whichever way the block slides, the middle 6 cells are filled.

You can also work it out with arithmetic. Slack = row length − (sum of the clues + number of clues − 1). Any clue longer than the slack fixes (clue − slack) cells in the middle of its block. Here the slack is 10 − 8 = 2, so 8 − 2 = 6 cells.

Left34
Right34
Result34
The clue "3 4". The slack is 10 − (3 + 4 + 1) = 2, so one cell of the 3 and two cells of the 4 are fixed. Only compare a block with itself (shown in matching colors).

2. Lines that fit exactly, and zero lines

If the clues plus one empty cell between each pair of blocks add up to the row length, there is no slack and only one arrangement. A line whose clue is 0 (or has no clue) is entirely empty.

Before314
After314××
3 + 1 + 4 + two gaps = 10. The whole row is solved at once.

3. Mark cells no block can reach

Once you know a filled cell, work out how far its block could stretch. Cells that no block can reach are empty.

Before3
After3×××××
The clue "3" with cell 5 filled. The block must include cell 5, so it cannot leave cells 3–7. Every other cell is empty.

4. Grow from a filled cell near the edge

When you find a filled cell near an edge, ask which block it belongs to. If only one block can reach it, compare the positions where that block could include the cell; the cells they share are filled.

Before42
After42
Cell 2 is filled. Only the "4" can reach it, so the block starts at cell 1 or cell 2. Either way, cells 2–4 are filled.

5. Close finished blocks

When a block reaches the length of its clue, the cells on both sides of it must be empty. Marking them makes the room left for the next block clear.

Before32×
After32××
Cells 2–4 complete the "3", so cell 5 is empty.

6. Empty the gaps too small for any block

If a gap between empty cells is shorter than every block that is still left, nothing fits in it. When the number of gaps matches the number of blocks, a row can be solved in one go.

Before33××
After33××××
The gaps are 2, 3 and 3 cells long. A "3" cannot fit in the 2-cell gap, so it is empty, and each 3-cell gap holds one "3".

7. Switch between rows and columns (5×5 walkthrough)

Every cell you determine in a row is a new clue for the column that crosses it. When the rows stop giving you anything, look at the columns, and vice versa. Repeating this is the heart of solving a nonogram.

① The puzzle
24442
11
5
5
3
1
② Rows
24442
11
5
5
3
1

The "5" rows are completely filled (technique 2). The "3" row gets its middle cell (technique 1).

③ Columns
24442
11××
5
5
3××
1××

The outer "2" columns are complete, so the rest is empty (technique 5). The "4" columns get three cells by overlap (technique 1).

④ Rows
24442
11×××
5
5
3××
1××

With both ends empty, the top row's "1 1" fits exactly into the three cells left (techniques 2 and 6).

⑤ Columns
24442
11×××
5
5
3××
1××××

Each "4" column is now fixed and complete (technique 5), and a heart appears.

8. When you get stuck: trial and error

If no row or column gives you a new cell, assume that one cell is filled and keep going. If some line ends up contradicting its clue, the assumption was wrong, so that cell must be empty.

Mark the cells you fill during a trial in a different color so that you can undo them. Try cells where the choice matters most, such as a cell that could be the end of a long block, to reach a contradiction sooner.

If a trial never leads to a contradiction and both choices can be completed, the puzzle may have more than one solution.

9. Color nonograms

In a color nonogram, each clue has a color and gives the length of a block of that color. Only one rule differs from black-and-white puzzles:

Techniques 1–6 still work; just remember that a gap is only required between blocks of the same color. Where different colors sit side by side, the missing gap leaves more slack, so overlap fixes fewer cells.

Left44
Right44
Result44
B&W44
A red 4 and a blue 4 can touch, so the slack is 10 − (4 + 4) = 2 and two cells of each block are fixed. The same row in black and white ("4 4") needs a gap, leaving a slack of 1, so three cells of each are fixed.

Color puzzles also give you an extra kind of clue:

10. Irregular nonograms

Irregular nonograms have boards that are not rectangles: some cells are holes that are not part of the puzzle. When a row or column is split by holes, each section between the holes has its own clue.

Treat each section as a short row of its own, and every technique above applies. The usual mistake is reading a clue as belonging to the wrong section, so first check where the section for each clue begins.

Stuck? Check your answer with Nonograver

Nonograver is an iPhone app that solves nonograms from the clues you enter. It handles color and irregular puzzles as well as black and white, and because it searches for every solution, it also tells you whether a puzzle has only one answer. Use it to check a puzzle you cannot finish, or to verify one you made yourself.

View on the App Store How to use the app