Binomial Probability Calculator with Steps

This binomial probability calculator with steps finds the probability of exactly k successes, or at most or at least k, in n independent trials. Every step of the formula is shown, and the distribution is plotted.

A decimal from 0 to 1.

Checks on your data

  • np = 4 and n(1 − p) = 6: at least one is below 5, so a normal approximation would be poor. The exact binomial values shown here are the right ones to use.
  • The binomial model needs a fixed number of trials, only two outcomes per trial, the same success probability every time and independent trials. Sampling without replacement from a small population breaks this (use the hypergeometric distribution).

Results

P(X = 3)
0.21499085
21.4991 %
P(X = 3)
0.21499085
P(X ≤ 3)
0.3822806
P(X < 3)
0.16728975
P(X ≥ 3)
0.83271025
P(X > 3)
0.6177194
Mean μ = np
4
Variance σ² = np(1 − p)
2.4
Standard deviation σ
1.54919
Most likely value (mode)
4
Binomial distribution (n = 10, p = 0.4): highlighted bars are in P(X = 3)
00.10.20: 0.0060466200.006051: 0.040310810.04032: 0.12093220.1213: 0.21499130.2154: 0.25082340.2515: 0.20065850.2016: 0.11147760.1117: 0.042467370.04258: 0.010616880.01069: 0.0015728690.0015710: 0.000104858100.000105
Probabilities near the mean
kP(X = k)P(X ≤ k)P(X ≥ k)
00.0060466180.0060466181
10.040310780.04635740.9939534
20.12093240.16728980.9536426
30.21499080.38228060.8327102
40.25082270.63310330.6177194
50.20065810.83376140.3668967
60.11147670.94523810.1662386
70.042467330.98770540.05476188
80.010616830.99832230.01229455
90.0015728640.99989510.001677722
100.000104857610.0001048576
Show step-by-step solution
  1. Binomial coefficient: C(10, 3) = 10! ÷ (3! × 7!) = 120.
  2. p^k = 0.4^3 = 0.064; (1 − p)^(n − k) = 0.6^7 = 0.0279936.
  3. P(X = 3) = 120 × 0.064 × 0.0279936 = 0.21499085.
  4. Cumulative P(X ≤ 3) = Σ P(X = i) for i = 0 to 3 = 0.3822806; P(X ≥ 3) = 1 − P(X ≤ 2) = 0.83271025.
  5. Mean = np = 4, standard deviation = √(np(1 − p)) = 1.54919.
FormulaC(n,k) pᵏ (1−p)ⁿ⁻ᵏ
Meannp
SD√(np(1−p))
NeedsFixed n, independent trials

What Is Binomial Probability?

The binomial distribution counts the successes in n independent trials that each have the same success probability p. The probability of exactly k successes is C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, where C(n, k) is the number of ways to choose which trials succeed.

Enter n, p and k to get the exact probability and the cumulative probabilities, together with the mean np, the variance np(1 − p), the standard deviation and the most likely value. The worked steps show the binomial coefficient and each power, so you can follow or check a hand calculation.

Below you will find the formulas, a variables table, a worked example and answers to common questions such as when a situation is binomial and how to find "at least" probabilities.

How to Use the Binomial Probability Calculator

  1. Enter the number of trials n, the target number of successes k and the success probability p.
  2. Choose which probability to feature: exactly, at most, fewer than, at least or more than k.
  3. Read the steps to see how the answer is built, and check the shaded bars in the chart.
  4. Use the table for neighbouring values of k.

Binomial Probability Formula

Binomial probability mass function

P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^k(1-p)^{n-k}

Binomial coefficient

(nk)=n!k! (n−k)!\binom{n}{k}=\frac{n!}{k!\,(n-k)!}

Cumulative probability

P(X≤k)=∑i=0k(ni)pi(1−p)n−iP(X\le k)=\sum_{i=0}^{k}\binom{n}{i}p^i(1-p)^{n-i}

Mean and variance

μ=np,σ2=np(1−p)\mu=np,\quad \sigma^2=np(1-p)

