Expected Value Calculator: Lotteries, Bets, Raffles and Warranties
By FindMySum · Last reviewed
Expected value is the average result of a random event when you weigh each outcome by how likely it is. It is the number behind every casino's profit, every insurance premium and every "is this worth it?" decision under uncertainty. This calculator takes a list of outcomes with their probabilities, subtracts what it costs to play, and gives the expected value per play and over many plays, with the variance and standard deviation that describe how far real results scatter.
The formula
For outcomes x₁, x₂, … with probabilities p₁, p₂, …:
E[X] = x₁p₁ + x₂p₂ + … = Σ xᵢpᵢ
If you pay a cost c to play whatever happens, the net expected value is E[X] − c. The spread is measured by the variance, Var(X) = Σ xᵢ²pᵢ − E[X]², and its square root, the standard deviation. Paying a fixed cost moves every result by the same amount, so it changes the expected value but not the spread.
Worked example: the default game
The calculator opens with a $10 game that pays $500 with probability 1% and $25 with probability 10%. Every other result pays nothing.
| Outcome | Value | Probability | Value × probability |
|---|---|---|---|
| Top prize | 500 | 0.01 | 5.00 |
| Small prize | 25 | 0.10 | 2.50 |
| Everything else | 0 | 0.89 | 0.00 |
The expected payout is 5.00 + 2.50 = 7.50, so after the $10 cost the expected value is −$2.50 per play. The game pays back 75% of what is staked on average. The standard deviation is about $50, far larger than the expected value, which is typical of games with a rare big prize: most players lose $10, a few win big, and the average is −$2.50.
Entering outcomes
Write one outcome per line as a value and a probability, with an optional label before a colon:
Top prize: 500, 1%
Small prize: 25, 1/10
Probabilities can be percentages (5%), decimals (0.05), fractions (1/20) or odds written as "1 in 20". Values can be negative for losses. The calculator works in exact fractions, so a lottery probability like 1/13,983,816 is never rounded away.
When the probabilities do not add up to 1, choose what that means:
- Give the rest to an outcome worth 0: for prize lists, where everything not listed is "win nothing". This is the default.
- Treat them as weights: for counts or ratios, such as how many times each result came up in a trial.
- Exactly 1: to catch typing mistakes when your probabilities should already be complete.
Example: roulette
A $1 bet on a single number pays 35 to 1, so a win returns $36 including the stake. On an American wheel with 38 pockets:
E = 36 × 1/38 − 1 = −1/19 ≈ −$0.0526
That is the famous 5.26% house edge. A European wheel has 37 pockets, so the edge falls to 1/37 ≈ 2.70%. Over 100 spins of $1 on a European wheel, the expected loss is $2.70, but the standard deviation of the total is about $58, which is why a short session can end far ahead or far behind.
Example: LOTTO 6/49
LOTTO 6/49 draws 6 numbers from 49 (plus a bonus number), so there are C(49, 6) = 13,983,816 possible tickets, and the odds of each prize tier follow exactly from counting. Matching all six has 1 way; 5 numbers plus the bonus, 6 ways; 4 numbers, 13,545 ways; 2 numbers, 1,678,950 ways. The chance of winning anything is about 1 in 6.6.
The Classic jackpot ($5,000,000, shared if several tickets match) and the small fixed prizes are known. The 4/6, 5/6 and 5/6 + Bonus prizes are shares of a pool that changes every draw, so the preset uses the long-run average the official Game Conditions fund. Of each $3 play, $0.55 goes to a Prize Fund; after the $10, $5 and free-play prizes are paid, about 13.9 cents per play is left as the Pools Fund, split 54.35% to 4/6, 13.5% to 5/6 and 32.15% to 5/6 + Bonus. Dividing each share by the tier's odds gives average prizes of about $78, $1,042 and $104,177. With those, a $3 play in the Classic Draw has an expected value of about −$1.91: on average, a ticket returns a little over a third of its price. The separate Gold Ball draw on the same ticket is funded with roughly another 53 cents a play, which brings the total paid back to $1.44 of every $3 (48%). Edit any prize to see how much it moves the result: the jackpot alone contributes only $5,000,000 ÷ 13,983,816 ≈ 36 cents.
Example: an extended warranty
A store offers a $120 extended warranty. If you estimate a 10% chance of an $800 repair in the extra coverage period, the expected value of buying it is 0.10 × 800 − 120 = −$40. The warranty costs more than it saves on average. It can still be worth it if an $800 bill would be a real hardship, but that is a judgement about risk, which expected value alone does not capture.
Expected value over many plays
The expected total over n independent plays is n times the expected value per play, but the standard deviation grows only with √n. That is the law of large numbers at work: the more you play, the closer your average result gets to the expected value. A casino with thousands of bets an hour sees almost exactly its expected profit; a single player sees mostly noise. Enter a number of plays to see both figures.
Common mistakes
- Forgetting the cost of playing, or counting the stake twice (a roulette win of 35 to 1 returns 36 including the stake).
- Using probabilities that overlap or do not cover every outcome.
- Treating the expected value as the likely outcome of a single play.
- Ignoring the spread when the downside is large or the plays are few.
More questions
Can expected value be negative?
Yes. A negative expected value means you lose on average. Almost every casino game, lottery and insurance policy has a negative expected value for the customer, because the operator has to cover costs and make a profit from the difference.
Is expected value the most likely outcome?
No. The expected value of a lottery ticket is a loss of a dollar or two, but the most likely outcome is losing the whole ticket price, and the expected value itself may not even be a possible result. It is an average, not a prediction of any single play.
What is the difference between expected value and the mean?
They are the same idea seen from two sides. The mean is the average of data you have collected; the expected value is the average the probabilities say you should get. As the number of plays grows, the mean of your results tends towards the expected value, which is the law of large numbers.
How do I use expected value for a business decision?
List the possible outcomes of each option with a realistic probability and a net value (profit after costs), and compare the expected values. Then look at the spread too: a project with a slightly lower expected value but no chance of a ruinous loss is often the better choice.
Why do insurance companies make money if insurance has a negative expected value for me?
Because they pool many independent risks. For the insurer, thousands of policies make the total payout predictable, close to its expected value, while each policyholder trades a small certain loss for protection against a large uncertain one. Both sides can be better off, measured by risk rather than average.
Sources
- OpenStax Introductory Statistics 2e, §4.2 Mean or Expected Value and Standard Deviation
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6 Gallery of Distributions
- OLG, LOTTO 6/49 game information and odds
- Interprovincial Lottery Corporation, LOTTO 6/49 Game Conditions (in effect 22 January 2024), via OLG
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.