Calculator: Binomial distribution

Enter the labelled inputs to calculate: Probability P(X=k); Mean; Variance.

Probability P(X=k)
0.24609375
Mean
5
Variance
2.5

How the calculation works

P(X=k)=C(n,k)pᵏ(1−p)ⁿ⁻ᵏ; μ=np; σ²=np(1−p)

Counts are nonnegative integers. Binomial trials are independent with a fixed success probability; Poisson counts use a fixed mean. The displayed probability is for exactly k occurrences, not a cumulative probability.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

P(X=k)=C(n,k)pᵏ(1−p)ⁿ⁻ᵏ; μ=np; σ²=np(1−p)

What assumptions apply?

Counts are nonnegative integers. Binomial trials are independent with a fixed success probability; Poisson counts use a fixed mean. The displayed probability is for exactly k occurrences, not a cumulative probability.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Number of trials = 10
Number of successes = 3
Probability = 0.5
Probability P(X=k): 0.1171875
Mean: 5
Variance: 2.5
2
Number of trials = 20
Number of successes = 5
Probability = 0.2
Probability P(X=k): 0.1745595216
Mean: 4
Variance: 3.2
3
Number of trials = 50
Number of successes = 12
Probability = 0.3
Probability P(X=k): 0.08382972004
Mean: 15
Variance: 10.5

Sources

How we test our calculators →

Also try:

Back to category →