Expected Value Calculator

Expected Value Calculator

Find the long-run average of a bet, game or decision: enter each possible outcome and its probability to get the expected value, variance and standard deviation.

E(X) = Σ x × P(x)

The value of each outcome. Use negatives for losses.

In the same order. Decimals, percentages or fractions such as 1/6; they must add up to 1.

Enter the outcomes and their probabilities

What is Expected Value?

The expected value is the average result you'd get per go if you repeated something many times. Each outcome is weighted by how likely it is, so likely outcomes count for more than rare ones.

It's usually not a result you can actually get. A fair die has an expected value of 3.5, which no single roll ever shows; it's where the average of thousands of rolls settles.

Casinos, insurers and lotteries are built on it: every bet has a small negative expected value for the player, so over millions of plays the house reliably wins. The standard deviation tells you how far a single go typically lands from that average.

Expected Value Formula

Definitions as given in OpenStax Introductory Statistics, section 4.2. See Sources.

1. Weight each outcome by its probability

E(X) = x₁P(x₁) + x₂P(x₂) + … = Σ x × P(x)

The probabilities must cover every possible outcome and add up to exactly 1.

2. Variance and standard deviation

Var(X) = Σ x² × P(x) − E(X)²
SD(X) = √Var(X)

3. Many repeats

Total over n goes: expected n × E(X), SD √n × SD(X)

The expected total grows with n but its spread only with √n, which is why the long run is so predictable.

Worked Example: Is the Extended Warranty Worth It?

Given:
A £60 warranty. Without it, repairs cost £0, £150 or £400 with probabilities 0.85, 0.10, 0.05.
Step 1:
Expected repair cost:
0 × 0.85 + 150 × 0.10 + 400 × 0.05 = 0 + 15 + 20 = £35
Step 2:
Spread:
Σx²P = 2,250 + 8,000 = 10,250 → Var = 10,250 − 35² = 9,025 → SD = £95
Step 3:
Compare with the price:
£35 − £60 = −£25 per warranty bought
Result:
Expected repair cost £35, against a £60 price

On average the warranty loses you £25, which is the seller's margin. It can still make sense if a surprise £400 bill would be hard to pay: that's a question about risk, which the expected utility calculator handles.

Expected Value of Common Games

Bets are shown per £1 staked. A negative value is the house edge.

Expected values of common games and bets
GameExpected value
Roll of a fair die3.5
Sum of two dice7
Roulette, £1 on red (single zero)-0.027
Roulette, £1 on red (double zero)-0.0526
Roulette, £1 on one number (single zero)-0.027

Common Expected Value Mistakes

  • Forgetting the stake. For a £1 bet that pays £35, the winning outcome is +£35 and the losing one −£1, not £36 and £0.
  • Missing an outcome. If the probabilities don't add up to 1, something has been left out, often the "nothing happens" case.
  • Expecting the expected value on one go. It's a long-run average. A single play can land far from it, which is what the standard deviation measures.
  • Deciding on expected value alone. A positive expected value with a small chance of ruin can still be a bad bet. Risk matters as well as the average.

Expected Value FAQs

Why is a die’s expected value 3.5 if you can’t roll 3.5?

Because it’s an average, not a possible result. Over many rolls the average settles at (1 + 2 + 3 + 4 + 5 + 6) ÷ 6 = 3.5.

What does a negative expected value mean?

That you lose on average. Every casino game and lottery has one for the player; that loss is the operator’s profit.

Can I use counts instead of probabilities?

Yes. Choose “Counts or weights” and enter how often each outcome happened, and they’re scaled to probabilities automatically.

Is the expected value the most likely outcome?

No. The most likely outcome is the mode. In the warranty example the most likely repair cost is £0, but the expected cost is £35.

What is the law of large numbers?

It says the average of many independent repeats gets closer and closer to the expected value. It’s why insurers can price risk reliably.

How do I compare two decisions?

Work out each one’s expected value and compare. If the stakes are large compared with what you can afford to lose, also look at the spread or use expected utility.

Do the probabilities have to add up to exactly 1?

In probability mode, yes, to within rounding. Fractions such as 1/3 avoid rounding problems: 1/3, 1/3, 1/3 adds to exactly 1.

What’s expected value used for outside gambling?

Pricing insurance, valuing projects, setting stock levels, planning A/B tests and scoring forecasts all rest on expected values.

Sources

Related Tools