Free Two Envelopes Paradox Calculator

Enter amount

The two envelopes paradox is a classic puzzle about probability and expected value that continues to intrigue mathematicians and laypeople alike. This free online tool—the Two Envelopes Paradox Calculator—lets you experiment with the scenario, clarifying why swapping envelopes never improves your odds. Whether you are new to the paradox or want to solidify your understanding, the calculator’s simulation and calculation modes provide an intuitive, hands‑on experience.

The Setup

You face two sealed envelopes, each containing money. One envelope holds exactly twice the amount in the other. You pick one at random, say Envelope A. Before opening it, you are allowed to switch to Envelope B. Should you?

The naive reasoning runs as follows. Let the amount in your chosen envelope be VV. Then the other envelope contains either 2V2V (with probability 1/21/2) or V/2V/2 (with probability 1/21/2). The expected value of the other envelope is therefore:

Eother=12(2V)+12(V2)=54V=1.25 V.E_{\text{other}} = \frac12 (2V) + \frac12 \left(\frac{V}{2}\right) = \frac54 V = 1.25\,V.

Since 1.25V>V1.25V > V, it appears that swapping is always advantageous. But if you repeat the reasoning after switching, you would again find the other envelope’s expected value to be 25% higher, suggesting you should swap infinitely many times—a clear impossibility.

Where the Apparent Paradox Comes From

The flaw lies in using VV to denote two different amounts in the same equation. In the first scenario, VV represents the smaller amount; in the second, it represents the larger amount. Mixing them yields a meaningless result.

A correct analysis defines two fixed (but unknown) amounts: the smaller sum ss and the larger sum 2s2s. The total money in play is 3s3s. Because each envelope is equally likely to be the larger or the smaller, the expected value of either envelope is:

E=12(s)+12(2s)=3s2=1.5s.E = \frac12(s) + \frac12(2s) = \frac{3s}{2} = 1.5s.

Thus both envelopes have the identical expected value. There is no advantage to switching; your chance of picking the larger envelope was 50% and remains 50% regardless of swapping.

A Numerical Illustration

Suppose you peek into your envelope and find $20. Two possibilities exist:

  1. Your envelope is the larger one. Then it holds 20,andtheotherenvelopecontains20, and the other envelope contains 10.
  2. Your envelope is the smaller one. Then it holds 20,andtheotherenvelopecontains20, and the other envelope contains 40.

The expected value of the other envelope, given that you have seen $20, is the average of the two possible amounts:

Eother=12(10)+12(40)=25.E_{\text{other}} = \frac12 (10) + \frac12 (40) = 25.

This 25issimplythemidpointbetween25 is simply the midpoint between 10 and 40,not2540, not 25% more than 20. The earlier mistake was to compute 1.25×20=251.25 \times 20 = 25 by coincidence, but the reasoning behind that number was flawed.

Using the Two Envelopes Paradox Calculator

This online calculator offers two complementary modes.

Simulation Mode

Simulation mode recreates the paradoxical back‑and‑forth. You choose an initial envelope, and the calculator tells you the other envelope’s “expected value” is 25% higher. You may switch, only to be informed that the new other envelope again has a 25% higher expected value. After several swaps you return to your original choice, and the tool reveals the actual contents along with an explanation of the paradox. This hands‑on trial makes the fallacy tangible.

Calculation Mode

In calculation mode, you enter the amount you saw in your envelope (for example, $20). The calculator then displays both possible arrangements: one where your envelope is the larger, and one where it is the smaller. This gives you a clear picture of why the naive 1.25 factor does not represent a real gain.

Bottom Line

The two envelopes paradox highlights how misapplying expected value can lead to an apparent infinite switching incentive. The correct mathematics shows that the expected value of each envelope is the same—32\frac32 of the smaller amount—so swapping is neutral. Use this free Two Envelopes Paradox Calculator to test the logic yourself and deepen your appreciation of probability.

FAQ

1. What is the two envelopes paradox?

The two envelopes paradox is a probability puzzle where you choose one of two envelopes, each containing money—one double the other. Naive expected value calculations seem to show switching is always better, which creates an infinite loop, but the correct analysis shows both envelopes have the same expected value, so swapping offers no advantage.

2. Why does the naive expected value suggest switching is better?

The naive equation treats the amount in your envelope as a single variable, but it represents two different amounts (small and large) across the two possible scenarios. This mixes the cases and gives the misleading result that the other envelope is worth 25% more.

3. What is the correct expected value of either envelope?

If the smaller amount is s and the larger is 2s, each envelope's expected value is (s + 2s)/2 = 1.5s. This is the average of the two possible sums, and both envelopes have the same expectation.

4. If I see $20 in my envelope, what is the expected value of the other envelope?

If you see $20, the other envelope contains either $10 (if yours is the larger) or $40 (if yours is the smaller). The expected value of the other envelope is (10 + 40)/2 = $25, which is simply the midpoint, not 25% more than $20 based on the flawed reasoning.

5. Does the two envelopes paradox calculator have a simulation mode?

Yes, the calculator offers a simulation mode where you repeatedly decide whether to switch, always being told the other envelope's expected value is 25% higher, until it reveals the fallacy and the actual envelope contents.

How to Use

  1. Enter your values.
  2. The result updates automatically.
  3. Use the result for your needs.