Binomial distribution calculator

This binomial distribution calculator gives the probability of a number of successes in a fixed number of independent trials. Enter the trials, the chance of success and the count, then pick exactly, at most, fewer than, at least or more than.

Your numbers are calculated in your browser. Nothing you enter is sent or stored.

Binomial distribution calculatorOr describe it in Studio →

p is a number from 0 to 1: enter 0.25 for 25%. Each trial must be independent with the same chance of success. Fill in “Up to” for the chance of a range, such as 4 to 6 successes.

P(X = 3)

0.11719

11.72% chance

010
P(X = 3)
0.11719
P(X ≤ 3)
0.17188
P(X ≥ 3)
0.94531
Mean
5
Variance
2.5
Standard deviation
1.5811

To report

P(X = 3) = 0.11719 (binomial; n = 10, p = 0.5)

Check your result: the five answers fit together. At most k plus more than k is 1: 0.1719 + 0.8281 = 1 for 3 heads in 10 tosses. Exactly plus fewer than gives at most: 0.1172 + 0.0547 = 0.1719. The mean is n × p, 5 heads for 10 fair tosses.
trials at most
100,000
trials at most
chance of exactly 3 heads in 10 tosses
0.1172
chance of exactly 3 heads in 10 tosses
ways to ask: =, ≤, <, ≥ and >
5
ways to ask: =, ≤, <, ≥ and >
  • P(X = k), ≤, <, ≥ and >
  • Up to 100,000 trials
  • Mean, variance, SD
  • Chart of the distribution
  • Runs in your browser, free

01

Binomial probability formula

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)

mean = n × p, variance = n × p × (1 − p)

C(n, k) is the number of ways to choose k of the n trials: n! ÷ (k! × (n − k)!). Cumulative probabilities add the formula over every count in the range.

02

Worked example

A fair coin is tossed 10 times. What is the chance of exactly 3 heads?

P(X = 3) = C(10, 3) × 0.5³ × 0.5⁷ = 120 ÷ 1024 = 0.1172

QuestionProbability
Exactly 3 heads0.1172
At most 3 heads0.1719
At least 3 heads0.9453

A second case: with a 10% defect rate, the chance of exactly 2 defects in a batch of 20 is 0.2852, and of 2 or fewer is 0.6769.

03

When the binomial distribution applies

  • A fixed number of trials, decided in advance.
  • Each trial has two outcomes: success or failure.
  • The chance of success is the same on every trial.
  • Trials are independent. Sampling without replacement from a small group breaks this; use the hypergeometric distribution there.

04

Common mistakes with binomial probabilities

  • “At least 3” is not “more than 3”. For 10 fair tosses P(X ≥ 3) = 0.9453 but P(X > 3) = 0.8281.
  • The normal approximation when n × p is small. For 2 or fewer defects among 20 items at a 10% rate the exact answer is 0.6769; the normal curve gives 0.5000 without a continuity correction and 0.6453 with one.
  • Sampling without replacement from a small group. Drawing 5 items from 20, of which 6 are defective, the chance of exactly 2 defectives is 0.3522 (hypergeometric); the binomial with p = 0.3 gives 0.3087.

Trust

How this page is checked

  • The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
  • The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
  • Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.

Cite this page

Sciloom. (2026). Binomial distribution calculator. Zebra Nine Studio Inc. https://sciloom.si/binomial-distribution-calculator

Read the full methodology · Who makes Sciloom

Frequently asked questions

How do I calculate a binomial probability?

Multiply the number of ways to get k successes, C(n, k), by p to the power k and (1 − p) to the power n − k. For 3 heads in 10 fair tosses that is 120 × 0.5¹⁰ = 0.1172.

What is the difference between "at most" and "fewer than"?

At most k includes k itself: P(X ≤ k). Fewer than k does not: P(X < k), which equals P(X ≤ k − 1).

When can I use the normal approximation?

A common rule is when both n × p and n × (1 − p) are at least 10. This calculator computes the exact value, so the approximation is not needed.

Binomial or Poisson?

Use the binomial when you know the number of trials and the chance on each. Use the Poisson for counts of events in time or space with a known average rate and no fixed number of trials.

Counting events over time rather than successes in trials? Use the Poisson calculator.
Free to start, no sign-up.
Back to the tool ↑

More research tools