Binomial Distribution Calculator

P(X = 3) — exactly 3 successes11.72%
P(X ≤ 3) — at most 317.19%
P(X ≥ 3) — at least 394.53%
Mean (expected successes)5.00
Standard deviation1.58
How this was calculated
  1. There are C(10, 3) = 120 ways to choose exactly 3 successes from 10 trials.
  2. P(X = 3) = 120 × p^3 × (1 − p)^7 = 11.72%.
  3. Cumulatively, P(X ≤ 3) = 17.19% and P(X ≥ 3) = 94.53% — the two overlap on the exactly-3 outcome.
  4. The distribution's mean is 5.00 successes with a standard deviation of 1.58.

A binomial distribution calculator tells you the probability of getting a specific number of successes in a fixed number of independent trials, each with the same success probability. Enter your number of trials (n), number of successes (k), and success probability (p), and the calculator returns exact, cumulative, and tail probabilities along with the mean and standard deviation. The underlying formula is P(X = k) = C(n, k) × p^k × (1 - p)^(n - k), where C(n, k) counts the combinations. For example, exactly 3 successes in 10 trials at 50% gives 11.72% (C(10, 3) = 120 combinations), with a mean of 5.00 and a standard deviation of 1.58. Exactly 5 in 20 trials at 30% gives 17.89% (C(20, 5) = 15,504), with a mean of 6.00 and a standard deviation of 2.05. Five successes from 5 trials at 80% gives 32.77% (0.8^5), with a mean of 4.00 and a standard deviation of 0.89.

This method is the accepted standard because it applies whenever four conditions hold: a fixed number of trials, two outcomes per trial, independence, and a constant probability. The mean equals np and the variance equals np(1 - p), describing the distribution's centre and spread. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result.

Worked examples

Coin flips

Primary result: 11.72% — exactly 3 heads in 10 fair flips, out of 120 equally-weighted combinations. (10 · 3 · 50 %)

P(X = 3) — exactly 3 successes11.72%
P(X ≤ 3) — at most 317.19%
P(X ≥ 3) — at least 394.53%
Mean (expected successes)5.00
Standard deviation1.58

A quality-control sample

Primary result: 17.89% — exactly 5 successes in 20 trials when each succeeds 30% of the time. (20 · 5 · 30 %)

P(X = 5) — exactly 5 successes17.89%
P(X ≤ 5) — at most 541.64%
P(X ≥ 5) — at least 576.25%
Mean (expected successes)6.00
Standard deviation2.05

A clean sweep

Primary result: 32.77% — five successes from five at 80% each is 0.8 to the fifth power. (5 · 5 · 80 %)

P(X = 5) — exactly 5 successes32.77%
P(X ≤ 5) — at most 5100.00%
P(X ≥ 5) — at least 532.77%
Mean (expected successes)4.00
Standard deviation0.89

When the binomial model applies

The binomial model applies when four conditions are met: a fixed number of trials, two outcomes per trial, independence, and a constant probability. Each condition matters. A binomial distribution calculator relies on all four to produce a valid answer.

First, the number of trials is fixed in advance. You decide you will flip a coin 10 times, test 20 widgets, or attempt 5 free throws. Second, each trial has exactly two outcomes, typically labeled success and failure. A widget passes or fails inspection. A free throw goes in or misses. Third, trials are independent; the result of one does not change the result of another. Fourth, the probability of success stays the same for every trial. If your free throw percentage is 80%, it remains 80% on the first shot and the fifth shot.

When these conditions hold, the formula P(X = k) = C(n, k) × p^k × (1 - p)^(n - k) gives the probability of exactly k successes in n trials. The mean is np and the variance is np(1 - p), which describe the center and spread of the distribution. For example, with 10 independent trials at a 50% success probability, the mean is 5.00 and the standard deviation is 1.58. The probability of exactly 3 successes is 11.72%, since C(10, 3) = 120 combinations. The probability of at most 3 successes is 17.19%, and at least 3 successes is 94.53%.

