How to find binomial probability (formula, examples)

By Jude Wallis · Published

Use P(X = x) = (n choose x) times p^x times (1-p)^(n-x), where n is the number of trials, p is the success probability, and x is the count you want. For 'at least' questions, subtract from 1. The expected value is np.

AP Statistics: Unit 2 (topics 2.10 The Binomial Distribution, 2.9 Parameters of Random Variables). In the Fall 2026 AP Statistics course, the binomial distribution is Unit 2 Topic 2.10, and its probability formula along with the mean np and standard deviation appear on the provided formula sheet.

What counts as a binomial probability

Binomial probability shows up whenever you repeat the same yes-or-no trial a fixed number of times and count how often the 'yes' outcome happens. Flipping a coin 10 times and counting heads is one example, and inspecting a batch of parts and counting defects is another, as long as the trials do not affect one another.

The count of successes is a random variable, usually called XX. A binomial probability question asks for the chance that XX equals a particular value, or that it lands in a range such as 'at least 3' or 'at most 5'.

The binomial probability formula

A binomial probability is the chance of getting exactly xx successes in nn independent trials when each trial has the same success probability pp. The formula on the AP Statistics formula sheet is:

P(X=x)=(nx)px(1p)nxP(X = x) = \binom{n}{x} p^x (1-p)^{n-x}

Here XX is the random variable that counts successes, and xx is the specific count you are asking about. The letter nn is the number of trials, and pp is the probability of success on one trial, so 1p1-p is the probability of failure.

The piece (nx)\binom{n}{x}, read 'n choose x', counts how many different orders produce exactly xx successes, and you compute it as n!x!(nx)!\frac{n!}{x!(n-x)!}. The factor pxp^x is the chance of the xx successes, and (1p)nx(1-p)^{n-x} is the chance of the remaining nxn-x failures.

When a situation is binomial (the BINS checklist)

Before using the formula, check that the setup is really binomial. A quick checklist is BINS:

  • Binary: each trial has only two outcomes, which you label success and failure.
  • Independent: the result of one trial does not change the probability for any other trial.
  • Number fixed: you set the number of trials nn before you start.
  • Same probability: the success probability pp stays the same on every trial.

If any item fails, the formula does not apply. Dealing cards without replacement breaks independence, and waiting until your first success with no fixed nn is geometric rather than binomial. See binomial vs geometric for that comparison.

An exact binomial probability

To find P(X=x)P(X = x) for a single exact count, put nn, pp, and xx into the formula and work out the three pieces separately before multiplying.

  1. Find the binomial coefficient (nx)\binom{n}{x}.
  2. Raise pp to the power xx.
  3. Raise 1p1-p to the power nxn-x.
  4. Multiply the three results together.

Keeping the three factors separate makes the arithmetic easy to check and matches how a calculator breaks the work down. The first worked example below shows every step for a five-question guessing quiz.

'At least' and 'at most' probabilities (the complement trick)

Most questions ask for a range of counts rather than a single value. You can add the exact probabilities you need, or use a shortcut.

An 'at most' question such as P(X2)P(X \le 2) is a direct sum: P(X=0)+P(X=1)+P(X=2)P(X = 0) + P(X = 1) + P(X = 2).

An 'at least' question such as P(X1)P(X \ge 1) is where the complement trick saves work. The opposite of 'at least 1' is 'exactly 0', so:

P(X1)=1P(X=0)P(X \ge 1) = 1 - P(X = 0)

More generally, P(Xk)=1P(Xk1)P(X \ge k) = 1 - P(X \le k-1). Subtracting a few unwanted outcomes from 1 beats adding many terms by hand.

Translate the words into a boundary first: 'fewer than kk' means P(Xk1)P(X \le k-1), and 'more than kk' means P(Xk+1)P(X \ge k+1). Getting the boundary right matters more than the arithmetic. The at least and at most worked examples below use both ideas.

Expected value and standard deviation of a binomial

The expected value of a binomial, written μX\mu_X and read as the mean of XX, is the long-run average number of successes. Its standard deviation, σX\sigma_X, measures the typical spread around that mean. Because the trials are identical and independent, both have short formulas:

μX=npσX=np(1p)\mu_X = np \qquad \sigma_X = \sqrt{np(1-p)}

For a player who takes 25 free throws at p=0.8p = 0.8, the expected number of makes is np=25×0.8=20np = 25 \times 0.8 = 20. The fourth worked example finishes the standard deviation. A larger σX\sigma_X means the actual count is likely to land further from npnp on any given run. The spread is small when pp is near 0 or 1, and it is widest at p=0.5p = 0.5.

Binompdf and binomcdf on a calculator

A graphing calculator with statistics functions finds binomial probabilities directly, which is what you will use on the AP exam. Two functions do the work.

  • A binomial pdf function, often written binompdf(n, p, x), returns the exact probability P(X=x)P(X = x).
  • A binomial cdf function, often written binomcdf(n, p, x), returns the cumulative probability P(Xx)P(X \le x).

Match the function to the range in the question:

  • Exactly kk: binompdf(n, p, k).
  • At most kk: binomcdf(n, p, k).
  • At least kk: 1 - binomcdf(n, p, k-1).
  • Fewer than kk: binomcdf(n, p, k-1).

Enter nn first, then pp, then the count. Our binomial probability calculator takes the same three inputs if you want to check your work without a handheld device.

Common mistakes to avoid

