Skip to content
PencilGrid

How to Play Calcudoku

Also known as KenKen and Mathdoku.

To learn how to play Calcudoku, hold on to two rules. Every row and column holds each digit from 1 to N once, and the digits in each cage make its target with its sign. This guide covers the rules, the nine techniques our hints use, and the opening of a real daily grid.

Published

The Rules

  1. Fill every cell of the N×N grid with a digit from 1 to N: 1 to 5 on a 5×5, 1 to 6 on a 6×6, 1 to 7 on a 7×7.

  2. Every row and column holds each digit exactly once.

  3. The digits in a cage make the number in its corner: added for +, multiplied for ×, the smaller taken from the larger for −, the larger divided by the smaller for ÷.

  4. A − or ÷ cage has two cells, and either cell may hold the larger digit. A cage of one cell shows its digit and no sign.

  5. A digit may repeat inside a cage when the two cells share no row and no column.

Nothing is filled in at the start. The one-cell cages are the only digits you are told outright, and you enter them yourself.

How to read a cage

A cage tells you a set of digits, never their order. 7+ across two cells of a 6×6 is 1 and 6, 2 and 5, or 3 and 4, and the cage itself does not say which cell gets which. The work of the puzzle is cutting that list down with the rows and columns around it.

The repeat rule matters most in bent cages. Three cells in an L shape marked 4+ can be 1, 1 and 2, because the two end cells share no line. The same target on three cells in a straight row has no answer at all, since 1, 1 and 2 would repeat along the row. In the first 520 grids our generator made, 748 of the 7,862 cages hold a repeated digit, so expect to meet one most days.

Entering digits and notes

Tap a cell, then a digit on the pad. Tapping the same digit again clears the cell. Switch Notes on to pencil in the digits a cell could still hold: they sit small in the lower part of the cell, under the cage label, and vanish when you place a digit.

On a keyboard, the arrow keys move, the digit keys place, N or Space toggles Notes, Shift with a digit writes one note, and Backspace clears. Check marks a digit repeated in a row or column, any digit that differs from the answer, and tints a full cage that misses its target. Hint works from the digits you have placed, not from your notes, and names the next technique from the list below.

Step by Step

1

Fill the one-cell cages

A cage of one cell holds the digit it shows. Enter those first; each one removes that digit from its row and its column.

2

List the cages with one answer

Some targets leave a single group of digits. On a 6×6, two cells marked 3+ are 1 and 2, 11+ is 5 and 6, 5− is 6 and 1, and 6÷ is 6 and 1. Note those pairs in.

3

Let each cage clear its line

A cage lying in one row uses up its digits for that row. If 3+ sits in row 2, no other cell of row 2 is 1 or 2. Look for a digit that now has one cell left.

4

Finish cages from the inside

When all but one cell of a cage is filled, the last is arithmetic: the target less the others for +, the target divided by the others for ×.

5

Add up the row

A row or column of a 6×6 adds to 21 (15 on a 5×5, 28 on a 7×7). If its cages add to a known amount, the cell they leave out is the difference.

6

Try a cage every way

When nothing is forced, take one cage and list every way its cells' remaining candidates can make the target. Cross out any candidate that appears in none of them.

Solving Techniques, Easiest First

These are the nine deductions the solver tries, easiest first. The Hint button reports the easiest one that makes progress, and a grid's level is the highest one it cannot do without.

Calcudoku techniques in the order the grader tries them
TechniqueFirst needed at
Cage CombinationsEasy
Naked SingleEasy
Hidden SingleEasy
Line TotalEasy
Cage EliminationsMedium
Naked PairHard
Hidden PairHard
Pointing CageHard
X-WingHard

Cage Combinations

Easy

Read one cage's target and nothing else. A one-cell cage holds its number, the last cell of a cage is whatever completes the target, and any other cage keeps only the digits that appear in some group reaching it. Two cells marked 20× on a 5×5 are 4 and 5, so 1, 2 and 3 leave both cells.

Read the Cage Combinations article

Naked Single

Easy

