Binomial Distribution Calculator

Binomial probabilities for any number of trials, with a full table.

Binomial Distribution Calculator tool

—
P(X = k)
—
P(X < k)
—
P(X ≤ k)
—
P(X > k)
—
P(X ≥ k)
—
Mean (np)
—
Variance
—
Standard deviation

About the Binomial Distribution Calculator

Coin tosses, pass or fail inspections, yes or no survey answers and free throws all fit the binomial model of independent trials with the same chance of success. This binomial distribution calculator gives exact probabilities for any number of successes: in 10 fair coin tosses, exactly 5 heads has a probability of about 24.6 percent, and 8 or more heads about 5.5 percent. A full table and the mean and variance are included.

The probability of exactly k successes in n trials is P(X = k) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ, where C(n, k) counts the ways to place the k successes. Cumulative probabilities add these terms. The mean is np, the variance np(1 − p) and the standard deviation √(np(1 − p)). The calculator computes the terms exactly for moderate n and with the incomplete beta function for very large n, so even thousands of trials stay accurate.

Example: in 10 tosses of a fair coin, the probability of exactly 3 heads is 120 ÷ 1,024 ≈ 0.117188, the probability of at most 3 heads is 0.171875, and the probability of at least 3 heads is about 0.945313. The expected number of heads is 5, with variance 2.5 and standard deviation about 1.581139.

For large n, the binomial is close to a normal distribution with the same mean and variance; see the normal distribution calculator. Rare events over time follow the Poisson distribution calculator, and simpler questions are answered by the probability calculator.

How to use the Binomial Distribution Calculator

  1. Enter the number of trialsType n, the number of independent attempts.
  2. Enter the probability of successType p as a decimal, such as 0.5 for a fair coin.
  3. Enter kType the number of successes you are interested in.
  4. Read the probabilitiesSee exact and cumulative probabilities, the summary statistics and the table.

Binomial Distribution Calculator features

  • P(X = k) and all four cumulative forms
  • Mean, variance and standard deviation
  • Full probability table with cumulative column
  • Bar chart of the distribution
  • Exact for moderate n, accurate for huge n
  • Download the table as CSV
  • Instant in your browser

Common uses

  • Probability and statistics homework
  • Quality control defect counts
  • Clinical trial response rates
  • Sports streaks and game odds
  • A/B test conversions

The binomial distribution in practice: defects, guessing, trials and free throws

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

The binomial distribution counts successes in a fixed number of independent attempts, each with the same chance of success. It answers questions such as how likely a batch is to contain no defects, how many questions a student might get right by guessing, or how many patients might respond to a treatment. This guide explains when it applies, works through examples and shows the quick formulas for the average and spread.

When the binomial model applies

Four conditions must hold: a fixed number of trials, two possible outcomes for each, the same probability of success every time, and independence between trials. Tossing a coin 10 times fits perfectly. Drawing cards without replacement does not, because the probability changes as cards are removed, although the binomial is a good approximation when the population is large compared with the sample.

A worked example: defects in a batch

A machine produces parts with a 5% defect rate, and an inspector checks a random sample of 20. The probability that the sample contains no defects is 0.95²⁰, about 36%. So in nearly two out of three samples, the inspector finds at least one defect, even though the machine is working normally.

That result helps set sensible rules: stopping the line whenever a single defect appears in 20 parts would cause frequent false alarms. A rule based on two or three defects, or on trends over several samples, works better.

A worked example: guessing a test

A student guesses every answer on a 10-question multiple-choice test with four options per question. The chance of each correct guess is 0.25, and the chance of getting 5 or more right is about 7.8%. Guessing alone rarely produces a pass mark, which is why tests with several options and many questions are hard to pass by luck.

Mean and standard deviation

For n trials with success probability p, the expected number of successes is np, and the standard deviation is the square root of np(1 − p). For 100 free throws by a player who makes 70% of them, the expected number of successes is 70, with a standard deviation of about 4.6. Scoring 60 or 80 in a session would be unusual but not extraordinary.