A different scenario shows how changing the inputs shifts the results. With 20 trials at a 30% success probability, the mean is 6.00 and the standard deviation is 2.05. Here C(20, 5) = 15,504 combinations, and the probability of exactly 5 successes is 17.89%. The probability of at most 5 successes is 41.64%, and at least 5 successes is 76.25%. In a smaller case of 5 trials at an 80% success probability, the mean is 4.00 and the standard deviation is 0.89. Getting all 5 successes has a probability of 32.77%, calculated as 0.8^5. The probability of at most 5 successes is 100.00%, since 5 is the maximum possible.

If any of the four conditions fails, the binomial model does not apply. A trial with more than two outcomes, a probability that shifts between trials, or results that influence one another all break the assumptions behind the formula. In those cases, a different model is needed.

The formula, piece by piece

The binomial distribution formula looks like this: P(X = k) = C(n, k) x p^k x (1 - p)^(n - k). It applies when you have a fixed number of independent trials, each with the same success probability. Our binomial distribution calculator handles the arithmetic for you, but understanding each piece helps you check that your inputs make sense.

The first piece, C(n, k), counts the number of ways to get exactly k successes in n trials. This is called the combinations term. For example, C(10, 3) = 120, meaning there are 120 distinct ways to arrange 3 successes among 10 trials. This term grows quickly with larger n, which is why manual calculation becomes impractical and a calculator becomes valuable.

The second piece, p^k, captures the probability of those k successes occurring. If each trial has a 50% success probability and you want exactly 3 successes, you raise 0.50 to the power of 3. The third piece, (1 - p)^(n - k), handles the remaining trials that must be failures. If you have 10 trials and 3 successes, the other 7 must be failures, so you raise 0.50 to the power of 7. Multiply all three pieces together and you get the full probability.

  • Combinations term C(n, k): counts the arrangements of k successes in n trials; C(10, 3) = 120
  • Success term p^k: probability of k successes happening; at 50% for 3 successes, this is 0.50^3
  • Failure term (1 - p)^(n - k): probability of the remaining trials being failures; with 10 trials and 3 successes, this is 0.50^7
  • Multiply all three: C(n, k) x p^k x (1 - p)^(n - k) gives P(X = k)
Using the verified example of exactly 3 successes in 10 trials at 50%: C(10, 3) = 120 combinations, multiplied by 0.50^3 and 0.50^7, gives 11.72%. The same scenario shows a mean of 5.00 and a standard deviation of 1.58, since mean = np and variance = np(1 - p).

Worked examples

These three verified scenarios show how a binomial distribution calculator applies the same formula to different real situations. Each example meets the four conditions the model needs: a fixed number of trials, two outcomes per trial, independence, and a constant probability. The formula P(X = k) = C(n, k) × p^k × (1 - p)^(n - k) gives the probability of exactly k successes in n trials, while Mean = np and variance = np(1 - p) describe the distribution's centre and spread.

The first scenario is a coin flipped 10 times at 50% success probability. With C(10, 3) = 120 combinations, exactly 3 successes gives 11.72%. The cumulative results show how probabilities stack across a range: at most 3 successes gives 17.19%, while at least 3 gives 94.53%. The mean is 5.00 and the standard deviation is 1.58, so seeing only 3 heads sits well below the expected average.

The second scenario is a quality sample of 20 trials at 30% success probability, which could represent defect checks on a production line. With C(20, 5) = 15,504 combinations, exactly 5 successes gives 17.89%. At most 5 gives 41.64%, and at least 5 gives 76.25%. The mean is 6.00 and the standard deviation is 2.05, so 5 successes falls close to the centre of the distribution.

The third scenario is a clean sweep: 5 successes from 5 trials at 80% success probability. This case uses 0.8^5 and gives 32.77%. Because every trial succeeds, at most 5 is 100.00%. The mean is 4.00 and the standard deviation is 0.89. The low standard deviation reflects that outcomes cluster tightly when the success probability is high and the trial count is small.

Scenarion (trials)p (success probability)k (successes)C(n, k) combinationsP(X = k)P(X ≤ k)P(X ≥ k)MeanStandard deviation
Coin flips1050%312011.72%17.19%94.53%5.001.58
Quality sample2030%515,50417.89%41.64%76.25%6.002.05
Clean sweep580%5—32.77%100.00%—4.000.89

Exactly, at most and at least

