?How to use Expected Value Calculator - Direct Data▶
Type each outcome's Value and its Probability (between 0 and 1) in the table; the Contribution column shows value × probability. Learn more about the table
The results update as you type: Expected Value E(X), Variance Var(X) and Standard Deviation σ appear once the probabilities add up to 1. Learn more about the results
Use the tabs Probability Distribution, Calculation Breakdown and Contributions for a chart, the sum step by step, or each outcome's share. Learn more about the views
The box under the calculator explains expected value, the reading of its sign and the spread measures. Learn more about the box
A red message appears when the probabilities do not add up to 1 or a row is incomplete; there is no Calculate or Reset button. Learn more about messages
Expected Value Calculator - Direct Discrete Method
The expected value (also called expectation or mean) represents the average outcome you would expect if you repeated an experiment many times. It is calculated by multiplying each possible outcome by its probability and summing the results.
Enter Outcomes and Probabilities
ValueProbabilityContribution
25.0000
25.0000
-5.0000
Total Probability:1.0000
Expected Value E(X)
45.0000
Variance Var(X)
1825.0000
Standard Deviation σ
42.7200
Probability
E(X) = 45.00
0.25
-20
0.50
50
0.25
100
Outcome Value
Understanding Expected Value
What is Expected Value? Expected value represents the average outcome you would expect over many trials. It is a weighted average where each outcome is weighted by its probability of occurring.
Interpretation.Positive E(X): on average, you gain value. Negative E(X): on average, you lose value. E(X) = 0: a fair game, neither gain nor loss on average.
Common Applications.Games: determining if a game is favorable. Investments: comparing expected returns. Insurance: calculating fair premiums. Decision Making: choosing between uncertain options.
Variance and Standard Deviation. While expected value tells you the average outcome, variance and standard deviation measure how spread out the outcomes are. Low variance: outcomes are clustered near the expected value. High variance: outcomes are more spread out (higher risk). Standard deviation (σ): square root of variance, in the same units as the outcomes. Learn more about expected value
Use the calculator below to compute the expected value with step-by-step solutions and detailed explanations.
Entering Outcomes and Probabilities
DemoThe game table, a fourth row, a wrong total
Step 0 of 4
The table on the left holds one row per outcome. Type the outcome in the Value column (any number, negative for a loss) and its chance in the Probability column, a number from 0 to 1; a probability typed above 1 or below 0 is clamped to that range. The Contribution column shows value × probability for the row as soon as both boxes hold numbers, and a dash until then.
Click + Add Outcome for another row; it starts with value 0 and probability 0, so the total does not change until you type. The × at the end of a row removes it; the last remaining row cannot be removed. Total Probability under the table must read 1.0000: a total of 1.2000 shows the warning ⚠ Must equal 1.0 and the message that probabilities must sum to exactly 1.0, and the results area shows a placeholder until the total is fixed. A table with no usable rows shows "Please enter valid values and probabilities".
There is no Calculate button and no Reset button: everything recomputes as you type, and reloading the page restores the sample table (100, 50, −20 with 0.25, 0.5, 0.25). For the game that pays 0, 10 or 50 dollars with probabilities 0.5, 0.3 and 0.2, the three rows give the expected value 13. Why the probabilities must add up to 1 is explained in expected value from a probability table.
Reading the Results and the Explanation Box
DemoThree cards, then a placeholder
Step 0 of 3
Once the total probability is 1, three cards appear on the right: Expected Value E(X), the sum of the contributions; Variance Var(X), the probability-weighted average of the squared distances from E(X); and Standard Deviation σ, the square root of the variance, in the same units as the values. All three show four decimals. For the sample table the cards read 45.0000, 1825.0000 and 42.7200; changing the third value from −20 to −40 moves them to 40.0000, 2550.0000 and 50.4975, because the loss row now pulls the mean down by 10 instead of 5 and sits further from it.
If a probability is edited so that the total leaves 1, the cards disappear and the results area shows "Enter valid outcomes with probabilities that sum to 1.0 to see results" until the table is valid again. The sign of E(X) is the quick reading: positive means an average gain per play, negative an average loss, zero a fair game.
The box under the calculator, Understanding Expected Value, restates the definition, the reading of the sign, the common uses and the meaning of variance and standard deviation; its link opens the table section below. The formula itself is worked through in formula and worked example.
Switching Between the Three Views
DemoBreakdown, contributions, distribution
Step 0 of 3
Above the chart are three tabs; they change only what is drawn, not the numbers. Probability Distribution (the default) draws one bar per outcome, with height equal to its probability, on a value axis, and marks where E(X) falls among the bars: for the sample table the bars stand at −20, 50 and 100 and the mark at 45. Calculation Breakdown lists the formula E(X)=Σ(value×probability) and one line per row, such as 100×0.25=25.0000, 50×0.5=25.0000 and −20×0.25=−5.0000, then the total 45.0000. Contributions draws each row's product as a bar, so a large value with a small probability and a small value with a large probability can be compared directly.
Use the breakdown when checking homework by hand, the distribution to see how spread out the outcomes are, and the contributions to see which rows drive the result. Editing the table while a tab is open redraws that tab at once. The meaning of each product and of their sum is set out in formula and worked example.
Expected Value from a Probability Table
When the possible values of a random variable and their probabilities are known, the expected value is the probability-weighted average of those values. Each value contributes in proportion to how likely it is, so rare large values count less than common small ones.
A probability table is valid only when every probability lies between 0 and 1 and the probabilities add up to exactly 1. If they add up to something else, either a value is missing or a probability is wrong, and the result would not be a true expected value. The expected value does not have to be one of the listed values: a variable that takes only the values 0 and 1 can have an expected value of 0.3.
For a discrete random variable with values x1,x2,…,xn and probabilities p1,p2,…,pn:
E[X]=i=1∑nxipi
Example: a game pays nothing with probability 0.5, 10 dollars with probability 0.3 and 50 dollars with probability 0.2. The probabilities add up to 1, so the table is valid. Then
E[X]=0(0.5)+10(0.3)+50(0.2)=0+3+10=13
On average the game pays 13 dollars per play. If a ticket costs 15 dollars, a player loses 2 dollars per play in the long run.
Probability tables appear wherever outcomes and their chances are known in advance. Insurers use them to price policies: the expected payout per policy sets the minimum premium. Games of chance are judged by their expected value per play, which shows whether the house has an edge. In business, expected profit compares options whose results are uncertain, such as launching a product that may sell well, average or poorly.
The same table also gives the variance, which measures how far the results spread around the expected value. Two games with the same expected value can carry very different risk.