CalcWorldHub
Probability · CalcWorldHub

Binomial Variance: How Spread Changes with Trials and Probability

A mean gives the center of a binomial count, but it does not describe how widely outcomes can vary. Variance measures squared spread around the expected count. It helps compare the dispersion implied by two trial plans, provided both use the same independent-trial model and the same meaning of success.

Open calculator
A formula diagram shows the binomial variance as n times p times its complementary failure probability.

Share this article

The trial count scales the product of success and failure probabilities.
Variance components

Why spread matters after the mean

Variance is useful when planning around the possibility that an observed count will differ from its average. It is expressed in squared count units, so it is less intuitive than a standard deviation. Still, it is a natural quantity for probability theory and for combining independent sources of variability in later calculations.

Enter a count and a probability

For a binomial model, enter n as the number of trials and p as the decimal chance of success on each trial. The complementary probability is q = 1−p. The valid model range is 0≤p≤1 with whole-number n; if a field accepts a numeric value outside that range, do not treat the resulting arithmetic as a valid binomial variance.

Build variance from p and its complement

The formula is Var(X)=n p (1−p). A single Bernoulli trial has variance p(1−p), and independent trial variances add, which gives n times that amount. The variance reaches its largest value for a fixed n when p is one-half and shrinks toward zero as p approaches either endpoint, reflecting more predictable all-failure or all-success outcomes.

Keep squared units distinct

Because the unit is successes squared, do not describe the variance as the number of successes or as a probability. Taking its square root returns the standard deviation in count units. The variance is the quantity to use in formulas that explicitly require variance; for a plain-language description of typical spread, the standard deviation is often easier to explain.

Compare scenarios without mixing causes

A larger n can increase the absolute variance even when p stays constant, because more independent opportunities are being combined. That does not automatically mean the success rate is more variable: the proportion X/n has a different scale and variance. Keep count variability separate from uncertainty in the underlying probability p.

This population-model variance is not the sample variance computed from a table of observed groups. The sample statistic describes the spread in the data you collected; n p (1−p) is the spread implied by a particular binomial probability model. They can differ because of sampling noise, a poor choice of p, or assumptions that do not match the process. State which quantity you are reporting, especially when a variance is passed into another formula or compared with historical measurements.

For independent groups with different probabilities, the variances of their counts can be added, but replacing them with one pooled p may not preserve the same variance. If the trials share a common cause, covariance terms may also matter. The calculator is intentionally narrower: it returns the closed-form variance for one binomial count with one n and one p.

Worked examples

Variance is shown in squared success-count units; take its square root only when a count-scale spread is needed.

Variance with a one-in-five success chance

Inputs: Trials n = 80; probability p = 0.20; q = 1 − p = 0.80.

Calculation: Var(X) = n × p × q = 80 × 0.20 × 0.80 = 12.8 successes².

The modeled count variance is 12.8 successes squared.

Variance at an even success/failure split

Inputs: Trials n = 200; probability p = 0.50; q = 0.50.

Calculation: Var(X) = 200 × 0.50 × 0.50 = 50 successes².

At p = 0.5, each trial has the greatest binomial variance for this fixed trial count.

The variance formula is n multiplied by p and one minus p.
Binomial variance

Limits of the binomial spread formula

When comparing two scenarios, first make sure the trials and observation windows are comparable. A change in n changes the amount of opportunity; a change in p changes the event rate. If both move, the variance change cannot be attributed to one cause without holding the other input fixed in a separate comparison.

This closed-form result assumes independent trials with a common p. Correlation, sampling without replacement, or heterogeneity in the success chance can change the spread even when the average looks similar. The calculation also treats p as known; uncertainty from estimating p is a separate layer that is not included in the displayed binomial variance.

Sources and further reading

Share this article

Browse all articles · Calculator: Binomial variance calculator