Skip to main content

Logical Solver

Solve logic grid puzzles with automatic deduction.

Logic grid puzzles pair up items from several categories so that each item matches exactly one item in every other category. Set up your categories and items below, then mark what you know by clicking cells or adding clues. As you go, the solver fills in every relationship that logically follows, including deductions that carry across categories.

How it works

Pick how many categories and items each has, name them, then choose Build grid. Tick Ordered on any category whose items can be compared, such as ages, times, prices or positions. New to it? Load example fills in a small four by four puzzle that uses every kind of clue.

In the grid, left click a cell to cycle it blank, no (✗), yes (✓), and back. Right click or long press sets yes directly. You can also pick a clue type and enter clues with the dropdowns:

  • is / is not: Ann is not from Oslo.
  • More or less than: Dee is older than Ann, or with an amount, Joris took 10 minutes more than the one in gray. Away from covers clues like they are 2 years apart.
  • Three-way comparison: Ben is 1 year younger than the painter and 1 year older than the one from Berlin. This also tells the solver that all three are different people.
  • Either / or: Dee is either the baker or from Paris, meaning exactly one of the two.
  • Neither / nor: Neither Ann nor Cal is from Oslo.
  • All different: Ann, the one from Rome and the nurse are three different people, for up to five items.

An ordered category compares by the number in each item, so 30, 30 min, $30 and Bag 3 all work, and clock times such as 5:30 count in minutes. If an item has no number, the items count in the order you entered them. Leave the amount blank when the clue only says more or less.

Every time you make a change, the solver applies its rules until nothing more follows: within a pair, one yes per row and column rules out the rest; a match shared with a third category copies across, so A matches B and B is not C means A is not C; and each comparison or either / or clue rules out every value it cannot allow. If your clues ever conflict, it tells you so you can back one out.

The triangular and square buttons switch how the grid is laid out. Use Share link to copy a URL that recreates the whole puzzle, names and marks included.