Binomial Distribution Probability Calculator

Calculate exact, cumulative and range probabilities for repeated binary trials, with mean, variance, standard deviation and an optional probability scenario.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Core result

Use this for a count of successes

Use a binomial model when there are n repeated trials, each trial has two outcomes, the success probability p stays fixed, and the trials are independent. Examples include a fixed number of inspections that each pass/fail or repeated shots under an assumed constant make rate. If those assumptions are not defensible, the numeric result is not a validated forecast.

Exact, cumulative and range formulas

For X successes, P(X=x) = C(n,x)pˣ(1−p)ⁿ⁻ˣ. At most x sums k=0…x; at least x sums k=x…n; the entered inclusive range sums k=low…high. Mean = np, variance = np(1−p), and standard deviation = √(np(1−p)). The implementation evaluates log combinations and uses compensated summation to reduce floating-point loss.

Three independent checks

For n=10, p=0.5 and x=5, P(X=5)=252/1024=0.24609375; P(X≤5)=P(X≥5)=0.623046875; P(3≤X≤7)=0.890625. For n=5, p=0.2 and x=2, the exact probability is 10×0.2²×0.8³=0.2048; P(X≤2)=0.94208 and P(1≤X≤3)=0.6656. For n=0, p=0 and x=0, the empty-trial distribution gives probability 1, mean 0 and standard deviation 0.

Compare a probability assumption

The optional scenario keeps n and x fixed while changing p. It shows the change in exact-x probability and expected successes. This is useful for sensitivity analysis, not evidence that the alternative p is achievable or that trials are independent.

Sources and calculation scope

n and all success counts are whole numbers from 0 to 1,000, and p is from 0 to 1 or 0% to 100%. Extremely small probabilities may display as zero after floating-point underflow. Official definition and statistics: NIST/SEMATECH e-Handbook — Binomial Distribution.

Unexpected result? Tell us the inputs and what you expected.