Binomial Distribution Calculator

Calculate exact and cumulative binomial probabilities, mean, and variance.

Binomial Probability
Enter the trial count, per-trial success probability, and target successes.

About the Binomial Distribution

The binomial distribution models the number of successes in a fixed number of independent trials. Every trial must have two relevant outcomes, commonly called success and failure, and the probability of success must remain constant from trial to trial. The parameters are n, the number of trials, and p, the probability of success on one trial. The random variable counts how many successes occur, so its possible values are the whole numbers from zero through n. The probability of exactly k successes is the binomial coefficient n choose k multiplied by p raised to k and one minus p raised to n minus k. The coefficient counts the different orders in which k successes can occur. This calculator evaluates that probability along with two cumulative results. At most k adds probabilities from zero through k. At least k adds probabilities from k through n, calculated here using the complement of fewer than k successes. These cumulative probabilities are useful for threshold questions that exact probability alone cannot answer. The distribution's mean is n times p, representing the long-run average success count over many repetitions of the entire experiment. Its variance is n times p times one minus p, and the standard deviation would be the square root of that variance. The mean does not need to be a possible whole-number outcome; it describes the center of the distribution rather than a guaranteed count. Spread is largest near p equal to one-half and becomes smaller as p approaches zero or one. Common applications include coin flips, manufacturing defect counts, survey responses, conversions, pass-fail tests, and treatment outcomes. Before using the model, check its assumptions carefully. Trials should be independent, the number of trials should be fixed in advance, and each trial should use the same success probability. Sampling without replacement from a small population may violate independence and is often better modeled by the hypergeometric distribution. Events with changing probabilities also require another model. Enter p as a decimal between zero and one, such as 0.25 for 25%. Use exact probability for one count, at-most probability for upper-bound questions, and at-least probability for meeting or exceeding a target.

Binomial Distribution Examples

These examples use independent trials with a constant success probability.

Parameters (n, p, k)Selected ResultsScenario
10, 0.5, 5P(X = 5) = 0.24609375Exactly five heads in ten fair coin flips.
20, 0.1, 2P(X = 2) = 0.28517981Exactly two flagged items when each has a 10% flag rate.
5, 0.8, 4P(X = 4) = 0.4096Exactly four successes in five high-probability trials.

How to Calculate Binomial Probability

  1. Enter the fixed number of independent trials.
  2. Enter the probability of success on each trial as a decimal from zero to one.
  3. Enter the target whole number of successes between zero and the trial count.
  4. Select Calculate Binomial Probability and compare exact and cumulative results.

Frequently Asked Questions

When is a binomial model appropriate?

Use it for a fixed number of independent two-outcome trials with constant success probability. If those assumptions fail, a different probability model may be more accurate.

What is the difference between exact and cumulative probability?

Exact probability covers one specific success count. Cumulative probability combines a range of counts, such as all outcomes at or below a threshold.

Should I enter probability as a percent?

Enter probability as a decimal from zero to one. For example, enter 0.35 for a 35% chance of success.

Can the mean be a decimal?

Yes, the mean is an expected long-run average and need not be an attainable single outcome. Actual success counts are always whole numbers.

What if trials are not independent?

Dependence changes the distribution because one outcome can affect another. Sampling without replacement may call for a hypergeometric model instead.