Two Envelopes Paradox Calculator. Enter the amount in your current envelope, along with the probability the other envelope is double and the probability it's half, to explore the famous Two Envelopes Paradox. You'll see the expected value of switching, the expected value of keeping, and a clear swap recommendation — all grounded in the core probability math behind this classic decision theory puzzle. Also try the Dice Average Calculator.
Results
Expected Value if You Switch
--
Expected Value if You Keep
--
Expected Gain / Loss from Switching
--
Switch Value vs Keep Value (Ratio)
--
Recommendation
--
Probability Sum
--
Expected Value: Switch vs Keep
Results Table
Ever wondered if you should stick or switch when offered two hidden envelopes with cash? The two envelopes paradox calculator gives you a precise way to analyze this surprisingly tricky probability puzzle—and reveals whether swapping envelopes actually boosts your expected value. The insight matters: do you maximize your winnings, or fall for a notorious mathematical fallacy? If you've ever found yourself hesitating between envelope a and envelope b, wrestling with the urge to change, this tool helps you make sense of the reasoning, the odds, and the deeper puzzle at play while keeping you from comparing apples to oranges.
Exploring the Two Envelope Paradox: Context and Challenge
The two envelope paradox is celebrated for its ability to puzzle not just math novices but also professional mathematicians and experts in game theory. The setup is simple: you are presented with a choice between two envelopes, each containing an unknown amount. Critically, one envelope holds twice the amount of money as the other—but which is which is a mystery. This innocent game leads to deep questions about likelihood, and it's all too easy to believe there’s a guaranteed way to beat the odds.
How Does the Paradox Unfold in Two Scenarios?
Your encounter with the two envelopes problem usually begins by arbitrarily choosing one envelope (let’s call it envelope a). Before opening it, you wonder: should you swap envelopes, or stick with the initial pick? Let’s spell out the reasoning step-by-step:
You pick envelope a; it contains an unknown amount—call it X.
Envelope b then contains either 2X or X/2 with equal chance (a classic 50% chance scenario).
If you decide to switch, there’s a 50% likelihood you’d get twice as much money and a 50% risk of halving it.
The puzzle deepens because, if you use the standard expectation formula, the expected payout from switching appears to outstrip sticking with your original envelope every time:
Expected value of switching: $$EV_{switch} = 0.5 \times 2X + 0.5 \times \frac{X}{2} = 1.25X$$ This suggests that changing envelopes gives a 25% higher expected value.
This result seems absurd. If true, you’d endlessly switch back and forth—and every time, the other envelope becomes the one with the greater amount of money. So where does the analysis fail?
Why Does Swapping the Envelopes Appear Tempting?
At first glance, the numbers of the two-envelope paradox trick even seasoned thinkers into believing a solution exists—always swap envelopes for a bigger payoff. But the problem is symmetrical: each envelope has an equal likelihood of holding the higher or lower value (once again, a 50% chance either way), and switching envelopes won’t change its contents. This means no matter which envelope you choose, your odds and expected outcome should be identical.
Where the arithmetic goes wrong is mixing two possible scenarios by using X to represent both the higher and lower amounts in the same formula. Let's formalize the reasoning error:
When computing gain, X in 2X isn't always the same as X in X/2.
Mixing these variables without proper constraint is like comparing apples and oranges.
Better method: express the scenario as the average of the maximum and minimum possible amounts.
In formal terms, if one envelope contains x, the other contains 2x. The mean value for either envelope is:
$$EV = 0.5 \times x + 0.5 \times 2x = 1.5x$$ Here, the expected value falls right in the middle between the possible minimum and maximum amounts.
Mixing Two Possible Scenarios: Where Intuition Fails
To see why the answer should not favor switching or sticking, let’s break down the analysis:
You pick an envelope: say, envelope a, containing either the lower (x) or higher amount (2x).
Two wagers: You can keep your envelope, or swap envelopes.
Expected value of sticking: is the same: $$EV_{stick} = 0.5 \times (x) + 0.5 \times (2x) = 1.5x$$
Thus, the average value is the same no matter your decision. The paradox is resolved by recognizing that the problem is symmetrical, and the logic that urges infinite switching is a miscalculation.
Step-by-Step Guide: Using the Two Envelopes Paradox Calculator
This tool is designed to provide deeper understanding of this decision scenario by visually presenting possible outcomes and expected values as you navigate through the choice between two envelopes. Every step, from your initial selection to assessing whether you should stick or switch, is supported by clear reasoning and straightforward arithmetic.
Interpreting Possible Envelope Amounts
When you use the calculator, you’ll enter the observed amount of money in your envelope (let’s say you peeked!). Immediately, the calculator will display the possible envelope content arrangements based on the rule that one envelope holds twice the amount of money as the other. For example:
If envelope a contains $20, envelope b could have $10 or $40.
Likelihood: There’s a 50% chance each arrangement is true (you’re equally likely to have picked the smaller or larger amount).
This allows you to understand all possible cases and see why the expected value falls at the midpoint between the minimum and maximum possible amounts—matching intuition and formal calculations.
Does It Make Sense to Switch or Stay?
The heart of the paradox is knowing whether to swap or stick with your initial selection. Here’s how to approach the amount of money you see and apply expected value logic:
After you choose an envelope (say, envelope b), note its value.
There’s a 50% chance it’s the smaller amount, and a 50% chance it’s the larger.
If it’s the smaller, the other envelope contains twice as much (doubling your money); if it’s the larger, you’d lose half by switching (halving it).
Use the calculator to calculate the expected value of switching as the average of the two possibilities: $$EV = 0.5 \times (2A) + 0.5 \times (A/2)$$ But watch out! If you use “A” for both, you erroneously inflate the average by mixing two possible cases with different random quantities.
The correct interpretation: regardless of whether you switch or stick, your expected value is the same.
Decision: Unless you have extra information about how the amounts were set, there is no mathematical advantage to switching or sticking. The tool shows you that the outcomes and averages are perfectly balanced—a beautiful example of how subtle pitfalls hide in plain sight in science.
Worked Examples: Dissecting the Paradox in Action
Example 1: You select an envelope and it contains $20. Should you swap?
Identify possible cases: $20 is either the smaller amount or the larger amount.
If $20 is the smaller amount: The other envelope contains $40.
If $20 is the larger amount: The other envelope has $10.
Average value calculation: $$EV = 0.5 \times 40 + 0.5 \times 10 = 20 + 5 = $25$$
Here, the expected payout is the average of both possibilities. But, this result doesn't mean you should always switch, since the mean value of staying is the same due to problem symmetry.
Example 2: Envelope B contains $10; what is the expected value of Envelope A?
Envelope B could be the envelope with the smaller or larger sum.
If $10 is the smaller amount:Envelope a holds $20.
If $10 is the larger amount:Envelope a contains $5.
This is the average of the two logical cases. It doesn't guarantee you'll do better by switching or sticking.
Example 3: Both envelopes could have $10 and $20. What's the logic to swap or stay?
Possibility 1:Envelope a contains $10 (smaller), envelope b holds $20 (larger).
Possibility 2:Envelope a contains $20 (larger), envelope b has $10 (smaller).
Symmetry: Both cases occur with equal likelihood.
Midpoint value: Both envelopes have an expected value at the midpoint: ($10 + $20)/2 = $15.
The analysis shows there is no advantage to switching or sticking—the result is identical for both choices.
Two Envelopes Paradox Calculator: Frequently Asked Questions
What Is the Reasoning Behind the Paradox?
The striking feature of the two envelopes paradox is its apparent promise that switching always seems beneficial. The false step in the calculation arises by mixing two possible cases without realizing that each uses a different unknown. When calculating expected value, the variable X does not represent a fixed amount of money, but takes on two values—once as the smaller amount, and once as the larger amount. The key is to realize the problem is symmetrical, and the mathematically correct answer is to be indifferent between the two bets. Proper analysis involves keeping variables consistent and recognizing when a calculation is being misapplied, thus avoiding an invalid result.
What Is the Expected Value in the Two Envelopes Scenario?
The expected value in the two envelope paradox calculator for either envelope is given by averaging the smaller amount x and the larger amount 2x:
$$EV = 0.5 \times x + 0.5 \times 2x = 1.5x$$
This "midpoint" reflects that, with 50% likely to pick either envelope, your expected winnings fall between the two amounts. The calculated return of switching is no different than the result of sticking. The paradox illustrates how swapping only appears to give an advantage when the variables in the formula aren’t handled correctly.
Example: If Envelope B Contains $10, What Can We Infer?
Suppose envelope b reveals $10. There are two possible cases:
If $10 is the smaller amount, envelope a contains $20.
If $10 is the larger amount, envelope a must have $5.
Calculating the mean value of envelope a:
$$EV = 0.5 \times 5 + 0.5 \times 20 = $12.50$$
Again, the answer shows us that, absent further information about how the amounts are generated and distributed, no particular bet or strategy will outperform another in the long run. Try exploring how probability and dice play roles in related games, or check a science wiki for more information.
What is the two envelopes paradox?
The two envelopes paradox is a famous puzzle in probability and decision theory. You hold one of two envelopes, each containing money, where one envelope has twice the amount of the other. Naively calculating the expected value of switching seems to always favor swapping — yet the same logic applied to the other envelope also favors swapping, which is a logical contradiction. The paradox reveals subtle errors in applying expectation formulas without a proper probability model. See also our Monty Hall Problem Calculator.
What's the expected value of switching envelopes?
If your current envelope holds amount X, and you assign probability p to the other being double and probability q to it being half, the expected value of switching is: E(switch) = p × 2X + q × X/2. With p = q = 0.5, this gives 1.25X — which is greater than X, naively suggesting you should always switch. However, this reasoning contains a flaw: you cannot simultaneously treat X as both a fixed value and a random variable drawn from the same prior.
What's the two envelopes fallacy?
The fallacy lies in treating the amount in your envelope as a fixed known value X while simultaneously applying a symmetric probability argument that only holds when X itself is a random variable. In a proper Bayesian treatment, once you observe X, the probabilities of the other envelope being 2X versus X/2 are not generally equal — they depend on your prior distribution over envelope amounts. So the naive 50/50 split is usually not justified.
Should you always switch envelopes?
Not necessarily. The naive calculation suggests always switching, but this leads to an infinite regress — if you switched, you'd want to switch back for the same reason. The correct resolution is that with a proper prior distribution on envelope amounts, the expected gain from switching averages out to zero. Whether to switch in practice depends on your actual probability beliefs about the envelope amounts, which is exactly what this calculator lets you explore. You might also find our Positive Predictive Value (PPV) — False Positive Paradox (Medical) useful.
What happens when probabilities don't add up to 100%?
This calculator requires that the probability the other envelope is double plus the probability it is half should sum to 100% for the model to be consistent. If they don't sum to 100%, the remaining probability is unaccounted for and the expected value calculation may not reflect a valid probability distribution. The calculator will flag this and still compute results, but interpret them with caution.
What does the expected gain or loss from switching mean?
The expected gain or loss is simply the difference between the expected value of switching and the amount currently in your envelope. A positive value means switching is mathematically favorable under your probability assumptions; a negative value means keeping your envelope is better. A value near zero means it makes no difference either way.
How does changing the probabilities affect the result?
If you believe the other envelope is more likely to be double (e.g., 70% chance), the expected value of switching rises significantly and switching becomes clearly favorable. Conversely, if you think it's more likely to be half (e.g., 70% chance), keeping your envelope is better. This calculator lets you dial in any probability split to see exactly how sensitive the recommendation is to your beliefs.
What is a random variable in the context of this paradox?
A random variable is a quantity whose value is determined by a random process. In the two envelopes problem, the amount of money in the unchosen envelope is a random variable — its value is uncertain from your perspective. The paradox partly arises from confusing the observed fixed value of your envelope with a random variable that can be simultaneously X/2 and 2X relative to the other envelope.