On this page
You are handed two sealed envelopes; one holds double the money in the other. You pick one and are offered a swap. Common sense says it cannot matter. A tidy calculation says you should always switch. Finding the broken step is a sharp lesson in conditional probability.
What is the two envelopes paradox?
The two envelopes problem, also called the exchange paradox, is a paradox in probability theory of special interest in decision theory and Bayesian probability (Wikipedia: Two envelopes problem). It goes back at least to 1943, when Belgian mathematician Maurice Kraitchik posed a puzzle about two men comparing neckties, and Martin Gardner first wrote about the necktie paradox in his January 1958 Mathematical Games column (same source).
The version most people know was set out by economist Barry Nalebuff in 1988, and independently by Gardner in 1989 (same source). In a 1989 follow-up, Nalebuff wrote that "the response to this puzzle was overwhelming" (Nalebuff 1989, doi:10.1257/jep.3.1.171).
Here is the switching argument. Call the amount in your envelope A. The other envelope holds 2A or A/2, each with probability 1/2. So its expected value is 1/2 × 2A + 1/2 × A/2 = 5A/4. That is 25 percent more than A, whatever A is, so you should switch. Then the same argument tells you to switch back, forever.
Where does the expected-value argument go wrong?
The argument uses the letter A for two different things (Wikipedia, example resolution). Suppose the envelopes hold x and 2x. When you hold the smaller one, A = x and switching gains x. When you hold the larger one, A = 2x and switching loses x. The gain and the loss are the same size and equally likely, so the expected gain is zero. The "2A" term belongs to the world where you hold x, the "A/2" term to the world where you hold 2x.
Does opening the envelope change anything?
The harder version: you open your envelope and see ₹400. Is the other equally likely to hold ₹200 or ₹800? Only if the pairs (₹200, ₹400) and (₹400, ₹800) were equally likely beforehand. Extend that to every amount and every pair, up and down the doubling ladder without end, must be equally likely. No proper probability distribution can do that; it is an improper prior, and the expected values are not even defined (Wikipedia, Bayesian resolutions).
So a proper prior, a real belief about how the envelopes were filled, cannot give that 50-50 split for every amount you might see. Some proper priors still make switching look better whatever you see; philosopher John Broome called such distributions paradoxical (Broome 1995, doi:10.1093/analys/55.1.6). Every one has an infinite mean, so before you open an envelope the expected gain from switching is undefined, and philosopher David Chalmers compares this with the St Petersburg paradox and its coin game worth infinity (same Wikipedia article). No proposed solution is widely accepted as definitive.
A worked example with a bounded set of amounts
Say a friend picks the smaller amount from ₹100, ₹200, ₹400 and ₹800 with equal chance, puts double that in the other envelope, and hands you one at random. That gives 8 equally likely outcomes (which pair, which envelope), each with probability 1/8.
You see ₹100 (probability 1/8): you must hold the smaller. Switching gains ₹100.
You see ₹200 (probability 2/8): it is the larger of (100, 200) or the smaller of (200, 400), equally likely. Switching gives 1/2 × 100 + 1/2 × 400 = ₹250, a gain of ₹50: the 5A/4 effect.
You see ₹400 (probability 2/8): switching gives ₹500 on average, a gain of ₹100.
You see ₹800 (probability 2/8): switching gives ₹1,000 on average, a gain of ₹200.
You see ₹1,600 (probability 1/8): you must hold the larger. Switching loses ₹800.
Averaged over everything you might see:
(1/8)(100) + (2/8)(50) + (2/8)(100) + (2/8)(200) + (1/8)(−800) = (100 + 100 + 200 + 400 − 800) / 8 = 0.
The 5A/4 gain is real for the middle amounts, but one rare, large loss at the top pays for it. "Always switch" gains nothing on average, matching the symmetry you started with. If you may look first, "switch unless you see ₹1,600" gains (100 + 100 + 200 + 400) / 8 = ₹100 on average over keeping.
How do you avoid this trap in exam problems?
Write down the sample space first: every outcome and its probability.
When a variable appears twice in one formula, ask whether it means the same thing in both places.
Check symmetry: if the set-up is symmetric and your answer is not, look for the broken step.
Treat "equally likely" as a claim about a distribution, and ask whether that distribution can exist.
These are the same habits behind the law of total expectation and the tower rule and the two-children puzzle where the answer is 1/3. If conditional expectation still feels slippery, the Fermi Concept Library gives every concept in mathematics its own lesson. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.
Next time an argument says you win whatever happens, list the outcomes and add them up.



