Toolstia / Binomial distribution calculator

Binomial distribution calculator

Enter the number of trials, the chance of success each time and the number of successes you care about. Get the probability of exactly, at most, at least, fewer than, more than or between those counts, plus the mean and standard deviation.

The binomial distribution counts successes in a fixed number of independent tries that each have the same chance of success, like heads in 10 coin flips. The highlighted bars show the counts included in your answer. The chart appears for up to 50 trials, and the tool accepts up to 5,000.

How it works

  1. Enter n and the probability of success.
  2. Choose the type of probability and enter k.
  3. Read the result and check the highlighted chart.

When to use it

For repeated independent tries with two outcomes and a constant chance of success, such as coin flips, quality checks or free throws.

Cumulative options

At most k adds up the chances of 0 to k successes. At least k adds up k to n. Between lets you set both ends.

Mean and spread

The expected number of successes is n times p, and the standard deviation is the square root of n times p times one minus p.

Chart

For up to 50 trials, a bar chart shows every count with the counts in your answer highlighted.

Questions

How large can n be?

Up to 5,000 trials. Everything happens in your browser, and nothing you enter is sent anywhere.

Is a trial independent?

The model assumes so. Drawing from a small pool without replacement needs a different model.

Why does exactly 5 of 10 give 24.6 percent?

There are 252 ways to place 5 heads among 10 flips, out of 1,024 equally likely outcomes.