Binomial Probability Variables Explained

SymbolMeaningNotes
nNumber of trialsFixed in advance
pSuccess probability per trialSame for every trial
kNumber of successes0 to n
C(n, k)Binomial coefficientn! ÷ (k!(n − k)!)
μ, σ²Mean and variancenp and np(1 − p)

Binomial Probability Worked Example

Using the example values (press “Load example” above to try them):

  1. Binomial coefficient: C(10, 3) = 10! ÷ (3! × 7!) = 120.
  2. p^k = 0.4^3 = 0.064; (1 − p)^(n − k) = 0.6^7 = 0.0279936.
  3. P(X = 3) = 120 × 0.064 × 0.0279936 = 0.21499085.
  4. Cumulative P(X ≤ 3) = Σ P(X = i) for i = 0 to 3 = 0.3822806; P(X ≥ 3) = 1 − P(X ≤ 2) = 0.83271025.
  5. Mean = np = 4, standard deviation = √(np(1 − p)) = 1.54919.

Result: P(X = 3) = 0.21499085; Mean μ = np = 4.

When is a situation binomial?

Drawing cards without replacement fails the last two conditions, so the exact model is hypergeometric. When the sample is under about 10% of the population, the binomial is a good approximation.

  • A fixed number of trials n is decided in advance.
  • Each trial has just two outcomes, success or failure.
  • The probability of success p is the same on every trial.
  • Trials are independent.

Translating words into probabilities

Common phrases
WordingNotationResult to read
exactly 3P(X = 3)Exact
at most 3, no more than 3, 3 or fewerP(X ≤ 3)At most
fewer than 3, less than 3P(X < 3) = P(X ≤ 2)Fewer than
at least 3, 3 or more, no fewer than 3P(X ≥ 3) = 1 − P(X ≤ 2)At least
more than 3, greater than 3P(X > 3) = 1 − P(X ≤ 3)More than

Normal and Poisson approximations

For large n the binomial is well approximated by a normal distribution with mean np and variance np(1 − p), provided np and n(1 − p) are both at least about 10. Apply a continuity correction of 0.5. When n is large and p is small, the Poisson distribution with mean np is a good approximation. This calculator computes the exact binomial values, so no approximation is needed.

Where Binomial Probability Is Used

Coin, dice and card problems

Probability of a given number of heads, sixes or hits.

Quality control

Probability of finding a given number of defects in a sample.

Surveys and trials

Probability of a given number of "yes" answers or recoveries.

Homework with working

Checking each step of a binomial probability.

Common Binomial Probability Mistakes to Avoid

  • Convert percentages to decimals before entering p.
  • For “at least one”, use 1 − P(X = 0).
  • Check that the trials really are independent.
  • Remember P(X ≥ k) is not the same as 1 − P(X ≤ k): subtract P(X ≤ k − 1).

Binomial Probability Terms and Definitions

Success
The outcome you are counting, not necessarily a good one.
PMF
Probability mass function: probability of an exact value.
CDF
Cumulative distribution function: probability of a value or less.

Binomial Probability FAQs

How do you calculate a binomial probability?

Use P(X = k) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ: multiply the number of ways to choose k successes by the probability of one such arrangement.

What is the difference between binomial pdf and cdf?

The pdf (binompdf) gives the probability of exactly k successes. The cdf (binomcdf) gives the probability of k or fewer.

How do I find the probability of at least k successes?

Compute 1 − P(X ≤ k − 1). The result P(X ≥ k) is shown directly above.

What is the mean of a binomial distribution?

np, the number of trials multiplied by the success probability.

When can I use the normal approximation?

When np and n(1 − p) are both at least 10. Use a continuity correction.

Can the number of trials be large?

Yes, up to 100,000 here. The calculator uses stable log-based formulas for large n.

What if trials are not independent?

Then the binomial does not apply. For sampling without replacement from a small population use the hypergeometric distribution.

Related calculators

Last updated 2026-11-09. See our disclaimer.