Skip to content
Investments

Expected Utility Calculator

Calculate expected utility, certainty equivalent, and risk premium for risky payoffs using logarithmic, square root, or linear utility functions.

Decision Parameters

$

Outcome 1 (Favorable State)

$
%

Outcome 2 (Alternative State)

$
%

Expected Utility, E[U]

5.0000 utils

Risk-Averse profile with Square Root U(W) = √W

Certainty Equivalent

$25.00

Guaranteed cash equal in satisfaction to gamble

Risk Premium

$25.00

50.0% of expected wealth surrendered

Expected Wealth, E[W]

$50.00

Weighted average of $100.00 and $0.00

Expected wealth decomposition

  • Certainty Equivalent$25.0050.0%
  • Risk Premium$25.0050.0%

How expected utility is calculated

Four steps from your payoffs and probabilities to expected utility and risk premium.

  1. Calculate total wealth outcomes for each state

    Wi=W0+XiW_i = W_0 + X_i

    Outcome 1 total wealth: $100.00 (with 50.0% probability). Outcome 2 total wealth: $0.00 (with 50.0% probability).

  2. Calculate expected monetary wealth E[W]

    E[W]=p1W1+p2W2E[W] = p_1 W_1 + p_2 W_2

    (50.0% × $100.00) + (50.0% × $0.00) = $50.00.

  3. Compute outcome utilities and expected utility E[U]

    E[U(W)]=p1W1+p2W2E[U(W)] = p_1 \sqrt{W_1} + p_2 \sqrt{W_2}

    Utility for outcome 1: 10.0000 utils. Utility for outcome 2: 0.0000 utils. Probability-weighted expected utility: (50.0% × 10.0000) + (50.0% × 0.0000) = 5.0000 utils.

  4. Determine Certainty Equivalent (CE) and Risk Premium (RP)

    CE=(E[U(W)])2andRP=E[W]CE\mathrm{CE} = (E[U(W)])^2 \quad\text{and}\quad \mathrm{RP} = E[W] - \mathrm{CE}

    Certainty Equivalent (CE): $25.00. Risk Premium (RP): $50.00 − $25.00 = $25.00.

Report tool

Understanding expected utility theory in financial decision-making

In standard economic analysis and modern portfolio management, evaluating financial choices solely by their expected monetary value often leads to paradoxical conclusions. If people only cared about the mathematical average payout, an individual would treat a guaranteed $50,000 payout identically to a coin flip between $0 and $100,000. In practice, almost everyone prefers the certainty of $50,000 over a high-stakes gamble with the same mathematical mean.

To resolve this dilemma, mathematician John von Neumann and economist Oskar Morgenstern developed Expected Utility Theory (EUT). Rather than assuming people maximize expected dollars, EUT models rational agents as maximizing expected utility: the subjective satisfaction or psychological value derived from different wealth levels. While the expected return calculator helps you find the probability-weighted financial return of an investment portfolio, this Expected Utility Calculator quantifies how different attitudes toward risk transform those raw returns into personal certainty equivalents and risk premiums.

The expected utility formula

Consider an uncertain financial prospect or lottery with nn mutually exclusive outcomes. Each outcome yields a final wealth state WiW_i with an assigned probability pip_i, where all probabilities sum to 100% (pi=1\sum p_i = 1).

Under the von Neumann-Morgenstern utility theorem, the expected utility of the risky prospect is the probability-weighted sum of the utility obtained from each possible wealth state:

E[U(W)]=i=1npiU(Wi)=p1U(W1)+p2U(W2)++pnU(Wn)E[U(W)] = \sum_{i=1}^n p_i \cdot U(W_i) = p_1 U(W_1) + p_2 U(W_2) + \dots + p_n U(W_n)

Here, U(W)U(W) represents the individual utility function, which maps dollar wealth to a dimensionless scale of subjective value known as utils.

Utility functions and attitudes toward risk

The mathematical curvature of an individual utility function reveals their underlying attitude toward uncertainty. Economists categorize decision-makers into three distinct risk profiles:

1. Concave Utility Functions (Risk Aversion)