A binomial distribution calculator typically reports three types of probability for the same value of k: exactly k successes, at most k successes, and at least k successes. The overlap between the "at most" and "at least" results is not an error — it comes from the fact that both ranges include the exact outcome. P(X ≤ k) covers every outcome from 0 up to k, while P(X ≥ k) covers every outcome from k upward. The exact probability P(X = k) sits inside both ranges, so the two cumulative results share that single outcome even though they extend in opposite directions.

The formula behind all three results is P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), for a fixed number of independent trials each with the same success probability. Consider 10 trials at a 50% success probability. There are C(10, 3) = 120 combinations for exactly 3 successes, which yields 11.72%. The "at most 3" result is 17.19% because it adds the exact 3 outcome to the probabilities for 0, 1, and 2 successes. The "at least 3" result is 94.53% because it adds the exact 3 outcome to the probabilities for 4 through 10 successes. The exact 3 outcome of 11.72% is counted in both cumulative figures, which is why they overlap at that point.

A second example makes the pattern clearer. For exactly 5 successes in 20 trials at 30%, C(20, 5) = 15,504 combinations give 17.89%. At most 5 gives 41.64%, and at least 5 gives 76.25%. Again, the exact outcome of 17.89% appears in both cumulative totals. The at most figure sums outcomes 0 through 5, while the at least figure sums outcomes 5 through 20. The shared outcome is the bridge between the two ranges, and removing it from either side would give a result that no longer matches the stated condition.

The distribution's centre and spread help explain why these figures differ so much from one example to the next. The mean equals np and the variance equals np(1 − p). In the first example the mean is 5.00 and the standard deviation is 1.58, so 3 successes sits below the centre and the at least result is large. In the second example the mean is 6.00 and the standard deviation is 2.05, so 5 successes sits closer to the centre and the two cumulative results are more balanced. A binomial distribution calculator applies these relationships automatically once the four conditions — a fixed number of trials, two outcomes per trial, independence, and a constant probability — are met.

Mean and spread

Every binomial distribution has a center and a spread, and you can find both directly from the two numbers you already type into a binomial distribution calculator: the number of trials and the success probability. The mean equals np, and the variance equals np(1 − p). Take the square root of the variance to get the standard deviation, which tells you how far the success count typically lands from the mean. These formulas save you from listing every possible outcome and adding them up by hand.

In the coin-flip case, 10 trials at a 50% success probability give a mean of 5.00. That makes sense: over many repeats of 10 flips, you expect about 5 heads. The standard deviation is 1.58, calculated as the square root of 10 × 0.5 × 0.5. Most of the time the success count falls within roughly two standard deviations of the mean, so you would usually see between about 2 and 8 heads in a set of 10 fair-coin flips. A binomial distribution calculator uses the same mean and spread to put individual results like exactly 3 successes into context.

Change the probability and the spread shifts with it. With 20 trials at a 30% success probability, the mean is 6.00 and the standard deviation is 2.05. With 5 trials at an 80% success probability, the mean is 4.00 and the standard deviation is 0.89. The higher probability pulls the expected count closer to the number of trials, and the lower standard deviation reflects that the outcomes cluster more tightly around that mean.

The mean and standard deviation describe the whole distribution only when the four binomial conditions hold: a fixed number of trials, two outcomes per trial, independence, and a constant probability. If the trials are not independent or the probability changes partway through, the np and np(1 − p) formulas no longer apply. Checking these conditions first ensures the mean and spread you read from the calculator match what the real process will produce.

Binomial versus Poisson

The binomial model and the Poisson model both count successes, but they answer different questions. A binomial distribution calculator works with a fixed number of independent trials, each having the same success probability. The formula P(X = k) = C(n, k) x p^k x (1 - p)^(n - k) captures this setup, where n is the number of trials, k is the number of successes, and p is the success probability for each trial. The Poisson model, by contrast, describes a rate of events occurring over a continuous interval, such as a span of time, a distance, or a region of space, rather than a fixed count of discrete attempts.

