KenKen Solver — Enter the Cages, Get the Grid

Type in the cages and givens from any KenKen, Calcudoku, Mathdoku or NYT KenKen puzzle, press Solve, and the full grid appears. It also tells you whether the puzzle has exactly one answer.

Click cells to select them → pick the operator → type the target → Add cage. A single cell with = is a given digit.

Everything runs in your browser — the cages never leave your device. Nothing to sign up for.

How to Use This KenKen Solver

  1. Set the grid size. The puzzle's size is printed next to it — 4×4, 5×5, 6×6 and so on. The number of cells and the digits 1 to N follow from that.
  2. Enter one cage at a time. Click the cells of a cage (they must share edges), pick the operator that is printed in the cage, type the target number, then press Add cage. The cage keeps its colour on the board, so you can see at a glance which cells are still unassigned.
  3. Enter the givens. A digit printed on its own in a single cell is a one-cell cage: select that cell, choose =, type the digit, Add cage. A digit printed inside a bigger cage — the way the New York Times app and most KenKen games show them — is entered in Givens mode: switch to Givens, click that cell, type the digit, press Set given. Cages and givens are entered independently, so the order does not matter.
  4. Press Solve. When every cell belongs to a cage the full grid appears. If a cell is missing from every cage, the solver points it out instead of guessing.

The example is a 4×4 KenKen with a division cage, a multiplication cage and five givens — four of them printed inside a bigger cage, the way most puzzle apps print them. Press Load example to see a completed entry before you start on your own puzzle.

Cage Notation: What the Four Operators Mean

Digits may repeat inside a cage but never within a row or a column, and the cage's own arithmetic has to hold exactly. Those three rules together make a well-made KenKen uniquely solvable — and they are the same three rules this solver applies to your entry.

How the Solver Works

The solver does two things at once. First it narrows every cage: for each cage it works out which combinations of digits can produce that target, given the digits that are already fixed. Then it places digits under the KenKen rules — no repeats in a row, no repeats in a column — always choosing the most constrained cell first, which is why boards up to 6×6 come back in milliseconds.

After the first solution is found it keeps searching for a second one. That is the part most solvers hide from you: if a second answer exists, it says so instead of presenting one arbitrary grid as the answer. For a puzzle taken from a newspaper or the NYT app the verdict is always "unique solution", so a "more than one solution" warning nearly always means the entry, not the puzzle.

Everything runs locally in JavaScript. There is no server round-trip and no upload: your puzzle stays in the tab, and the page works offline once it has loaded.

KenKen, Calcudoku, Mathdoku, Kendoku: One Puzzle, Many Names

The puzzle was invented by the Japanese teacher Tetsuya Miyamoto as a way to teach arithmetic without drilling it, and it became famous through the New York Times under the name KenKen. Publishers who could not use the trademark call it Calcudoku, Mathdoku, Kendoku, Newdoku or MathDoku. The cages, the four operations and the Latin-square rule are identical in all of them, so there is no separate tool to hunt down: enter the cages from your book or app here and this page solves it under any of those names. The same goes for the themed variants — cat KenKen, killer sudoku hybrids and the daily puzzles inside puzzle apps all use one-cell givens and + − × ÷ cages.

Sizes and Difficulty

The digits are always 1 to N on an N×N grid, so a 4×4 uses 1–4 and a 6×6 uses 1–6. The New York Times publishes 4×4 to 7×7; magazines and apps go from 3×3 up to 9×9. This solver covers 3×3 to 9×9. Larger boards are not harder for the solver, only slower for you to type — 9×9 KenKen puzzles have about forty cages.

When the Solver Says "No Solution"

