How to solve nonograms step by step

A well-made nonogram can be solved by logic alone, one line at a time. Four techniques and a bit of method take you from staring at numbers with no idea where to start to watching the picture appear square by square.

Reading the clues

Every row and every column has a clue: a list of numbers. Each number is a run of consecutive filled cells, and the runs appear in that order (left to right in rows, top to bottom in columns).

  • A clue of “3 1” means a run of 3, at least one empty cell, then a run of 1.
  • Between two runs there is at least one gap, possibly more.
  • There may or may not be empty cells before the first run and after the last.
  • A clue of “0” means the whole line is empty.

What you don’t know is where each run starts. The whole craft is working out which cells are filled (or empty) in every possible placement at once.

Slack: the number that decides everything

Before anything else, work out the line’s slack:

slack = line length − (sum of the runs + required gaps)

The required gaps are one between each pair of runs, so the number of runs minus one.

Line Clue Minimum used Slack
10 7 7 3
10 3 4 3 + 1 + 4 = 8 2
10 2 2 2 2+1+2+1+2 = 8 2
5 1 1 1 + 1 + 1 = 3 2
10 5 4 5 + 1 + 4 = 10 0

Slack is how far each run can slide. Here is the golden rule: any run longer than the slack has guaranteed cells, exactly (length − slack) of them. With zero slack, the whole line is solved.

Technique 1: overlap

Picture the runs pushed as far left as they go, then as far right. Cells covered by the same run in both placements are definitely filled.

Example: clue 7 in a row of 10. Slack 3.

far left:   ■ ■ ■ ■ ■ ■ ■ · · ·
far right:  · · · ■ ■ ■ ■ ■ ■ ■
certain:    · · · ■ ■ ■ ■ · · ·
            1 2 3 4 5 6 7 8 9 10

Cells 4 to 7 are filled: 7 − 3 = 4 cells. For a single run this is the familiar rule: if a run is longer than half the line, its middle is fixed.

Example: clue 3 4 in a row of 10. Slack 2.

far left:   ■ ■ ■ · ■ ■ ■ ■ · ·
far right:  · · ■ ■ ■ · ■ ■ ■ ■
certain:    · · ■ · · · ■ ■ · ·
            1 2 3 4 5 6 7 8 9 10

Careful: compare each run with itself. The 3 slides from 1–3 to 3–5, so only cell 3 is always its own (3 − 2 = 1). The 4 slides from 5–8 to 7–10, giving cells 7 and 8 (4 − 2 = 2). Cell 5 is filled in both placements, but by different runs, so it is not certain.

Technique 2: cross out what’s empty

Crosses (✕) are as valuable as filled cells: each one shrinks the usable space in the line that crosses it.

  • When a line matches its clue, cross out every other cell.
  • When a run is complete and pinned down, the cells just before and just after it are empty.
  • A gap too small for any run that could reach it is empty. A 2-cell gap between two crosses, in a row whose clue is “3 4”, can never hold a run.
  • Cells that no run can reach in any placement are empty too.

In the nonogram game you can mark ✕ and drag to mark several cells at once. Use it freely: crosses aren’t decoration, they’re information.

Technique 3: edges and stray cells

A filled cell near the edge of the board (or next to a ✕) pushes its run.

Take a row of 10 with clue 4, where cell 2 is already filled thanks to a column. The run of 4 must cover cell 2, so it starts at cell 1 or cell 2. Either way it covers 2, 3 and 4. Result: cells 3 and 4 are filled, and 6 to 10 are empty because the run can’t reach them.

Two other situations come up all the time:

  • Joining pieces. In a line with clue “5”, if cells 3 and 6 are filled, both belong to the only run, so 4 and 5 are filled as well.
  • A run already at full size. If the clue is “2 1” and you see three filled cells in a row, something has gone wrong: no run is 3 long. This check catches a lot of slips.

Technique 4: work rows against columns

No line gets solved start to finish on its own. The usual rhythm is:

  1. Apply overlap to every row and column with little slack.
  2. Each new cell (filled or ✕) is an extra clue for the line that crosses it.
  3. Go back to those lines and squeeze out what you can with edges, crosses and joins.
  4. Repeat until done.

When you stall, look for the line with the least slack given what you already know: a ✕ next to the edge shortens the usable line, and the slack drops with it.

A 5 × 5 solved from start to finish

Row clues, top to bottom: 1 1 · 5 · 5 · 3 · 1. Column clues, left to right: 2 · 4 · 4 · 4 · 2.

  1. Rows 2 and 3 (clue 5): zero slack. Fill them completely.
  2. Columns 2, 3 and 4 (clue 4 in 5): slack 1, so rows 2, 3 and 4 are certain.
  3. Row 4 (clue 3): columns 2, 3 and 4 are already filled. It’s complete: columns 1 and 5 get a ✕.
  4. Columns 1 and 5 (clue 2): rows 2 and 3 are already filled. Complete: rows 1, 4 and 5 get a ✕.
  5. Row 1 (clue 1 1): with both ends crossed out, three cells remain (columns 2–4) for “1 1”, which needs exactly three. Fill 2 and 4; 3 is ✕.
  6. Columns 2 and 4: rows 1–4 are filled, which is their run of 4. Row 5 is ✕.
  7. Column 3: row 1 is ✕, so the 4 must sit on rows 2–5. Fill row 5, which also satisfies row 5’s “1”.
· ■ · ■ ·
■ ■ ■ ■ ■
■ ■ ■ ■ ■
· ■ ■ ■ ·
· · ■ · ·

A heart. Notice you never had to guess: every step came from a single line.

Common mistakes

  • Treating overlap from different runs as certain, like cell 5 in the “3 4” example.
  • Skipping the crosses. Without them, columns look like they have more slack than they really do.
  • Filling a cell because it “looks right”. If it isn’t proven, leave it blank. An early mistake spreads across the whole grid.
  • Starting anywhere. Always start with big clues and lines with a slack of 0 or 1.

FAQ

Do you ever need to guess?

Not in a well-designed nonogram. Every puzzle on Duck Games has been checked by computer: it can be solved line by line with logic and has a single solution.

Which size should I start with?

The 5 × 5 puzzles. They take a few minutes and teach overlap. The 8 × 8 and 10 × 10 ones need several rounds of crossing rows and columns.

What should I do when I’m stuck?

Recalculate each line’s slack taking the crosses and known cells into account. There is almost always a line with less room than it seemed.

Put it into practice

Nonograms

Fill cells with logic and reveal a hidden pixel picture.

Play Nonograms →