Field guide · knowledge and prediction
The Unexpected Hanging Paradox
Direct explanation
A judge says you will be hanged on a weekday next week, and the day will be a surprise. You prove it cannot happen. On Wednesday, it does.
The unexpected hanging paradox, also known as the surprise exam paradox, starts from an announcement: an event will happen on one day next week, and you will not know which day in advance. Reasoning backwards, the last day seems ruled out because it would be predictable, then the day before it, and so on until no day remains. Yet the event can then happen on Wednesday and be a complete surprise. The puzzle concerns what an announcement lets you know.
The prisoner's proof
On a Saturday a judge tells a prisoner that he will be hanged at noon on one weekday of the following week, and that he will not know which day until the executioner knocks on his cell door that morning. The prisoner reasons: it cannot be Friday, because if I am still alive on Thursday afternoon I will know it must be Friday, and that would be no surprise. With Friday gone, Thursday becomes the last possible day and falls to the same argument, then Wednesday, and so on back to Monday. He concludes that the hanging cannot take place.
On Wednesday the executioner knocks, and the prisoner is completely surprised. The judge's announcement has come true. The puzzle is to say what went wrong in an argument whose every step looked valid.
Where it came from
The puzzle circulated in the 1940s, often as a teacher's surprise test. According to the Stanford Encyclopedia of Philosophy, the first published reaction was D. J. O'Connor's 1948 paper, which accepted the student's argument and treated the announcement as self-defeating: had the teacher said nothing, a surprise test would have been easy. Martin Gardner's collection The Unexpected Hanging and Other Mathematical Diversions (1969) helped make the hanging version famous.
The same entry notes that the backward-elimination pattern behind the puzzle can be found in German folktales dating back to 1756.
Three diagnoses
W. V. O. Quine argued in 1953 that the prisoner's mistake is to assume he knows the announcement is true. Without that knowledge the elimination never gets started: alive on Thursday afternoon, he could conclude only that either the hanging is on Friday or the judge was wrong, so a Friday hanging remains something he cannot know in advance.
Others place the fault in assumptions about knowing that you know. The elimination needs the prisoner to know now what he would know on each later day. Philosophers who reject the KK principle (that whenever you know something, you are in a position to know that you know it) can say the argument breaks at that step. A third family treats the announcement as self-undermining in a subtler way: it can be true, but it cannot be both true and known by the prisoner. Roy Sorensen calls a proposition of that kind an epistemic blindspot.
What the tool shows
Count what the prisoner can actually know on each evening. Using only memory and the announcement, the one day that can be worked out in advance is the last, and only if nothing has happened before it. Every earlier day leaves at least two possibilities open. The elimination argument pushes that single safe step backwards by treating its own conclusions as things the prisoner knows, and that is the move each diagnosis questions.
Elimination lab · about 3 minutes
Run the prisoner's proof, then let the judge choose
First follow the backward elimination one day at a time. Then pick the day the executioner knocks and see whether the prisoner could have known. This tool does not submit or save your choices.
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
What the prisoner concludes
Nothing yet. Start the proof to follow his reasoning.
The knock
Choose a day for the hanging.
Only the last day can be worked out from memory and the announcement. The proof gets further by treating its own conclusions as knowledge, which is the step the diagnoses on this page question.
Dilemma check & reflection
Where do you stand—and what tests it?
Does the judge's announcement give the prisoner knowledge, or only a claim he cannot be sure of?
Strongest pressure point
Choose a starting position to see the sharpest objection philosophers raise against it.
Nothing here is submitted to a server or turned into a site-wide consensus score. Your stance, reflection, bookmarks and room tallies stay only in your browser.
Position map
Competing ways to answer
Self-defeating announcement
Announcing the surprise is what makes it impossible; the prisoner's reasoning is sound.
Pressure point: The Wednesday knock surprises him anyway, so the argument seems to prove too much.
No knowledge of the announcement
The prisoner does not know the announcement is true, so he cannot eliminate days by relying on it (Quine).
Pressure point: A reliable judge seems able to give knowledge, and some versions simply stipulate that the announcement is known.
Knowledge does not iterate
Knowing something does not guarantee knowing that you know it, so later-day knowledge cannot be carried backwards.
Pressure point: Giving up the KK principle has costs elsewhere in the theory of knowledge.
Epistemic blindspot
The announcement can be true, but not while the prisoner knows it to be true.
Pressure point: It must explain why the judge seems to have told the prisoner something true and useful in advance.
Discussion sheet
Questions that expose the tension
- 1Does the judge's announcement give the prisoner knowledge, or only a claim he cannot be sure of?
- 2Once Friday is ruled out, is the announcement about the remaining days still the same announcement?
- 3If a one-day version is plainly self-defeating, why does adding more days seem to make a surprise possible?
Related field guides
Editorially chosen companions that share a method or sharpen this problem from another side.
Newcomb's Paradox
A near-perfect predictor has already filled the boxes. Take only the opaque box, or both? Two strong principles of choice give opposite answers.
The Sorites Paradox
If one grain is not a heap, and one more grain never makes the decisive difference, how can a heap ever appear?
Russell's Paradox
Collect every set that is not a member of itself. Is that collection a member of itself? Either answer forces the other.
Reference desk
Sources and further reading
- 01Stanford Encyclopedia of Philosophy: Epistemic Paradoxes
Section 1, the surprise test paradox: O'Connor (1948), Weiss (1952), Quine (1953), the KK principle, and the 1756 folktale precedent.
- 02Stanford Encyclopedia of Philosophy: Epistemic Logic
Background on knowledge of knowledge and the KK principle.