The binomial model needs four conditions: a fixed number of trials, two outcomes per trial, independence, and a constant probability. When these conditions hold, Mean = np and variance = np(1 - p) describe the distribution's centre and spread. The Poisson model applies when you know the average rate at which events happen but there is no fixed trial count and no upper limit on how many events can occur in the interval. If your scenario involves flipping a coin a set number of times, inspecting a batch of items, or testing a known number of patients, the binomial model is the right choice. If you are counting rare customer arrivals at a store during an hour or defects per metre of cable, the Poisson model fits better.

Choosing the wrong model can materially change your results. Consider exactly 3 successes in 10 trials at 50%: C(10, 3) = 120 combinations, which gives 11.72%. The same scenario yields 17.19% for at most 3 successes, 94.53% for at least 3 successes, a mean of 5.00, and a standard deviation of 1.58. Now consider exactly 5 in 20 trials at 30%: C(20, 5) = 15,504, which gives 17.89%. Here, at most 5 gives 41.64%, at least 5 gives 76.25%, the mean is 6.00, and the standard deviation is 2.05. These figures depend entirely on having a fixed trial count and a constant per-trial probability.

The contrast becomes even clearer at the extremes. For 5 successes from 5 trials at 80%, the result is 32.77% (0.8^5), and at most 5 is 100.00%, with a mean of 4.00 and a standard deviation of 0.89. A Poisson model cannot reproduce this structure because it has no fixed trial count to fill. Use the binomial approach whenever you can point to a specific number of attempts in advance; switch to the Poisson approach when you only have an average rate over an interval.

  • Binomial: fixed trial count, two outcomes per trial, independent trials, constant probability
  • Poisson: average event rate over an interval, no fixed trial count, no upper limit on events
  • Binomial mean = np; variance = np(1 - p)
  • Use binomial for a set number of attempts; use Poisson for a rate over time, distance, or space
Before using a binomial distribution calculator, confirm all four conditions: a fixed number of trials, two outcomes per trial, independence, and a constant probability. If you only know an event rate over an interval, the Poisson model is the better fit.

FAQs

What is the binomial probability formula?

The binomial probability formula is P(X = k) = C(n, k) x p^k x (1 - p)^(n - k), where C(n, k) counts the ways to choose the successful trials. Here, n is the total number of trials, k is the number of successes, and p is the probability of success on each trial. The formula gives the exact probability of getting exactly k successes.

What is the probability of exactly 3 heads in 10 fair flips?

The probability is 11.72%. There are C(10, 3) = 120 of the 1,024 equally likely sequences that produce exactly 3 heads. Since each flip is fair, every sequence has the same chance, and dividing 120 by 1,024 gives the exact result of 11.72%.

How many combinations give exactly 5 successes in 20 trials?

C(20, 5) = 15,504, and at a 30% success rate the exact probability is 17.89%. The value 15,504 represents the number of ways to choose which 5 of the 20 trials result in success. Multiplying by the probability terms and summing gives the final 17.89%.

What are the mean and standard deviation of a binomial distribution?

Mean = np and standard deviation = sqrt(np(1 - p)): 6.00 and 2.05 for 20 trials at 30%. The mean tells you the expected number of successes, while the standard deviation measures how spread out the outcomes are around that mean. These values apply directly to the binomial model.

Why do 'at most' and 'at least' add to more than 100%?

Both include the exact outcome: at most 3 is 17.19% and at least 3 is 94.53%, overlapping on the 11.72% exact case. Because the exact outcome of 3 is counted in both ranges, adding the two percentages double-counts that shared portion, which is why the total exceeds 100%.

When does the binomial model break down?

When trials influence each other or the probability drifts — the model assumes independence and a constant p, as in the verified coin-flip case. If the outcome of one trial changes the odds of the next, or if p shifts between trials, the binomial formula no longer gives a valid probability.

Sources

Related calculators

Probability Calculator
Two independent events, every combination: both happen, at least one, exactly one, or neither — from the two individual probabilities.
Poisson Distribution Calculator
How likely an exact count of random events is, given their average rate — exact, at-most and more-than probabilities with the spread.
Permutation and Combination Calculator
nPr and nCr with and without repetition — permutations where order matters, combinations where it does not — with all four counts side by side.
Expected Value Calculator
The expected value of a gamble, game or decision from up to four outcomes and their probabilities — with variance and standard deviation for the spread.