x successes in n tries

Binomial distribution calculator

The binomial distribution gives the probability of exactly x successes in n independent trials with success chance p: C(n, x) pˣ(1 − p)ⁿ⁻ˣ. With 20 trials at 30%, P(exactly 6) = 0.1916, P(at most 6) = 0.608 and P(at least 6) = 0.5836.

Final Grade Calculator editorial teamUpdated 3 sources

Calculator

Binomial distribution calculator

Exactly, at most, fewer than, at least and more than

The experiment

0.1916

P(X = 6): exactly 6 successes in 20 trials

  • P(X = 6)0.1916
  • P(X ≤ 6), at most0.608
  • P(X < 6), fewer than0.4164
  • P(X ≥ 6), at least0.5836
  • P(X > 6), more than0.392
Mean np
6
Standard deviation √(np(1 − p))
2.0494
Variance
4.2
Most likely count
6
Distribution around 6
kP(X = k)P(X ≤ k)
00.00080.0008
10.00680.0076
20.02780.0355
30.07160.1071
40.13040.2375
50.17890.4164
60.19160.608
70.16430.7723
80.11440.8867
90.06540.952
100.03080.9829
110.0120.9949
120.00390.9987

Normal approximation with continuity correction: P(X ≤ 6) ≈ 0.5964. np or n(1 − p) is below 10, so use the exact values above.

How it works. P(X = x) = C(n, x) pˣ (1 − p)ⁿ⁻ˣ. Cumulative probabilities use the regularized incomplete beta function, so tail values stay exact even for large n.

When to use the binomial distribution

Use the binomial distribution when you count successes in a fixed number of trials, each trial has only two outcomes, the trials are independent, and the chance of success p is the same every time.[1][2] Coin flips, guessing on multiple-choice questions, free throws and defective parts in a batch all fit; drawing cards without replacement from a small deck does not, because p changes after each draw.

The binomial formula, step by step

P(X = x) = C(n, x) × pˣ × (1 − p)ⁿ⁻ˣC(n, x) = n! ÷ (x! (n − x)!) counts the ways to place x successes among n trials.

Worked example: 7 heads in 10 flips

C(10, 7) = 120, and 0.5⁷ × 0.5³ = 1 ÷ 1024. So P(X = 7) = 120 ÷ 1024 = 0.1172.

At least 7 heads adds 8, 9 and 10: (120 + 45 + 10 + 1) ÷ 1024 = 176 ÷ 1024 = 0.1719.

Heads in 10 fair coin flips
Heads (k)P(X = k)P(X ≤ k)
00.0010.001
10.00980.0107
20.04390.0547
30.11720.1719
40.20510.377
50.24610.623
60.20510.8281
70.11720.9453
80.04390.9893
90.00980.999
100.0011

Exactly, at most, at least: which probability?

Match the words in the question to the inequality; this is where most binomial mistakes happen. The calculator prints all five at once.

Translating the question (n = 20, p = 0.3, x = 6)
Question saysMeansValue
exactly 6P(X = 6)0.1916
at most 6, no more than 6P(X ≤ 6)0.608
fewer than 6, less than 6P(X < 6) = P(X ≤ 5)0.4164
at least 6, 6 or moreP(X ≥ 6) = 1 − P(X ≤ 5)0.5836
more than 6P(X > 6) = 1 − P(X ≤ 6)0.392

On a TI-84, “exactly” is binompdf(n, p, x) and “at most” is binomcdf(n, p, x); “at least x” is 1 − binomcdf(n, p, x − 1).

Mean, standard deviation and the normal approximation

A binomial count has mean np and standard deviation √(np(1 − p)).[1] For 20 trials at 30%, that is 6 and 2.0494. When np and n(1 − p) are both at least 10, the count is close to normal, and the calculator shows the normal approximation with a continuity correction next to the exact value.[3] The exact value is always the one to report; it is computed through the incomplete beta function, so even P(X ≥ 900) for n = 1,000 keeps its digits.

Guessing on a testGuessing all 20 questions of a four-choice test, the chance of getting at least 10 right is 0.0139: about 1 in 72. Expected score from guessing: 5 of 20.

Common binomial mistakes

  • Off-by-one on “at least”. P(X ≥ 6) is 1 − P(X ≤ 5), not 1 − P(X ≤ 6).
  • Using a percent as p. 30% is p = 0.3; the calculator accepts either.
  • Applying it to dependent trials. Without replacement from a small population, use the hypergeometric distribution.

Related: the z-score calculator for normal areas, the confidence interval calculator for a proportion, and the statistics calculator for data you have already collected.

How we check this calculator

Tests compare the calculator with exact fractions: P(X ≤ 3) for 10 fair flips must equal 176/1024, P(X = 5) must equal 252/1024, P(X ≥ 8) must equal 56/1024; the probabilities for n = 1,000 must add up to 1 within 10⁻¹².[2]

  • 14 November 2026: page and calculator published.

More statistics calculators

Frequently asked questions

How do you calculate a binomial probability?

Multiply the number of arrangements C(n, x) by pˣ and by (1 − p)ⁿ⁻ˣ. For 7 heads in 10 fair flips: 120 × (1/1024) = 0.1172.

How do I find the probability of at least x successes?

Use 1 − P(X ≤ x − 1). The calculator gives P(X ≥ x) directly.

What is the mean of a binomial distribution?

np: the number of trials times the chance of success. 20 trials at 30% average 6 successes.

What is the difference between binompdf and binomcdf?

binompdf gives the probability of exactly x successes; binomcdf gives the probability of x or fewer.

What are the conditions for a binomial distribution?

A fixed number of trials, two outcomes per trial, independent trials and the same probability of success on every trial.

Sources

  1. Introductory Statistics 2e, 4.3 Binomial Distribution · OpenStax, Rice University, 2nd edition, 2023
  2. 1.3.6.6.18 Binomial Distribution · NIST/SEMATECH e-Handbook of Statistical Methods, 2012 edition (DOI 10.18434/M32189)
  3. 1.3.6.6.1 Normal Distribution · NIST/SEMATECH e-Handbook of Statistical Methods, 2012 edition (DOI 10.18434/M32189)