Expected Value Calculator

Enter matching lists of outcomes and probabilities to calculate mean, variance and standard deviation.

Expected value
—
Probability sum (%)
—
Variance
—
Standard deviation
—
Probability sum (exact)
—
Normalization
—

Enter 1–1000 matching outcomes and probabilities, separated by commas, semicolons or newlines. Use a decimal point; scientific notation and Unicode minus are accepted. Empty items and mismatched lists are errors. Outcomes have absolute value ≤10¹²; each probability is between 0 and 1, inclusive. Every reduced decimal denominator must be ≤10²⁴. Bounds and moments are checked/calculated with exact fractions before display rounding. The exact probability sum must differ from 1 by no more than 10⁻¹⁰, inclusive; an accepted nonunit sum normalizes both mean and variance. Its exact value is shown separately. Results and square roots display up to 12 significant digits. Variance describes the distribution, not a sample-variance estimate.

How expected value is calculated

Enter matching lists of outcomes and probabilities to calculate mean, variance and standard deviation.

Enter 1–1000 matching outcomes and probabilities, separated by commas, semicolons or newlines. Use a decimal point; scientific notation and Unicode minus are accepted. Empty items and mismatched lists are errors. Outcomes have absolute value ≤10¹²; each probability is between 0 and 1, inclusive. Every reduced decimal denominator must be ≤10²⁴. Bounds and moments are checked/calculated with exact fractions before display rounding. The exact probability sum must differ from 1 by no more than 10⁻¹⁰, inclusive; an accepted nonunit sum normalizes both mean and variance. Its exact value is shown separately. Results and square roots display up to 12 significant digits. Variance describes the distribution, not a sample-variance estimate.

μ = Σpᵢxᵢ / Σpᵢ; Var[X] = Σpᵢ(xᵢ−μ)² / Σpᵢ; σ = √Var[X]

Frequently asked questions

What does a positive or negative expected value mean?

A positive expected value means the weighted average outcome favors you over many repetitions; a negative expected value means it works against you on average, even though any single instance could go either way.

Do the probabilities have to add up to exactly 1?

Enter 1–1000 matching outcomes and probabilities, separated by commas, semicolons or newlines. Use a decimal point; scientific notation and Unicode minus are accepted. Empty items and mismatched lists are errors. Outcomes have absolute value ≤10¹²; each probability is between 0 and 1, inclusive. Every reduced decimal denominator must be ≤10²⁴. Bounds and moments are checked/calculated with exact fractions before display rounding. The exact probability sum must differ from 1 by no more than 10⁻¹⁰, inclusive; an accepted nonunit sum normalizes both mean and variance. Its exact value is shown separately. Results and square roots display up to 12 significant digits. Variance describes the distribution, not a sample-variance estimate.

Is expected value the same as the most likely outcome?

No — expected value is a weighted average, which may not match any single actual outcome at all. For example, an expected value of 39 might arise from outcomes of 100, 50, and -20, none of which is 39 itself.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Outcomes (one list) = 100, 50, -20
Probabilities (matching list) = 0.2, 0.5, 0.3
Expected value: 39
Probability sum (%): 100
Variance: 1849
Standard deviation: 43
2
Outcomes (one list) = 0, 1, 2, 3
Probabilities (matching list) = 0.25, 0.25, 0.25, 0.25
Expected value: 1.5
Probability sum (%): 100
Variance: 1.25
Standard deviation: 1.11803398875
3
Outcomes (one list) = 999999999998, 999999999999
Probabilities (matching list) = 0.5, 0.5
Expected value: 999999999999
Probability sum (%): 100
Variance: 0.25
Standard deviation: 0.5
4
Outcomes (one list) = 7
Probabilities (matching list) = 1
Expected value: 7
Probability sum (%): 100
Variance: 0
Standard deviation: 0
5
Outcomes (one list) = 0, 10
Probabilities (matching list) = 0, 1
Expected value: 10
Probability sum (%): 100
Variance: 0
Standard deviation: 0
6
Outcomes (one list) = 1, 2, 3
Probabilities (matching list) = 0.1, 0.2, 0.70000000001
Expected value: 2.6
Probability sum (%): 100.000000001
Variance: 0.439999999997
Standard deviation: 0.663324958069

How we test our calculators →

Also try:

Back to category →