Skip to content
Statistics

Binomial Distribution Calculator

Compute binomial probabilities for any number of trials and success probability. Choose exact mode P(X = k), cumulative mode P(X ≤ k / P(X ≥ k)), or interval mode P(r0 ≤ X ≤ r1). Get the mean, variance, standard deviation, skewness, and excess kurtosis, plus a full probability table and bar chart.

Your details

How many independent trials are run. Must be a whole number (0-1000).
trials
The chance of success on a single trial, between 0 and 1.
Exact gives P(X = k) plus all cumulative variants. Interval gives P(r0 <= X <= r1) and its complement.
The exact number of successes to target (0 to n).
successes
P(X = k)
0.205078

Probability of exactly k successes.

P(X <= k)0.376953
P(X >= k)0.828125
P(X < k)0.171875
P(X > k)0.623047
Mean (mu)5
Variance (sigma^2)2.5
Std deviation (sigma)1.5811
Skewness0
Excess kurtosis-0.2
00.510510
Successes (k)
  • P(X = k)
  • P(X <= k)

The chance of exactly 4 successes in 10 trials is 20.508%.

  • On average you would expect 5 successes across 10 trials (mean = np).
  • There is a 37.7% chance of 4 or fewer, and a 82.81% chance of 4 or more.
  • The distribution is skewed symmetric (p near 0.5); skewness = 0.
  • Excess kurtosis is -0.2: the tails are flatter than a normal curve (platykurtic).

Next stepSwitch to Interval mode to find the probability of a range like P(3 <= X <= 7), or adjust p to model a biased coin.

Full distribution table: n = 10, p = 0.5

kP(X = k)P(X <= k)P(X >= k)
00.0009770.0009771.000000
10.0097660.0107420.999023
20.0439450.0546870.989258
30.1171870.1718750.945313
40.2050780.3769530.828125
50.2460940.6230470.623047
60.2050780.8281250.376953
70.1171870.9453130.171875
80.0439450.9892580.054687
90.0097660.9990230.010742
100.0009771.0000000.000977

Formula

P(X=k)=(nk)pk(1p)nk,μ=np,σ2=np(1p),γ1=12pnp(1p),γ2=16p(1p)np(1p)P(X = k) = \binom{n}{k} p^{k}(1-p)^{n-k}, \quad \mu = np, \quad \sigma^{2} = np(1-p), \quad \gamma_1 = \frac{1-2p}{\sqrt{np(1-p)}}, \quad \gamma_2 = \frac{1-6p(1-p)}{np(1-p)}

Worked example

For n = 10, k = 4, p = 0.5: C(10,4) = 210, P(X = 4) = 210 x 0.5^4 x 0.5^6 = 210/1024 = 0.2051 (20.5%). Mean = 5, variance = 2.5, sigma = 1.581. Skewness = (1 - 2x0.5)/1.581 = 0 (symmetric). Excess kurtosis = (1 - 6x0.5x0.5)/2.5 = (1 - 1.5)/2.5 = -0.2 (slightly flatter than normal).

What the binomial distribution describes

The binomial distribution models the number of successes in a fixed number of independent trials, where every trial has exactly two outcomes: success or failure. Each trial carries the same probability of success p. Classic examples include the number of heads in twenty coin flips, the number of defective items in a production batch, the number of patients who respond to a treatment in a clinical trial, or the number of website visitors who click a link. Four conditions must hold: the number of trials n is fixed in advance, the trials are independent of one another, each trial has the same success probability p, and each outcome is binary. When these hold, the entire distribution is determined by just two parameters, n and p.

Exact and interval probability modes

Exact mode computes P(X = k): the probability of getting precisely k successes. The formula multiplies the binomial coefficient C(n, k), which counts the distinct arrangements of k successes among n trials, by p^k x (1 - p)^(n - k), the probability of any one arrangement. This calculator also reports the four cumulative variants: P(X <= k), P(X >= k), P(X < k), and P(X > k). Interval mode computes P(r0 <= X <= r1): the probability that the number of successes falls anywhere between r0 and r1, inclusive, along with its complement. This is useful when you care about a range of outcomes rather than a single value, for example the probability that a batch has between 5 and 15 defectives.

Mean, variance, skewness and excess kurtosis

Because a binomial count is the sum of n independent Bernoulli trials, expectations and variances add: the mean is np and the variance is np(1 - p). The standard deviation is the square root of the variance. Two higher-order moments characterise the shape. Skewness, gamma1 = (1 - 2p) / sqrt(np(1 - p)), measures asymmetry: it is zero when p = 0.5 (perfectly symmetric), positive when p < 0.5 (right tail is heavier), and negative when p > 0.5 (left tail is heavier). Excess kurtosis, gamma2 = (1 - 6p(1 - p)) / (np(1 - p)), measures how peaked the distribution is compared with a normal curve: a negative value (platykurtic) means the distribution is flatter and has lighter tails, which is common for binomial distributions with moderate p. As n grows large the binomial distribution is well approximated by a normal distribution with the same mean and variance.

