Skip to content
MindSteal
Brain TeasersBrain TeaserDifficulty: hard

The Two Doors and Two Guards Puzzle

One door leads to freedom, one to doom. One guard always lies, one always tells the truth, and you get one question. What do you ask? A logic classic, fully explained.

By MindSteal Editorial TeamPublished Updated
Two tall doors side by side, each with a guard figure in front, one guard marked with a tick and the other with a cross
Original artwork by MindSteal

The puzzle

You're standing in front of two doors. One leads to freedom. The other leads to a dead end you can't come back from. Each door has a guard. One guard always tells the truth and the other always lies, but you don't know which is which. Both guards know everything, including which door is which and what the other guard would say. You get to ask one guard one question. What do you ask so you're sure to pick freedom?

This puzzle belongs to a family that logicians call "knights and knaves" problems. Knights always tell the truth. Knaves always lie. The mathematician and puzzle writer Raymond Smullyan made the genre famous, and this two-door version is one of the best-known.

The hard part? You get one question and you have no idea who you're talking to. Ask "Which door leads to freedom?" and you'll get an answer. You just won't know whether to believe it.

What makes it tricky

Your question has to work in both possible situations:

  • Situation A: you're talking to the truth-teller.
  • Situation B: you're talking to the liar.

If your question gets different useful answers in those two situations, it's no help, because you can't tell which one you're in. You need a question whose answer points the same way no matter who replies.

Sources

Fact-checked and editorially reviewed on .

Spotted an error? Tell our editors.

Share this

  • Three light switches on a wall beside a closed door, with a glowing bulb drawn behind the doorBrain Teaser

    The Three Switches and One Light Bulb

    Brain TeasersMindSteal Editorial Team

    Three switches, one bulb behind a closed door, and only one chance to look. Can you work out which switch is which? Most people miss the clue that isn't about light.

  • Four glowing paths branching from a single point, each ending in a different symbol: a compass, a magnifier, a gear and linked circlesQuiz

    What Kind of Thinker Are You?

    PsychologyMindSteal Editorial Team

    Explorer, Analyst, Builder or Connector? Seven quick questions about how you tackle problems. A light-hearted look at your thinking style, just for fun.

  • An atom with glowing electron orbits next to a ringed planet and a stopwatchQuiz

    Can You Beat This Science Quiz?

    ScienceMindSteal Editorial Team

    Eight questions about planets, light, extreme cold and surprisingly tough animals. Most people get the hottest-planet question wrong. Will you?