RiddleHub

Logic Puzzles

All 45 of these free logic puzzles play right in your browser, with hints when you're stuck and scoring the moment you answer. You'll meet the classics: river crossings, knights and knaves, weighing problems, and number traps that punish fast guesses. Logic puzzle books are great on a long flight, but paper can't check your work, and here every card tells you right away whether your reasoning holds.

  1. 1. A farmer must ferry a wolf, a goat, and a cabbage across a river. The boat holds the farmer plus one passenger. Left alone together, the wolf eats the goat and the goat eats the cabbage. How does everything cross safely?

    Need a hint?

    Nothing says a passenger can't ride the boat twice.

    Show answer

    Take the goat over first. Return empty, bring the wolf across, and take the goat back with you. Leave the goat, ferry the cabbage over, then return one last time for the goat. Seven crossings, nothing gets eaten.

  2. 2. On an island, knights always tell the truth and knaves always lie. An islander points at his friend and says, 'We are both knaves.' What are they?

    Need a hint?

    Could a truth teller ever say that sentence about himself?

    Show answer

    The speaker is a knave and his friend is a knight. A knight could never truthfully call himself a knave, so the sentence must be a lie. If it's a lie, they are not both knaves, so the friend has to be a knight.

  3. 3. Three boxes are labeled Apples, Oranges, and Mixed, and every single label is wrong. You may pull one piece of fruit from one box without looking inside. How do you fix all three labels?

    Need a hint?

    Start with the label that tells you the most when it's wrong.

    Show answer

    Draw from the box labeled Mixed. It can't actually be mixed, so whatever fruit you pull is all that box contains. Since the other two labels are also wrong, they now have only one legal way to swap.

  4. 4. A hunter walks one mile south, one mile east, and one mile north, and ends up exactly where she started. She sees a bear. What color is it?

    Need a hint?

    Where on Earth can that walk bring you home?

    Show answer

    White. That route only loops back to its start at the North Pole, so it has to be a polar bear.

  5. 5. I have two coins in my pocket that add up to 30 cents. One of them is not a nickel. What are the two coins?

    Need a hint?

    The statement is true. Read it very literally.

    Show answer

    A quarter and a nickel. One of them, the quarter, is not a nickel. The other one is.

  6. 6. Two ducks swim in front of a duck, two ducks swim behind a duck, and one duck swims in the middle. What is the smallest number of ducks that makes this true?

    Show answer

    Three ducks, swimming in a single line. The front duck has two behind it, the back duck has two in front, and the middle duck is in the middle.

  7. 7. A drawer holds 10 black socks and 10 blue socks, all loose. The room is pitch dark. How many socks must you grab to guarantee a matching pair?

    Need a hint?

    Plan for the worst case, not the lucky one.

    Show answer

    Three. With only two colors, any three socks must include at least two of the same color.

  8. 8. Three friends pay 30 dollars for a room. The clerk realizes it costs 25 and sends 5 back with a bellhop, who pockets 2 and returns 1 to each friend. The friends paid 27, the bellhop has 2, and 27 plus 2 is 29. Where did the missing dollar go?

    Need a hint?

    Is that final addition even a sum that should equal 30?

    Show answer

    Nowhere. The 27 the friends paid already includes the bellhop's 2, so adding it again counts that money twice. The honest ledger reads 25 to the hotel, 2 to the bellhop, 3 refunded, which is exactly 30.

  9. 9. During a race you somehow overtake the runner in last place. Why is that impossible?

    Need a hint?

    Where were you standing a second before the pass?

    Show answer

    To pass the last runner you'd have to be behind them. But if you were behind them, you were the one in last place, not them.

  10. 10. In one family, each boy has as many brothers as sisters, but each girl has twice as many brothers as sisters. How many boys and girls are there?

    Need a hint?

    Try small numbers and count from one child's point of view. Kids don't count themselves.

    Show answer

    Four boys and three girls. Each boy sees three brothers and three sisters. Each girl sees four brothers and only two sisters.

  11. 11. You have a 5 liter jug, a 3 liter jug, and a tap with unlimited water. How do you measure exactly 4 liters?

    Need a hint?

    The leftover after a pour is the whole trick.

    Show answer

    Fill the 5 and pour it into the 3, leaving 2 liters in the big jug. Empty the 3 and pour those 2 liters in. Refill the 5, then top up the 3. Exactly 1 liter leaves the big jug, and 4 liters remain.

  12. 12. A fork in the road leads to Truthville, where everyone tells the truth, and Liarburg, where everyone lies. A local stands at the fork, but you don't know her hometown. What single question reveals the road to Truthville?

    Need a hint?

    Design a question where the lie and the truth point the same way.

    Show answer

    Ask, 'Which road leads to your town?' A Truthville local points to Truthville honestly. A Liarburg local also points to Truthville, since she must lie about her own home. Either way, take the road she picks.

  13. 13. A census taker asks a woman for her three children's ages. She says they multiply to 36 and add up to the house number next door. He checks the number and says he still can't tell. She adds, 'My oldest loves chess.' Now he knows. What are the ages?

    Need a hint?

    Why would knowing the sum still leave him stuck?

    Show answer

    Nine, two, and two. Only two sets multiplying to 36 share a sum, 13: the sets 9, 2, 2 and 6, 6, 1. That's why the house number wasn't enough. The word 'oldest' kills the 6, 6, 1 option, because twins can't give you one single oldest child.

  14. 14. Two fathers and two sons go fishing. Each catches exactly one fish, yet only three fish are caught in total. How?

    Show answer

    They are three people: a grandfather, his son, and his grandson. The middle man is both a father and a son.

  15. 15. Four prisoners are buried up to their necks. A wall separates the first from the other three, who stand in a line facing the wall. They wear two black and two white hats and can only look forward. If any one of them correctly names his own hat color, all go free. Who speaks, and why?

    Need a hint?

    Silence is information too.

    Show answer

    The man standing second from the wall. The man at the back sees the two hats ahead of him. If they matched, he'd know his own color and speak. His silence tells the man in front of him that their two hats differ, so that man calls the opposite of the color he sees ahead.

  16. 16. Four people must cross a bridge at night with one flashlight. At most two may cross at once, and every crossing needs the light. They take 1, 2, 5, and 10 minutes, and a pair moves at the slower person's speed. What is the fastest total time?

    Need a hint?

    Make the two slowest people share a single trip.

    Show answer

    17 minutes. The 1 and 2 cross together (2), the 1 runs back (1), the 5 and 10 cross together (10), the 2 returns (2), and finally the 1 and 2 cross again (2).

  17. 17. A hundred kids stand in a circle playing an elimination game. Starting the count at player 1, every second player still standing is tagged out, round after round, until one remains. Which player wins?

    Need a hint?

    Solve it for 2, 4, 8, and 16 players first and watch the pattern.

    Show answer

    Player 73. The pattern depends on powers of two: with exactly 64 players, player 1 would win. The 36 extra players shift the winner by two spots each, and 2 times 36 plus 1 is 73.

  18. 18. A driver changing a flat tire drops all four lug nuts down a storm drain. A kid walking past gets the car back on the road within minutes. What did the kid suggest?

    Need a hint?

    The car has more than one wheel.

    Show answer

    Borrow one lug nut from each of the other three wheels. Three nuts per wheel holds fine for a careful drive to the garage.

  19. 19. You're stranded on an island covered in dry forest. A fire starts at the west end, and a steady wind pushes it east toward you. Cliffs drop into rough sea on every side. How do you survive?

    Need a hint?

    Fight fire with fire, literally.

    Show answer

    Light your own fire and let the wind carry it east ahead of you. Then walk onto the freshly burned ground and wait. When the main fire arrives, it finds nothing left to burn around you.

  20. 20. Back on the island of knights and knaves, islander A says, 'B and I are the same type.' What is B?

    Need a hint?

    Test both possibilities for A and watch what happens to B.

    Show answer

    B is a knight, no matter what A is. If A tells the truth, they're both knights. If A lies, they're different types, which still makes B the knight.

  21. 21. A bat and a ball cost 1.10 together. The bat costs one dollar more than the ball. How much is the ball?

  22. 22. A patch of lily pads doubles in size every day and covers the whole lake on day 48. On which day does it cover half the lake?

  23. 23. If 5 machines take 5 minutes to make 5 widgets, how long do 100 machines take to make 100 widgets?

  24. 24. On a game show you pick one of three doors; one hides a car. The host, who knows what's where, opens a different door showing a goat and offers a swap. What should you do?

  25. 25. In a race you overtake the runner in second place. What position are you in now?

  26. 26. When I was 6, my sister was half my age. Now I am 70. How old is my sister?

  27. 27. Nine identical balls, but one is slightly heavier. You have a balance scale. What's the minimum number of weighings that guarantees you find the heavy ball?

  28. 28. Four cards show A, K, 4, and 7. Rule: if a card has a vowel on one side, it has an even number on the other. Which cards must you flip to test the rule?

  29. 29. What number comes next: 2, 3, 5, 9, 17, ...?

  30. 30. The doctor hands you three pills and says to take one every half hour. How long until you've taken all three?

  31. 31. Two trains 100 miles apart head toward each other, each at 50 mph. A bird shuttles between them at 75 mph until they meet. How far does the bird fly?

  32. 32. How many times do a clock's hour and minute hands overlap in a full 24 hours?

  33. 33. Ten people at a meeting each shake hands with every other person exactly once. How many handshakes happen?

    Show answer

    45

  34. 34. This sequence describes itself out loud: 1, 11, 21, 1211, 111221. What number comes next?

    Show answer

    312211

  35. 35. What letter comes next: O, T, T, F, F, S, S, ...?

    Show answer

    E

  36. 36. A frog sits at the bottom of a 30 foot well. Each day it climbs 3 feet, and each night it slips back 2. On which day does it finally hop out?

    Show answer

    Day 28

  37. 37. How many times does the digit 9 appear when you write out every number from 1 to 100?

    Show answer

    20

  38. 38. If it rains, the street gets wet. The street is wet this morning. Therefore it must have rained last night.

  39. 39. Every square is also a rectangle.

  40. 40. If all Zips are Zaps, and no Zaps are Zops, then no Zips are Zops.

  41. 41. All roses are flowers. Some flowers fade quickly. Therefore some roses fade quickly.

  42. 42. What shape comes next in this pattern?

    ?
    Show answer

    A triangle. The pattern repeats in threes: circle, square, triangle. The sixth slot restarts nothing; it finishes the second set.

  43. 43. One of these four shapes does not belong. Which one?

    1234
    Show answer

    Shape 4, the triangle. Shapes 1, 2, and 3 all have four sides; even the tilted diamond is a four sided shape. The triangle only has three.

  44. 44. How many squares can you find in this figure in total?

    Show answer

    Five. Four small squares, plus the big outer square that most people forget to count.

  45. 45. The scale balances: one circle weighs the same as two triangles. How many triangles would balance two circles?

    Show answer

    Four triangles. Each circle is worth two triangles, so two circles need two plus two.