A cell with one candidate left takes it. In Calcudoku the other candidates go two ways: the row and column already hold them, or the cell's cage has no group that uses them.

Hidden Single

Easy

In a row or column, a digit with one cell left goes there. It is the hardest step of 84 of the 148 Easy grids in our first batch, usually because a cage in the line has no room for that digit.

Line Total

Easy

Every row and column adds to 1 + 2 + … + N. Cages lying wholly inside a line and adding to a known amount leave a known sum for the cells they miss. Cages that cover every open cell of a line hold a known amount more than the line, and that excess sits in their cells outside it.

Read the Line Total article

Cage Eliminations

Medium

Fill one cage every way its cells' current candidates allow, and remove any candidate no fill uses. This is Cage Combinations with the rest of the grid taken into account, and it is the one technique that makes a grid Medium: all 222 Medium grids in the first batch stop here.

Naked Pair

Hard

Two cells of a row or column holding the same two candidates will take both digits between them, so those digits leave every other cell of the line. A two-cell cage often supplies the pair. It is the hardest step of 85 of our first 150 Hard grids.

Hidden Pair

Hard

Two digits that fit only the same two cells of a line must go there, so those two cells lose every other candidate.

Pointing Cage

Hard

When every way left to fill a cage puts a certain digit in the same row or column, the line gets that digit from the cage and no other cell of the line can hold it. You do not need to know which cell of the cage it lands in.

X-Wing

Hard

When a digit can go in only the same two columns in each of two rows, those two rows use up that digit for both columns, and it leaves the other cells of the columns. The same holds with rows and columns swapped.

Worked example: the opening of a real daily

The grid below is the daily of 16 November 2026, an Easy 5×5 and puzzle 107 on the site. What follows are its first thirteen hints in the order the Hint button gives them, with the reasoning written out.

Three cages have one cell: r1c1 is 5, r1c4 is 2 and r3c3 is 5. Before placing anything else, read the cages that have one answer. 12+ runs along three cells of row 2, and three different digits from 1 to 5 reach 12 only as 3, 4 and 5. 6× runs down three cells of column 5, so it is 1, 2 and 3. The 3− cage in row 1 is 4 and 1 or 5 and 2.

The Calcudoku daily of 16 November 2026: an empty 5 by 5 grid with twelve cagesRow 1 holds a one-cell cage marked 5, a two-cell 3− cage, a one-cell cage marked 2 and the top of a 6× cage that runs down column 5 for three cells. Row 2 holds a three-cell 12+ cage and the top of a 5+ cage. Row 3 starts with a 1− cage and has a one-cell cage marked 5 in the middle. The bottom two rows hold a bent 4+ cage, a 1− cage, a bent 14+ cage and a 7+ cage.53−26×12+5+1−54+1−14+7+
The starting grid. Nothing is filled in; the three one-cell cages (5, 2 and 5) are the only digits given.

Row 1 now holds 5 and 2, so its 3− cage must be 4 and 1, and neither of its cells can be 3. The row's 3 has one cell left, r1c5: a Hidden Single. Row 2 needs a 2 as well. Its 12+ cage is 3, 4 and 5, and r2c4 sits under the 2 in column 4, which leaves r2c5.

The 6× cage now holds 3 and 2, so its last cell, r3c5, is 6 ÷ 6 = 1. Row 2 has one place left for its 1, r2c4, and the 5+ cage finishes with 5 − 1 = 4 in r3c4.

The same grid after eight hints, with the top of columns 4 and 5 filledRow 1 reads 5, blank, blank, 2, 3. Row 2 has 1 in column 4 and 2 in column 5. Row 3 has 5 in column 3, 4 in column 4 and 1 in column 5. The five cells placed after the one-cell cages are outlined.553−226×312+5+121−55414+1−14+7+
Hints 4 to 8: two Hidden Singles, then the last cells of the 6× and 5+ cages.

Column 4 holds 2, 1 and 4, and r4c4 belongs to the bent 14+ cage. Three cells reach 14 on a 5×5 only as 5, 5 and 4, and the two 5s must go on the cells that share no line, r4c4 and r5c5. The hints arrive at the same digits as two Naked Singles and a last cell: r4c4 is 5, r4c5 is 4, and r5c5 is 14 − 9 = 5.

