🔍 How it works
What this calculator computes behind the scenes
When you click “Calculate Probability,” the calculator first validates your inputs:
n must be a whole number ≥ 0, p must be between 0 and 1, and your
k/a/b values must be integers within the range 0…n. Then it computes binomial probabilities using the PMF formula.
For exact probabilities, it calculates P(X=k) directly. For cumulative probabilities,
it sums the PMF values: P(X≤k) = Σ P(X=i) for i=0…k. For the right tail it uses a stable identity:
P(X≥k) = 1 − P(X≤k−1). That avoids summing a potentially long tail in the wrong direction.
For a range, it sums the PMF from a…b.
Along with the probability, the calculator also shows the key summary statistics that most classes and textbooks expect:
mean (n·p), variance (n·p·(1−p)), and standard deviation (the square root of the variance).
These help you understand the “center” and “spread” of the distribution even if you don’t compute every probability.
Interpreting tiny probabilities
Some events are naturally very unlikely. For example, if p=0.1 and n=50, getting 30 successes is extremely rare.
That doesn’t mean the calculator is “wrong”—it means the event is far into the tail. If your answer prints as
0.000000…, use the Scientific Notation Calculator linked below to present it cleanly (or increase decimals).
🧪 Examples
Real examples you can copy
Example 1: Coin flips (exact).
Flip a fair coin n=10 times. What is the probability of getting exactly k=6 heads?
Here p=0.5. The calculator computes P(X=6) using the PMF. You’ll get a value around 0.205 (about 20.5%),
meaning “6 heads” is fairly common in 10 flips.
Example 2: Click-through rate (cumulative).
Suppose a button has a 3% click rate (p=0.03). You show it to n=100 visitors. What’s the probability of
getting at most k=2 clicks? Choose mode P(X ≤ k), enter n=100, p=0.03, k=2. This returns a cumulative probability
that tells you how often you’ll see 0, 1, or 2 clicks in 100 views.
Example 3: Quality control (right tail).
A factory produces parts with a 2% defect rate (p=0.02). If you sample n=50 parts, what is the probability of
finding at least k=3 defective parts? Select P(X ≥ k) and enter n=50, p=0.02, k=3.
This is a tail probability—great for “risk” style questions.
Example 4: Range probability.
A student answers n=20 true/false questions by guessing (p=0.5). What’s the probability they get between
a=8 and b=12 correct (inclusive)? Select the range mode, enter n=20, p=0.5, a=8, b=12.
This is a classic “middle band” probability question.
Exam tip
Many exam questions hide the binomial setup in words. Translate the story into (n, p, k) carefully:
n = number of attempts, p = per-attempt success probability, k = number of successes you’re counting.
Then identify whether the question is asking for exact, at most, at least, or a range.