Logic Puzzles
Solve logic puzzles step by step with the grid method, elimination, case analysis, knights and knaves, ordering clues, number clues and river crossings.
Definition
| Football | Tennis | Swimming | |
|---|---|---|---|
| Ana | ✗ | ✗ | ✓ |
| Ben | ✓ | ✗ | ✗ |
| Cleo | ✗ | ✓ | ✗ |
- Process of elimination: cross out what is impossible until only one option is left
- Case analysis: assume one possibility, follow it through, and drop it if it leads to a contradiction
- Knights and knaves: knights always tell the truth, knaves always lie, so test both cases for every speaker
- Ordering puzzles: draw the line or the row of houses and place the fixed people first
- Number puzzles: turn sum and product clues into a short list of candidates and test each one
- Crossing puzzles: count every one-way trip and look for the move that cannot be avoided
Try it now
Worked Examples
Lena, Marco and Nina each own one different pet: a cat, a dog or a parrot. Clue 1: Marco is allergic to animals with fur. Clue 2: Lena does not own the dog. Who owns which pet?
Set up a grid
Rows: Lena, Marco, Nina. Columns: cat, dog, parrot. That gives cells, and each row and each column will get exactly one ✓. → An empty grid with 9 cells
Use clue 1
Cats and dogs have fur, so write ✗ in Marco's cat cell and dog cell. Only the parrot is left in his row. → Marco ✓ parrot
Complete the parrot column
Only one person owns the parrot, so write ✗ for Lena and for Nina in the parrot column. → Lena and Nina: ✗ parrot
Use clue 2
Lena now has ✗ for the dog and ✗ for the parrot, so only the cat is left in her row. → Lena ✓ cat
Fill in the last cell
Nina's row has only the dog left, and the dog column has no ✓ yet. → Nina ✓ dog
Answer: Lena owns the cat, Marco owns the parrot and Nina owns the dog. Check: the parrot has no fur, and Lena does not own the dog, so both clues hold.
Common Mistakes
Writing a ✓ in the grid but not crossing out the rest of its row and column
Why it's wrong: Each person has exactly one item and each item has exactly one owner. Missing ✗ marks hide the next deduction.
Correct: Every time you write a ✓, immediately write ✗ in all the other cells of that row and that column.
Reading "directly behind" as "somewhere behind"
Why it's wrong: "Dan stands directly behind Ben" means two neighboring places, while "Ana stands somewhere in front of Eva" allows a gap. Mixing them up gives wrong or extra solutions.
Correct: Underline words like directly, next to, somewhere, not and only, and use each clue exactly as it is written.
Believing what a speaker says in a knights and knaves puzzle
Why it's wrong: The statement might come from a knave. Taking it as true means you only looked at one of the two cases.
Correct: Test both cases for each speaker: knight (the statement is true) and knave (the statement is false). Keep only the case without a contradiction.
Counting round trips instead of crossings
Why it's wrong: One round trip is two crossings. Someone who counts the wolf, goat and cabbage solution as round trips plus a last trip reports instead of .
Correct: Count every one-way trip separately, and read carefully which of the two the question asks for.
Interactive Visual
Logic grid puzzle
Clues
Tap a clue to cross it off once you have used it.
| Pet | Favorite color | ||||||
|---|---|---|---|---|---|---|---|
| cat | dog | fish | red | green | blue | ||
| Person | Ana | ||||||
| Ben | |||||||
| Cleo | |||||||
| Favorite color | red | ||||||
| green | |||||||
| blue | |||||||
Tap a cell once for ✗ (no match), twice for ✓ (match), a third time to clear it. A ✓ crosses out the rest of its row and column.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsAna, Ben and Cleo each own one different pet: a cat, a dog or a fish. Ana's pet lives in water. Ben does not own the cat. Who owns the cat?
Why It Matters
- Proofs: case analysis and proof by contradiction are the same moves mathematicians use in geometry and number theory
- Computer science: programmers find bugs by ruling out causes one by one, and scheduling software solves giant grid puzzles
- Everyday planning: fitting exams, matches or work shifts into a timetable is a grid puzzle with real clues
- Games and contests: Sudoku, KenKen and math olympiad problems all reward the same careful reasoning
Real World Applications
Timetables and Scheduling
Schools, sports leagues and airlines build timetables by solving huge grid puzzles: every event needs exactly one slot, and the rules are the clues.
Example:
A school with exams and exam days fills a grid, exactly like matching people to pets.
Three exams, Math, History and Art, are on days , and , one exam per day. Math is not on day . Art is on the day right after Math.
On which day is each exam?
Step 1: Write the mathematical expression
Math can only be on day (Art needs a day after it), and Art is one day after Math. Write Art's day as an addition:
Finding a Fake Coin
Quality control and detective work use the same idea as logic puzzles: split the possibilities into groups and rule out whole groups at once.
Example:
With a balance scale, one weighing of coins against coins tells you which of three groups holds a lighter fake coin.
You have coins that look the same, but one of them is a fake that is lighter than the others. You have a balance scale and no weights.
What is the smallest number of weighings that always finds the fake coin?
Step 1: Write the mathematical expression
Each weighing divides the number of suspects by . Write this, starting from coins:
Ferry Planning
Crossing puzzles are real work for ferry and shuttle operators, who count one-way trips because every trip costs fuel and time.
Example:
A boat that has to come back for more passengers makes crossings per round trip, plus one last crossing with no return.
A small ferry takes at most cars per trip. cars wait on one bank, where the ferry also starts. It does not have to come back at the end.
What is the smallest number of crossings needed?
Step 1: Write the mathematical expression
Add the trips with cars and the empty return trips:
Key Takeaways
- 1A logic puzzle has clues and exactly one solution that fits all of them, found by reasoning rather than guessing
- 2Grid method: one row per person, one column per item; ✓ marks a fact, ✗ rules a cell out, and every row and column ends with exactly one ✓
- 3Process of elimination: when every option but one is crossed out, the last one must be true
- 4Case analysis: assume one possibility and follow it through; a contradiction means that case is impossible
- 5Knights always tell the truth and knaves always lie, so test every speaker as both and keep the case that is consistent
- 6In crossing puzzles count every one-way trip; people with a 2-seat boat need crossings
Frequently Asked Questions
Glossary
- Clue
- A piece of information in a puzzle that rules some arrangements in or out
- Logic grid
- A table with one row per person and one column per item, filled with ✓ and ✗ marks
- Process of elimination
- Crossing out impossible options until only one is left
- Case analysis
- Splitting a problem into all possible cases and checking each one separately
- Contradiction
- Two facts that cannot both be true; reaching one shows that an assumption was wrong
- Knight and knave
- Puzzle characters: a knight always tells the truth, a knave always lies
Formula Card
Grid rule
Each row and each column has exactly one ✓; a ✓ turns the rest of its row and column into ✗
Case analysis
Try every case and keep only the one that fits all the clues
Crossings with a 2-seat boat
For $n \ge 2$ people when someone must row back each time; for example $5$ people need $7$ crossings