Expected Value Calculator

Published on: November 26, 2026
Final Answer: Free | Full Steps: Plus

This Expected Value Calculator finds the long-run average of a random variable from its values and their probabilities, and shows the working line by line. It first checks that the probabilities add up to 1, then multiplies each value by its probability and adds the results. The answer does not have to be one of the values. It is what the average would settle on after many repeats, and the same pattern is used to judge games, bets and insurance.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Check that the probabilities add up to 1.
  4. Multiply each value by its probability.
  5. Add the products to get the expected value.
  6. Show the expected value on a bar chart of the probabilities.

Formula: Expected Value Formula

This formula gives the long-run average of X. Multiply each value by its probability, then add the products.

\(E(X) = \Sigma x P(x)\)

Useful Tips to Remember

The expected value is \(E(X) = \Sigma x P(x)\), so multiply each outcome by its probability and add the results. The probabilities must add up to exactly 1. The expected value is a long-run average, so it does not have to be one of the possible outcomes. A negative expected value in a game or bet means a loss on average.

Required knowledge

Where Is Expected Value Used?

Expected value is the long-run average result of a random event, found by multiplying each outcome by its probability and adding, \(E(X) = \Sigma x P(x)\). It shows whether a game, bet or decision pays off on average, which is why casinos always set games with an expected value in their favour. Insurance companies use it to set premiums, businesses use it to compare risky projects, and investors use it to weigh possible returns. It turns uncertain outcomes into one number that can guide a decision.

  • Checking whether a game or lottery ticket is worth playing
  • Setting insurance premiums from the expected cost of claims
  • Comparing risky business projects or investments
  • Deciding on strategies in sports and games
  • Estimating average waiting times or demand

Expected Value Practice Problems

Example 1 uses a simple three-outcome table, and Example 2 finds the expected score of a fair dice. Try multiplying and adding yourself before checking. For two more free worked examples, check out the Expected Value Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\begin{array}{c|c} x & P(x) \\ \hline 0 & 0.25 \\ 1 & 0.5 \\ 2 & 0.25 \end{array}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Check that the probabilities add up to 1.
  4. Multiply each value by its probability.
  5. Add the products to get the expected value.
  6. Show the expected value on a bar chart of the probabilities.

Formula

Formula: Expected Value Formula

This formula gives the long-run average of X. Multiply each value by its probability, then add the products.

\(E(X) = \Sigma x P(x)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the long-run average of X, where each value comes up with the probability next to it.

\(\begin{array}{c|c} x & P(x) \\ \hline 0 & 0.25 \\ 1 & 0.5 \\ 2 & 0.25 \end{array}\)

Step 2

Step 2 - Write the formula.

In this problem: The expected value multiplies each value by its probability and adds the results.

\(E(X) = \Sigma x P(x)\)

Step 3

Step 3 - Check that the probabilities add up to 1.

In this problem: The probabilities of every value together must make 1, and \(0.25 + 0.5 + 0.25 = 1\).

\(\Sigma P(x) = 0.25 + 0.5 + 0.25 = 1\)

Step 4

Step 4 - Multiply each value by its probability.

In this problem: Multiplying each row gives \(0 \times 0.25 = 0\), \(1 \times 0.5 = 0.5\), \(2 \times 0.25 = 0.5\).

\(\begin{array}{c|c|c} x & P(x) & xP(x) \\ \hline 0 & 0.25 & 0 \\ 1 & 0.5 & 0.5 \\ 2 & 0.25 & 0.5 \end{array}\)

Step 5

Step 5 - Add the products to get the expected value.

In this problem: Adding the products gives \(0 + 0.5 + 0.5 = 1\).

\(E(X) = 0 + 0.5 + 0.5 = 1\)

Step 6

Step 6 - Show the expected value on a bar chart of the probabilities.

In this problem: Each bar is a value and its height is the probability. The dashed line is the expected value.

Bar chart of the probabilities with the expected value

Final Answer

\(E(X) = 1\)
See Example 2 Hide Example 2

Problem

\(\begin{array}{c|c} x & P(x) \\ \hline 1 & \frac{1}{6} \\ 2 & \frac{1}{6} \\ 3 & \frac{1}{6} \\ 4 & \frac{1}{6} \\ 5 & \frac{1}{6} \\ 6 & \frac{1}{6} \end{array}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Check that the probabilities add up to 1.
  4. Multiply each value by its probability.
  5. Add the products to get the expected value.
  6. Show the expected value on a bar chart of the probabilities.

Formula

Formula: Expected Value Formula

This formula gives the long-run average of X. Multiply each value by its probability, then add the products.

\(E(X) = \Sigma x P(x)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the long-run average of X, where each value comes up with the probability next to it.

\(\begin{array}{c|c} x & P(x) \\ \hline 1 & \frac{1}{6} \\ 2 & \frac{1}{6} \\ 3 & \frac{1}{6} \\ 4 & \frac{1}{6} \\ 5 & \frac{1}{6} \\ 6 & \frac{1}{6} \end{array}\)

Step 2

Step 2 - Write the formula.

In this problem: The expected value multiplies each value by its probability and adds the results.

\(E(X) = \Sigma x P(x)\)

Step 3

Step 3 - Check that the probabilities add up to 1.

In this problem: The probabilities of every value together must make 1, and \(\frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} = 1\).

\(\Sigma P(x) = \frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{1}{6} = 1\)

Step 4

Step 4 - Multiply each value by its probability.

In this problem: Multiplying each row gives \(1 \times \frac{1}{6} = \frac{1}{6}\), \(2 \times \frac{1}{6} = \frac{1}{3}\), \(3 \times \frac{1}{6} = \frac{1}{2}\), \(4 \times \frac{1}{6} = \frac{2}{3}\), \(5 \times \frac{1}{6} = \frac{5}{6}\), \(6 \times \frac{1}{6} = 1\).

\(\begin{array}{c|c|c} x & P(x) & xP(x) \\ \hline 1 & \frac{1}{6} & \frac{1}{6} \\ 2 & \frac{1}{6} & \frac{1}{3} \\ 3 & \frac{1}{6} & \frac{1}{2} \\ 4 & \frac{1}{6} & \frac{2}{3} \\ 5 & \frac{1}{6} & \frac{5}{6} \\ 6 & \frac{1}{6} & 1 \end{array}\)

Step 5

Step 5 - Add the products to get the expected value.

In this problem: Adding the products gives \(\frac{1}{6} + \frac{1}{3} + \frac{1}{2} + \frac{2}{3} + \frac{5}{6} + 1 = 3.5\).

\(E(X) = \frac{1}{6} + \frac{1}{3} + \frac{1}{2} + \frac{2}{3} + \frac{5}{6} + 1 = 3.5\)

Step 6

Step 6 - Show the expected value on a bar chart of the probabilities.

In this problem: Each bar is a value and its height is the probability. The dashed line is the expected value.

Bar chart of the probabilities with the expected value

Final Answer

\(E(X) = 3.5\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.