🧮
🧮 Math & statistics

Binomial Distribution Calculator

Results update as you type.

Your numbers

Understanding the binomial distribution calculator — concept and principle

The binomial distribution gives the probability of getting exactly k successes in n independent trials when each trial succeeds with the same probability p. Typical uses: the number of heads in 10 coin flips, defective items in a batch, patients responding to a treatment, or free throws made out of a fixed number of attempts. The calculator gives P(X = k), the cumulative probabilities P(X ≤ k) and P(X ≥ k), and the mean and standard deviation.

Binomial: 3 heads in 10 flipsEach order has probability 1/1024 and C(10, 3) = 120 orders give 3 heads, so P(X = 3) = 120/1024 = 0.1171875.Exactly 3 heads in 10 fair flipsTHTTHTTTHTone order: (½)¹⁰ = 1/10241010145212032104252521061207458109110ways to get k headsX ≤ 3: 176/1024 = 0.171875HP(X = 3) = 120 ÷ 1024 ≈ 0.1172
Count the orders (120) and multiply by the chance of one order (1/1024).

How it is calculated

The calculator works with logarithms of factorials so that large n does not overflow.

The principle

Any single sequence with k successes and n − k failures, such as SSFFF…, has probability pᵏ(1 − p)ⁿ⁻ᵏ because the trials are independent. Every arrangement of the k successes has the same probability, and there are C(n, k) of them, so the probabilities add up to C(n, k)pᵏ(1 − p)ⁿ⁻ᵏ. The conditions are fixed n, two outcomes per trial, constant p and independence.

Worked example

  1. Defaults: n = 10, p = 0.5, k = 3.
  2. C(10, 3) = 120 and 0.5³·0.5⁷ = 0.5¹⁰ = 1/1024.
  3. P(X = 3) = 120/1024 = 0.1171875.
  4. P(X ≤ 3) = (1 + 10 + 45 + 120)/1024 = 176/1024 = 0.171875.
  5. P(X ≥ 3) = 1 − (1 + 10 + 45)/1024 = 968/1024 = 0.9453125.
  6. Mean = 10 × 0.5 = 5, SD = √2.5 ≈ 1.58113883.
How P(X = k) changes with Trials nHow P changes with Trials n00.10.20.30.42.557.51012.51520Example: 0.1171875Trials n
Each point is the calculator re-run with only “Trials n” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Trials nP(X = k)
2.50.0552427173
50.3125
7.50.2468658928
100.1171875
12.50.0434281127
150.0138854981
200.0010871887

How to read the result

Most outcomes fall within about two standard deviations of the mean; here, from roughly 2 to 8 heads. A small P(X ≤ k) (for example below 0.05) says that so few successes would be unusual if p were really true, which is the idea behind a one-sided binomial test. When np and n(1 − p) are both at least about 10, the normal distribution is a good approximation.

Common mistakes

Keep in mind: Results assume independent trials with constant p. Clustered or dependent events (contagion, streaks, batches from one machine) can make real counts more spread out than the binomial predicts.

Frequently asked questions

How do I find "at least one success"?

P(X ≥ 1) = 1 − (1 − p)ⁿ.

What happens if n is large and p is small?

The binomial approaches the Poisson distribution with λ = np.

Is the distribution symmetric?

Only when p = 0.5. For p < 0.5 it is skewed to the right, for p > 0.5 to the left.

Sources: Sheldon M. Ross, A First Course in Probability, Pearson — binomial random variables · NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6.6.18 Binomial Distribution

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →