About the Expected Value Calculator
Expected value shows whether a game, bet, insurance policy or business decision pays off on average over many repetitions. This expected value calculator takes each possible outcome with its probability and returns the expected value, variance and standard deviation: a game that pays 100 with a 10 percent chance and costs 20 otherwise has an expected value of −8 per play, so it loses money in the long run. It checks that the probabilities add up to 1 and shows each outcome's contribution, which makes it easy to see which possibilities drive the result. A positive expected value with a large standard deviation can still mean long losing streaks, so look at both figures.
The formula is E(X) = Σ x × P(x): multiply each outcome by its probability and add the results. The variance is Σ P(x) × (x − E(X))², the probability-weighted average squared distance from the mean, and the standard deviation is its square root. The probabilities must add up to 1, or 100%; if you enter counts, such as how often each result occurred, each is divided by the total first.
Example: a raffle ticket wins $100 with probability 0.01, $10 with probability 0.1 and nothing otherwise. The expected value is 100 × 0.01 + 10 × 0.1 + 0 × 0.89 = $2, so a ticket priced at $5 loses $3 on average. The variance is 106 and the standard deviation about $10.30, reflecting how uncertain any single ticket is.
Expected value guides choices in insurance, investing, gambling and business decisions, though people also care about risk, measured here by the standard deviation. For repeated yes or no trials use the binomial distribution calculator, for weighted averages of data the weighted average calculator, and for event probabilities the probability calculator.
How to use the Expected Value Calculator
- Enter the outcomesType each possible value, such as a payout or a score.
- Enter the probabilitiesType each outcome's probability as a decimal or percentage, or use counts.
- Tick counts if neededChoose the counts option if you entered frequencies instead of probabilities.
- Read the expected valueSee E(X), the variance, the standard deviation and each outcome's share.
Expected Value Calculator features
- Expected value E(X)
- Variance and standard deviation
- Probabilities as decimals or percentages
- Counts or weights normalized automatically
- Contribution of each outcome
- Checks that probabilities add up to 1
- Downloadable working table
Common uses
- Evaluating bets, raffles and lotteries
- Business decisions under uncertainty
- Insurance and warranty pricing
- Probability and statistics homework
- Game design and balancing
Expected value in practice: insurance, warranties, lotteries and business decisions
Expected value is the long-run average outcome of an uncertain situation: each possible result multiplied by its probability, then added up. It is the logic behind insurance pricing, casino profits, investment decisions and sensible choices about extended warranties. This guide works through a warranty example, shows why lotteries lose money on average, explains how businesses compare risky projects and why people sometimes rationally choose options with lower expected values.
The idea
If a game pays Rs 1,000 with probability 0.1 and nothing otherwise, its expected value is Rs 100. You will never actually win Rs 100 in one play, but over many plays, your average winnings approach that figure. Expected value is therefore most useful for decisions that are repeated many times, or for comparing options on a level footing.
A worked example: an extended warranty
A shop offers a two-year extended warranty on a phone for Rs 3,000. Suppose there is about a 10% chance the phone needs a repair costing Rs 15,000 during that time that the standard warranty would not cover. The expected repair cost is 0.1 × 15,000 = Rs 1,500, half the price of the warranty.
On average, then, the warranty costs more than it saves, which is how the shop makes money from selling it. It may still make sense for someone who could not afford a sudden Rs 15,000 bill, because the warranty removes a risk they cannot carry. The probabilities here are illustrative; real repair rates vary by product.
Insurance pricing
Insurers set premiums above the expected value of claims, so that across many customers the premiums cover claims and costs with something left over. Customers accept this because insurance protects them against losses too large to absorb. Expected value explains the price; risk aversion explains why buying insurance is still rational for large, unaffordable losses.
Lotteries and casino games
Lotteries and casino games are designed with negative expected values for players. If a lottery ticket costs Rs 200 and the prizes paid out average Rs 100 per ticket, the expected loss is Rs 100 per ticket. Some individuals win, but the players as a group lose about half of what they spend. Understanding expected value helps people treat such games as entertainment with a known cost rather than as a way to make money.
Comparing business projects
Businesses use expected value to compare uncertain options. A project with a 60% chance of earning Rs 5 million and a 40% chance of losing Rs 2 million has an expected value of 0.6 × 5 − 0.4 × 2 = Rs 2.2 million. A safer project guaranteeing Rs 1.8 million has a lower expected value, but some firms prefer it if a Rs 2 million loss would be damaging. Decision trees lay out such choices step by step.
Variance: the other half of the story
Two options can share an expected value but differ hugely in risk. A guaranteed Rs 1,000 and a 50% chance of Rs 2,000 both have an expected value of Rs 1,000, yet many people prefer the certain amount. The variance and standard deviation of outcomes measure that risk, which is why the calculator reports them alongside the expected value.
Risk aversion and utility
People often value avoiding losses more than gaining the same amount. Economists describe this with utility: the satisfaction a person gets from money, which usually grows more slowly as wealth increases. A rational decision for an individual may therefore differ from the option with the highest expected value, especially when stakes are large compared with their resources.
Common mistakes
- Treating the expected value as the outcome of a single trial.
- Ignoring risk when options have similar expected values.
- Using unrealistic probabilities.
- Forgetting costs, fees or taxes that change the payoffs.
Related tools
For probabilities of events, use Probability Calculator. For repeated trials, try Binomial Distribution Calculator, and for spread, Standard Deviation Calculator.
Expected value in games of strategy
Card and board game players use expected value constantly. Poker players compare the size of the pot with the cost of calling a bet: if calling Rs 100 could win a pot of Rs 400, the call breaks even when the chance of winning is at least 20%, because 0.2 × 400 equals 0.8 × 100. In backgammon, the simplest analysis of the doubling cube, which ignores gammons and later redoubles, shows that accepting a double is correct when your chance of winning is at least 25%.
Building a simple expected value table
For any decision, list the possible outcomes in one column, their probabilities in the next and their payoffs in a third. Multiply each probability by its payoff and add the results. Check that the probabilities add up to 1; if they do not, an outcome is missing or the estimates are inconsistent. Writing the table out often exposes assumptions that were vague before, which is valuable even before any arithmetic is done.
Limits
Calculations are exact for the outcomes and probabilities entered; results are only as good as those estimates.
Frequently asked questions
What is expected value?
The probability-weighted average of all possible outcomes, the average result per trial over many repetitions. It is not necessarily a value that can actually occur in a single trial.
How do I calculate expected value?
Multiply each outcome by its probability and add the products. For a fair die, E = (1 + 2 + 3 + 4 + 5 + 6) × 1/6 = 3.5, even though no roll gives 3.5.
What does a negative expected value mean?
That on average you lose. Casino games and lotteries have negative expected values for players, which is how the operator profits over many plays. A positive expected value means you gain on average.
How is the variance of a random variable calculated?
Var(X) = Σ P(x) × (x − E(X))², or equivalently E(X²) − E(X)². The standard deviation is the square root, in the same units as the outcomes.
Do the probabilities have to add up to 1?
Yes, for a complete probability distribution. If yours add up to 100, they are percentages and are converted. If they are counts or weights, tick the counts option to normalize them.
Is expected value the same as the mean?
Yes, it is the mean of a probability distribution. The mean of observed data estimates it, and by the law of large numbers the average of many trials approaches the expected value.
Why isn't expected value the only thing that matters?
Because risk matters too. Two choices can have the same expected value but very different spreads; most people prefer a certain $50 to a coin flip for $100, despite equal expected values.
How is expected value used in business?
To compare options with uncertain payoffs: multiply each scenario's profit by its probability and add them. The option with the highest expected profit is best for a risk-neutral decision maker.