Binomial Probability Calculator
Calculate exact, at-most and at-least binomial probabilities for n trials with success probability p, plus the mean and standard deviation.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Binomial Probability Calculator does
Use this binomial probability calculator to calculate exact, at-most and at-least binomial probabilities for n trials with success probability p, plus the mean and standard deviation. Fill in all 3 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding the probability of a given number of defects in a sample. For a second version of this binomial probability calculator, see FreeToolStation.org.
How to use it
- Enter the number of trials.
- Enter the number of successes you are asking about.
- Enter the probability of success on a single trial as a decimal between 0 and 1.
- Pick the row that matches your question — exactly k, at most k, or at least k.
How it works
The binomial distribution counts successes in a fixed number of independent trials that each have the same probability of success. Flipping a coin twenty times, testing twenty components from a production line with a known defect rate, asking twenty people the same yes-or-no question: all binomial, provided the trials genuinely do not influence one another and p really is constant across them.
The formula has three pieces that are worth reading separately. C(n,k) counts how many different orderings produce k successes; pᵏ is the probability of those k successes happening; (1−p)ⁿ⁻ᵏ is the probability of the remaining failures. Multiply them and you have the chance of exactly k, in any order.
The cumulative rows are usually what a real question needs. "What is the chance of at least 8 defects" is P(X ≥ 8), not P(X = 8), and conflating the two is the commonest mistake in binomial problems. Note also that P(X ≤ k) and P(X ≥ k) overlap at k itself, so they add to more than 1 — the complement of "at most 8" is "at least 9", not "at least 8". This page computes both sums directly rather than through an approximation, so the figures are exact to floating-point precision for any n a browser will handle.
When to use it
- Finding the probability of a given number of defects in a sample.
- Working out the chance of a run of wins or correct guesses.
- Checking a binomial answer from a statistics course.
- Deciding whether an observed count is surprising under a known rate.
Common mistakes to avoid
- Entering p as a percentage. A 35% chance is 0.35, and entering 35 makes every result meaningless.
- Using P(X = k) when the question says "at least" or "no more than".
- Applying the binomial distribution to trials that are not independent, such as drawing without replacement from a small population — that needs the hypergeometric distribution instead.
Frequently asked questions
When is a situation binomial?
When there is a fixed number of trials, each trial has exactly two outcomes, the probability of success is the same every time, and the trials are independent. Drop any one of those four and the binomial formula no longer applies.
Why do P(X ≤ k) and P(X ≥ k) add to more than 1?
Because both include k itself, so it gets counted twice. The true complement of P(X ≤ k) is P(X ≥ k+1).
What if my number of trials is very large?
The sums here stay exact, but above a few hundred trials statisticians normally switch to the normal approximation with mean np and variance np(1−p), which is accurate when both np and n(1−p) exceed about 10.