A utility function is concave if its second derivative is negative (U(W)<0U''(W) < 0). This reflects the principle of diminishing marginal utility of wealth: each additional dollar gained provides less satisfaction than the previous dollar, while losing a dollar causes more pain than gaining that same dollar brings pleasure.

  • Square Root Utility (U(W)=WU(W) = \sqrt{W}): A classic utility function modeling moderate risk aversion. Its inverse function is W=(U)2W = (U)^2.
  • Natural Logarithmic Utility (U(W)=ln(W)U(W) = \ln(W)): First proposed by Daniel Bernoulli in 1738 to solve the St. Petersburg paradox. Logarithmic utility exhibits Constant Relative Risk Aversion (CRRA) with a coefficient of relative risk aversion equal to 1. Its inverse function is W=eUW = e^U.

2. Linear Utility Functions (Risk Neutrality)

A linear utility function takes the form U(W)=aW+bU(W) = aW + b (typically simplified to U(W)=WU(W) = W), meaning its second derivative is zero (U(W)=0U''(W) = 0). A risk-neutral investor evaluates gambles strictly on expected monetary value without demanding any risk discount. Risk neutrality is commonly assumed in pricing corporate options and derivatives via risk-neutral probabilities.

3. Convex Utility Functions (Risk Seeking)

A utility function is convex when its second derivative is positive (U(W)>0U''(W) > 0, such as U(W)=W2U(W) = W^2). A risk-seeking person experiences increasing marginal utility and prefers a risky gamble over receiving its expected value with certainty.

Jensen Inequality: why concavity produces risk aversion

The mathematical foundation of risk aversion is formalized by Jensen Inequality. For any strictly concave function U(W)U(W) and non-degenerate random variable WW:

E[U(W)]<U(E[W])E[U(W)] < U(E[W])

This equation demonstrates that the expected utility of an uncertain payoff distribution is strictly less than the utility derived from receiving the average payoff with 100% certainty. The gap between U(E[W])U(E[W]) and E[U(W)]E[U(W)] represents the welfare loss caused by uncertainty.

Certainty equivalent and the risk premium

Two practical metrics allow financial planners and economists to translate abstract utils back into tangible dollars:

The Certainty Equivalent (CE)

The guaranteed cash amount delivering the exact same level of utility as participating in the risky gamble:

CE=U1(E[U(W)])\mathrm{CE} = U^{-1}(E[U(W)])

The Risk Premium (RP)

The monetary amount an individual is willing to leave on the table to eliminate uncertainty entirely:

RP=E[W]CE\mathrm{RP} = E[W] - \mathrm{CE}

Step-by-step worked examples

Example 1: A Standard Fifty-Fifty Gamble

Suppose an individual with zero initial wealth (W0=$0W_0 = \$0) is offered a lottery ticket paying $100 with a 50% chance and $0 with a 50% chance. We assume a square root utility function U(W)=WU(W) = \sqrt{W}:

  1. Expected Wealth: E[W]=(0.50×$100)+(0.50×$0)=$50E[W] = (0.50 \times \$100) + (0.50 \times \$0) = \$50.
  2. Outcome Utilities: U($100)=100=10 utilsU(\$100) = \sqrt{100} = 10\text{ utils} and U($0)=0=0 utilsU(\$0) = \sqrt{0} = 0\text{ utils}.
  3. Expected Utility: E[U(W)]=(0.50×10)+(0.50×0)=5.0 utilsE[U(W)] = (0.50 \times 10) + (0.50 \times 0) = 5.0\text{ utils}.
  4. Certainty Equivalent: CE=(5.0)2=$25.00\mathrm{CE} = (5.0)^2 = \$25.00.
  5. Risk Premium: RP=$50.00$25.00=$25.00\mathrm{RP} = \$50.00 - \$25.00 = \$25.00 (50% of expected wealth).

Even though the average payout is $50, this risk-averse person values the lottery at only $25 in guaranteed cash.

Example 2: An Investment Opportunity with Background Wealth

