Logo

MonoCalc

/

Expected Value Calculator

Math

Example Scenarios

How outcome likelihoods are entered
Cosmetic prefix, e.g. $, €, pts

Compare against a cost / stake (Net EV)

Compute E[g(X)] for a function of X

Outcomes & Probabilities

Sum: 1.0000 ✓

Label (optional)

Outcome (x)

Probability

Expected Value E[X]
-7.000
Variance Var(X)
501.000
Standard Deviation σ
22.383

Step-by-Step Breakdown

OutcomexP(x)x · P(x)Running Total
Outcome A10.0000.2000002.0002.000
Outcome B50.0000.1000005.0007.000
Outcome C-20.0000.700000-14.000-7.000
E[X] = Σ x · P(x)-7.000

Probability Distribution

10.0050.00-20.000.0000.3500.700

P(X = x)

E[X] = -7.000

±1σ band

Expected value is a long-run average
The Law of Large Numbers says the average of many repeated trials converges toward E[X] — but E[X] is not a guaranteed result for any single trial. A game or decision can have a positive expected value and still lose on a given attempt.

About This Tool

Expected Value Calculator – E[X], Variance & Standard Deviation

Expected value — often written E[X] — is the probability-weighted average of every possible outcome of a discrete random variable. It answers a simple but powerful question: if this random process were repeated many times, what outcome should you expect on average? This calculator computesE[X], its variance, and its standard deviation for any discrete distribution you define, whether that's a dice roll, a lottery ticket, an insurance payout, or a business decision with uncertain returns.

The Formula

Expected value is calculated as E[X] = Σ xᵢ · P(xᵢ) — multiply each outcome xᵢ by its probability P(xᵢ), then sum the results. Variance measures how spread out the outcomes are around that average: Var(X) = Σ (xᵢ − E[X])² · P(xᵢ), and the standard deviation σ = √Var(X) expresses that spread in the same units as the outcomes themselves. The calculator shows every term of the summation in a step-by-step breakdown table so you can see exactly how each outcome contributes to the final result.

Three Ways to Enter Your Data

Not every problem hands you clean probabilities. This calculator supports three input modes: enter probabilities directly when you already know them (they must sum to 1); enter raw frequencies or counts from observed data and the calculator normalizes each by the total count to derive P(xᵢ) = countᵢ / Σ counts; or select equally likely (uniform) outcomes — such as the faces of a fair die — and every outcome automatically gets probability 1/n. Switching modes preserves your outcome values so you can compare approaches quickly.

Expected Monetary Value and Net Expected Value

In gambling and business decision analysis, the raw expected value often needs to be compared against the cost of participating. A raffle ticket that pays $500 with 1% probability has E[X] = $5.00 — but if the ticket costs $5, the net expected value (E[X] − cost) is exactly $0, meaning the game is mathematically fair before accounting for the thrill of playing. This same net-EV comparison, often called Expected Monetary Value (EMV) in business contexts, helps decision makers weigh uncertain outcomes — like launching a product or not — by their probability-weighted payoffs.

Computing E[g(X)] for Transformed Variables

Beyond the basic mean, this calculator can compute the expected value of a function ofX, written E[g(X)] = Σ g(xᵢ) · P(xᵢ), for expressions such as x^2, 2*x + 5, or abs(x). This is especially useful for verifying variance by hand: since Var(X) = E[X²] − (E[X])², computing E[X²]directly and comparing it against the calculator's variance output is a common way students check their work.

Expected value is not a guaranteed outcome
By the Law of Large Numbers, the average of many repeated trials converges toward E[X] — but any single trial can land far from that average. A favorable expected value describes what happens on average over many repetitions, not what will happen the next time you play.

Common Applications

Analysts use expected value to price insurance premiums against expected claim payouts, evaluate whether a lottery or casino game is favorable or unfavorable, compare investment scenarios weighted by bull, base, and bear-case probabilities, and teach foundational probability and statistics concepts in the classroom. Because the underlying math is identical across all these domains — multiply, weight, and sum — the same calculator handles a fair-die textbook problem and a real-world business decision equally well.

How This Calculator Works

Add each possible outcome and its likelihood, choose the input mode that matches your data, and the calculator instantly computes E[X], Var(X), and σ, validates that your probabilities sum to 1, and renders an interactive probability distribution chart with the expected value and a ±1 standard deviation band overlaid. Results can be copied to the clipboard or exported as a CSV file for further analysis.

Frequently Asked Questions

Is the Expected Value Calculator free?

Yes, Expected Value Calculator is totally free :)

Can I use the Expected Value Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Expected Value Calculator?

Yes, any data related to Expected Value Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is expected value?

Expected value E[X] is the probability-weighted average of all possible outcomes of a random variable, calculated as E[X] = Σ xᵢ · P(xᵢ). It represents the long-run average result if a random process were repeated many times — not the outcome of any single trial.

How does this Expected Value Calculator work?

Enter each possible outcome and either its probability, an observed frequency/count, or select equally-likely outcomes. The calculator multiplies each outcome by its probability, sums the results to get E[X], and also computes variance and standard deviation to show how spread out the outcomes are around that average.

Why do my probabilities need to sum to 1?

Probabilities represent the full set of possible outcomes for a random variable, so by definition they must add up to exactly 1 (100%). If your probabilities don't sum to 1, the calculator flags the actual sum so you can correct the inputs before the expected value is computed.

What is the difference between expected value and a guaranteed outcome?

Expected value is a long-run average, not a promise about any single trial — by the Law of Large Numbers, the average of many repeated trials converges toward E[X], but any individual outcome may differ significantly. A game can have a positive expected value and still lose money on a given play.

How is expected value used in gambling and decision analysis?

In gambling, comparing E[X] to the cost of playing (the "net expected value") shows whether a bet is favorable, fair, or unfavorable on average. In business decision analysis, the same approach — called Expected Monetary Value (EMV) — weighs each possible outcome of a decision by its probability to compare options under uncertainty.

What are the accuracy limits of this calculator?

Results are exact for the inputs provided, limited only by standard floating-point precision, and are displayed to your chosen number of decimal places (0–10). Probability-mode inputs are validated to sum to 1 within a tolerance of ±0.001 to accommodate minor rounding in entered values.