Two Envelopes Paradox Calculator

Two Envelopes Paradox Calculator

One envelope holds twice as much as the other. After opening one, should you switch? See where the famous "always switch" argument breaks, and get the right decision once you say how the amounts were chosen.

½ × 2a + ½ × a/2 = 1.25a ← the flawed step

Assumes the host picked the smaller amount uniformly between 0 and that maximum, then put double in the other envelope.

Enter what you found and the largest possible smaller amount

What Is the Two Envelopes Paradox?

The two envelopes paradox: you're given one of two envelopes, one holding twice as much as the other, and a seemingly sound argument says you should always switch, even though the situation is perfectly symmetric. Switching can't be better from both sides at once, so the argument must be wrong.

The argument says: "If my envelope holds a, the other holds 2a or a/2 with equal chance, so switching is worth 1.25a." The flaw is "with equal chance". Whether the other envelope is bigger depends on a and on how the amounts were chosen. No way of choosing amounts makes it 50/50 for every a.

Once you state a real distribution for the amounts, the paradox dissolves. Low amounts favour switching, high amounts favour keeping, and on average, before you look, switching and keeping are worth exactly the same.

Two Envelopes Paradox Formulas

Bayesian treatment following Christensen & Utts (1992), with the smaller amount X uniform on (0, M]. See Sources.

1. Chance you hold the smaller envelope

P(smaller | a) = f(a) ÷ (f(a) + ½ f(a/2))

The ½ appears because if you hold the larger envelope, a = 2X, and amounts are stretched by a factor of 2.

2. Uniform amounts up to M

a ≤ M: P(smaller) = 2/3 · M < a ≤ 2M: P(smaller) = 0

3. Expected value of switching

a ≤ M: 2/3 × 2a + 1/3 × a/2 = 1.5a · a > M: a/2

The big gain for small a is exactly cancelled by the big loss for large a, so "always switch" gains nothing overall.

Worked Example: Opening £60

Given:
A game show picks the smaller prize at random up to £100. You open your envelope and find £60.
Step 1:
Both explanations are possible, but not equally likely:
you hold the smaller £60, other £120: weight 1 · you hold the larger £60, other £30: weight ½
Step 2:
Normalise:
P(other is £120) = 1 ÷ 1.5 = 2/3 · P(other is £30) = 1/3
Step 3:
Expected value of switching:
2/3 × £120 + 1/3 × £30 = £90
Result:
Switch: worth £90 on average

But had you opened £150, more than the £100 cap on the smaller prize, you'd know you hold the larger envelope, and switching would give you £75 for certain. The decision depends on what you see.

Two Envelopes Strategies Compared

Average winnings over many games, with the smaller prize uniform up to £100.

Average winnings for each switching strategy
StrategyAverage winningsvs keeping
Always keep£75—
Always switch£75—
Switch if you see £100 or less£93.75+25%

Common Two Envelopes Mistakes

  • Assuming 50/50 whatever you see. No real way of choosing prizes makes "double" and "half" equally likely for every possible amount.
  • Using a in both branches as if it were fixed. In the "other is 2a" case you hold the smaller amount; in the "a/2" case you hold the larger. They aren't the same a.
  • Switching without looking. If you don't open the envelope, switching is pointless: both envelopes are worth 1.5 × E[X] on average.
  • Ignoring the host. A host who knows which is larger and offers a swap only sometimes changes the problem entirely.

Two Envelopes Paradox FAQs

Should you always switch?

No. Without looking, switching changes nothing. After looking, switch when the amount is low relative to what the host might offer, and keep when it’s high.

Where exactly is the error?

In assuming the other envelope is equally likely to be double or half, for every amount. That would need a uniform distribution over all amounts, which doesn’t exist.

Why is it 2/3 and not 1/2 for small amounts?

Holding the larger envelope stretches the possible amounts over twice the range, so any particular amount is half as likely to be a “larger” amount.

What if I don’t know the maximum?

Then you need some belief about likely prizes. Any proper belief gives a threshold above which you should keep.

Does this assume a uniform prize?

Yes, to keep the maths clear. Other distributions give different thresholds but the same overall lesson.

Can the gain really be 25%?

Yes. Switching only on low amounts averages 15/16 of M against 3/4 of M for a fixed strategy.

Is there a version with no maximum?

Yes. With some infinite-mean distributions, switching looks better for every amount. That shows that expected values can break down, not that you should always switch.

How is this like Monty Hall?

Both turn on conditional probability: what you observe changes the odds, but only once you model how the situation was set up.

Sources

Related Tools