Guide
Calculating binomial probabilities: exactly k, at most k and at least k successes
The binomial distribution describes how many successes you get in a fixed number of independent tries when each try has the same chance of success. Counting heads in coin tosses, defective parts in a box or correct guesses on a quiz all follow it. This calculator gives the probability of an exact number of successes, the cumulative probabilities on either side, and the mean and spread of the count.
How it works
With n trials, a chance p of success on each and k successes wanted, the probability is the number of ways to choose which k trials succeed, times p multiplied by itself k times, times the chance of failure multiplied by itself n minus k times. The number of ways is the binomial coefficient, which is computed with exact big integers so that nothing is lost for large n. The cumulative values add up the exact probabilities, so at most k adds every term from 0 to k, and at least k adds every term from k to n.
What each line means
The page lists P(X = k), P(X at most k), P(X less than k), P(X at least k) and P(X greater than k). The strict and non-strict versions differ by exactly the probability of k, which is a common source of off-by-one mistakes in homework. The mean is n times p, the variance is n times p times the chance of failure, and the standard deviation is its square root. A table below shows the probability of each count in a window around the mean, so you can see the whole shape without leaving the page.
Edge cases
The number of trials must be a whole number from 1 to 1,000, and k must be a whole number from 0 to n. The chance p can be typed as a decimal between 0 and 1 or as a percent above 1. If p is 0 or 1 the result is certain and the table has a single entry. The model needs the same chance on every try and independent tries: drawing without replacement from a small group violates this, and the hypergeometric distribution is the right model there.
A worked example
For 10 fair coin tosses and k = 3, the chance of exactly 3 heads is 0.1171875, about 11.7187%. The chance of 3 or fewer is 0.171875, of fewer than 3 is 0.0546875, of 3 or more is 0.9453125 and of more than 3 is 0.828125. The mean is 5, the variance 2.5 and the standard deviation 1.58113883008. A second case, 100 fair tosses, gives a 98.24% chance of 60 or fewer heads. A third, a box of 50 parts with a 5% defect rate, gives a 26.11% chance of exactly 2 defects and a 54.05% chance of 2 or fewer, with a mean of 2.5.
Limits
The page gives exact probabilities, so very large n with extreme p can produce numbers that are tiny but correct, shown in scientific notation. It does not give confidence intervals for a proportion or test a hypothesis, and it does not use a normal approximation. The chance on each try must be known; if you only have data, estimate it first.
Related tools
- Probability Calculator covers single events and the at-least-once rule without choosing a distribution.
- Normal Distribution Calculator handles continuous data and is the usual approximation for large n.
- Standard Deviation Calculator works out the spread of measured data rather than a modelled count.
- Permutation Calculator counts ordered arrangements when the order of results matters.
Checked against the current version of the Binomial Distribution Calculator on .

