🎯 Binomial Distribution Calculator
Calculate P(X = k), P(X ≤ k), and P(X ≥ k) for a binomial distribution. Enter the number of trials (n), probability of success (p), and number of successes (k) to get exact probabilities, the mean, variance, and a full distribution table.
Total number of trials (1–1000)
Probability per trial (0 to 1)
Specific number of successes to query
Probability Distribution Table
| k | P(X = k) | P(X ≤ k) |
|---|
What is the Binomial Distribution?
The binomial distribution is a discrete probability distribution that models the number of successes in a fixed number of independent trials, where each trial has exactly two possible outcomes (success or failure) and the probability of success is constant across all trials. These conditions are collectively known as a "Bernoulli process." Examples include: the number of heads in 10 coin flips, the number of defective items in a batch of 100, or the number of correct answers on a 20-question true/false test when guessing randomly.
The distribution is characterised by two parameters: n (the number of trials) and p (the probability of success on each trial). Its mean is μ = np and its variance is σ² = np(1−p). The probability of exactly k successes in n trials is given by the Probability Mass Function (PMF): P(X=k) = C(n,k) × p^k × (1−p)^(n−k), where C(n,k) is the binomial coefficient "n choose k." The Cumulative Distribution Function (CDF) sums the PMF from 0 to k to give P(X ≤ k).
When n is large and p is close to 0.5, the binomial distribution approximates the normal distribution (by the Central Limit Theorem). When n is large and p is small (np < 5), it approximates the Poisson distribution. These approximations simplify calculations when working with very large n values where exact binomial computation becomes expensive.
Binomial Distribution Formulas
C(n, k) is the number of ways to choose k successes from n trials. The binomial distribution models the number of successes in n independent trials, each with a constant success probability p.
How to Use This Calculator
-
1Enter n (trials)The total number of independent trials or experiments (e.g. 10 coin flips, 20 free throws).
-
2Enter p (probability)The probability of success on each single trial (0 to 1). For a fair coin, p = 0.5.
-
3Enter k (successes)The specific number of successes you want to query. The calculator gives P(X=k), P(X≤k), and P(X≥k).
-
4Read the tableThe distribution table shows the exact probability for every possible outcome from 0 to n, with your chosen k highlighted.
Worked Example
A basketball player has a free-throw success rate of p = 0.3. In n = 10 attempts, what is the probability of exactly k = 3 successes?
How the Binomial Distribution Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
The binomial distribution models the number of successes in a fixed number of independent trials, each with the same probability of success. It answers questions like: If I flip a coin 20 times, what is the probability of exactly 8 heads?
Use it when: (1) there is a fixed number of trials n, (2) each trial has exactly two outcomes (success/failure), (3) the probability p is constant for every trial, and (4) trials are independent of each other. These are the BINS conditions.
The binomial is exact but discrete. The normal distribution is a continuous approximation that works well when both np ≥ 5 and n(1−p) ≥ 5. For small n or extreme p values, always use the exact binomial formula. For large n with moderate p, the normal approximation is accurate.
The expected value μ = n × p is the average number of successes you would expect over many repetitions of the experiment. For 10 coin flips with p = 0.5, you expect μ = 5 heads on average, though any single experiment may give a different result.
Real-World Applications
Common Mistakes
Discrete Distribution Comparison
| Distribution | Trials | Use When |
|---|---|---|
| Binomial | Fixed n, with replacement | n fixed, p constant, independent trials |
| Hypergeometric | Fixed n, without replacement | Sampling from finite population without replacement |
| Poisson | Events in time/space interval | n large, p small, rare events (np < 5) |
| Negative Binomial | Variable trials until k successes | Counting trials needed to achieve k successes |
| Bernoulli | Single trial (n=1) | Single binary experiment |
References
- Wackerly, D., Mendenhall, W. & Scheaffer, R. Mathematical Statistics with Applications. Cengage, 2008.
- Ross, S. M. Introduction to Probability Models. Academic Press, 2014.
- NIST/SEMATECH. e-Handbook of Statistical Methods — Binomial Distribution. nist.gov/sematech.
- DeGroot, M. H. & Schervish, M. J. Probability and Statistics, 4th ed. Pearson, 2012.
- Cox, D. R. & Rubinstein, M. Options Markets. Prentice-Hall, 1985.
Related Calculators
Browse all Statistics calculators →Probability Calculator
Calculate basic probability, combined events, and conditional probability.
Combination Calculator
Calculate the number of combinations C(n,r) — unordered selections.
Z-score Calculator
Calculate z-score (standard score) and find corresponding probabilities.