Expected Value Calculator

Find E[X], variance, and standard deviation of a probability distribution

Frequently Asked Questions

E[X] = sum of (each outcome × its probability). It's the long-run average result if the scenario were repeated many times, even if no single trial produces exactly that value.
A negative EV means that, on average, you lose over the long run — common in casino games and most gambling bets, where the house edge guarantees a negative EV for players.
Variance = E[X²] − (E[X])², where E[X²] is the sum of (each outcome squared × its probability). Standard deviation is the square root of variance.
Yes. For a valid probability distribution, all the probabilities must sum to exactly 1 (100%). If they don't, the expected value calculation isn't meaningful.

Expected value formula

Expected value (EV) is the average result you would get if you repeated a decision many times:

EV = Σ (outcome × probability)

The probabilities must add up to 1. The calculator also gives the variance and standard deviation, which show how far individual results typically fall from the average.

Example

A game wins $10 with probability 0.2, loses $5 with probability 0.3 and breaks even with probability 0.5. The expected value is 10 × 0.2 + (−5) × 0.3 + 0 × 0.5 = $0.50 per play. Over 1,000 plays you would expect to be up about $500, although any single play can lose.

Expected value in betting

For a single bet, EV = (probability of winning × profit) − (probability of losing × stake). A $100 bet at +150 with a true 40% chance has EV = 0.4 × $150 − 0.6 × $100 = $0. If the true chance is 45%, EV becomes +$12.50. Sportsbooks build a margin into prices, so most bets have negative EV.

Examples of negative expected value

GameApproximate return per $1
American roulette (single number)−5.3 cents
Standard −110 sports bet at 50% win rate−4.5 cents
Blackjack with basic strategyabout −0.5 cents
Most lotteries−40 to −50 cents or worse

Beyond gambling

  • Business: compare projects by expected profit across optimistic, base and pessimistic scenarios.
  • Insurance: premiums have negative EV for buyers, but they reduce the variance of large losses, which is worth paying for.
  • Investing: expected return alone is not enough; the standard deviation measures the risk you take for it.

Convert betting odds to probabilities with the odds calculator, check card decisions with the blackjack calculator, and see roulette payouts in the roulette payout calculator.