Free online formula calculators

Expected Value Calculator

Enter the possible outcomes of a random variable and the probability of each to find its expected (long-run average) value and spread.

Expected Value Calculator
Separate values with commas, spaces or new lines.
Separate values with commas, spaces or new lines.
Result
Expected value E(X)3.75
Variance629.6875
Standard deviation25.0936
Sum of probabilities1.0000

Link to this calculation

Formula

E(X) = Σ xi × pi
Var(X) = Σ pi × (xi − E(X))2
SymbolMeaning
xiEach possible outcome
piProbability of that outcome (all must sum to 1)
E(X)Expected value

How to Use This Calculator

  1. Type or paste the Outcomes (values). One value per outcome, e.g. the payoff of each result.
  2. Type or paste the Probabilities. Same order and count as the outcomes; must add up to 1.
  3. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Outcomes (values)-10, 0, 25, 100
Probabilities0.5, 0.3, 0.15, 0.05
Results
Expected value E(X)3.75
Variance629.6875
Standard deviation25.0936
Sum of probabilities1.0000

About This Calculation

The expected value is the probability-weighted average of all possible outcomes. It is what you would average per trial if you could repeat a random situation an enormous number of times. In the default example, a game costs you $10 half the time, pays nothing 30% of the time, wins $25 with 15% probability and $100 with 5% probability; the expected value is +$3.75 per play.

Expected value is the foundation of rational decision-making under uncertainty. Insurers use it to price policies, casinos design games with a negative expected value for players, investors compare projects with it, and businesses weigh up whether a marketing campaign is likely to pay off. A positive expected value means a bet is favourable in the long run; a negative one means it loses money on average.

The expected value alone can mislead, because it hides risk. Two bets can share the same expected value while one is nearly certain and the other could wipe you out. That is why this calculator also reports the variance and standard deviation, which measure how widely real results scatter around the average. Also note that the expected value need not be a possible outcome: the expected roll of a fair die is 3.5. Make sure your probabilities cover every outcome and add up to exactly 1.

Frequently Asked Questions

What does a negative expected value mean?
On average you lose that amount each time. Lottery tickets and casino games have negative expected values for players, which is how the operator profits.
Is expected value the same as the mean?
Yes. It is the mean of a probability distribution. For a plain list of observed data use the mean calculator.
Can I enter percentages instead of probabilities?
Convert them first by dividing by 100, so 15% becomes 0.15. The probabilities must add up to 1.

Category: Statistics & Probability. Found a problem with this calculator? Let us know.