Skip to content
FiftyCalc Free calculators for all 50 states

Binomial Distribution Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Enter the number of trials, the probability of success on each trial and a number of successes.

Result

Sample figures

P(X = k), exactly k successes—

P(X ≤ k), at most k —

  • P(X ≥ k), at least k—
  • P(X < k), fewer than k—
  • P(X > k), more than k—
  • Mean (n × p)—
  • Standard deviation √(n p (1 − p))—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Binomial Distribution Calculator

Number of trials (n): enter 0 or more. Prefilled example: 10.

Probability of success on each trial (0 to 1): enter a number from 0 to 1. Prefilled example: 0.5.

Number of successes (k): enter 0 or more. Prefilled example: 3.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of trials (n): enter 0 or more.
  2. Probability of success on each trial (0 to 1): enter a number from 0 to 1.
  3. Number of successes (k): enter 0 or more.
  4. Read the result: P(X = k), exactly k successes; the panel also shows P(X ≤ k), at most k, P(X ≥ k), at least k, P(X < k), fewer than k, P(X > k), more than k, Mean (n × p) and Standard deviation √(n p (1 − p)).

How this calculator works

P(X = k) = C(n, k) × p^k × (1 − p)^(n − k), where C(n, k) = n! ÷ (k! (n − k)!) is the number of ways to choose the k successes.

Cumulative probabilities add the exact terms: P(X ≤ k) = Σ P(X = i) for i = 0 to k, and P(X ≥ k) = 1 − P(X ≤ k − 1).

The binomial model needs a fixed number of independent trials, each with the same probability of success.

The formula

  1. Eq=binompmf⁡(k,n,p)
Symbols used in the formula
SymbolMeaning
nNumber of trials
pProbability of success on each trial (0 to 1)
kNumber of successes
EqP(X = k), exactly k successes
binompmf(k, n, p)the probability of exactly k successes in n trials, each with success probability p.

Worked example

Number of trials (n)10
Probability of success on each trial (0 to 1)0.5
Number of successes (k)3
P(X ≤ k), at most k0.1719
P(X ≥ k), at least k0.9453
P(X < k), fewer than k0.0547
P(X > k), more than k0.8281
Mean (n × p)5
Standard deviation √(n p (1 − p))1.5811
  1. Eq=binompmf⁡(3,10,0.5)=0.117188

P(X = k), exactly k successes 0.1172

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the probability of exactly 3 heads in 10 coin flips?

C(10, 3) × 0.5¹⁰ = 120 ÷ 1,024 ≈ 0.1172.

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

P(X ≤ k) includes k itself; P(X < k) stops at k − 1. For 10 flips, P(X ≤ 3) = 0.1719 and P(X < 3) = 0.0547.

Questions answered

Related calculators