Medical and product trials

Clinical trials and product tests often count how many participants respond or how many units fail. If a treatment works in 60% of patients, the binomial distribution describes the likely number of responders in a group of 50. Comparing the observed count with what the distribution predicts helps judge whether a new treatment performs differently from an existing one.

Exactly, at most and at least

Questions come in three forms: exactly k successes, at most k and at least k. "At least" questions are often easiest through the complement: the probability of at least one success is one minus the probability of none. Reading the question carefully for these words avoids answering a different question from the one asked.

Approximations

For large numbers of trials, the binomial distribution is close to a normal distribution with the same mean and standard deviation, which simplifies calculations. When trials are many and the probability is small, as with rare defects in large batches, the Poisson distribution is a good approximation instead.

Common mistakes

  • Using the binomial model when the probability changes between trials.
  • Confusing "at least" with "exactly".
  • Forgetting that trials must be independent.
  • Treating the expected number of successes as guaranteed.

Related tools

For counts of rare events over time, use Poisson Distribution Calculator. For single probabilities, try Probability Calculator, and for averages of outcomes, Expected Value Calculator.

The binomial in spreadsheets

In Excel and Google Sheets, =BINOM.DIST(k, n, p, FALSE) gives the probability of exactly k successes, and =BINOM.DIST(k, n, p, TRUE) the probability of k or fewer. For "at least k", use 1 − BINOM.DIST(k − 1, n, p, TRUE). Building a small table of probabilities for each possible count shows the whole distribution at a glance and helps choose sensible thresholds.

Polls and proportions

When a poll asks a random sample a yes-or-no question, the number of yes answers follows a binomial distribution. That is the basis of the margin of error for proportions: with 1,000 respondents and a true share of 50%, the count of yes answers has a standard deviation of about 16, which translates into a margin of error of about 3 percentage points at 95% confidence.

When independence fails

The binomial model assumes that each trial is unaffected by the others, which is not always true. Defects may come in runs if a machine drifts, and illnesses spread between people in contact. When outcomes cluster, the real spread is larger than the binomial model predicts, so treat binomial probabilities as a lower bound on how variable such counts can be.

Limits

Probabilities are exact for the binomial model; real situations may only approximate its assumptions.

Frequently asked questions

What is a binomial distribution?

The distribution of the number of successes in n independent trials, each with the same success probability p. Examples include heads in coin tosses or correct guesses on a multiple-choice test.

What is the binomial probability formula?

P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ. C(n, k) = n! ÷ (k!(n − k)!) counts the arrangements of k successes among n trials.

What is the difference between binomial PDF and CDF?

The PDF, strictly the probability mass function, gives P(X = k) for one value. The CDF gives P(X ≤ k), the sum of the probabilities from 0 up to k.

What are the conditions for a binomial distribution?

A fixed number of trials, two outcomes per trial, the same success probability every time, and independent trials. Drawing cards without replacement breaks independence, giving a hypergeometric distribution instead.

What are the mean and variance of a binomial distribution?

The mean is np and the variance is np(1 − p). For 20 trials with p = 0.3, the mean is 6 and the variance is 4.2, so the standard deviation is about 2.05.

How do I calculate at least k successes?

Use P(X ≥ k) = 1 − P(X ≤ k − 1). The probability of at least one success is 1 − (1 − p)ⁿ. For example, at least one six in four dice rolls is 1 − (5/6)⁴ ≈ 0.518.

When can I use the normal approximation?

A common rule is when both np and n(1 − p) are at least 10. Then the binomial is close to a normal with mean np and variance np(1 − p), ideally with a continuity correction.

How do I calculate binomial probability in Excel?

BINOM.DIST(k, n, p, FALSE) gives P(X = k) and BINOM.DIST(k, n, p, TRUE) gives P(X ≤ k). Many graphing calculators have binompdf and binomcdf functions that do the same job.