Audited 27 Jul 2026·Last updated 27 Jul 2026·4 citations·Tier 2·0 uses

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

Comma-separated payoff/outcome values, e.g. net dollar amounts.
Comma-separated probabilities, same length as outcomes, each between 0 and 1. Must sum to exactly 1 (small rounding is tolerated).
Expected value E[X]
1.4
Σ xᵢpᵢ — the long-run average outcome if this distribution repeated many times.
Variance
8.64
Standard deviation
2.9394
Number of outcomes
2

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.

  1. Enter your possible outcomes as a comma-separated list — dollar amounts, point values, or any numeric payoff.
  2. 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).
  3. 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.
  4. 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.
  5. 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.
  6. 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.

E[X] = Σ xᵢ × pᵢ

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.

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.

outcomes-1, 5
probabilities0.6, 0.4

Frequently asked questions.

Does expected value predict what will happen on my next trial?
No. Expected value is a statement about the long-run average across many repetitions of the same probability distribution, not a prediction of any single outcome. A lottery ticket with a one-in-a-million chance of winning $2,000,000 and otherwise winning $0 has an expected value of $2, computed as (2,000,000)(0.000001) + (0)(0.999999) = 2. But the near-certain actual outcome for any individual ticket buyer is exactly $0, not $2 — no single ticket can ever pay out the expected value itself. Expected value only becomes a reliable predictor of the AVERAGE result once you consider a very large number of repeated, independent trials, a consequence of the law of large numbers.
Why does this calculator reject probabilities that don't sum to 1 instead of fixing them automatically?
Because a probability list that fails to sum to 1 is, in the overwhelming majority of practical cases, a sign of a real mistake — a forgotten outcome, an extra outcome that shouldn't be there, or a mistyped probability — rather than an intentional set of unnormalized weights. Silently rescaling the probabilities to force them to sum to 1 would compute an answer for a DIFFERENT distribution than the one you actually intended to describe, without any warning that anything was wrong. This calculator instead reports the exact sum it computed so you can see immediately whether you are off by a little (a rounding issue, generally harmless) or a lot (a real data problem, worth fixing before trusting the result). If you deliberately want a weighted average where the weights don't represent probabilities, use Quanta's weighted-average calculator instead, which does not require the weights to sum to 1.
What is the difference between expected value and a simple average?
A simple (arithmetic) average treats every listed number as equally likely or equally important. Expected value weights each outcome by its actual probability of occurring, which is only the same thing as a simple average in the special case where every outcome happens to be equally likely. If a game has three possible payouts — $0, $10, and $100 — the simple average of those three numbers is $36.67, but if the true probabilities are 0.9, 0.09, and 0.01 respectively, the expected value is (0)(0.9) + (10)(0.09) + (100)(0.01) = 0 + 0.9 + 1.0 = $1.90, a very different (and far more realistic) number, because the $100 outcome is heavily discounted by how rarely it actually occurs.
Why does the standard deviation matter if two options have the same expected value?
Because expected value alone tells you nothing about risk — how much any individual outcome is likely to deviate from that average. Two investments, bets, or decisions can share the exact same expected value while having very different standard deviations: one might cluster tightly around its expected value (low risk, predictable), while the other has a much wider range of possible outcomes (high risk, volatile) despite averaging out to the identical number over the long run. A risk-averse decision-maker facing a one-time, non-repeatable choice should generally weigh the standard deviation heavily, even preferring a slightly lower expected value with much lower variance; a decision-maker who will face the same choice repeatedly (an insurer writing thousands of policies, a casino running millions of hands) can usually rely on expected value alone, because the law of large numbers smooths out the variance across enough repetitions.
How do insurance companies use expected value to set premiums?
An insurer estimates the probability of each possible claim outcome for a policy — no claim, a partial claim, a total loss — using historical data, and computes the expected payout as the probability-weighted sum of those outcomes, exactly as this calculator does. The premium charged must exceed that expected payout by enough to cover administrative costs, reserves for unusually bad years, and a profit margin; if premiums merely equaled the expected payout, the insurer would break even on claims alone but lose money once operating costs are included, and would have no cushion against a worse-than-expected year. This is why expected value, not the maximum possible loss, drives standard actuarial pricing — the insurer is relying on the law of large numbers across its entire book of thousands of similar policies to make the long-run average payout the relevant number, rather than the unpredictable outcome of any single policyholder.

References& sources.

  1. [1]Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Volume 1, 3rd edition. New York: John Wiley & Sons.
  2. [2]Ross, S.M. (2019). A First Course in Probability, 10th edition. New York: Pearson.
  3. [3]Casella, G. & Berger, R.L. (2002). Statistical Inference, 2nd edition. Pacific Grove, CA: Duxbury/Cengage.
  4. [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
Coming soon