Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Expected value calculator

List the possible outcomes and their probabilities to get the expected value, the variance and the standard deviation, with every step shown.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Need the chance of something happening at least once, or a binomial probability? Use the probability calculator.

How expected value is calculated

Multiply each outcome by its probability and add them up. The probabilities must cover every possible outcome, so they add up to 1 (100%).

E(X) = μ = Σ x · P(x)
Var(X) = σ² = Σ (x − μ)² · P(x) σ = √Var(X)

You can type probabilities as decimals (0.25), percents (25%) or fractions (1/4). If plain numbers add up to 100, they're read as percents.

Worked example

A game pays $100 with probability 0.05, pays $10 with probability 0.25, and costs you $5 with probability 0.70 (filled in above).

  • E(X) = 100 × 0.05 + 10 × 0.25 + (−5) × 0.70 = 5 + 2.5 − 3.5 = $4 per play.
  • Variance = (100 − 4)² × 0.05 + (10 − 4)² × 0.25 + (−5 − 4)² × 0.70 = 460.8 + 9 + 56.7 = 526.5.
  • Standard deviation = √526.5 ≈ $22.95.

On average you'd gain $4 a play over many plays, but single results swing widely, which the large standard deviation shows.

Using it for real decisions

  • Expected value is a long-run average. It says little about one try. A lottery ticket can have a small negative expected value and still occasionally pay out big.
  • Getting the probabilities right matters more than the arithmetic. A small error in the chance of a large payout can flip the sign of the answer.
  • People rarely value money linearly. Losing $1,000 can hurt more than winning $1,000 helps, so a positive expected value isn't automatically a good bet. Insurance has a negative expected value for the buyer but can still be sensible.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • $100 at 5%, $10 at 25%, −$5 at 70%: E(X) = 4 ✓
  • Same game: variance 526.5 ✓
  • Same game: SD = √526.5 ≈ 22.945588 ✓
  • Fair die with fractions 1/6: E(X) = 3.5, variance 35/12 ✓
  • Plain numbers 50, 30, 20 are read as percents: E(X) = 17 ✓
  • Edge: probabilities adding to 0.9 are rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is the expected value of a fair die roll?

(1 + 2 + 3 + 4 + 5 + 6) × 1/6 = 3.5. The variance is 35/12 ≈ 2.91667 and the standard deviation ≈ 1.70783. You can never roll 3.5; it's the long-run average.

Can an expected value be negative?

Yes. A negative expected value means you lose on average over many repeats. Casino games and lotteries have a negative expected value for the player.

What if my probabilities don't add up to 1?

Then an outcome is missing or a probability is wrong. The calculator stops and shows the total so you can fix it. If you only know some outcomes, add an "everything else" outcome with the remaining probability.

What's the difference between expected value and the mean?

They're the same idea. The mean of a probability distribution is called its expected value. The sample mean of real data estimates it.

How do I find the expected value in Excel?

Put the outcomes in one column and probabilities in another, then use =SUMPRODUCT(outcomes, probabilities).

Related calculators