Now consider an investor with existing liquid wealth of $10,000 (W0=$10,000W_0 = \$10,000). They evaluate a venture opportunity offering a 50% probability of gaining $6,000 (total wealth $16,000) versus a 50% probability of losing $4,000 (total wealth $6,000). The expected gain is (0.5×6,000)(0.5×4,000)=+$1,000(0.5 \times 6,000) - (0.5 \times 4,000) = +\$1,000, giving an expected wealth of $11,000.

Comparing square root utility and logarithmic utility for this proposition:

  • Under Square Root Utility: U($16,000)=16,000126.491U(\$16,000) = \sqrt{16,000} \approx 126.491 utils and U($6,000)=6,00077.460U(\$6,000) = \sqrt{6,000} \approx 77.460 utils. The expected utility is E[U]=0.5(126.491)+0.5(77.460)=101.975E[U] = 0.5(126.491) + 0.5(77.460) = 101.975 utils. The certainty equivalent is CE=(101.975)2=$10,398.98\mathrm{CE} = (101.975)^2 = \$10,398.98. Because the CE exceeds baseline wealth of $10,000 by $398.98, this investor accepts the opportunity.
  • Under Logarithmic Utility: U($16,000)=ln(16,000)9.6803U(\$16,000) = \ln(16,000) \approx 9.6803 utils and U($6,000)=ln(6,000)8.6995U(\$6,000) = \ln(6,000) \approx 8.6995 utils. The expected utility is E[U]=0.5(9.6803)+0.5(8.6995)=9.1899E[U] = 0.5(9.6803) + 0.5(8.6995) = 9.1899 utils. The certainty equivalent is CE=e9.1899=16,000×6,000$9,797.96\mathrm{CE} = e^{9.1899} = \sqrt{16,000 \times 6,000} \approx \$9,797.96.

Notice this remarkable result: under logarithmic utility, the certainty equivalent ($9,797.96) is less than the investor starting capital ($10,000). Despite a positive expected monetary gain of $1,000, the more risk-averse logarithmic investor rationally rejects the investment because the pain of losing $4,000 outweighs the joy of making $6,000.

Real-world applications

  • Insurance Demand: An individual willingly pays a homeowner premium greater than the actuarial expected claim cost because avoiding catastrophe protects them from the steep negative utility of severe capital destruction.
  • Asset Allocation: Long-term compound returns (tracked via the CAGR calculator) matter, but expected utility explains why investors hold bonds and cash even when stocks offer higher historical averages: downside preservation protects utility.
  • Executive Compensation: Stock options align incentives by creating convex payoff structures, counteracting the natural risk aversion of corporate executives who might otherwise pass on high-NPV risky ventures.

Frequently asked questions

What is the main difference between expected utility and expected return?
Expected return calculates the objective mathematical average dollar payoff or percentage gain from an uncertain prospect. Expected utility measures the subjective, psychological satisfaction of those potential outcomes based on an individual attitude toward financial risk.
What does a positive risk premium indicate?
A positive risk premium indicates risk-averse behavior. It represents the exact amount of expected monetary return an individual is willing to forfeit in exchange for guaranteed certainty.
Why do economists frequently use concave utility functions like square root or log?
Concave functions satisfy the law of diminishing marginal utility: an extra dollar is worth more to a person with $1,000 than to someone with $1,000,000. This curvature naturally reproduces realistic human behaviors, such as buying insurance and diversifying portfolios.
How does initial wealth change the certainty equivalent?
Higher initial wealth cushions the psychological impact of losses. Under diminishing marginal risk aversion, having a substantial wealth buffer lowers the percentage risk premium, allowing investors to take on calculated risks they would otherwise reject with low capital.
Can the certainty equivalent be greater than the expected wealth?
Yes, but only for a risk-seeking decision-maker with a convex utility function. For risk-averse individuals, Jensen Inequality guarantees that the certainty equivalent is always strictly less than the expected monetary wealth.
Are my financial calculations saved or transmitted?
No. All calculations run strictly client-side inside your browser. No financial numbers, wealth inputs, or scenario variables are stored or transmitted to external servers.

Resources and references

The formulas and methods in this calculator were checked against these independent sources.