Binomial Probability Calculator
Calculate exact or cumulative binomial probabilities with inclusive count bounds plus complements, expected value and model-assumption guidance.{{ summaryTitle }}
{{ summaryLine }}
{{ primaryCopyAnnouncement }}
{{ resultsReady ? '' : firstIssueMessage }}Event analysis
- {{ row.label }}
- {{ row.display }}
Calculation method
- {{ eventLongLabel }}
- Selected event mass: {{ formattedProbability }}
- Complementary mass: {{ formattedComplement }}
Confirm the model before using the result
- The trial count is fixed in advance.
- Each trial has two outcomes under one success definition.
- Trials are independent and use the same success probability.
The chart renderer is unavailable. The same values remain available in Event analysis and the calculation ledger.
| Item | Value | Meaning | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.display }} | {{ row.detail }} |
Repeated trials often lead to a count rather than a single yes-or-no result. A batch may contain seven defective parts, a survey may receive twelve favorable answers, or ten independent attempts may produce exactly four successes. The binomial distribution assigns probabilities to those success counts when the experiment follows one stable model.
Four conditions define that model:
- The number of trials is fixed before the experiment.
- Each trial has two mutually exclusive outcomes, labeled success and failure.
- Trials are independent, so one outcome does not change another trial's chance.
- The success probability stays constant across every trial.
“Success” is only the event being counted. It can mean a sale, a failed component, a positive test, or any other chosen outcome. Its probability must be entered as a decimal from 0 to 1, so 25% becomes 0.25.
| Event wording | Included success counts |
|---|---|
| Exactly k | Only k |
| At most k | 0 through k, including both ends |
| At least k | k through n, including both ends |
| Between a and b | a through b, including both ends |
A precise probability does not repair a poor model. Sampling without replacement from a small population, changing success rates, clustered outcomes, or feedback between trials can violate the binomial assumptions. In those settings, a hypergeometric, Poisson-binomial, beta-binomial, or simulation approach may fit better.
How to Use This Tool:
Define the event first so the entered count has the intended inclusive boundary.
- Choose Probability event: exactly, at most, at least, or between.
- Enter Number of trials (n) as a whole number from 0 through 10,000 and Success probability per trial (p) as a decimal from 0 through 1.
- Enter the requested success count. For a between event, also enter the inclusive upper count, which must be at least the lower count and no greater than n.
- Use Displayed significant digits to change presentation precision only. The underlying probability is not recalculated from the rounded display.
- Read the requested probability beside its complement, then use the mean and standard deviation to understand where the count sits within the model.
Interpreting Results:
The requested event probability and complement should sum to 1 apart from display rounding. The complement covers every valid success count outside the selected event. For an inclusive interval, that means counts below a or above b.
Expected value is the long-run average success count across many repetitions of the full experiment, not a promise for the next run. Standard deviation describes typical spread in count units. Variance is the squared spread and therefore uses count².
Small probabilities can still occur, and large probabilities can still fail to occur on one run. Check the assumptions and the event wording before treating the percentage as evidence that an observed result is surprising.
Technical Details:
A binomial random variable X counts successes across n independent Bernoulli trials with constant success probability p. Its support contains only the integers from 0 through n.
Formula Core:
The probability mass function gives one exact count. Cumulative and interval events add the relevant exact-count terms.
For 10 trials with p = 0.5, exactly 7 successes has probability 0.1171875, or 11.71875%. The mean is 5, variance 2.5 count², and standard deviation about 1.58114 successes.
Rule Core:
| Mode | Selected sum | Complement |
|---|---|---|
| Exactly k | k only | 0 to k - 1 and k + 1 to n |
| At most k | 0 to k | k + 1 to n |
| At least k | k to n | 0 to k - 1 |
| Between a and b | a to b | 0 to a - 1 and b + 1 to n |
For numerical stability up to 10,000 trials, factorial terms are handled in logarithmic form, range sums use scaled compensated addition, and the selected mass is normalized against selected plus complementary mass. Model outputs retain about 15 significant digits before the chosen display formatting.
Limitations:
The binomial distribution is inappropriate when trials influence one another, success probability changes, more than two outcomes must be modeled directly, or sampling without replacement materially changes the chance on later draws.
- Counts and bounds must be whole numbers from 0 through n.
- A between event includes both lower and upper bounds.
- Changing significant digits changes only the displayed rounding, not the event probability.
References:
- Binomial Distribution, NIST/SEMATECH e-Handbook of Statistical Methods.
- The Binomial Distribution, R statistical software documentation.