Use the binomial PDF when you need the probability of exactly one specific number of successes, and use the binomial CDF when you need the probability of a range of successes (like “at most 3” or “fewer than 5”). That single distinction covers nearly every problem you’ll encounter in a statistics course or real-world application.
What Each Function Actually Tells You
The PDF (probability density function, sometimes called the probability mass function for discrete distributions) answers one narrow question: what is the probability of getting exactly k successes in n trials? If you flip a coin 10 times and want to know the probability of getting exactly 7 heads, that’s a PDF calculation. It returns a single probability for a single outcome.
The CDF (cumulative distribution function) answers a broader question: what is the probability of getting k or fewer successes? It works by adding up individual PDF values. So if you want the probability of getting 2 or fewer heads in 6 flips, the CDF sums up three separate probabilities: P(x=0) + P(x=1) + P(x=2). On a calculator, binomcdf(6, 0.5, 2) does that entire summation in one step instead of making you calculate each piece separately.
The key relationship between them is simple: the CDF at any point is just the sum of all PDF values from zero up to that point. And because the total of all possible outcomes always equals 1, you can use that fact to flip a CDF result and find “greater than” probabilities too.
Keyword Triggers in Word Problems
The fastest way to decide which function you need is to look at the wording of the question. Specific phrases map directly to one function or the other.
Use the PDF when you see:
- “Exactly” — “What is the probability of exactly 4 successes?”
- A single number with no qualifier — “Find the probability that 3 students pass.”
Use the CDF when you see:
- “At most” — “What is the probability of at most 5 successes?” This is P(x ≤ 5), which is directly what the CDF calculates.
- “No more than” — Same as “at most.” Use CDF directly.
- “Fewer than” — “Fewer than 3” means P(x < 3), which equals P(x ≤ 2). Subtract one from the number and use the CDF.
- “At least” — “At least 4” means P(x ≥ 4). Flip it: 1 minus CDF at 3, or 1 − P(x ≤ 3).
- “More than” — “More than 5” means P(x > 5) = 1 − P(x ≤ 5). Use the CDF and subtract from 1.
The “fewer than” and “at least” cases trip people up most often. “Fewer than 3” does not include 3 itself, so you evaluate the CDF at 2, not 3. “At least 4” does include 4, so you subtract the CDF at 3 from 1.
The Complement Trick for “Greater Than” Problems
The CDF only sums upward from zero, so it naturally handles “less than or equal to” questions. For anything involving “greater than” or “at least,” you use the complement. Since all probabilities in a distribution sum to 1, the probability of getting more than k successes is just 1 minus the probability of getting k or fewer.
For example, say you have 42 trials and want P(x > 21). You’d calculate 1 − P(x ≤ 21) using the CDF. This is far easier than manually summing the PDF for every value from 22 to 42. That efficiency is the whole reason the CDF exists: it collapses what could be dozens of individual calculations into one.
A Worked Example With Both Functions
Suppose 65% of customers at a store make a purchase, and 6 customers walk in. You want to answer two different questions.
Question 1: What is the probability that exactly 4 of them buy something? This calls for the PDF, because you want one precise outcome. On a calculator you’d enter binompdf(6, 0.65, 4) and get a single probability.
Question 2: What is the probability that fewer than 3 buy something? “Fewer than 3” means 0, 1, or 2 purchasers. You could calculate three separate PDF values and add them, or you could recognize that P(x < 3) = P(x ≤ 2) and use binomcdf(6, 0.65, 2), which gives you approximately 0.1174. One step instead of three.
The savings get more dramatic as the numbers grow. If you had 50 trials and needed P(x ≤ 30), the CDF sums 31 individual probabilities instantly. Doing that by hand with the PDF would take an unreasonable amount of time.
How This Translates to Software
Different tools use different names for the same two functions. In R, dbinom() is the PDF (it gives the “density” at a single point) and pbinom() is the CDF (it gives the cumulative “probability” up to that point). In Python’s SciPy library, the equivalents are binom.pmf() and binom.cdf(). On a TI calculator, the functions are labeled binompdf and binomcdf, which is where most students first encounter the distinction.
Regardless of the tool, the inputs are the same: the number of trials (n), the probability of success on each trial (p), and the number of successes you’re evaluating (k). The only difference is whether the tool returns the probability for that single value of k or sums everything from 0 through k.
When It Gets Ambiguous
Sometimes a problem asks for something like “between 3 and 7 successes, inclusive.” Neither a single PDF call nor a single CDF call covers this directly. The cleanest approach is to subtract two CDF values: P(3 ≤ x ≤ 7) = CDF(7) − CDF(2). You subtract at 2, not 3, because the CDF at 2 captures everything below your range, and removing it leaves exactly the slice from 3 to 7.
You could also get the same answer by summing five individual PDF values (at 3, 4, 5, 6, and 7), but the CDF subtraction method is faster and less prone to arithmetic errors. As a general rule, anytime you need more than one or two individual probabilities combined, reach for the CDF.
Quick Decision Rule
If the question has the word “exactly” or asks about one specific number, use the PDF. For everything else, the CDF is your tool, sometimes with a small adjustment like subtracting from 1 or shifting the input by 1. Once you internalize that pattern, choosing the right function becomes automatic.

