Binomial Distribution Calculator
PMF · CDF · exact & cumulative · PMF chart
Result
Enter values and click Calculate
Find binomial probabilities for your parameters.
Probability Mass Function
No chart yet
Calculate to see the PMF bar chart.
Python Compiler
What Is the Binomial Distribution?
The binomial distribution models the number of successes in n independent Bernoulli trials, each with the same success probability p. It answers questions like “If I flip a coin 10 times, what’s the probability of getting exactly 6 heads?”
Fixed Trials
The number of trials n is fixed in advance. Each trial is independent of the others.
Two Outcomes
Each trial has exactly two outcomes: success (probability p) or failure (probability 1 − p).
Constant Probability
The probability of success p remains the same for every trial.
Key Formulas & Statistics
| Statistic | Formula | Example (n=10, p=0.5) |
|---|---|---|
| Mean (μ) | n × p | 5.0 |
| Variance (σ²) | n × p × (1 − p) | 2.5 |
| Std Dev (σ) | √(n × p × (1 − p)) | 1.5811 |
| Skewness | (1 − 2p) / σ | 0.0 (symmetric) |
P(X = 6) = 210 × 0.56 × 0.54 = 210 × 0.015625 × 0.0625 = 0.2051
Normal Approximation to Binomial
When n is large enough, the binomial distribution can be approximated by a normal distribution. This is useful for quick calculations without summing many PMF values.
Apply a continuity correction of ±0.5 for better accuracy. For example, P(X ≤ k) ≈ Φ((k + 0.5 − np) / √(np(1 − p))).
Real-World Applications
Quality Control
Number of defective items in a batch. If defect rate is 5%, what is the probability of finding 0–2 defects in 100 items?
Medicine & Clinical Trials
Number of patients responding to treatment. If a drug has 70% efficacy, what is P(at least 15 of 20 respond)?
Survey & Polling
Number of “yes” responses in a sample. If 30% of voters support a policy, how many in a sample of 50?
Sports & Games
Free throw success rates, coin tosses, dice outcomes. Classic probability scenarios modeled by binomial.