You are handed one of two envelopes. One contains twice as much money as the other, but you do not know which you have. Suppose your envelope holds x. The other then holds 2x or x/2 with equal probability, so its expected value seems to be 1.25x and you should switch. But the same reasoning applies after switching, so you should switch back, forever. Something must be wrong.
The flaw is that x is not a fixed number in this argument. “The other envelope holds 2x” describes a world where the pair is {x, 2x}; “it holds x/2” describes a different world where the pair is {x/2, x}. Averaging across the two worlds uses the same symbol for amounts that differ. If you fix the pair as {S, 2S}, you hold S or 2S with equal chance, switching gains S or loses S, and the expected gain is exactly zero.
The calculation mode lays out both scenarios for the amount you name. The simulation mode draws thousands of envelope pairs and compares three strategies: always keep, always switch, and switch only when your amount is below a threshold. The last one genuinely helps, because a low amount is more likely to be the smaller envelope.
How to use the Two Envelopes Paradox Calculator
- Mode
- Amount in your envelope
- Smallest possible “smaller amount”
- Largest possible “smaller amount”
- Switch only if my envelope holds less than
- Number of games
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
In calculation mode the tool lists the two possible pairs for your amount and the naive expected value. In simulation mode each game draws the smaller amount uniformly between the limits, puts it and its double in two envelopes, hands you one at random and records what each strategy would take home.
Worked example
Your envelope holds $100. If yours is the smaller one the other holds $200 (gain $100); if yours is the larger one the other holds $50 (loss $50). The naive average is ½ × 200 + ½ × 50 = $125. But for the pair {$100, $200} you hold $100 or $200 with equal chance, so keeping averages $150 and switching also averages $150. In a simulation with the smaller amount spread evenly between 1 and 100, keeping and switching both average about $75.75, while switching only below $50 lifts the average to about $81.
Why the naive argument fails
The two branches of the naive average describe different pairs of envelopes. Within one fixed pair, the gain from switching is +S half the time and −S half the time, so it averages zero. The paradox disappears as soon as the amounts are written in terms of the smaller amount S instead of “the amount in my envelope”.
Formula
Naive: E(other) = ½ × 2x + ½ × x/2 = 1.25x (flawed) · Correct: for a fixed pair {S, 2S}, E(keep) = E(switch) = 1.5S, and switching gains +S or −S with equal chance
Worked example
Inputs: Mode: Calculate – I know the amount in my envelope; Amount in your envelope: 100.
Results: Naive expected value of the other envelope = 125; Naive "gain" from switching = 25 %; Other envelope if yours is the smaller one = 200; Other envelope if yours is the larger one = 50; The two possible situations = If… Your envelope Other envelope Switching gives
───────────────────────────────────────────────────────────────────────────
yours is the smaller one 100 200 +100
yours is the larger one 100 50 −50; Explanation = The naive argument averages 200 and 50 to get 125, but those two cases belong to different pairs of envelopes ({100, 200} and {50, 100}). For any one fixed pair {S, 2S}, switching wins S or loses S with equal chance, so the expected gain is zero..
Key terms
- Expected value
- The probability-weighted average of possible outcomes.
- Random variable
- A quantity whose value depends on chance (here the amount in each envelope).
- Prior distribution
- What you believe about the possible amounts before opening an envelope.
Frequently asked questions
What is the two envelopes paradox?
An argument that you should always switch envelopes because the other one has expected value 1.25 times yours, which would also tell you to switch back, endlessly.
Should you switch envelopes?
Without looking or any information, it makes no difference: keeping and switching both have expected value 1.5 times the smaller amount.
Where exactly is the mistake?
The argument treats the amount in your envelope as fixed while mixing two different pairs, {x/2, x} and {x, 2x}, as if they were equally likely and shared the same x.
If I open my envelope, should I switch?
It depends on what amounts were possible. If a small amount is more likely to be the smaller envelope, switching after seeing a low amount helps; the threshold strategy in the simulation shows this.
What is the threshold strategy?
Switch only when your amount is below a chosen number. Any threshold between the smallest and largest possible amounts gives a higher average than always keeping.
Is the two envelopes problem solved?
The basic version is resolved by careful use of conditional probability. Versions with unbounded or improper prior distributions are still discussed by philosophers and statisticians.