Column 4 is then missing only a 3, which goes in r5c4, and the 7+ cage ends with 7 − 3 = 4 in r5c3. The right-hand side is done after thirteen hints.

The grid after thirteen hints, with columns 4 and 5 completeRow 4 now has 5 in column 4 and 4 in column 5. Row 5 has 4 in column 3, 3 in column 4 and 5 in column 5. The bent 14+ cage holds 5, 4 and 5, with the two 5s on cells that share no row or column.553−226×312+5+121−55414+1−14+547+435
Hints 9 to 13: the 14+ cage holds a repeated 5, and the 7+ cage closes the bottom row's right end.

The left half takes twelve more hints, each one a Naked Single or the last cell of a cage. No step in this grid looks at more than one cage or one line at a time, which is what Easy means here. A Medium daily adds Cage Eliminations, where a cage is tested against the candidates around it, and a Hard daily needs a pair, a Pointing Cage or an X-Wing.

Tips for Faster Solving

  • Learn the two-cell cages with one answer for the size you are playing. On a 6×6 they are 3+, 4+, 10+ and 11+, 5−, and 4÷, 5÷ and 6÷, along with eleven of the thirteen possible × targets.

  • Treat a big multiplication target as a factoring problem. 60× in three cells of a 5×5 is 3, 4 and 5 because 60 has no other split into three digits that small.

  • Check whether a cage is straight or bent before you list its groups. A straight cage never repeats a digit; a bent one may, on the cells that share no line.

  • When a row is nearly covered by + cages, add them up. The row's total is fixed, so one subtraction gives you the cell they miss.

  • Use Notes for cages with two or three groups, and update them after every digit you place. A Cage Eliminations step is a note that the digits around it no longer allow.

Frequently Asked Questions

What are the rules of Calcudoku?

Fill an N×N grid with the digits 1 to N so that each row and column holds every digit once and each cage makes its target with its sign. Subtraction and division cages have two cells, and a digit may repeat in a cage only on cells that share no row or column.

Is KenKen solved the same way as Calcudoku?

Yes. KenKen is the trademarked name for these rules and Calcudoku is a name used by other publishers, so every technique on this page applies to a KenKen grid of the same size.

Can the same number be used twice in one cage?

Yes, if the two cells are in different rows and different columns. That can only happen in a cage that bends. Three cells in an L marked 14+ on a 5×5 hold 5, 4 and 5, with the 5s on the two ends.

What is the best way to start a Calcudoku?

Enter the one-cell cages, then look for cages whose target leaves one group of digits. Those cages act like known digits spread over two or three cells, and they clear their digits from the row or column they lie in.

How do subtraction and division cages work?

Each has exactly two cells, and the sign applies to the larger digit first. 2− means the digits differ by 2, and 3÷ means one digit is three times the other. The puzzle never tells you which cell holds the larger one.

How are Calcudoku puzzles graded on PencilGrid?

By the hardest technique the solver cannot avoid. Cage Combinations, Naked Single, Hidden Single and Line Total make a grid Easy, Cage Eliminations makes it Medium, and Naked Pair, Hidden Pair, Pointing Cage or X-Wing makes it Hard. Easy dailies are 5×5, Medium 6×6 and Hard 7×7.

Sources

  • Simon Tatham's Portable Puzzle Collection: Keen: the rules: one of each digit per row and column; addition and multiplication clues; subtraction and division clues in blocks of two, either way round; a block may repeat a digit outside a shared row or column
  • Wikipedia: KenKen: the same rules under the trademarked name; Calcudoku and Mathdoku as the names used without it; the target and operation shown in the cage's upper left corner
  • How PencilGrid puzzles are made: the technique ladder, grading and the uniqueness check

Sources last checked on 2026-11-15.

Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.

Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →

More Calcudoku Pages

Related puzzles: Killer Sudoku · Futoshiki · Kakuro

Keep Going