Skip to main content
math

Binomial Distribution Calculator

Calculate the probability of getting exactly k successes in n independent trials, each with success probability p.

Reviewed by Christopher FloiedPublished Updated

This free online binomial distribution calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Minimum: 0

Minimum: 0

Range: 0 – 1

Results

P(X = k)

0.205078

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Binomial Distribution Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Binomial Distribution Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • Use the Binomial Distribution Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About Binomial Distribution Calculator

The Binomial Distribution Calculator answers a fundamental question in probability: given n independent trials each with the same success probability p, what's the chance of getting exactly k successes? This deceptively simple distribution underpins everything from coin flips to quality control to medical trials. Whether you're calculating the chance of winning a series of games, the probability that a manufacturing batch has a certain defect rate, the likelihood of a marketing campaign generating a target number of conversions, or the genetic probability of a specific trait combination, the binomial distribution is the right tool. It's one of the most important distributions in all of statistics and probability theory.

The Math Behind It

The binomial distribution describes the number of successes in a fixed number of independent Bernoulli trials, where each trial has the same probability of success. **The PMF**: P(X = k) = C(n,k) × p^k × (1-p)^(n-k) Where: - n = total trials - k = number of successes - p = probability of success per trial - 1-p = probability of failure per trial - C(n,k) = binomial coefficient (n choose k) **Conditions for Binomial**: 1. **Fixed number of trials**: n is determined in advance 2. **Independent trials**: One outcome doesn't affect another 3. **Two outcomes**: Success or failure (binary) 4. **Constant probability**: p doesn't change between trials **Mean and Variance**: - Mean (expected value): E(X) = np - Variance: Var(X) = np(1-p) - Standard deviation: σ = √(np(1-p)) **Common Applications**: 1. **Coin flips**: 10 flips, probability of exactly 6 heads with fair coin P = C(10,6) × 0.5^6 × 0.5^4 = 210 × 0.015625 × 0.0625 = 0.205 2. **Quality control**: 100 items inspected, defect rate 2%, exactly 3 defects P = C(100,3) × 0.02^3 × 0.98^97 = 0.182 3. **Medical trials**: 50 patients, treatment effective in 70%, exactly 40 successes P = C(50,40) × 0.7^40 × 0.3^10 = 0.014 4. **Surveys**: 200 respondents, 60% support, exactly 130 supporters P = C(200,130) × 0.6^130 × 0.4^70 ≈ 0.018 **Cumulative Probability**: Often you need P(X ≤ k) or P(X ≥ k): P(X ≤ k) = Σ P(X = i) for i = 0 to k P(X ≥ k) = 1 - P(X ≤ k-1) **Normal Approximation**: For large n (typically np ≥ 5 and n(1-p) ≥ 5), the binomial approximates a normal distribution: X ~ N(np, np(1-p)) This makes calculations much easier for large n. **Examples**: **Coin Flipping**: - 10 flips, fair coin (p=0.5) - Mean: 5 heads - Variance: 2.5 - SD: 1.58 **Defective Products**: - 1000 units, 2% defective - Mean: 20 defects - SD: 4.43 - 95% confidence: 11-29 defects **Skewness**: - p < 0.5: Right-skewed (long right tail) - p = 0.5: Symmetric - p > 0.5: Left-skewed (long left tail) At p = 0.5 with sufficient n, looks like a normal distribution. **Special Cases**: - **Bernoulli**: n = 1 (single trial) - **Geometric**: Number of trials until first success - **Negative binomial**: Number of trials until k successes - **Poisson**: Limit when n → ∞ and p → 0 with np = λ constant **Real-World Caveats**: The binomial assumes: - Truly independent trials (often not true in real life) - Constant p (often varies) - Discrete outcomes (often continuous in reality) Despite these, the binomial is a great starting model for many situations. **The Birthday Problem (Bonus)**: Though technically not binomial, related: How many people in a room before two share a birthday? At 23 people: 50% chance At 50 people: 97% chance At 70 people: 99.9% chance This surprises most people because we underestimate combinatorics.

Formula Reference

Binomial PMF

P(X=k) = C(n,k) × p^k × (1-p)^(n-k)

Variables: C(n,k) = combinations, p = success prob

Mean

μ = np

Variables: Expected number of successes

Variance

σ² = np(1-p)

Variables: Spread of the distribution

Worked Examples

Example 1: Coin Flips

Flip a fair coin 10 times. What's the probability of exactly 7 heads?

Step 1:n = 10, k = 7, p = 0.5
Step 2:C(10,7) = 120
Step 3:p^7 = 0.5^7 = 0.0078125
Step 4:(1-p)^3 = 0.5^3 = 0.125
Step 5:P = 120 × 0.0078125 × 0.125
Step 6:P = 0.117

About 11.7% chance of exactly 7 heads in 10 flips. The most likely outcome (5 heads) has only about 24.6% probability.

Example 2: Quality Control

A factory produces 5% defective items. In a sample of 20, what's the probability of exactly 2 defects?

Step 1:n = 20, k = 2, p = 0.05
Step 2:C(20,2) = 190
Step 3:0.05^2 = 0.0025
Step 4:0.95^18 = 0.397
Step 5:P = 190 × 0.0025 × 0.397
Step 6:P = 0.189

About 18.9% chance of finding exactly 2 defects in a sample of 20. This is more probable than finding 0 defects (35.8%) or 1 defect (37.7%).

Common Mistakes & Tips

  • !Confusing 'exactly k' (P(X=k)) with 'at least k' (P(X≥k)). They're very different.
  • !Forgetting that trials must be independent. Drawing without replacement violates this.
  • !Using binomial when p changes between trials. Use other distributions like hypergeometric instead.
  • !Calculating combinations wrong. C(n,k) is symmetric: C(n,k) = C(n,n-k).

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

When should I use the binomial distribution?

Use binomial when you have: (1) a fixed number of trials n, (2) each trial is independent, (3) only two outcomes per trial (success/failure), (4) constant probability p of success. Examples: coin flips, multiple-choice tests, dice rolls, defect counts in fixed batches. If the number of trials varies or trials aren't independent, you need a different distribution.

What's the difference between binomial and normal distribution?

Binomial is discrete (integer outcomes from 0 to n) and bounded. Normal is continuous and unbounded. As n grows large with p not too extreme, binomial approaches normal. The continuity correction (using k-0.5 instead of k) improves the normal approximation. Use binomial for small n or extreme p; use normal approximation for large n.

How do I calculate 'at least k successes'?

P(X ≥ k) = 1 - P(X ≤ k-1). For example, P(at least 7 heads in 10 flips) = 1 - P(0,1,2,3,4,5,6 heads). Calculate the lower probabilities individually and sum them, then subtract from 1. For 'at most k', use the cumulative probability up to k directly.

What if I want exactly the average number of successes?

The expected value np is the most likely single outcome (or close to it), but the probability is still typically 10-20%, not 50%. With 100 coin flips, you expect 50 heads on average, but P(X=50) ≈ 8%. The distribution is spread around the mean. To get higher probability, calculate P(40 ≤ X ≤ 60), which captures most of the distribution.