How it’s calculated
The binomial distribution counts the successes X in n independent trials when every trial has the same chance p of success (coin flips, defective items in a batch, yes/no survey answers). The probability of exactly k successes is:
The sums are accumulated term by term in logarithms, so even n in the hundreds of thousands works without overflow. The cumulative “at least” and “at most” answers come from adding the individual probabilities, not from a normal approximation.
Example: flip a fair coin 10 times (n = 10, p = 0.5). P(X = 5) = C(10, 5) × 0.5¹⁰ = 252 ÷ 1024 = 0.246094. P(X ≤ 5) = 638 ÷ 1024 = 0.623047, and the mean is np = 5 with standard deviation √2.5 = 1.5811.
Frequently asked questions
What is the difference between P(X ≤ k) and P(X < k)?
P(X ≤ k) includes exactly k successes; P(X < k) does not. For “at most 3” use P(X ≤ 3); for “fewer than 3” use P(X < 3). Likewise “at least 3” is P(X ≥ 3) and “more than 3” is P(X > 3).
When can I use the binomial distribution?
When there is a fixed number of trials, each is independent, each has only two outcomes (success or failure), and the probability of success stays the same every time. Drawing without replacement from a small group breaks the independence.
How do I enter a percentage for p?
Convert it to a decimal: 30% becomes 0.3.
Why do some answers show as 1.2346 × 10⁻⁸?
Very small probabilities are written in scientific notation so they do not appear as 0. The value is exactly as written: 1.2346 × 10⁻⁸ means 0.000000012346.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Introductory Statistics 2e, §4.3 Binomial Distribution — OpenStax
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.6.18 Binomial Distribution — NIST
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator