Skip to content

Expected Value Calculator

Calculate the expected value, variance and standard deviation of outcomes and probabilities, with lottery, roulette, raffle and extended warranty examples.

Calculator Details

Expected value per play:-2.5See results ↓

Examples

Optional “label:” first. Probability as 1/38, 0.25, 5% or 1 in 38. Write values without thousands separators

Give the rest to an outcome worth 0, treat them as weights, or require exactly 1

Paid whatever the outcome (ticket price, premium, stake); 0 if none

Expected total and spread over this many independent plays

Your Results

Expected value per play: -2.5

Expected value per play

-2.5

On average you lose this much each play

Exact value

-5/2

As a fraction

Standard deviation per play

50.0625

Variance 2,506.25

Expected payout before the cost

7.5

Cost per play 10

Chance of a payout

11%

1 in 9.091

Return to player

75%

Average payout as a share of the cost

The expected value is -2.5: you lose 2.5 per play on average, with a standard deviation of 50.0625 per play.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Contribution of each outcome to the expected payout (value × probability)

Contribution of each outcome to the expected payout (value × probability)

Detailed Breakdown

Outcomes, probabilities and contributions
OutcomeValueProbabilityOddsValue × probability
Top prize5000.011 in 1005
Small prize250.11 in 102.5
Everything else (worth 0)00.891 in 1.1240

Sum of the last column 7.5, minus the cost 10 = -2.5.

How This Calculator Works

How It’s Calculated

E[X] = Σ x·p = 500 × 0.01 + 25 × 0.1 = 7.5

Net = E[X] − cost = 7.5 − 10 = -2.5

Var = Σ x²·p − E[X]² = 2,506.25, SD = 50.0625

The arithmetic is exact (fractions, not rounded decimals), so tiny lottery odds keep every digit.

Frequently Asked Questions

What is expected value?

The long-run average result of a random process: each possible outcome multiplied by its probability, added up. It is what you would average per play if you could repeat the same bet or decision many times, even if no single play ever gives exactly that amount.

How do I calculate expected value?

E[X] = Σ (value × probability), then subtract any cost you pay to play. A $10 game that pays $500 with probability 1% and $25 with probability 10% has E = 500 × 0.01 + 25 × 0.10 − 10 = -2.5 per play.

What is the expected value of roulette?

On an American wheel (0 and 00), a $1 bet on one number has an expected value of -0.05263, a house edge of 5.263%. On a European wheel (single 0) it is -0.02703, a house edge of 2.703%. Every standard roulette bet has the same edge on a given wheel.

Is a lottery ticket ever worth buying on expected value?

Rarely. With the LOTTO 6/49 Classic Draw odds and the average pool prizes the official Game Conditions fund, a $3 play returns about 36.5% of its price on average, an expected value of -1.905. A large Gold Ball jackpot adds to the return, but shared jackpots, taxes in some countries and the time value of a lump sum pull it back down. People buy tickets for the entertainment and the dream, not the expected value.

Should I buy an extended warranty?

Use expected value as a first check. A $120 warranty covering a repair that costs $800 with a 10% chance has an expected value of -40: on average you pay more than you get back. A warranty can still make sense if a repair bill would be hard to absorb, which is a question of risk, not average.

What does the standard deviation add?

How far individual results scatter around the expected value. Two bets with the same expected value can be very different: a lottery has a huge standard deviation (almost always lose a little, very rarely win a lot), a savings account almost none. Over n independent plays the spread grows with √n while the expected total grows with n.

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

Choose what the missing part means. For prize lists, the rest is usually “win nothing”, so the default gives it to an outcome worth 0. If you entered counts or ratios (for example, how often each result happened), treat them as weights. If they should already add up to 1, choose “exactly 1” to catch typing mistakes.

Included: expected value, variance and standard deviation of up to 50 outcomes in exact fractions, a cost per play, totals over many plays, and examples (LOTTO 6/49 classic odds from C(49, 6), roulette, a raffle, a warranty). The LOTTO 6/49 4/6, 5/6 and 5/6 + Bonus prizes are shares of a pool that changes every draw: the preset uses the long-run average each share is funded with under the LOTTO 6/49 Game Conditions (in effect since 22 January 2024, checked 10 November 2026). The Gold Ball draw (about $0.53 of each $3 play in the long run), shared jackpots, Encore and taxes are not modelled. Left out: utility and risk preferences, continuous distributions, and dependent plays (a growing jackpot, betting systems).

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.

OutcomeValueProbabilityValue × probability
Top prize5000.015.00
Small prize250.102.50
Everything else00.890.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

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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy