How to Calculate Binomial Probability (With Examples)

Binomial probability is one of the most practical concepts in statistics, and it comes up constantly in coursework, research, and real decisions. Any time you are asking “what is the chance of getting exactly k successes out of n tries,” you are working with the binomial distribution. The formula looks intimidating at first glance, but once you break it into three pieces, it is straightforward, and a calculator makes it instant.
This guide walks through the formula step by step, works through two real examples, and shows the fastest way to get the answer.
What the Binomial Distribution Models
The binomial distribution applies whenever you have a fixed number of independent trials, each with the same probability of success. The classic example is flipping a coin a set number of times and counting heads, but the same model fits any yes-or-no outcome repeated under identical conditions: pass or fail, click or skip, defective or good.
Three conditions must hold for a binomial problem: the number of trials is fixed, each trial is independent of the others, and the probability of success stays the same on every trial. If all three are true, the binomial formula gives the exact probability.
The Binomial Probability Formula
The formula for the probability of getting exactly k successes in n trials, where each trial has probability p of success, is:
P(X = k) = C(n, k) × p^k × (1 − p)^(n − k)
It has three pieces, and each one answers a simple question:
The first piece is C(n, k), which is the number of combinations, sometimes written as “n choose k.” It counts how many different ways k successes can be arranged among n trials. The formula for it is n! divided by k! times (n − k)!, where the exclamation mark means factorial — the product of all whole numbers down to one.
The second piece is p raised to the power of k. This is the probability that the k successes all happen, since each one has probability p and they are independent.
The third piece is (1 − p) raised to the power of (n − k). This is the probability that all the remaining trials are failures, each with probability (1 − p).
Multiply the three pieces together and you have the exact binomial probability.
Worked Example One: Coin Flips
Suppose you flip a fair coin 10 times and want the probability of getting exactly 3 heads.
Here n = 10, k = 3, and p = 0.5. Working through the formula:
C(10, 3) = 10! / (3! × 7!) = 120. There are 120 ways to arrange 3 heads among 10 flips.
p^k = 0.5^3 = 0.125. The probability that the 3 heads all land.
(1 − p)^(n − k) = 0.5^7 = 0.0078125. The probability that the other 7 are tails.
Multiply them: 120 × 0.125 × 0.0078125 = 0.1172, or about 11.72 percent.
So there is roughly a 12 percent chance of flipping exactly 3 heads in 10 fair coin tosses. You can verify this instantly with a probability calculator by entering n = 10, k = 3, p = 0.5.
Worked Example Two: Quality Control
A factory produces parts with a 2 percent defect rate. In a batch of 50, what is the probability of finding exactly 2 defective parts?
Here n = 50, k = 2, and p = 0.02:
C(50, 2) = 1,225.
p^k = 0.02^2 = 0.0004.
(1 − p)^(n − k) = 0.98^48 ≈ 0.3769.
Multiply: 1,225 × 0.0004 × 0.3769 ≈ 0.1858, or about 18.6 percent.
So there is roughly a 19 percent chance of exactly 2 defects in 50 parts. Problems like this show why the binomial distribution matters beyond textbooks — it is the standard model for quality, risk, and testing scenarios.
PDF vs CDF: Two Ways to Ask the Question
The formula above gives the PDF, or probability density function, which answers “what is the probability of exactly k successes.” But sometimes you want to ask “what is the probability of k or fewer successes.” That is the CDF, or cumulative distribution function.
The CDF at k is simply the sum of the PDF values from 0 up to k. In the coin example, the CDF at 3 would be P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3). Doing this by hand for large n gets tedious fast, which is one of the strongest reasons to use a calculator — it computes both the PDF and CDF at the same time.
When to Use a Calculator
The formula is simple in concept, but the numbers get large quickly. Factorials grow fast, and raising small probabilities to high powers introduces rounding issues. For anything beyond small n, a probability calculator is the practical choice: enter n, k, and p, and it returns the PDF, CDF, complement, mean, standard deviation, and the formula breakdown in one step.
Frequently Asked Questions
What is binomial probability?
Binomial probability is the chance of getting exactly k successes in n independent trials, where each trial has the same probability p of success. It is calculated using the formula P(X = k) = C(n, k) × p^k × (1 − p)^(n − k).
What does C(n, k) mean?
C(n, k), also written “n choose k,” is the number of ways to pick k items from n. It counts how many arrangements of successes and failures are possible, and it equals n! / (k! × (n − k)!).
What is the difference between PDF and CDF?
The PDF gives the probability of exactly k successes. The CDF gives the probability of k or fewer successes — it is the sum of all PDF values from 0 up to k.
Can I use binomial probability for more than coin flips?
Yes. It applies to any situation with a fixed number of independent yes-or-no trials at a constant probability: quality control, clinical trials, survey responses, A/B testing, and many more.
How do I calculate binomial probability quickly?
Enter the number of trials, successes, and probability into a binomial calculator. It returns the PDF, CDF, and supporting statistics instantly, which is far faster and more reliable than computing factorials by hand.
Calculate It Now
The binomial formula is three pieces multiplied together, but a calculator removes any chance of arithmetic error and handles the CDF automatically. Open the probability calculator, choose Binomial, enter your values, and get the exact probability in seconds. For other useful math and utility tools, see our percentage calculator and compound interest calculator.