Skip to the game
Tic Tac Toe

Calcudoku

Fill each row and column with every number once, and make each bold cage hit its target with +, −, ×, or ÷. Calcudoku boards here run from 4×4 to 7×7.

Play Calcudoku

4×4

Mistakes
0
Time
0:00

Making a puzzle…

The numbers in each cage must make its target with its sign: add (+), take away (−), multiply (×), or divide (÷). For − and ÷, take the smaller number from or into the bigger one. A number can repeat in a cage if the two aren't in the same row or column. Pick a square, then a number. With a keyboard, move with the arrow keys and type a number; Backspace erases, N switches notes on and off (or hold Shift to add a note), Z undoes, and H gives a hint.

New puzzle
Size
Operations
Show mistakes
Your records

+ − × ÷

SizeSolvedBest time
4×40–
5×50–
6×60–
7×70–

How it works

How to play Calcudoku

Read each cage label, such as 12× or 3−, as a tiny sum to crack, then fit its numbers into the rows and columns without a repeat.

  1. Step 01

    Fill every row and column

    On a 4×4 board, every row and column holds 1 to 4 once each; on 7×7, 1 to 7. Unlike Sudoku, there are no 3×3 boxes.
  2. Step 02

    Make each cage's target

    The numbers in a bold cage make the target in its corner with its sign. A 12× cage could hold 3 and 4, or 2, 3, and 2 in an L shape.
  3. Step 03

    Work it out by logic

    Start with one-square cages and targets that can only be made one way. Pencil in notes, and press Hint if you're stuck.

Features

Calcudoku with four sizes and two sets of operations

  • Boards from 4×4 to 7×7

    4×4 for a quick start, then 5×5, 6×6, and 7×7 for longer puzzles with bigger targets.

  • Choose the operations

    Play with + and − only, or with all four: add, take away, multiply, and divide.

  • Cages cut for one answer

    If a solver finds two ways to fill the grid, the cage where they differ is cut again until only one is left.

  • Notes and undo

    Pencil in candidates, and placing a number clears it from the notes in its row and column.

  • Hints that explain

    A hint fixes a wrong number first, or fills a square that logic forces and says whether the cage was needed.

  • Records for each operation set

    Best times are kept for each size with + and −, and again with all four signs. Your puzzle in progress is saved as you go.

Strategy

Calcudoku strategy: narrowing down each cage

Each cage has only a few ways to hit its target. Narrow those down, then let the rows and columns finish the job.

  • Fill the single squares first

    A one-square cage shows its number with no sign. Type it in, then cross that number off the rest of its row and column.

  • Find targets with one answer

    On a 6×6 board, 11+ in two squares can only be 5 and 6, and 5− can only be 1 and 6. On 4×4, 7+ in two squares is always 3 and 4.

  • Factor the products

    60× in three squares on a 5×5 board must be 3, 4, and 5. No other three numbers from 1 to 5 multiply to 60, even with a repeat.

  • Use the row totals

    Every row adds to 10 on 4×4, 15 on 5×5, 21 on 6×6, and 28 on 7×7. If + cages inside a row cover all but one square, that square is what's left.

  • Read ÷ cages carefully

    In a 2÷ cage the bigger number is twice the smaller. On 4×4 and 5×5 that's 1 and 2 or 2 and 4, and a 3÷ cage on 6×6 is 1 and 3, or 2 and 6.

  • Spot the prime factors

    A × target that's a multiple of 5 needs a 5 in its cage, since no other number on these boards has 5 as a factor. On 7×7, the same goes for 7.

About the game

Calcudoku: arithmetic cages on a Latin square

The rules, how cages and targets work, sizes and operations, notes and hints, tips, the math of Latin squares, and where the puzzle came from.

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.

FAQ

Calcudoku questions

Quick answers about playing Calcudoku online: the rules, the cages, sizes, hints, and saving.

What is Calcudoku?

A number puzzle on a square grid. Every row and column holds each number once, and the numbers in each bold cage must make its target using its sign: +, −, ×, or ÷.

How do you play Calcudoku?

Pick a square and enter a number from 1 to the size of the board. Use the cage targets and the no-repeat rule to work out every square. The puzzle is solved when the whole grid is right.

Can a number repeat in a cage?

Yes, as long as the two squares aren't in the same row or column. In an L-shaped 12× cage, the two ends could both be 2, with a 3 in the corner.

How do − and ÷ cages work?

They always have two squares. Take the smaller number from the bigger one, or divide the bigger one by the smaller, to get the target. Which square holds the bigger number doesn't matter.

Is Calcudoku the same as KenKen?

It's the same style of puzzle. KenKen is a trademarked name, and Calcudoku and Mathdoku are generic names for it. This game was written for this site and isn't affiliated with KenKen.

Does every Calcudoku have one solution?

Yes. A solver checks each puzzle before you see it, and cages are cut again until exactly one answer fits.

Why did a cage label turn red?

Every square in that cage is filled, but the numbers don't make its target. The label turns red whether Show mistakes is on or off, so you can switch it off and still catch a wrong cage.

Will a hint tell me which cage matters?

It says whether the square was forced by its row and column alone, or whether the cage was needed too. If you have a wrong number, the hint fixes that first. Every hint is counted on the Solved card.

Does Calcudoku keep my notes if I close the tab?

Yes. The cages, your numbers and notes, the clock, and your settings and records stay in this browser's local storage, so a half-done 6×6 is still there tomorrow. Undo can't step back past a reload, though.