Home / Blog / Logic puzzles / How to Solve Nonogram: Beginner Strategies Step by Step

How to Solve Nonogram: Beginner Strategies Step by Step

Last updated: .

To solve a nonogram, work one line at a time: for each row and column, ask which squares are shaded or empty in every way the runs could be placed, mark them, then move to the crossing lines. This page gives that method in four moves, explains the "slack" count that makes the first moves quick, and solves a full 10 x 10 grid in three passes.

The method in one minute

  1. Pick a line and measure how much room its runs have to move (its slack).
  2. Shade the squares that every possible placement covers. Dot the squares that none covers.
  3. Move to the crossing lines: each new square gives them more information.
  4. Go back to the lines you left, because they now have new squares to work with. Repeat until the grid is full.

Step 1: measure the slack

Add the runs of a line and one gap between each pair of runs. Subtract that total from the length of the line. The result is the slack: the number of squares by which the runs can slide as a group. A run that is longer than the slack always covers its middle: it has (run length - slack) squares that are shaded in every placement.

Clue in a 10-square lineSpace neededSlackSquares that are sure
9918 (squares 2 to 9)
4 4913 in each run
1 4 1822 (the middle of the 4)
7734 (squares 4 to 7)
6642 (squares 5 and 6)
3370 (nothing yet)
Examples from 10-square lines. Slack = 10 - (runs + gaps). Sure squares = run length - slack, when positive.

When the slack is 0 the line is solved at once: "2 1 2" in a line of 7 squares must be two shaded, one empty, one shaded, one empty, two shaded.

Step 2: zeros and dots

A 0 means the whole line is empty. Dot it straight away. Dots matter as much as shaded squares, because a dot at the end of a line reduces its slack. If a line of 10 has a run of 9 and its last square is dotted, the run must start at the first square and covers squares 1 to 9. The slack went from 1 to 0 because of one dot.

A grid solved in three passes

This Easy puzzle from the LogikLand generator has rows and columns that both read 1, 3, 5, 7, 9, 7, 5, 3, 1 and 0. Its solution is a diamond. We solved it with a line-by-line solver and found that three passes are enough, where one pass means every row, then every column.

An Easy LogikLand nonogram and its solution.

Pass 1: the big runs and the zeros

  • Row 5 and column 5 say 9 (slack 1): squares 2 to 9 are shaded in the row, and rows 2 to 9 in the column.
  • Rows 4 and 6, and columns 4 and 6, say 7 (slack 3): their squares 4 to 7 are shaded.
  • Row 10 and column 10 say 0: dot them. Column 10 is now all dots.
  • Column 5 says 9 and row 10 is dotted, so its run is rows 1 to 9. Column 9 says 1 and its row 5 square is shaded: that is its run, so the rest of column 9 is dots.

Pass 2: the dots do the work

  • Row 5 says 9 and column 10 is empty. The run therefore covers squares 1 to 9, and square 1 is shaded.
  • Row 1 says 1 and its column 5 square is shaded: that is the run. Row 9 is the same. All other squares of both rows are dots.
  • Columns 4 and 6 say 7 and now have dots at their ends, so they gain two more shaded squares each.

Pass 3: finishing

What is left unknown is the edge of the diamond: squares 3 and 7 of rows 2 and 8, and square 7 of rows 3 and 7, plus the matching squares in rows 4 and 6 and in columns 3 and 8. Each is decided because the lines that cross it now have shaded squares and dots at their ends. At the end of the third pass every one of the 100 squares is known.

When you are stuck

  • Re-check the lines you skipped. A line that gave nothing at first often gives something after its crossing lines have changed.
  • Look at the ends. If the first or last square of a line is shaded, the first or last run must start or end there.
  • Count again. When a run is complete, dot the squares on both sides of it.
  • Move to a different area. Another corner of the grid may have lines with less slack.

Avoiding mistakes

Work in pencil. One wrong shaded square spreads: it makes a line seem impossible, and you may blame the wrong line. If a line cannot be completed, find the last square you were less than sure about. The how-to-play guide of the assistant gives the same advice: check each new shaded square before you move on.

Tip

Cross out a number once its run is placed. In long lines such as 1 3 1 3 it keeps you from counting the same run twice.

Putting it into a book

LogikLand has no free single-puzzle tool for nonograms. To make a book, create a free account and use the Nonogram assistant: four sizes from 10 x 10 to 25 x 25, patterns or silhouettes, and an optional "How to play" page with a worked 6 x 6 example. Our suggestion, not a rule: solve one grid of each size yourself before you decide how many to put in a book.

Create a free account to make a full book

Create a free account to open the assistant. New to the puzzle? Start with the nonogram rules, then go on with advanced nonogram techniques.

Questions

Which line should I start with?

The one with the least slack: the line where the runs and their gaps take almost the whole length. In a 10-square line, a single 9 leaves only one square of slack, so eight of its squares are sure at once.

Do I ever need to try a square and see what happens?

Not in a LogikLand nonogram. The generator keeps a grid only when a line-by-line solver can finish it, so every square can be found with the steps on this page.

How long does a puzzle take?

It depends on the size. LogikLand grids go from 10 x 10 (Easy) to 25 x 25 (Expert). Time yourself on an Easy grid first and use that to choose the book levels.

Sources

Want to publish your own puzzle book?

LogikLand generates Sudoku, crossword, word search and maze books for Amazon KDP, in 8 KDP trim sizes from 5 x 8 to 8.5 x 11 inches, plus A4 and 8.5 x 8.5 square, exported as a PDF or an editable PPTX file. Commercial rights come with the PRO and EXPERT plans.

Related: All blog articles | Try the tool | All free puzzle generators | More Logic puzzles articles