Binomial Distribution Calculator
StatisticsCalculate binomial probability P(X = k) and cumulative P(X ≤ k) in seconds. Enter number of trials and successes to get exact results instantly.
Reviewed by the thecalcu.com team · Last updated July 11, 2026
P(X = k)
What is a Binomial Distribution?
The Binomial Distribution Calculator computes the probability of getting exactly k successes across n independent trials, each with the same probability of success p. Enter the number of trials, the probability of success, and the target number of successes, and the calculator returns P(X = k), the cumulative P(X ≤ k), P(X ≥ k), and the distribution's mean and standard deviation.
The binomial distribution is one of the most widely applicable discrete probability distributions, modeling any scenario with a fixed number of independent yes/no trials, coin flips, quality control inspections, A/B test conversions, or medical treatment outcomes across a fixed patient group.
For events measured as a rate over time or space rather than a fixed number of trials, see the Poisson Distribution Calculator instead.
Why Use a Binomial Distribution Calculator?
Computing binomial probabilities by hand requires calculating factorial-based combinations and raising probabilities to potentially large powers, calculations that quickly become impractical to do manually once n exceeds 10 or 15, and prone to numerical overflow errors even in spreadsheet software for larger n.
This calculator uses a numerically stable logarithmic computation internally, so it produces accurate results even for hundreds of trials, and reports both the exact and cumulative probabilities together, giving you the complete picture in one calculation.
Who Should Use This Calculator?
Students in statistics, probability, and data science courses learning to compute and interpret discrete probability distributions.
Quality control engineers calculating the probability of finding a specific number of defective units in a sample, to design acceptance sampling plans.
Marketing and sales analysts estimating the probability of a specific number of conversions or closed deals from a fixed batch of leads with a known conversion rate.
Clinical researchers and biostatisticians computing the probability of a specific number of treatment successes or side effects across a fixed group of patients.
Game designers and probability enthusiasts calculating the odds of specific outcomes across repeated independent trials (dice rolls, card draws with replacement, loot drop chances).
What Insights Does This Calculator Give You?
P(X = k), Exact Probability, the headline result: the probability of getting exactly the specified number of successes.
P(X ≤ k), Cumulative Probability, the probability of k or fewer successes, useful for "at most" questions like defect tolerance thresholds.
P(X ≥ k), Upper Cumulative Probability, the probability of k or more successes, useful for "at least" questions like minimum conversion targets.
Expected Value (μ) and Standard Deviation (σ), the theoretical average outcome and its natural variability, giving context for whether your specific k value is close to or far from what's typically expected.
How to use this Binomial Distribution calculator
Enter the number of trials (n), how many independent yes/no events you're analyzing.
Enter the probability of success (p), as a percentage, based on historical data or a known/assumed rate.
Enter the target number of successes (k), the specific outcome count you want to evaluate.
Read P(X = k), the probability of exactly that many successes.
Check the cumulative probabilities, P(X ≤ k) and P(X ≥ k) for "at most" or "at least" style questions.
Compare to the mean and standard deviation, to understand whether your target k is close to the typical expected outcome or represents an unusual result.
Show formula & methodology ↓Show less ↑
Formula & Methodology
Binomial probability mass function: P(X = k) = C(n, k) × pᵏ × (1−p)ⁿ⁻ᵏ Combination formula: C(n, k) = n! / (k! × (n−k)!) Mean and standard deviation: μ = n × p σ = √(n × p × (1−p)) Variable definitions: - n, number of independent trials - p, probability of success on each trial - k, target number of successes Worked example: A sales rep closes 25% of qualified leads on average (p = 0.25). Out of the next 20 leads (n = 20), what's the probability of closing exactly 6 deals (k = 6)? Step 1, C(20, 6) = 38,760 Step 2, P(X = 6) = 38,760 × 0.25⁶ × 0.75¹⁴ ≈ 0.1686 (16.86%) Step 3, Mean: μ = 20 × 0.25 = 5 expected closes Step 4, Standard deviation: σ = √(20 × 0.25 × 0.75) = √3.75 ≈ 1.94 Closing exactly 6 deals (slightly above the mean of 5) has about a 16.9% chance, a plausible, unsurprising outcome given the natural variability of ±1.94 around the mean. Assumption: This calculator assumes all trials are independent with a constant probability of success, violated if trials influence each other or if sampling is done without replacement from a small population.
Frequently Asked Questions