Expected Value

The average outcome: each value times its probability, all added up.

E = Σ xᵢ pᵢ

The probabilities must add up to 1 (the tool shows the sum).

It is not what you get on one try, but the average per try over many tries.

Calculator

Change a value and the result and picture update instantly.

Result

Expected value E75
Sum of probabilities1

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Compute average rewards from chests or wheels so payouts are neither too generous nor too stingy.

Code example (JavaScript)

const E = rewards.reduce((s, r) => s + r.value * r.prob, 0);

What the symbols mean

SymbolMeaning
listValues (space separated)
plistProbabilities (space separated, sum 1)
EExpected value E
sumPSum of probabilities

More formulas in this category

Frequently asked questions

What is the formula for Expected Value?
The formula for Expected Value is E = Σ xᵢ pᵢ. The average outcome: each value times its probability, all added up.

Math Formula Quiz Probability & Statistics

Sources

Checked: 2026-11-29