A few errors show up again and again:

  • Reading the range wrong. 'At least 3' means X3X \ge 3 and includes 3, while 'more than 3' means X>3X > 3 and starts at 4. Pin down the boundary before computing.
  • Dropping the binomial coefficient. The product px(1p)nxp^x (1-p)^{n-x} by itself is the chance of one specific arrangement. Multiplying by (nx)\binom{n}{x} counts every arrangement that gives xx successes.
  • Forcing a non-binomial setup. If the trials are linked or the probability drifts, the formula returns a wrong answer. Sampling a small population without replacement, for instance, makes the outcome of one draw depend on the others.

Exactly 2 correct on a 5-question guessing quiz

A quiz has 5 multiple-choice questions, each with 4 answer choices. A student guesses on every question, so the probability of a correct guess is p=0.25p = 0.25 on each of n=5n = 5 questions. Find the probability of exactly 2 correct, P(X=2)P(X = 2).

  1. Check BINS: two outcomes (right or wrong), independent guesses, a fixed n=5n = 5, and the same p=0.25p = 0.25 each time, so it is binomial.

  2. Binomial coefficient: (52)=5!2!3!=1202×6=10\binom{5}{2} = \frac{5!}{2!\,3!} = \frac{120}{2 \times 6} = 10.

  3. Success factor: px=0.252=0.0625p^x = 0.25^2 = 0.0625.

  4. Failure factor: (1p)nx=0.753=0.421875(1-p)^{n-x} = 0.75^3 = 0.421875.

  5. Multiply the three pieces: 10×0.0625×0.421875=0.26367210 \times 0.0625 \times 0.421875 = 0.263672.

P(X=2)0.2637P(X = 2) \approx 0.2637, about a 26.4% chance.

At least one defective item in a shipment

Each item in a shipment is defective independently with probability p=0.05p = 0.05. A box holds n=20n = 20 items. Find the probability of at least one defective item, P(X1)P(X \ge 1).

  1. The complement of 'at least 1' is 'exactly 0', so P(X1)=1P(X=0)P(X \ge 1) = 1 - P(X = 0).

  2. Find P(X=0)=(200)(0.05)0(0.95)20=1×1×0.9520P(X = 0) = \binom{20}{0}(0.05)^0(0.95)^{20} = 1 \times 1 \times 0.95^{20}.

  3. Compute the power: 0.9520=0.3584860.95^{20} = 0.358486.

  4. Subtract from 1: P(X1)=10.358486=0.641514P(X \ge 1) = 1 - 0.358486 = 0.641514.

P(X1)0.6415P(X \ge 1) \approx 0.6415, about a 64.2% chance of at least one defective item.

At most one six in four rolls of a die

You roll a fair six-sided die n=4n = 4 times and count sixes, so p=16p = \frac{1}{6}. Find the probability of at most one six, P(X1)P(X \le 1).

  1. 'At most 1' means P(X1)=P(X=0)+P(X=1)P(X \le 1) = P(X = 0) + P(X = 1).

  2. P(X=0)=(40)(16)0(56)4=(56)4=62512960.4823P(X = 0) = \binom{4}{0}\left(\frac{1}{6}\right)^0\left(\frac{5}{6}\right)^4 = \left(\frac{5}{6}\right)^4 = \frac{625}{1296} \approx 0.4823.

  3. P(X=1)=(41)(16)1(56)3=4×16×125216=50012960.3858P(X = 1) = \binom{4}{1}\left(\frac{1}{6}\right)^1\left(\frac{5}{6}\right)^3 = 4 \times \frac{1}{6} \times \frac{125}{216} = \frac{500}{1296} \approx 0.3858.

  4. Add the two: 6251296+5001296=112512960.8681\frac{625}{1296} + \frac{500}{1296} = \frac{1125}{1296} \approx 0.8681.

P(X1)0.8681P(X \le 1) \approx 0.8681, about an 86.8% chance.

Expected value and standard deviation of free throws

A basketball player makes each free throw with probability p=0.8p = 0.8 and takes n=25n = 25 attempts, counting makes. Find the expected number of makes and the standard deviation.

  1. Expected value (mean): μX=np=25×0.8=20\mu_X = np = 25 \times 0.8 = 20 makes.

  2. Standard deviation formula: σX=np(1p)=25×0.8×0.2\sigma_X = \sqrt{np(1-p)} = \sqrt{25 \times 0.8 \times 0.2}.

  3. Simplify inside the root: 25×0.8×0.2=425 \times 0.8 \times 0.2 = 4, so σX=4=2\sigma_X = \sqrt{4} = 2 makes.

The player expects μX=20\mu_X = 20 makes with a standard deviation of σX=2\sigma_X = 2 makes.

Frequently asked questions

What is the expected value of a binomial distribution?

The expected value (mean) of a binomial is npnp, the number of trials times the success probability. For 25 trials with p=0.8p = 0.8, the expected number of successes is 25×0.8=2025 \times 0.8 = 20. It is the long-run average count of successes, not a value you are guaranteed to see on one run.

How do you find an 'at least' probability for a binomial?

Use the complement: P(Xk)=1P(Xk1)P(X \ge k) = 1 - P(X \le k-1). For 'at least 1', that is 1P(X=0)1 - P(X = 0), which is far faster than adding every case from 1 up to nn. On a calculator it becomes 1 - binomcdf(n, p, k-1).

What is the difference between binompdf and binomcdf?

binompdf(n, p, x) gives the probability of exactly xx successes, P(X=x)P(X = x). binomcdf(n, p, x) gives the cumulative probability of xx or fewer, P(Xx)P(X \le x). Use the cdf for 'at most' questions and pair it with the complement for 'at least' questions.

Is the binomial distribution on the AP Statistics exam?

Yes. In the Fall 2026 course it is Unit 2 Topic 2.10, part of Probability, Random Variables, and Probability Distributions. The binomial formula, the mean npnp, and the standard deviation np(1p)\sqrt{np(1-p)} are all on the provided formula sheet.