Saved

Press the star next to a tool's name to save it.

All my tools

Expected Utility Calculator

Use this expected utility calculator to weight the utility of each outcome by its probability and find the certainty equivalent and risk premium of a gamble.

Restored your last values ·

Write one outcome per line: the amount, a space, then its probability. Pick a utility function. Starting wealth is added to every outcome, which matters for logarithmic utility because ln(0) is undefined.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Fill in the boxes and press Calculate.

An expected utility calculator works out how much a risky gamble is worth to someone who dislikes risk. List the possible outcomes and their probabilities, pick a utility function and, if you like, a starting wealth. The calculator weights the utility of each outcome by its probability to get the expected utility, then turns it back into money: the certainty equivalent, the sure amount that would feel just as good as the gamble. It also shows the plain expected value and the risk premium between the two.

The expected utility formula

E[u(x)] = p₁u(x₁) + p₂u(x₂) + …
Certainty equivalent CE = u⁻¹(E[u(x)])
Risk premium = expected value − CE

Wikipedia's Expected utility hypothesis article gives the expected utility of a gamble as the sum of the utility of each outcome times its probability, and the certainty equivalent as the inverse of the utility function applied to that expected utility. A person who is averse to risk has a concave utility function, so each extra dollar adds less utility than the one before, and the certainty equivalent is lower than the expected value.

How to use the expected utility calculator

  1. List the outcomes. Put the amount and its probability on each line.
  2. Pick a utility function: logarithmic, square root or linear.
  3. Optionally enter starting wealth, which is added to every outcome.
  4. Press Calculate.

Worked example

The article opens with a simple choice: $50 for sure, or a coin flip for $100 or nothing. Both have an expected value of $50. With square-root utility, the gamble's expected utility is 0.5 × √100 + 0.5 × √0 = 5, and the certainty equivalent is 5² = $25. So a person with this utility would be indifferent between the gamble and $25 for sure, and would happily take the sure $50. The risk premium, the gap between the $50 expected value and the $25 certainty equivalent, is $25.

The utility functions

The article lists common utility functions. Logarithmic utility, u = ln(w), has a relative risk aversion of 1. Power utility, u = w^α with α between 0 and 1, has a relative risk aversion of 1 − α; the square root is the case α = ½, so it is less risk-averse than the logarithm. Linear utility treats every dollar the same, which describes someone who is neutral to risk: their certainty equivalent always equals the expected value, and the risk premium is zero. Comparing the three for the same gamble shows how much attitude to risk changes the answer.

Why starting wealth matters

Utility applies to total wealth, not just the gain or loss, so a coin flip for $100 feels very different to someone with $100 to their name than to someone with $1 million. Enter starting wealth to add it to every outcome. With $100 of wealth and log utility, the coin flip above leads to $200 or $100, and the certainty equivalent of the gamble itself is about $41.42, much closer to the $50 expected value than the square-root result with no wealth. The richer the person, the closer the certainty equivalent comes to the expected value. Logarithmic utility also needs every final amount to be above zero, because the logarithm of zero is undefined.

The St. Petersburg paradox

The article recounts the St. Petersburg game, in which a fair coin is tossed and the prize doubles with each consecutive head. Its expected value is infinite, yet few people would pay more than a small amount to play; the article notes that only a few participants were willing to pay a maximum of $25. Expected utility explains this: with a concave utility function, the huge but very unlikely prizes add little utility, so the game's certainty equivalent is modest.

Expected value and expected utility

Expected value treats money linearly and is the right measure when you can repeat a decision many times or the amounts are small compared with your wealth. Expected utility matters when a single outcome could change your situation a lot, such as a large investment or an insurance decision. For the plain expected value of a decision, use the EMV calculator, and for probabilities themselves the probability calculator.

Using the certainty equivalent

The certainty equivalent turns a gamble into a single sure amount, which makes choices easy to compare. If you are offered either a gamble or a fixed sum, take the fixed sum when it is larger than the gamble's certainty equivalent. Insurance works the same way in reverse: a risk-averse person will pay a premium up to the risk premium to swap an uncertain loss for a certain one. Trying the calculator with your own amounts and a starting wealth close to your own shows how much a particular risk would be worth avoiding.

Common mistakes

  • Probabilities that don't add up to 100 percent. List every outcome.
  • Using log utility with a zero outcome and no wealth. Add starting wealth.
  • Comparing expected utilities across functions. Compare certainty equivalents instead; utility numbers have no common scale.
  • Treating one function as the truth. Try several to see how sensitive the answer is.

What next

Use this often? Add Expected Uti to your Home screen.

Frequently asked questions

How does an expected utility calculator work?

It multiplies the utility of each outcome by its probability, adds them up and converts the total back into a certainty equivalent.

What is the certainty equivalent of a coin flip for $100 or $0 with square-root utility?

Expected utility is 5, so the certainty equivalent is $25.

What is a risk premium?

The expected value minus the certainty equivalent: what a risk-averse person would give up to avoid the risk.

Why add starting wealth?

Utility depends on total wealth, and log utility is undefined at zero.

What does linear utility mean?

Risk neutrality: the certainty equivalent equals the expected value.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools