A Lot Of Tools
Toggle language
Toggle theme

Binomial Distribution Calculator

Calculate probabilities and statistics for binomial distributions

Calculate P(X = k): The probability of exactly k successes.

What Is the Binomial Distribution?

The binomial distribution models the number of successes in a fixed number of independent yes/no trials. It applies whenever four conditions hold: a fixed number of trials n, exactly two outcomes per trial (success/failure), a constant success probability p, and independence between trials. Coin flips, defective items on a production line, and free-throw attempts all fit this pattern.

The Probability Mass Function

The probability of exactly k successes in n trials is:

P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ

where C(n, k) = n! / (k!(n − k)!) is the binomial coefficient — the number of ways to choose which k of the n trials are successes.

Worked Example: Coin Flips

What is the probability of exactly 6 heads in 10 fair coin flips? Here n = 10, k = 6, p = 0.5. The coefficient C(10, 6) = 210, so P(X = 6) = 210 × 0.5⁶ × 0.5⁴ = 210 / 1024 ≈ 0.2051, about 20.5%. For "at least 6 heads," use the Cumulative tab with the at-least option: P(X ≥ 6) ≈ 0.377.

Mean, Variance, and Shape

The Statistics tab reports the distribution's key summary numbers: mean μ = np, variance σ² = np(1 − p), and standard deviation σ = √(np(1 − p)). For n = 100 trials with p = 0.3, expect 30 successes on average with a standard deviation of √21 ≈ 4.58. When both np and n(1 − p) are at least about 10, the distribution is nearly symmetric and well approximated by a normal curve — a useful bridge to Z-score methods.

Real-World Uses

  • Quality control: probability of finding more than 2 defects in a sample of 50 when the defect rate is 1%.
  • Medicine and A/B testing: how likely is a result this extreme if the true response rate is p?
  • Sports analytics: chance an 80% free-throw shooter makes at least 8 of 10 attempts (about 67.8%).
  • Exam strategy: probability of passing by guessing — e.g. getting at least 12 of 20 four-choice questions right by luck is under 0.1%.

Frequently Asked Questions

How do I calculate a binomial probability?+

Enter the number of trials n, the success probability p, and the number of successes k in the Exact tab. The calculator applies P(X = k) = C(n,k) × p^k × (1−p)^(n−k) and shows the result. For example, exactly 3 sixes in 10 dice rolls (p = 1/6) has probability about 0.155.

What is the difference between exact and cumulative probability?+

Exact probability, P(X = k), is the chance of getting precisely k successes. Cumulative probability sums several outcomes: P(X ≤ k) is the chance of k or fewer successes, and P(X ≥ k) is k or more. Use the Cumulative tab for questions phrased as 'at most' or 'at least', and the Range tab for 'between a and b'.

When can I use the binomial distribution?+

When you have a fixed number of independent trials, each with exactly two outcomes and the same success probability every time. Coin flips, pass/fail inspections, and conversion rates fit; drawing cards without replacement does not, because the probability changes after each draw (that situation calls for the hypergeometric distribution).

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

The mean is np and the standard deviation is the square root of np(1−p). For 200 trials with p = 0.25, expect 50 successes with a standard deviation of about 6.12. The Statistics tab computes these instantly, along with the variance.

Is this binomial calculator free and private?+

Yes. It is completely free, needs no account, and all computation happens in your browser — it uses logarithmic factorials internally, so it stays accurate even for large n where naive factorials would overflow. It works on mobile and desktop alike.