Binomial Probability Calculator

By Seagit ✨
Deploy to your own cloud with Seagit, today.Start freeNo credit card required

Exact and cumulative probabilities for a fixed number of trials

Trials, success probability and successes

Binomial coefficient C(n, k)120
P(X = 3) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ0.11718750
P(X ≤ 3)0.17187500
P(X ≥ 3)0.94531250
P(X < 3)0.05468750
Mean, μ = np5.000000
Variance, σ² = np(1 − p)2.500000
Standard deviation, σ1.581139

How the formula works

Each trial is independent and has the same success probability p. The number of ways to pick which k of the n trials succeed is C(n, k) = n! / (k! (n − k)!). Multiply that count by the probability of one specific pattern, pᵏ(1 − p)ⁿ⁻ᵏ, to get P(X = k). Add the terms to get cumulative probabilities: P(X ≤ k) sums from 0 to k, and P(X ≥ k) sums from k to n. For example, with n = 10 and p = 0.5, P(X ≤ 3) = (1 + 10 + 45 + 120) / 1024 = 176 / 1024 = 0.171875.

Definition and mean, variance: NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6.6.18.

🎲 Binomial Probability Calculator — Free Online Tool

Exact and cumulative binomial probabilities. The binomial distribution gives the probability of exactly k successes in n independent trials when each trial succeeds with the same probability p. This calculator returns the exact P(X = k), the cumulative probabilities P(X ≤ k) and P(X ≥ k), the mean np and the variance np(1 − p), with the binomial coefficient shown so each term can be checked.

How to use it

  1. Enter the number of trials n, a whole number from 1 to 1,000.
  2. Enter the success probability p between 0 and 1, for example 0.5 for a fair coin.
  3. Enter the number of successes k you want to examine.
  4. Read P(X = k), the cumulative values and the mean and variance, then check the coefficient C(n, k) by hand if needed.

🚀 Why use this Binomial Probability Calculator tool?

Binomial probabilities assume the trials are independent and p is the same every time. Drawing without replacement from a small finite population changes p as you go, and then the hypergeometric distribution is the right model. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

🔢Exact P(X = k)

C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ, with the binomial coefficient computed exactly as an integer.

➕Cumulative tails

P(X ≤ k) and P(X ≥ k) are summed term by term, so the far tail keeps its precision.

📐Mean and variance

μ = np and σ² = np(1 − p), with the standard deviation, for a quick check on the spread.

🧮Worked check

With n = 10 and p = 0.5, P(X ≤ 3) = 176/1024 = 0.171875, which matches the exact count of outcomes.

Popular Use Cases

Quality checks

  • • Defects in a sample of n items
  • • Acceptance sampling thresholds
  • • Failures counted over repeated tests

Games and sports

  • • Probability of k heads in n flips
  • • Hits out of n shots at a known rate
  • • Guessing a fixed number of quiz answers

Study and exams

  • • Checking a textbook binomial answer
  • • Understanding why the tails matter
  • • Comparing exact and normal approximations

What It Handles

Probabilities

  • ✓ P(X = k)
  • ✓ P(X ≤ k) and P(X < k)
  • ✓ P(X ≥ k)

Summary

  • ✓ Mean np
  • ✓ Variance np(1 − p)
  • ✓ Standard deviation

Inputs

  • ✓ n from 1 to 1,000
  • ✓ p from 0 to 1
  • ✓ Integer k from 0 to n

Related Tools

Sources & References

Frequently Asked Questions

What is the difference between P(X = k) and P(X ≥ k)?

P(X = k) is the chance of exactly k successes. P(X ≥ k) adds the chances of k, k + 1, up to n successes. For a test of whether the result is better than chance, the cumulative tail is usually the quantity you need.

When can I use the binomial model?

Use it when there is a fixed number of trials, each trial has two outcomes, the probability of success is the same every time, and the trials are independent. Coin flips and independent pass or fail tests fit. Draws without replacement from a small deck usually do not.

Why does the calculator limit n to 1,000?

Exact probabilities for many trials involve very large coefficients, and the page sums each term in the browser. A limit of 1,000 keeps the calculation fast and accurate in double precision for practical inputs.

Can I use the normal approximation instead?

Yes, as a comparison. For large n, when np and n(1 − p) are both at least about 10, the normal distribution with mean np and variance np(1 − p) approximates the binomial well, with a continuity correction for tail probabilities.

🎓 Pro Tips

  • Tip 1: For a one-sided test, use P(X ≥ k) directly rather than doubling P(X = k).
  • Tip 2: To find the chance of at least one success, compute 1 − P(X = 0), which equals 1 − (1 − p)ⁿ.
  • Tip 3: Report n, p and k with the answer, since the probability depends on all three.
  • Tip 4: Check the assumption of a constant p. Conditions that change across trials make the binomial model too narrow.
banner