Binomial Distribution Calculator: PMF, CDF, Table, and Inverse

Compute binomial probabilities for any comparison, read the complete k table, get the bracketed inverse with both attained probabilities, and see the normal and Poisson approximation error.

At a glance

Computes
Exact binomial, geometric and negative binomial probabilities, plus their inverses
You supply
Trials n, success probability p, a comparison, and a count k
Use when
A fixed number of independent trials with the same success probability
Not for
Counting events in an interval with no fixed number of trials Poisson Distribution Calculator
What to find
Distribution

Whole number, up to 1,000,000.

Enter 0.3, not 30.

Probability

Decimals are converted to the equivalent whole-number bound.

The result is capped at the precision verified for these parameters.

P(X ≤ 6)

0.608010

60.801%

Density by counts; 21 bins of width 1 (fd rule); Binomial distribution with n = 20 and p = 0.3; P(X ≤ 6)

0.000.050.100.1505101520

0.608010

Distribution summary
DetailValue
Mean6.00000
Variance4.20000
Standard deviation2.04939
Mode6
Skewness0.195180
Excess kurtosis-0.0619048

Exact result and approximations

MethodValueAbsolute errorRelative error
Exact0.608010referencereference
Normal with continuity correction0.59637491600.011631.914%
Normal without correction0.50000000000.108017.76%
Poisson (lambda = 6)0.60630278240.0017070.2808%

Approximation thresholds below are named conventions. Their observed error is the result that matters.

np ≥ 10 and n(1 - p) ≥ 10
np = 6.00000, n(1 - p) = 14.0000; not met
np(1 - p) > 5
np(1 - p) = 4.20000; not met
n ≥ 100 and np ≤ 10
n = 20.0000, np = 6.00000; not met

Count table

Table cells show 6 significant figures. The readout and CSV export carry the full precision the method supports. The complete finite support is shown.

kP(X = k)P(X ≤ k)P(X ≥ k)In region
00.0007979230.0007979231yes
10.006839340.007637260.999202yes
20.02784590.03548310.992363yes
30.07160370.1070870.964517yes
40.1304210.2375080.892913yes
50.1788630.4163710.762492yes
60.1916390.6080100.583629yes
70.1642620.7722720.391990
80.1143970.8866690.227728
90.06536960.9520380.113331
100.03081710.9828550.0479619
110.01200670.9948620.0171448
120.003859280.9987210.00513816
130.001017830.9997390.00127888
140.0002181070.9999570.000261047
150.00003738980.9999940.0000429400
160.000005007560.9999990.00000555025
175.04964e-7> 0.9999999995.42695e-7
183.60688e-8> 0.9999999993.77309e-8
191.62717e-9> 0.9999999991.66203e-9
203.48678e-1113.48678e-11

Equivalent calls

R        pbinom(6, 20, 0.3)
Python   scipy.stats.binom.cdf(6, 20, 0.3)
Excel    =BINOM.DIST(6, 20, 0.3, TRUE)
TI-84    binomcdf(20, 0.3, 6)
Export

Fixed trials, exact counts

This page counts successes in a fixed number of independent trials that share one probability. The exact mass, cumulative probability, survival tail and quantile come from the discrete model. When there is only an average rate and no fixed number of trials, use the Poisson distribution page. For a continuous quantity, use the normal distribution page.

Geometric and negative binomial are modes here, not separate URLs. The controls name whether the count means trials, failures, or a mean and dispersion, so an equivalent R or SciPy call uses the same convention as the displayed answer.

P(X = k) = C(n,k) p^k (1-p)^(n-k) How?

How this is calculated

Masses are evaluated in log space. Cumulative and survival probabilities use direct incomplete-beta tails, and outside ranges add the two tails directly. Every two-proportion procedure, including an A/B test, starts from binomial counts. The outside region is also the count-side idea behind Fisher's exact test.

Formula: P(X = k) = C(n,k) p^k (1-p)^(n-k)

Why the approximation rules are conventions

Textbooks use several thresholds for normal and Poisson approximations. This tool names the rules, evaluates their actual quantities, and prints the approximation error against the exact answer. Passing a convention is guidance, not proof of a small error.

Sources

  1. NIST SEMATECH e-Handbook, Binomial distribution (1.3.6.6.18). NIST/SEMATECH. Retrieved .
  2. R documentation, The Binomial Distribution. R Core Team. Retrieved .