🧮
🧮 Math & statistics

Two Envelopes Paradox Calculator (should you switch? expected value explained)

Results update as you type.

Your numbers

Understanding the two envelopes paradox calculator — concept and principle

This calculator explores the two envelopes paradox. One envelope holds twice as much as the other; you open one and see an amount A. Should you switch? The calculator compares the naive "always switch" argument with the expected value based on your actual belief about whether you hold the smaller amount. Use it for probability classes, decision theory and puzzles.

Two envelopes expected valueYours: $100. The other: $50 or $200?$100$200$50yours is smaller: 30%yours is larger: 70%0.3 × 200 + 0.7 × 50 = 95Switch: expected$95 → keepbreak-even belief 33.33% · naive 5/4 rule says $125
With a 30% belief that you hold the smaller amount, switching is worth $95 on average, less than the $100 you have.

How it is calculated

With A in your envelope and q your probability that A is the smaller amount:

The principle

The paradox argues: the other envelope holds 2A or A/2 with equal chance, so switching is worth 5A/4, more than A, and by symmetry you should switch back again forever. The flaw is the assumption that q = ½ for every possible A. Before you look, the envelopes hold x and 2x and each has expected value 3x/2, so switching blindly gains nothing. After you see A, the chance it is the smaller one depends on how the amounts were chosen; no proper rule for choosing amounts makes q = ½ for every A. Your knowledge of the person filling the envelopes, such as a budget limit, shifts q, and the threshold q > 1/3 tells you when switching is worthwhile.

Worked example

Default inputs: A = 100, belief q = 30%.

  1. If yours is larger, the other holds 50; if smaller, 200.
  2. Expected amount after switching = 0.3 × 200 + 0.7 × 50 = 60 + 35 = 95.
  3. Expected gain = 95 − 100 = −5.
  4. The threshold is q = 33.33%, and 30% is below it, so keep your envelope.
  5. The naive argument would claim 125, which ignores your belief.

How to read the result

A positive expected gain means switching is favourable under your belief; negative means keep. The threshold 1/3 comes from solving q·2A + (1 − q)·A/2 = A. A very large A usually means you are more likely to hold the larger amount (q low), so keeping is wiser; a small A often suggests the opposite.

Common mistakes

Keep in mind: This is a reasoning puzzle about expected values, not financial or gambling advice. Real decisions also depend on risk tolerance, not only on expectation.

Frequently asked questions

What is the resolution of the two envelopes paradox?

The "½ each" step is not valid for every amount; once you account for how the amounts were chosen, the infinite-switching argument breaks down.

When should I switch?

When your probability of holding the smaller amount is above one third.

Does switching help if I have not opened the envelope?

No. Both envelopes have the same expected value, 3x/2.

Sources: Nalebuff, B. (1989), "Puzzles: The Other Person's Envelope is Always Greener", Journal of Economic Perspectives 3(1), 171–181

Checked 9 Nov 2026. Two envelopes problem — Wikipedia (consulted 9 Nov 2026): the switching argument (other envelope 2A or A/2 with probability ½ each, expectation 5A/4), the fixed amounts x and 2x for which switching has no expected advantage, and examples of priors where the conditional probabilities are not ½; the 1/3 threshold follows from q·2A + (1 − q)·A/2 > A (derived here).

🧮 All math & statistics tools →🌍 Calculators by country →