Calcudoku is a number puzzle that mixes Sudoku-style logic with quick arithmetic. Fill a square grid so no number repeats in any row or column, and make the numbers in each bold cage hit its target with its sign. Boards run from 4×4 to 7×7, and a solver checks every set of cages for a single answer before you see it.
Calcudoku rules: rows, columns, and cages
A Calcudoku board has 4, 5, 6, or 7 squares on each side. Call that size n, and fill the board so that:
- every row holds each number from 1 to n exactly once,
- every column holds each number from 1 to n exactly once, and
- the numbers in each cage, outlined in bold, make the target in its corner using the cage's sign.
A filled grid with no repeats in any row or column is called a Latin square. Unlike Sudoku, there are no 3×3 boxes, and there are no starting numbers either: every clue is a cage.
How Calcudoku cages and targets work
Each cage has one to four squares and a label such as 12× or 3−. The sign tells you how to combine its numbers:
- + The numbers add up to the target. 7+ in two squares on a 4×4 board must be 3 and 4.
- × The numbers multiply to the target. 6× in two squares is 2 and 3, or 1 and 6 on a board that has a 6.
- − Two squares only. Take the smaller number from the bigger one, so 3− on a 5×5 board is 1 and 4, or 2 and 5.
- ÷ Two squares only. Divide the bigger number by the smaller, so 2÷ on a 6×6 board is 1 and 2, 2 and 4, or 3 and 6.
- A cage with one square shows just its number, with no sign. Type that number in.
A number can appear twice in the same cage, as long as the two squares aren't in the same row or column. In an L-shaped 12× cage, for example, the two ends could both be 2, with a 3 in the corner square.
Four sizes and two sets of operations
Under New puzzle, pick a size and a set of operations. The game starts on 4×4 with all four signs, a good place to learn the rules. Each size up adds more squares, bigger targets, and more ways for each cage to work out.
+ − × ÷ uses every sign. + and − sticks to adding and taking away: two-square cages are − or +, and bigger cages are always +. That makes a gentler start for younger players, or for anyone who'd rather not multiply. Your records are kept separately for each size and set of operations.
How the game cuts cages with one answer
Pressing Start a new puzzle builds the next board right in your browser. The game fills a random Latin square of the chosen size, cuts it into cages, picks a sign for each cage, and works out the target from the hidden answer. A solver then checks the result. If two different answers fit, the cage where they differ is cut again or given a new sign, and the check runs again until exactly one answer is left.
Those repairs can split a cage into single squares, so some puzzles have several one-square cages and others none. Switch the size or operations mid-solve and your cages stay put; the new choice applies to the next board.
Notes, hints, and red cage labels
Notes suit this puzzle well, because most small cages leave only two or three candidate pairs. Pencil them in with Notes, or by holding Shift as you type, and each number you place wipes itself from the notes in its row and column.
- Hint corrects a wrong number before anything else. Otherwise it fills a square that logic forces and tells you how: either the row and column already use every other number, or only one number fits once the row, column, and cage are counted. If nothing is forced yet, it reveals a square.
- Show mistakes marks a wrong number red the moment you type it. Switch it off and the board still flags two kinds of trouble: a repeat in a row or column, and a cage label that turns red once all its squares are full and the target isn't met.
- Undo steps back through numbers, notes, erasures, and hints, but its history is cleared when the page reloads.
The Mistakes count goes up for every wrong number, whichever way the setting is.
An order of work for your first boards
Over your first few puzzles, these steps cover most of the work:
- Start on 4×4 with + and − until the rules feel natural, then add × and ÷.
- Write in the one-square cages before anything else.
- For each small cage, list the pairs that hit its target and pencil them in as notes.
- Look at cages with very big or very small targets. They have the fewest ways to work out.
- When a row or column has only one or two gaps left, check it against the row total.
Calcudoku math: row totals and 61 trillion grids
A finished Calcudoku is a Latin square, so every row and column holds the same set of numbers. That fixes two totals on every board: each row adds up to 10 on 4×4, 15 on 5×5, 21 on 6×6, and 28 on 7×7, and multiplies to 24, 120, 720, and 5,040. Those totals often unlock the last few squares.
Mathematicians have counted 576 different Latin squares of size 4, 161,280 of size 5, 812,851,200 of size 6, and about 61 trillion of size 7. The cages have to narrow all of those down to a single answer, which is why each puzzle goes through a solver before you see it.
Cage labels, the keypad, and keys
Each label sits in its cage's top row, in the leftmost square. On a phone or tablet, tap a square and then a number on the keypad. The keypad offers only 1 up to the board size, each key counts how many of that number are left, and a key that has run out says so, such as "Every 4 is already placed."
- Keyboard: the arrow keys wrap, so moving right from the last column lands on the first. A number bigger than the board, such as 6 on 5×5, is refused with a reminder of which numbers this puzzle uses. The other keys are listed under the grid.
- Screen readers: each square is read with its row, column, number or notes, and its cage, such as "in a 3-square cage, 12 times" or "a one-square cage showing 3".
Calcudoku shares its board and keypad with Futoshiki and Skyscrapers, so the controls carry over if you try those next.
From Tetsuya Miyamoto in 2004 to The Times in 2008
This kind of puzzle was invented in 2004 by Tetsuya Miyamoto, a Japanese math teacher, who meant it to be solved without any instructions. It's best known under the trademarked name KenKen, which The Times in London began printing in March 2008, and other papers, including The New York Times, followed. Calcudoku and Mathdoku are the generic names other publishers use.
Some puzzle books, including Will Shortz's English-language KenKen collections, limit − and ÷ to two-square cages, so the order of the two numbers never matters. This game follows the same rule. It was written from scratch for this site and isn't affiliated with KenKen or its owners.
Records and the puzzle you left halfway
There's no account to make. The game keeps one local storage entry in this browser instead: your size, operations, and Show mistakes choice, the grid in progress with its cages, numbers, notes, mistakes, hints, and clock, and puzzles played, puzzles solved, and best time for each size and operation set. Close the tab halfway through a 7×7 and your cages and notes are waiting next time. Reset records clears the records but leaves the current grid alone.
You need a connection to load the page. After that the cages are cut in your browser, and your grids, guesses, and times aren't sent to a server. The privacy policy lists the stored entry. For sums inside a full 9×9 grid, try Killer Sudoku.