A quiz, ten guesses, and one formula
A student sits a ten-question quiz. Every question has four choices, and she has not revised a page of it. She guesses all ten. What is the chance she gets exactly three right? The question looks like luck. It is, in part. The answer is still arithmetic, and it takes one formula. Each question is a trial with two outcomes, right or wrong. The chance of right on one question is 1 in 4, so p = 0.25. Ten trials, three successes wanted. That is a binomial probability.
Work it by hand. First count which three questions go right: C(10, 3) = 120 ways. Then price the three right answers: 0.25 × 0.25 × 0.25 = 0.015625. Then price the seven wrong ones: 0.75 to the 7th power is 0.1335. Multiply the three parts: 120 × 0.015625 × 0.1335 = 0.2503. About one time in four, a pure guesser lands exactly three right. The most likely count is two, at 0.2816, and the mean over many such quizzes is 10 × 0.25 = 2.5 right answers. Three is a touch above average, which is why its probability sits just under the peak.
The formula, in three parts
Every binomial probability runs the same formula. The number of trials is n, the chance of success on one trial is p, and the count you want is k.
Three parts, each with a job. C(n, k) counts which trials succeed: 120 ways to pick the three right questions out of ten. pk prices the successes: three right answers at 0.25 each. (1 − p)n−k prices the failures: seven wrong answers at 0.75 each. Leave any part out and the answer is wrong. The most common slip is skipping C(n, k): pk alone for the quiz is 0.015625, which prices one fixed set of three questions, not all 120 sets. The combination is what turns one pattern into every pattern.
The formula needs four conditions to hold, and they have a name worth memorising: BINS. Binary outcomes, independent trials, a fixed n decided in advance, and the same p on every trial. The checks come later in this guide. First, the arithmetic.
A table you can build by hand
Small n is where hand calculation shines, because the whole distribution fits on one line. Take five fair coin flips. C(5, k) runs 1, 5, 10, 10, 5, 1, and every flip prices at 0.5, so each probability is just the count over 32.
Exactly 0 heads: 1 ÷ 32 = 0.03125. Exactly 1: 5 ÷ 32 = 0.15625. Exactly 2: 10 ÷ 32 = 0.3125. Exactly 3: the same 0.3125, by symmetry. Exactly 4: 0.15625. Exactly 5: 0.03125. Add them: 0.03125 + 0.15625 + 0.3125 + 0.3125 + 0.15625 + 0.03125 = 1. A full distribution always adds to 1, and that sum is the fastest check on any hand table. At least 4 heads is two bars: 0.15625 + 0.03125 = 0.1875, or 6 in 32.
Build one of these tables before trusting a calculator on a bigger problem. It teaches the shape: the middle bars are fat, the ends are thin, and no single count ever holds most of the probability. The coin flip probability calculator on this site prints the same table for any n, but the five-flip version above is the one to do once by hand.
At most, at least, between: adding the bars
Every binomial question is a choice of bars on the same chart. Exactly k is one bar. At most k adds every bar up to k. At least k adds every bar from k up. Back to the quiz. At most 3 right means adding the bars for 0, 1, 2 and 3: 0.0563 + 0.1877 + 0.2816 + 0.2503 = 0.7759. More than three quarters of guessers score 3 or fewer, which is the honest reading of a 25% hit rate.
At least 5 is the thin end: add the bars for 5 through 10 and you get 0.0781. A guesser passes the halfway mark about one time in thirteen. At least 1 is the complement trick: instead of adding ten bars, subtract the one bar you do not want. P(at least 1) = 1 − P(0) = 1 − 0.7510 = 1 − 0.0563 = 0.9437. A guesser gets at least one right about 94% of the time, which sounds generous until you remember the average is only 2.5.
A test has eight true-or-false questions, and a student guesses every one. Each answer is a fair coin, p = 0.5. At least 6 right means adding three bars: C(8, 6) = 28, C(8, 7) = 8, C(8, 8) = 1, over 28 = 256 outcomes. (28 + 8 + 1) ÷ 256 = 37 ÷ 256 = 0.1445. About one guesser in seven clears 6. Exactly 5 is the single most likely count, C(8, 5) ÷ 256 = 56 ÷ 256 = 0.2188, and between 2 and 4 right covers 0.1094 + 0.2188 + 0.2734 = 0.6016, the fat middle of the distribution.
The words matter more than the arithmetic. "At most 3" and "fewer than 4" are the same question. "At least 3" is its complement: 1 − 0.5256 = 0.4744, since the bars for 0, 1 and 2 add to 0.5256. Read the question twice, circle the words, then add the bars.
A bigger example: a treatment that works 70% of the time
Fifteen patients take a treatment that works for 70% of people. What is the chance exactly 12 recover? The numbers are bigger, but the steps are the same three. C(15, 12) = 455 ways to pick the twelve. 0.712 = 0.013841 prices the recoveries. 0.33 = 0.027 prices the three who do not. Multiply: 455 × 0.013841 × 0.027 = 0.1700.
At least 12 means adding the bars for 12, 13, 14 and 15, which gives 0.2969. So a clinic sees 12 or more recoveries in about three out of every ten groups of fifteen. The mean is 15 × 0.7 = 10.5 recoveries, with a standard deviation of √(15 × 0.7 × 0.3) = 1.775, so most groups land between 9 and 12. The single most likely count is 11, at 0.2186, just ahead of 10 at 0.2061. Twelve is a good result, not a typical one, and the gap between "exactly 12" at 0.1700 and "at least 12" at 0.2969 is the gap between one bar and a stack of four.
The same calculation in a spreadsheet
Excel and Google Sheets both carry the binomial as one function. For the quiz, type =BINOM.DIST(3, 10, 0.25, FALSE). The FALSE asks for exactly 3, and the answer is 0.2503. Change FALSE to TRUE and the function adds every bar up to 3: =BINOM.DIST(3, 10, 0.25, TRUE) gives 0.7759, the at-most answer. For at least 5, subtract the bars you do not want: 1 − BINOM.DIST(4, 10, 0.25, TRUE) = 1 − 0.9219 = 0.0781. A range has its own function: =BINOM.DIST.RANGE(10, 0.25, 5, 10) returns 0.0781 directly. Check the function against one hand calculation first, the 0.2503 or the 0.7759 above, and then trust it for the long lists.
Before you calculate: four checks
The formula is only as good as its conditions. Binary outcomes: each trial ends in success or failure, with nothing between. Independent trials: one result does not sway the next. A fixed n: you decided the number of trials before starting, not after seeing the results. The same p: the chance stays put from the first trial to the last. Textbooks call the four BINS, and the binomial probability calculator on this site lists them beside the tool.
Two breaks turn up constantly. Drawing cards without putting them back changes p on every draw, so the binomial does not apply; sampling without replacement needs the hypergeometric distribution instead, unless the sample is under about 10% of the population. And a p that drifts, a player who tires, a machine that warms up, breaks the same-p condition, and the calculator's answer will look precise while being wrong. When n is large and p is small, the Poisson probability calculator gives nearly the same answers with less arithmetic. When n is large and p sits near the middle, the normal approximation to the binomial calculator is the shortcut textbooks teach. Outside those cases, use the exact binomial, which is what the calculator above computes.
Three slips cause nearly every wrong binomial probability. First, answering "at least" when the question asked "exactly": 3 right on the quiz is 0.2503, while 3 or more is 0.4744. Second, forgetting C(n, k): pk alone prices one fixed set of successes, not all of them. Third, pricing the failures with p instead of 1 − p: the seven wrong answers on the quiz run at 0.75 each, not 0.25. A quick sense check catches all three: the answer for exactly k should sit near the mean np, and a full hand table must add to 1.
That is the whole method. Count which trials succeed, price the successes, price the failures, multiply. Run any of these numbers through the binomial probability calculator and it will agree: the tool shows the same quiz answer, 0.2503, with the bars for exactly, at most and at least beside it.
Frequently asked questions
How do I calculate binomial probability by hand?
Use P(X = k) = C(n, k) times p to the k times (1 minus p) to the n minus k. For a 10-question quiz with four choices each, exactly 3 right is 120 times 0.25 cubed times 0.75 to the 7th, which is 0.2503. Count which trials succeed first, then price the successes, then price the failures, and multiply the three parts.
How do I calculate 'at least' binomial probability?
Add the bars from k upward, or use the complement when k is large. At least 1 is the easiest case: 1 minus P(0), which is 1 minus (1 minus p) to the n. On the quiz that is 1 minus 0.75 to the 10th, which is 0.9437. At least 5 is 1 minus P(at most 4), which is 1 minus 0.9219, or 0.0781.
What is the difference between exactly and at least in binomial probability?
Exactly k is one bar; at least k is a stack of bars from k upward. On the quiz, exactly 3 right is 0.2503, while 3 or more is 0.4744. The gap between the two is the most common binomial slip, so read the question twice and circle the words before adding anything.
How do I calculate binomial probability in Excel?
Use =BINOM.DIST(k, n, p, FALSE) for exactly k and =BINOM.DIST(k, n, p, TRUE) for at most k. For the quiz, =BINOM.DIST(3, 10, 0.25, FALSE) returns 0.2503 and the TRUE version returns 0.7759. For at least 5, use 1 minus BINOM.DIST(4, 10, 0.25, TRUE), which is 0.0781. Google Sheets has the same functions.
When can I not use the binomial formula?
When any of the four BINS conditions fails: the outcomes are not binary, the trials are not independent, n was not fixed in advance, or p changes during the run. Drawing cards without replacement changes p on every draw, so the binomial does not apply; the hypergeometric distribution is the right tool there, unless the sample is under about 10% of the population.