# The Unexpected Hanging Paradox

> A prisoner proves a surprise hanging is impossible, then is surprised anyway, exactly as promised.

**Field:** Logic, fallacies & argument · **Reliability:** Heuristic

*Also known as: The surprise examination paradox; The prediction paradox*

## What it means

The unexpected hanging paradox, also known as the surprise examination paradox, is a logical and epistemic puzzle about self-reference and prediction. A judge tells a condemned prisoner that he will be hanged at noon on one weekday of the coming week, Monday through Friday, but that the day will be a surprise: the prisoner will not know which day until the executioner arrives at noon. The prisoner reasons his way to the conclusion that no such surprise hanging is possible, and is reassured. Yet he is then hanged on a day in the middle of the week and is genuinely, completely surprised, just as the judge said. The judge's seemingly self-contradictory announcement turns out true and the prisoner's apparently airtight logic turns out wrong. The paradox appears in equivalent forms, including a teacher announcing a surprise examination, and it has been discussed by logicians including W. V. O. Quine and popularised by Martin Gardner.

## How it works

The prisoner argues by backward induction. The hanging cannot be on Friday, he reasons, because if he were still alive after Thursday he would know Friday was the only day left, so it would not be a surprise. Having eliminated Friday, he argues it cannot be Thursday either, since after Wednesday only Thursday and the already-excluded Friday would remain, making Thursday no surprise. Repeating the elimination backward through Wednesday, Tuesday, and Monday, he concludes the surprise hanging cannot occur on any day and so cannot happen at all. The twist is that this reasoning, by convincing him no day can surprise him, is exactly what allows any day to surprise him: when the executioner comes on, say, Wednesday, the prisoner is caught off guard, vindicating the judge. There is no consensus on precisely where the argument fails. One influential line, due to Quine, holds that the prisoner is not entitled to his opening step, since he cannot actually rule out any day, including Friday, given the self-referential nature of the announcement.

## Examples

- **Eliminating Friday:** The prisoner argues the hanging cannot be Friday, since surviving to Thursday would reveal Friday as the only remaining day, spoiling the surprise.
- **The cascade backward:** Having ruled out Friday, he rules out Thursday, then Wednesday, and so on down to Monday, concluding no day can be a surprise.
- **The surprise arrives:** Reassured that no surprise is possible, he is hanged on Wednesday and is genuinely surprised, so the judge's announcement holds after all.

## Why it matters

The unexpected hanging paradox is a famous puzzle studied across logic, epistemology, and game theory, prized for how a seemingly flawless chain of reasoning collides with an obviously possible outcome. It sharpens questions about self-reference, about what it means to know or predict a future event, and about the limits of backward induction, and it connects to other epistemic paradoxes such as the preface paradox and Moore's paradox, as well as to the principle that knowing entails knowing that one knows. Its resistance to any agreed solution has generated a large scholarly literature and made it a recurring test case for theories of knowledge and rational belief.

## Where it breaks down

The unexpected hanging paradox has no canonical resolution; proposed diagnoses locate the flaw in different places, and none commands consensus. Quine's line rejects the prisoner's opening elimination, treating the announcement as self-referential in a way that blocks the inference, while other analyses fault the notion of surprise, the assumption that the prisoner can carry out the induction, or the interaction of knowledge and self-knowledge. The two standard forms, the hanging and the surprise examination, are equivalent, so a solution should cover both. Because the puzzle turns on delicate features of prediction, knowledge, and self-reference, it functions as an open problem that continues to test theories of epistemic logic rather than as a settled result, and its exact historical origin is likewise uncertain.

## Common misreadings

The paradox is not resolved by simply saying the prisoner reasoned badly; the difficulty is precisely to say where his seemingly valid argument fails, and there is no agreed answer. It is not merely a trick of wording, since the equivalent surprise-examination version raises the same problem. And the judge's announcement is not straightforwardly self-contradictory: the ironic outcome shows it can come true, which is what makes the prisoner's confident elimination so puzzling rather than obviously mistaken.

## Origin

A logical and epistemic paradox about a judge's promise of a surprise hanging, appearing also as a surprise examination, discussed by logicians including W. V. O. Quine and popularised by Martin Gardner; its precise historical origin is uncertain.

## Related

- [The Liar Paradox](https://conyso.com/lawtome/laws/the-liar-paradox/) — kindred
- [The Lottery Paradox](https://conyso.com/lawtome/laws/the-lottery-paradox/) — kindred

## Sources

- [Unexpected hanging paradox, Wikipedia. — the surprise-hanging setup, the backward-induction elimination from Friday to Monday, the ironic surprise outcome, the Gardner and Quine discussions, and the absence of a canonical resolution.](<https://en.wikipedia.org/wiki/Unexpected_hanging_paradox>)
- [Epistemic Paradoxes, Stanford Encyclopedia of Philosophy. — the surprise-examination paradox and its relation to the preface and knower paradoxes and to problems of foreknowledge.](<https://plato.stanford.edu/entries/epistemic-paradoxes/>)

---
Source: https://conyso.com/lawtome/laws/the-unexpected-hanging-paradox/ · The Law Tome — a sourced index of named laws.
