Expected Value Calculator (With Variance and SD)
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free expected value calculator. List outcomes and their probabilities to get the expected value, variance and standard deviation of a discrete distribution.
- Variance
- 0
- Standard deviation
- 0
- Outcomes
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the expected value calculator
- List each possible outcome on its own line, with its value and its probability, separated by a comma or space. For example: 1000, 0.05.
- Write probabilities as decimals (0.25), percentages (25%) or fractions (1/4). They must add up to 1, or 100%.
- Read the results as you type.
The expected value calculator shows the expected value, the variance, the standard deviation, the number of outcomes, and a table showing each outcome's contribution to the expected value.
What is expected value?
The expected value is the average result you'd get if you could repeat an uncertain situation many, many times. It weights each possible outcome by how likely it is:
E(X) = Σ value × probability
For example, a game pays 1,000 with probability 0.05, 100 with probability 0.20, nothing with probability 0.50, and costs you 50 with probability 0.25. The expected value is:
1,000 × 0.05 + 100 × 0.20 + 0 × 0.50 + (−50) × 0.25 = 50 + 20 + 0 − 12.5 = 57.5
On average, over many plays, you'd come out ahead by 57.5 per play. That doesn't mean you'll ever win exactly 57.5 on a single play: the only possible results are 1,000, 100, 0 and −50. The expected value is a long-run average, not a prediction of any one outcome.
Variance and standard deviation
Two choices can have the same expected value but very different risks. The variance and standard deviation measure how spread out the outcomes are around the expected value:
Variance = Σ probability × (value − E(X))²
Standard deviation = √variance
In the game above, the variance is about 49,319 and the standard deviation about 222. That's large compared with the expected value of 57.5, which tells you the results swing widely from one play to the next. A choice with a lower standard deviation for the same expected value is less risky.
A fair die
Each face of a fair six-sided die has a probability of 1/6. The expected value is (1 + 2 + 3 + 4 + 5 + 6) ÷ 6 = 3.5. You can never roll 3.5, but over many rolls the average approaches it. The variance is about 2.92 and the standard deviation about 1.71. Enter the six faces with "1/6" as each probability in the expected value calculator to check.
Expected value in business decisions
Expected value is a core tool for decisions under uncertainty. For example, a company is deciding whether to launch a product:
- 30% chance of strong sales: profit of 500,000.
- 50% chance of moderate sales: profit of 100,000.
- 20% chance of failure: loss of 300,000.
E = 0.3 × 500,000 + 0.5 × 100,000 + 0.2 × (−300,000) = 150,000 + 50,000 − 60,000 = 140,000.
The expected profit is positive, which supports launching. But the standard deviation is large, and a 20% chance of losing 300,000 might be unacceptable for a small company that couldn't survive the loss. Expected value tells you what's best on average; it doesn't tell you whether you can afford the bad outcomes.
Expected value in insurance and gambling
Insurance and gambling both rely on expected value. Casino games and lotteries are designed to have a negative expected value for players: over time, players lose and the house wins. In European roulette, for example, a 1 bet on a single number pays 35 to 1 with probability 1/37. The expected value is 35 × 1/37 − 1 × 36/37 = −1/37, or about −2.7 cents per 1 bet.
Insurance usually has a negative expected value for the buyer too, because premiums cover the insurer's costs and profit. People still buy it, sensibly, because it protects them from losses they couldn't afford. This shows the limit of expected value as the only guide: when outcomes are large compared with your resources, reducing risk can be worth more than maximising the average.
A worked example
A charity raffle sells tickets for 10. There's one prize of 500, two prizes of 100 and five prizes of 20, and 1,000 tickets are sold. For one ticket:
- 500 with probability 1/1,000 = 0.001
- 100 with probability 2/1,000 = 0.002
- 20 with probability 5/1,000 = 0.005
- 0 with probability 992/1,000 = 0.992
The expected value of the prizes is 0.5 + 0.2 + 0.1 = 0.80. After paying 10 for the ticket, the expected value is −9.20. It's a donation with a small chance of a prize, which is exactly what a charity raffle should be. To include the ticket cost directly, enter the values net of the 10 cost: 490, 90, 10 and −10.
Who uses an expected value calculator
Students use it in probability and statistics courses. Business analysts use it to compare projects, pricing options and risks. Investors use it to weigh scenarios. Poker players and sports analysts use it to judge decisions over the long run, and insurers and actuaries use it to set premiums.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Where the probabilities come from
The expected value calculator is only as good as the probabilities you enter. Sometimes they're known exactly, as with dice, cards and lotteries. More often, they're estimates based on past data, research or judgement. When probabilities are uncertain, try a few different sets and see whether the decision changes. If the best choice stays the same across reasonable estimates, you can be more confident in it.
Expected value of continuous outcomes
The expected value calculator handles discrete outcomes: a list of specific values. For continuous quantities, like a measurement that can take any value in a range, the expected value is an integral over a probability distribution. For the normal distribution, the expected value is simply the mean; see the normal distribution calculator. For counts of events, the Poisson distribution calculator and binomial probability calculator give the expected value directly.
Expected value versus the most likely outcome
The expected value is not the same as the most likely outcome. In the raffle, the most likely result is winning nothing, with a 99.2% chance, but the expected value of the prizes is 0.80. In skewed situations, like start-up investing or lottery tickets, most outcomes are below the expected value while a few rare outcomes are far above it. Understanding the whole distribution, not just its average, leads to better decisions.
Common mistakes
- Probabilities that don't add up to 1. The expected value calculator checks this and tells you the total.
- Forgetting costs, such as the price of a ticket or an investment.
- Treating the expected value as a guaranteed result of a single event.
- Ignoring risk when the bad outcomes would be hard to survive.
Using the expected value calculator to compare options
To choose between options, enter each one separately and compare the results. Suppose you're choosing between two marketing campaigns. Campaign A has a 60% chance of 20,000 extra profit and a 40% chance of 5,000. Campaign B has a 30% chance of 50,000 and a 70% chance of 0. Campaign A's expected value is 14,000 and campaign B's is 15,000, so B looks slightly better on average. But B's standard deviation is about 22,900 compared with A's 7,350, and B has a 70% chance of earning nothing. If a guaranteed return matters more than a small gain on average, A might be the better choice. Running both through the expected value calculator puts the averages and the risks side by side.
Expected value and the law of large numbers
The law of large numbers says that the average of many independent repeats gets closer to the expected value as the number of repeats grows. That's why casinos can rely on a small edge: over millions of bets, their results are very close to the expected value. An individual player making a few bets, though, can see results far from it, in either direction. The more often a decision is repeated, the more sense it makes to choose the option with the higher expected value.
Sources and further reading
- Expected value on Wikipedia: definition, properties and examples.
- Variance on Wikipedia: how spread around the expected value is measured.
- Khan Academy: Expected value, a free video lesson on expected value of discrete random variables.
Frequently asked questions
How do you calculate expected value?
Multiply each outcome by its probability and add up the results.
Can probabilities be entered as percentages or fractions?
Yes. Use 0.25, 25% or 1/4. The expected value calculator converts them.
What if my probabilities don't add up to 1?
The calculator tells you the total. Check for a missing outcome or a typo.
What does a negative expected value mean?
On average, you'd lose by taking that option.
Is the expected value the most likely result?
No. It's the long-run average, which may not even be a possible single result.
Is the expected value calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.