Part of the Maths & Statistics suite · 235 calculators

Bernoulli Distribution Calculator

The simplest distribution of all — one trial, two outcomes — with its mean, variance, entropy and the value of n trials in a row.

A Bernoulli trial has one parameter p, the chance of success.

%
Results update as you type
Results
Mean (expected value)
0.3
Variance
Standard deviation
Entropy
Skewness
P(success on all n trials)
P(no successes in n trials)
Odds of success
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About bernoulli distribution

How the bernoulli distribution calculator works

A Bernoulli trial has one parameter p, the chance of success. Its mean is p and its variance p(1 − p), which peaks at p = 0.5: a fair coin is the most unpredictable single trial there is.

Everything binomial is built from it — n independent Bernoulli trials summed give the binomial distribution, which is why the mean np and variance np(1 − p) look so familiar.

Formula: mean = p; variance = p(1 − p); H = −p log₂ p − q log₂ q

Worked examples

InputsMean (expected value)Note
p = 30%0.3variance 0.21, entropy 0.881 bits
A fair coin0.5variance 0.25, entropy exactly 1 bit
A rare event0.01variance 0.0099, entropy 0.081 bits

Frequently asked questions

What is a Bernoulli trial?

A single experiment with two outcomes — success or failure — and a fixed probability p.

How does it relate to the binomial?

A binomial variable is the sum of n independent Bernoulli trials. That is where np and np(1−p) come from.

Why is the variance largest at 50%?

Because that is where the outcome is least predictable. At p = 0.01 almost every trial fails, so there is little to vary.

What is the entropy for?

It measures how much information one trial reveals. A fair coin gives exactly one bit; a 99% biased coin gives only 0.08.

Is a coin flip a Bernoulli trial?

Yes — the canonical one, with p = 0.5.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.