Binomial Probability Calculator

Binomial distribution: P(X = k), P(X ≤ k), P(X < k), P(X ≥ k) and P(X > k) for n trials and success probability p, with mean and standard deviation.

A whole number from 1 to 1,000,000.
A decimal between 0 and 1, such as 0.5 for a fair coin or 0.1667 for rolling a six.
A whole number from 0 up to n.

Results

P(X = k)
0.246094
P(X ≤ k)
0.623047
P(X < k)
0.376953
P(X ≥ k)
0.623047
P(X > k)
0.376953
Mean (np)
5
Standard deviation √(np(1 − p))
1.5811

How it’s calculated

The binomial distribution counts the successes X in n independent trials when every trial has the same chance p of success (coin flips, defective items in a batch, yes/no survey answers). The probability of exactly k successes is:

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), C(n, k) = n! ÷ (k! (n − k)!) mean = n × p standard deviation = √( n × p × (1 − p) ) P(X ≤ k) = P(0) + P(1) + … + P(k)

The sums are accumulated term by term in logarithms, so even n in the hundreds of thousands works without overflow. The cumulative “at least” and “at most” answers come from adding the individual probabilities, not from a normal approximation.

Example: flip a fair coin 10 times (n = 10, p = 0.5). P(X = 5) = C(10, 5) × 0.5¹⁰ = 252 ÷ 1024 = 0.246094. P(X ≤ 5) = 638 ÷ 1024 = 0.623047, and the mean is np = 5 with standard deviation √2.5 = 1.5811.

Frequently asked questions

What is the difference between P(X ≤ k) and P(X < k)?

P(X ≤ k) includes exactly k successes; P(X < k) does not. For “at most 3” use P(X ≤ 3); for “fewer than 3” use P(X < 3). Likewise “at least 3” is P(X ≥ 3) and “more than 3” is P(X > 3).

When can I use the binomial distribution?

When there is a fixed number of trials, each is independent, each has only two outcomes (success or failure), and the probability of success stays the same every time. Drawing without replacement from a small group breaks the independence.

How do I enter a percentage for p?

Convert it to a decimal: 30% becomes 0.3.

Why do some answers show as 1.2346 × 10⁻⁸?

Very small probabilities are written in scientific notation so they do not appear as 0. The value is exactly as written: 1.2346 × 10⁻⁸ means 0.000000012346.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator