Skip to content
100% local

Binomial distribution

Calculate binomial distribution probabilities for a set number of trials.

Input
0.5
Output

Binomial distribution

Enter one or more numbers of successes, one per line, and this tool returns the probability of getting exactly that many successes out of a fixed number of trials — the classic binomial distribution question behind coin flips, A/B test conversions, defect rates and pass/fail sampling. It also prints the full probability table for every possible outcome, with a simple bar chart so the shape of the distribution is visible at a glance.

Set the number of trials (n) and the probability of success on a single trial (p), then choose whether each line reports the exact probability, or the cumulative probability of at most or at least that many successes. "Independent trials" toggles the model between the standard binomial (sampling with replacement, the usual assumption) and a hypergeometric approximation for sampling without replacement from a finite population, whose size and success count are reported alongside the result. "Order matters" switches from the probability of any arrangement of the successes to the probability of one specific ordered sequence — labeled P* so the two are never confused.

The distribution table is capped by the row limit to keep the output readable when the number of trials is large; when rows are hidden a ⚠ marker reports how many were left out, and the marker can be turned off. The column separator is yours to choose, and every row is plain text, so the result pastes cleanly into a spreadsheet or report. Very long batches of success-count queries — thousands of lines — are handled without slowing down the page.

Everything runs locally in your browser: the numbers you type are never uploaded anywhere. Copy the result, download it as a .txt file, or send the output back into the input to refine your query further.

FAQ

What is the binomial distribution?
It describes the number of successes in a fixed number of independent trials, each with the same probability of success — like counting heads in a series of coin flips.
What is the difference between "exactly", "at most" and "at least"?
"Exactly k" is the probability of that precise count. "At most k" adds up the probabilities for 0 through k. "At least k" adds up the probabilities for k through the number of trials.
What does P* mean in the results?
P* appears when "Order matters" is on. It is the probability of one specific ordered sequence of outcomes, rather than the probability of any arrangement with that many successes.
Why does the table stop before the last row sometimes?
The row limit option caps how many rows are printed so large numbers of trials stay readable. A ⚠ marker shows how many rows were left out; raise the limit to see more.
Is my data uploaded anywhere?
No. Every calculation runs entirely in your browser — the numbers you enter never leave your device.