Skip to content

Binomial Distribution Calculator

Exact in log space, so large n still works.

Work out Binomial Distribution. Exact in log space, so large n still works. Refuses out-of-range input instead of guessing.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

Probability of exactly 5 successes

24.6094%

62.305% of getting that many or fewer · 62.305% that many or more

Exactly 524.609375%
5 or fewer62.304688%
5 or more62.304688%
Expected successes5
Most likely count5
Variance2.5
Standard deviation1.5811
Normal approximation validYes — np and n(1−p) both exceed 5

The binomial distribution counts successes across a fixed number of independent trials with a constant probability. Independence and constancy are the assumptions that fail first in practice — drawing without replacement changes p as you go, which is a hypergeometric problem rather than a binomial one. The probabilities are computed in log space, through the log-gamma function. Computing n-choose-k directly overflows a double at around n = 1030, which is well inside the range people actually ask about. The normal approximation flag follows the usual rule that np and n(1−p) should both be at least 5. Below that the distribution is too skewed for a symmetric bell to stand in for it, and the exact figures above are the ones to use.

How the Binomial Distribution Calculator works

Exact binomial probabilities — exactly k, at most k, at least k — with the mean, variance and a check on whether the normal approximation applies. Computed through log-gamma, so n in the thousands still returns a real answer.

Also known as: probability of exactly k successes · coin flip probability calculator · n choose k probability · at least 3 out of 10 chance

Frequently asked questions

When does the binomial distribution apply?

A fixed number of independent trials, each with the same probability of success, and you are counting successes. Independence and a constant probability are the assumptions that fail first in practice.

Why is drawing cards not binomial?

Because drawing without replacement changes the probability as you go. That is a hypergeometric problem. The binomial requires the probability to stay constant across every trial.

Why compute in log space?

Because n-choose-k overflows a double at around n = 1030, which is well inside the range people ask about. Working through log-gamma keeps n in the thousands perfectly workable.

When can I use the normal approximation?

The usual rule is that np and n(1−p) should both be at least 5. Below that the distribution is too skewed for a symmetric bell to stand in for it, and the exact figures are the ones to use.

What is the most likely number of successes?

The mode, which is the floor of (n+1)p. It is usually but not always the same as the rounded mean, and the two can differ by one.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/binomial-distribution-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Binomial Distribution Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/binomial-distribution-calculator" style="color:#64748b">Binomial Distribution Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators