Expected Value Calculator
Free expected value calculator: enter outcomes and their probabilities to get E[X], variance, and standard deviation — for games, insurance, and decisions.
Expected Value Calculator
Background.
The Quanta expected value calculator takes a discrete probability distribution — a list of outcomes and a matching list of their probabilities — and returns the expected value E[X], the variance, the standard deviation, and the number of outcomes parsed. Enter the default example, a simple carnival game that pays −$1 with 60% probability and +$5 with 40% probability, and the calculator returns an expected value of $1.40, meaning that over many repeated plays the average net result per play converges to a $1.40 gain, even though any single play only ever nets exactly −$1 or exactly +$5.
Expected value is the single most important number in decision theory under uncertainty because it collapses an entire probability distribution — potentially dozens of possible outcomes, each with its own likelihood — into one number that represents the long-run average result. The concept was formalized in a 1654 correspondence between Blaise Pascal and Pierre de Fermat, prompted by a gambling question from the Chevalier de Méré about how to fairly divide the stakes of an interrupted game of chance, and is generally credited as the founding moment of formal probability theory. Christiaan Huygens published the first systematic treatment shortly afterward in 1657, defining expectation exactly as this calculator computes it: the sum of each possible outcome multiplied by its probability.
Insurance is perhaps the cleanest real-world application of expected value at scale. An insurer selling a policy assigns a probability to each possible claim outcome (no claim, a partial claim, a total loss) and computes the expected payout; the premium charged must exceed that expected value by enough to cover administrative costs and a profit margin, or the insurer loses money in the long run across its full book of policies, even though any individual policyholder's actual outcome is essentially unpredictable. The same logic underlies casino games, where every game is engineered so the expected value to the player is negative (equivalently, positive for the house) even though any single player on any single night can win big — the casino's profit comes from the law of large numbers averaging out across millions of bets, not from any individual outcome.
A common and important misconception is that expected value tells you what will actually happen on any given trial — it does not, unless the distribution is deterministic (a single outcome with probability 1). A lottery ticket with a one-in-a-million chance of winning $2 million and otherwise winning nothing has an expected value of $2, but the actual, near-certain outcome for the ticket buyer is $0. Expected value is a statement about the long-run average across many repetitions or many similar decisions, not a prediction about any one instance — this is precisely why this calculator also reports the variance and standard deviation alongside the expected value: a low-variance bet whose payout barely deviates from its expected value behaves very differently in practice from a high-variance bet with the identical expected value but a much wider spread of possible outcomes, even though both share the same long-run average.
This calculator requires the entered probabilities to sum to exactly 1 (within a very small rounding tolerance) rather than silently rescaling them if they don't — deliberately, because a probability list that fails to sum to 1 is, in the overwhelming majority of real cases, a data-entry mistake (a forgotten outcome, a mistyped decimal) rather than an intentional unnormalized weighting, and silently 'fixing' the mismatch would hide that mistake behind a plausible-looking but wrong answer.
What is expected value calculator?
The expected value of a discrete random variable X, written E[X], is defined as E[X] = Σ xᵢpᵢ, the sum over every possible outcome xᵢ of that outcome multiplied by its probability pᵢ (Feller, 1968, An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed.; Ross, 2019, A First Course in Probability, 10th ed.). For a valid probability distribution, every pᵢ lies in [0, 1] and the full set of probabilities sums to exactly 1, reflecting the certainty that some outcome in the list must occur. Expected value generalizes the ordinary arithmetic average to situations where outcomes are not equally likely: if every outcome had the same probability 1/n, E[X] would reduce to the plain arithmetic mean of the outcomes, exactly the same relationship a weighted average has to a simple average. The variance of the distribution, Var(X) = Σ pᵢ(xᵢ − E[X])² (Casella & Berger, 2002, Statistical Inference, 2nd ed.), measures how spread out the outcomes are around that expected value — a distribution where every outcome sits close to E[X] has low variance, while one with widely scattered outcomes has high variance even if the expected value is identical. The standard deviation, the square root of variance, returns this spread measure to the original units of the outcomes (dollars, points, whatever the outcomes represent), making it easier to interpret directly than the squared-unit variance.
How to use this calculator.
- Enter your possible outcomes as a comma-separated list — dollar amounts, point values, or any numeric payoff.
- Enter the matching probabilities as a comma-separated list, in the same order and the same length as the outcomes. Each must be between 0 and 1, and the full list must sum to exactly 1 (small rounding, e.g. six entries of 0.1666666667, is tolerated).
- Read the primary result, the expected value, as the long-run average outcome if this exact distribution repeated many times — not a prediction of what will happen on any single trial.
- Check the variance and standard deviation to understand how much any single outcome is likely to deviate from that average. Two distributions can share the identical expected value while having very different risk profiles — a low standard deviation means outcomes cluster tightly around E[X]; a high one means they are widely scattered.
- If your probabilities don't sum to exactly 1, the calculator will reject the input and show you the actual sum — recount your outcomes or re-check your probability entries rather than assuming the calculator will 'fix' the mismatch for you.
- Use the result to compare competing decisions with a common yardstick: prefer the option with the higher expected value when the decision repeats many times or when you are risk-neutral; weigh the standard deviation too when the decision is a one-off and you are risk-averse.
The formula.
The expected value formula, E[X] = Σ xᵢpᵢ, is a probability-weighted average: each outcome contributes to the total in direct proportion to how likely it is to occur (Feller, 1968; Ross, 2019). When every outcome is equally likely (pᵢ = 1/n for all i), the formula collapses to Σ xᵢ/n, the ordinary arithmetic mean — confirming that the simple average is the special case of expected value where every outcome carries equal weight. This is the exact same relationship a weighted average has to a simple average, and indeed expected value is nothing more than a weighted average where the weights are constrained to be a valid probability distribution: non-negative and summing to 1.
Variance measures dispersion around that expected value: Var(X) = Σ pᵢ(xᵢ − E[X])² (Casella & Berger, 2002). Each squared deviation from the mean is weighted by its own probability before summing, exactly mirroring how the expected value itself weights each raw outcome. A distribution with all its probability mass concentrated near E[X] has a small variance; one with substantial probability on outcomes far from E[X] has a large variance, even if the two distributions share an identical expected value. Standard deviation, √Var(X), returns this spread to the original units of the outcomes, making direct comparisons (in dollars, points, or whatever unit the outcomes use) easier than working with the squared-unit variance.
The requirement that probabilities sum to exactly 1 is not a formality — it is the mathematical definition of a valid probability distribution (Kolmogorov's normalization axiom: the entire sample space has probability 1). If the entered probabilities sum to something else, at least one genuine outcome has been omitted from the list, an extra outcome has been double-counted, or a probability was mistyped, and the computed expected value would not correspond to any real probability distribution. This calculator therefore rejects (rather than silently rescales) any probability list whose sum deviates from 1 by more than about one part in a million — a tolerance chosen to absorb ordinary decimal-rounding noise (for instance, six repeating-decimal entries of 1/6 summing to 1.0000000002) without masking an actual data-entry mistake such as forgetting an outcome.
A worked example.
A carnival game costs nothing extra to analyze directly in terms of net outcomes: 60% of the time a player nets −$1 (a small loss), and 40% of the time they net +$5 (a win). The expected value is E[X] = (−1)(0.6) + (5)(0.4) = −0.6 + 2.0 = $1.40. Over many plays, the average net result per play converges to a $1.40 gain for the player — meaning the game favors the player, on average, even though any single play only ever produces exactly −$1 or exactly +$5, never $1.40 itself. To see how risky this particular game is, compute the variance: Var = 0.6 × (−1 − 1.4)² + 0.4 × (5 − 1.4)² = 0.6 × 5.76 + 0.4 × 12.96 = 3.456 + 5.184 = 8.64, giving a standard deviation of √8.64 ≈ $2.94. That standard deviation of nearly $3, on an expected value of only $1.40, signals that a single play is quite volatile relative to its average payout — a player could easily walk away with a string of −$1 results despite the game being favorable in the long run, which is exactly the gap between expected value (a long-run average) and any individual outcome (unpredictable) that this calculator is designed to make visible.
Frequently asked questions.
Does expected value predict what will happen on my next trial?
Why does this calculator reject probabilities that don't sum to 1 instead of fixing them automatically?
What is the difference between expected value and a simple average?
Why does the standard deviation matter if two options have the same expected value?
How do insurance companies use expected value to set premiums?
References& sources.
- [1]Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Volume 1, 3rd edition. New York: John Wiley & Sons.
- [2]Ross, S.M. (2019). A First Course in Probability, 10th edition. New York: Pearson.
- [3]Casella, G. & Berger, R.L. (2002). Statistical Inference, 2nd edition. Pacific Grove, CA: Duxbury/Cengage.
- [4]NIST/SEMATECH e-Handbook of Statistical Methods.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled