← All text tools

Expected value calculator

Enter outcomes and probabilities to get the expected value, variance and standard deviation, and see whether a bet or game is worth playing.

  • Free
  • No sign-up
  • Works on any device

About Expected value calculator

The expected value of a discrete random variable is the probability-weighted average of its outcomes, E(X) = sum of x times P(x). Enter each outcome with its probability as a decimal, fraction or percentage, and the page checks that they sum to 1, then returns E(X), the variance and the standard deviation. A cost to play can be subtracted to judge a bet. A prize of 100 with probability 0.01 and a ticket costing 2 has an expected result of minus 1 per play, so the game is not worth taking on average.

How to use Expected value calculator

  1. Type one outcome and its probability per line, such as 100, 0.01 or 5, 1/6.
  2. Enter a cost to play if the outcomes are prizes, so the net result can be judged.
  3. Read E(X), the spread and the verdict on whether the game is worth playing.

Why use this tool?

Also known as

Frequently asked questions

Does expected value predict a single play?

No. It is the long-run average. A lottery ticket almost always loses, even if the average prize is high, and the standard deviation shows how wild the swings are.

What if my probabilities do not add up to 1?

The page stops and shows the total, because the result would be wrong. Fix a value or add the missing outcome so the total is exactly 1.

What is the link between expected value and variance?

Variance measures how far outcomes sit from the expected value, weighted by probability. Its square root is the standard deviation, in the same units as the outcomes.

Is Expected value calculator free?

Yes. Expected value calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Expected value calculator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools