Research Tools

Binomial Distribution Calculator

Binomial Distribution Calculator

Binomial Distribution Calculator
Exact and cumulative probabilities for independent Bernoulli trials
Live calculation
InputsX ~ Bin(n, p)
Number of trials (n)1 to 10,000
Probability of success (p)30.00%
Probability questionChoose the event
Number of successes (k)0 to n
Lower successes (a)Inclusive
Upper successes (b)Inclusive
ResultExact probability
Probability
0.191639
19.1639%
P(X = 6), where n = 20 and p = 0.3
Mean, μ = np
6
Variance, σ²
4.2
Std. deviation, σ
2.04939
Expected failures
14
Most likely X
6
Complement
0.808361
Distribution viewTarget event highlighted
For large n, adjacent outcomes are grouped into display bins so the chart remains readable; the numeric probability is still calculated from the full distribution.
P(X = k)0.191639
P(X ≤ k)0.608010
P(X ≥ k)0.583629
How this is calculated

The binomial model applies when there is a fixed number of independent trials, each trial has two outcomes, and the success probability stays constant from trial to trial.

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

Core formula: P(X = x) = C(n,x)px(1-p)n-x, with C(n,x) = n!/[x!(n-x)!]. Cumulative events are obtained by summing the relevant binomial probabilities. The calculator uses a numerically stable regularized incomplete-beta evaluation for cumulative tails and log-gamma arithmetic for individual probabilities.

This Binomial Distribution Calculator helps researchers, students, analysts, and instructors calculate exact and cumulative binomial probabilities for a fixed number of independent trials. Enter the number of trials, probability of success, and the outcome condition to find probabilities such as exactly, at most, at least, fewer than, more than, or between selected numbers of successes, with live distribution visuals and supporting summary statistics.

About the author

Muhammad Hassan

Muhammad Hassan writes about research design, academic methods and data-analysis concepts for ResearchMethod.net. His work focuses on presenting methodological topics in clear language for students and early-career researchers. Articles are developed from recognized methodological literature and official software documentation.