A KenKen entry can be contradictory even though every cage looks plausible on its own. Check these, in this order:

  1. A cell is in no cage, or in two. The board colours make this visible: every cell must have exactly one cage colour.
  2. A target is off by one — the most common mistake by far, especially on multiplication cages (24× vs 36×).
  3. A two-cell cage was entered as three cells (or the reverse) for − and ÷.
  4. A given is the wrong digit. Givens sit on top of a cage, so a digit that disagrees with the printed puzzle makes the cage arithmetic impossible even though the cage itself was typed correctly.
  5. A digit is impossible in this size — a 7 in a 6×6 board.

Why "More Than One Solution" Matters

An ambiguous KenKen has two or more grids that satisfy every cage. That is worth knowing before you spend twenty minutes on a cell that cannot be deduced: on a genuinely ambiguous board no amount of logic will force the answer, because the puzzle does not have one. Most often it is an entry slip, but hand-made puzzles in magazines and app levels do ship with looser cage sets. The solver shows you the first solution it found and says plainly that it is not unique, so you can compare both grids against your own progress — or fix the entry and solve again.

Frequently Asked Questions

Is this KenKen solver free?

Yes — free, no account, no download, no limit on how many puzzles you solve. Everything runs in your browser: the cages you type never leave your device.

How do I enter a KenKen puzzle?

Two passes. First the cages: click the cells that make up one cage, pick its operator, type the target number, then press Add cage — repeat until every cell is covered. Then the givens: switch to Givens mode, click each cell that shows a printed digit and set it. A digit alone in its cell can go in as a one-cell cage with = instead. Press Solve when the grid is covered.

What does the ÷ operator mean in KenKen?

Division cages have exactly two cells: the larger digit divided by the smaller one equals the target. So 6÷ on two cells means 6 and 1, or 3 and 2. Order does not matter — 1 and 6 is the same cage as 6 and 1.

What does the − operator mean?

Subtraction cages also have exactly two cells: the difference between the two digits equals the target. A 2− cage is 3 and 1, or 4 and 2 — never 1 and 1.

Can it solve a 6×6 or a 9×9 KenKen?

Yes. The tool handles 3×3 up to 9×9, which covers the NYT daily KenKen sizes (4×4 to 7×7) and the 9×9 monsters in puzzle apps. Boards up to 6×6 solve instantly; the very largest sizes take a moment on a phone.

The solver says my puzzle has more than one solution. Is the solver wrong?

No. That message means your cage set genuinely allows two or more different grids, and the solver shows the first one it finds. It usually happens when a cage was typed with the wrong target, when two cages that should be one were entered separately, or when the puzzle itself is ambiguous. A correctly entered KenKen from a newspaper or the NYT app has exactly one solution.

Why does it say no solution exists?

Something in the entry contradicts the KenKen rules. The four usual suspects: a cell left out of every cage, a target typed one off, a digit typed into a cage that already contains a given, or a two-cell ÷ / − cage entered as three cells. The solver prints which cage cannot be satisfied, then check that cage against the original puzzle.

Is KenKen the same as Calcudoku or Mathdoku?

Yes. KenKen is the trademarked name (invented by Tetsuya Miyamoto, popularised by the New York Times), and Calcudoku, Mathdoku, Kendoku, Newdoku and MathDoku are the same puzzle under different names. Cage entry and rules are identical, so this page solves all of them.

Does it show the solving steps?

No — and it does not pretend to. Unlike a nonogram, where human line logic maps cleanly onto steps, KenKen solving is a constraint search: the solver narrows each cage to the digit combinations that fit, then fills the grid by Latin-square rules. What it gives you instead is the full answer plus a uniqueness verdict, which is the part you actually need when you are stuck.

Can I share a puzzle with someone?

Yes. After you solve or build a puzzle the cages are written into the page address. Press Copy link and anyone who opens it sees the same puzzle, ready to solve — the fastest way to ask a friend or a forum why a puzzle feels impossible.

More Puzzle Solvers and Strategy Guides

Every tool here runs in your browser and needs no account. If you are working through a puzzle book, a newspaper page or an app level and you would rather check your reasoning than just see the answer, start with the strategy guide for that puzzle type.

🧮 Play KenKen Online Free