Reading the distribution table and chart

The full distribution table below the calculator lists every possible outcome from k = 0 to k = n, with the exact probability P(X = k), the cumulative probability P(X <= k), and the survival probability P(X >= k). Use it to spot which outcomes are most likely (the modal values, near the mean), and to read off cumulative probabilities without re-entering inputs. The chart plots P(X = k) as a bar series and P(X <= k) as a line so you can see the shape of the distribution and where your target k falls relative to the bulk of the probability. Both the table and chart update automatically when you change n or p.

When to use the binomial vs other distributions

When n is large (above about 30) and p is moderate (say 0.1 to 0.9), the normal approximation with mean np and variance np(1 - p) is usually accurate to within a fraction of a percent, especially after applying a continuity correction. When n is large and p is very small so that np stays modest (below about 10), the Poisson distribution with rate lambda = np is a convenient approximation. Use the negative binomial distribution instead when you fix the number of successes and ask how many trials are needed. Use the hypergeometric distribution when sampling is done without replacement from a finite population, where the independence assumption breaks down.

Binomial distribution formulas at a glance

QuantityFormulaNotes
P(X = k)C(n,k) x p^k x (1-p)^(n-k)Exact probability (pmf)
P(X <= k)sum_{i=0}^{k} P(X=i)Cumulative distribution function (cdf)
P(r0 <= X <= r1)sum_{i=r0}^{r1} P(X=i)Interval probability
Mean (mu)npExpected number of successes
Variance (sigma^2)np(1-p)Spread of the distribution
Std deviation (sigma)sqrt(np(1-p))Typical deviation from the mean
Skewness (gamma1)(1 - 2p) / sigma0 when p = 0.5; positive when p < 0.5
Excess kurtosis (gamma2)(1 - 6p(1-p)) / (np(1-p))Negative for most binomials (platykurtic)

All formulas use n = number of trials, p = probability of success, k = target successes.

Frequently asked questions

When can I use the binomial distribution?

Use the binomial distribution when you have a fixed number of trials n, each trial is independent of the others, every trial can only result in success or failure, and the probability of success p is the same on every trial. Coin flips, free-throw attempts, pass/fail quality inspections, and survey responses (yes/no) all fit. If sampling is without replacement from a small population, the hypergeometric distribution is more accurate. If the success probability changes from trial to trial, the binomial model does not apply.

What is the difference between P(X = k) and P(X <= k)?

P(X = k) is the probability of getting exactly k successes, a single bar of the histogram. P(X <= k) is the cumulative probability of getting k or fewer successes, computed by adding up all the individual probabilities from 0 through k. This calculator shows both, plus P(X >= k), P(X < k), P(X > k), and the interval probability P(r0 <= X <= r1) in interval mode.

What does skewness tell me about a binomial distribution?

Skewness measures asymmetry. A binomial distribution is perfectly symmetric when p = 0.5, giving skewness = 0. When p < 0.5, there is a longer right tail because most outcomes are clustered near zero: skewness is positive. When p > 0.5, the left tail is longer and skewness is negative. The formula is (1 - 2p) / sqrt(np(1 - p)), so skewness shrinks toward zero as n increases even for a fixed p.

What is excess kurtosis and why is it often negative for binomials?

Excess kurtosis, (1 - 6p(1-p)) / (np(1-p)), measures how peaked the distribution is compared with a normal distribution (which has excess kurtosis 0). A negative value (platykurtic) means the distribution is flatter than a normal curve with the same mean and variance, with lighter tails. The binomial distribution has negative excess kurtosis unless p is very close to 0 or 1 and n is small.

Why are the mean and variance np and np(1-p)?

A binomial count is the sum of n independent Bernoulli trials, each equal to 1 for a success and 0 for a failure. Each trial has mean p and variance p(1 - p). Because expectations and variances of independent random variables add, the total mean is np and the total variance is np(1 - p). The standard deviation is the square root of the variance.

How do I use interval mode?

Select "Interval: P(r0 <= X <= r1)" from the mode dropdown, then enter the lower bound r0 and upper bound r1. The calculator sums P(X = k) for all k from r0 to r1, giving you the probability that the number of successes falls in that range. The complement, P(X < r0) + P(X > r1), is also shown. This is useful when you want the probability that a batch has between 5 and 15 defectives, or that a team wins between 3 and 6 games in a series.

Sources

Written by Dr. Hannah Brandt, PhD Statistician · Munich, Germany

Applied statistician translating rigorous probability theory into clear, accurate tools for researchers and practitioners.

Search 3,500+ calculators

Loading search…