Free expected value calculator. Add each outcome value and its probability to get E[X] = sum of value times probability, with a per-term table.
Type an outcome value and its probability on each row, add as many rows as the situation has outcomes, and the calculator returns the expected value along with the full working — a table of every x × p term and the running total, so you can see which outcome is actually driving the answer. It recalculates as you type, it checks that your probabilities sum to 1 and tells you when they do not, and it runs entirely in your browser: nothing is uploaded and no numbers leave the page.
The inputs are deliberately plain. Each row is a value and a probability. Values can be negative — that is how you represent a loss — and probabilities must be zero or greater. Two example buttons, Fair die (1–6) and Roulette $1 bet, fill the grid with a working scenario. That is the whole interface. There is no continuous distribution mode, no variance or standard deviation output, and no simulation; this tool does one calculation and shows its work.
Expected value is a probability–weighted average:
E[X] = Σ xⁱ · pⁱ
Every outcome contributes its own value, scaled down by how likely it is. An outcome worth 1,000 that happens one time in a thousand contributes exactly the same to the total as an outcome worth 1 that happens every time. The word "expected" is a poor translation of what it means — it is the long–run average across many repetitions, not a prediction of what happens next, and it is frequently a number the process can never actually produce.
That last point is worth sitting with, because it is where most misuse starts. The expected value of one roll of a fair six–sided die is 3.5. A die never shows 3.5. The number is telling you about the average of many rolls, not about the roll in front of you.
Six outcomes, each with probability 1/6:
E[X] = (1 + 2 + 3 + 4 + 5 + 6) / 6 = 21 / 6 = 3.5
The built–in Fair die example does something slightly different, and it is instructive. It enters 0.1667 for the first five faces and 0.1665 for the sixth, so the probabilities sum to exactly 1.0000 and the tool shows the green "valid probability distribution" banner. The consequence is a result of 3.4995 rather than 3.5:
| Value (x) | Probability (p) | x · p |
|---|---|---|
| 1 | 0.1667 | 0.1667 |
| 2 | 0.1667 | 0.3334 |
| 3 | 0.1667 | 0.5001 |
| 4 | 0.1667 | 0.6668 |
| 5 | 0.1667 | 0.8335 |
| 6 | 0.1665 | 0.9990 |
| Σ | 1.0000 | 3.4995 |
Nothing is broken. 1/6 is not representable as a short decimal, so rounding it to four places and then patching the last row to make the column add to 1 moves the answer by 0.0005. If you need the exact figure, type the fractions as more decimal places — 0.166667 across all six rows sums to 1.000002, which still passes the tool's tolerance check, and gives 21 × 0.166667 = 3.500007 — displayed as 3.5, since results are rounded to four decimal places. The lesson generalises: your answer inherits the precision of the probabilities you feed it.
A single–number bet on an American roulette wheel. There are 38 pockets. You stake $1; if your number comes up you are paid at 35 to 1, otherwise you lose the stake. Two outcomes:
| Outcome | Value (x) | Probability (p) | x · p |
|---|---|---|---|
| Your number hits | +35 | 1/38 | +35/38 |
| Any other pocket | −1 | 37/38 | −37/38 |
| E[X] | (35 − 37)/38 = −2/38 = −0.052632 | ||
So the bet loses about 5.26 cents per dollar staked, on average, forever. That figure — 2/38 — is the house edge, and it is the same for almost every bet on the American wheel, which is the real reason no betting system helps: a system is just a rule for choosing how much to stake on bets that each carry the same negative edge, and a weighted sum of negative numbers is negative regardless of the weights.
The tool's Roulette $1 bet preset enters 0.0263 and 0.9737 rather than the exact fractions, and returns 35 × 0.0263 + (−1) × 0.9737 = 0.9205 − 0.9737 = −0.0532. Again the rounding shows: −0.0532 against the exact −0.052632, a difference of about 0.0006. On a $1 bet that is noise. Scaled to a million dollars of handle it is $600, which is why the people who do this professionally carry the fractions rather than four–place decimals.
Expected value is more useful for choices than for gambling. Suppose a $1,200 repair has a 4% chance of being needed within the warranty term, and an extended warranty covering it costs $80 up front.
1200 × 0.04 + 0 × 0.96 = 48.Enter it as two rows: value -1200, probability 0.04; value 0, probability 0.96. The tool returns −48, and the term table shows the entire loss coming from a single row. That is the pattern to look for — when one row dominates the sum, your answer is only as good as that row's probability estimate, and everything else is decoration.
Note what the −$32 does not settle. If a surprise $1,200 bill would genuinely hurt, paying $80 to remove the possibility can be entirely rational. Expected value prices the average; it does not price your tolerance for the tail. Insurance is negative–EV by construction — the insurer needs a margin — and people still buy it for good reasons.
This is the failure mode worth more than everything else on the page. Expected value is linear and additive; your bankroll is multiplicative. Those are not the same arithmetic, and a strategy can have a positive expected value and still bankrupt you with near–certainty.
Take a wager that returns +50% of whatever you stake with probability 0.5, and −40% with probability 0.5. Per round, the expected return is:
0.5 × (+0.50) + 0.5 × (−0.40) = 0.25 − 0.20 = +0.05
A clean +5% per round in expectation. Now stake your entire bankroll each time. Over two rounds, one win and one loss — the typical case — multiplies your money by 1.5 × 0.6 = 0.9. You are down 10%. The per–round growth rate you actually experience is the geometric mean, √0.9 = 0.9487, which is a loss of about 5.13% per round. Repeat it long enough and you converge on zero, while the expected value stays resolutely positive — because it is being held up by an ever–shrinking probability of an ever–larger fortune.
Two practical consequences. First, when the answer here is positive, ask how much of your resources any single trial risks. Second, expected value says nothing about spread: a certain +1 and a one–in–a–million shot at +1,000,000 both have E[X] = 1, and they are not remotely the same proposition. This calculator will not tell you which you are holding — for that you want a dispersion measure, and the standard-deviation-calculator on this site is the natural next step.
Above the result the tool shows the sum of your probability column. Within 0.01 of 1 it turns green and calls the distribution valid; outside that it turns amber and tells you to add the missing outcomes or recheck your numbers.
Read the amber banner as a warning, not as a block. The calculator does not normalise your probabilities — it computes Σ x · p from exactly what you typed. Two things follow:
A few other behaviours worth knowing:
| Situation | What the tool does |
|---|---|
| A row is blank or contains text | Silently skipped — it is not counted in the sum and produces no warning. An empty row you added and never filled in is harmless. |
| A negative probability | Treated as invalid and skipped. |
| A negative value | Accepted, and required — this is how you enter losses and costs. |
| Every row invalid | An amber prompt replaces the result: enter at least one valid outcome. |
| Trying to delete the last row | Refused; one row always remains. |
| Results display | Rounded to four decimal places, with trailing zeros stripped. |
The arithmetic here is trivial and the calculator will never get it wrong. Almost every mistake is upstream, in how the situation was turned into rows.
x · p column mentally. If the largest contribution comes from the outcome whose probability you were least sure about, the precision of the final figure is illusory.Used within those limits, this is a useful and honest instrument: it turns a scattered set of "this might happen, that might happen" statements into one number you can compare against another one number, and it shows you exactly which assumption that number rests on.
Expected value, E[X], is the long-run average outcome of a random process — the value you would average if you repeated the process many times. It is calculated by multiplying each possible outcome by its probability and adding the results, making it a probability-weighted average of all outcomes.
Multiply each outcome's value by its probability, then sum across all outcomes: E[X] = Σ (value × probability). For a bet that pays +10 half the time and −4 the other half, E[X] = (10 × 0.5) + (−4 × 0.5) = 3. This calculator does the multiplication and summation and shows each term.
For a complete probability distribution, yes — the probabilities of all possible outcomes should sum to 1 (or 100%). This calculator warns you when they do not, because a missing or mistyped probability makes the expected value inaccurate. Each probability should also be between 0 and 1.
A negative expected value means that, on average, you lose over many repetitions. Most casino games have a negative expected value for the player — that is the house edge. A positive expected value means you gain on average, and an expected value of zero describes a fair game with no long-run advantage to either side.
No. Expected value is a weighted average and may not even be a possible outcome — the expected value of a single fair die roll is 3.5, which never actually appears. The most likely outcome is the one with the highest probability. The two can differ sharply, especially in skewed distributions.