🧮
🧮 Math & statistics

Geometric Distribution Calculator (trials until first success)

Results update as you type.

Your numbers

Understanding the geometric distribution calculator — concept and principle

The geometric distribution answers "on which trial does the first success happen?" when you repeat independent trials, each succeeding with the same probability p. Examples: how many calls a salesperson makes before the first sale, how many attempts until a part passes inspection, how many packs you open before finding a specific card, or how many rolls until a six appears. The calculator gives the probability that the first success occurs exactly on trial k, the probability that it occurs by trial k, and the expected number of trials.

Geometric distribution: first success on try 3Two misses at 0.8 then a hit at 0.2: 0.8 × 0.8 × 0.2 = 0.128. Success by try 3 is 1 − 0.8³ = 0.488; the average is 5 tries.First hit on the 3rd try (20% each)Try 1miss0.8×Try 2miss0.8×Try 3hit!0.20.8 × 0.8 × 0.2 = 0.128first success exactly on try 3by try 31 − 0.8³ = 0.488tries on average1 ÷ 0.2 = 5
Multiply the misses before the first hit; “by then” is one minus all misses.

How it is calculated

Here X counts the trials up to and including the first success (X = 1, 2, 3, …).

The principle

For the first success to fall on trial k, the first k − 1 trials must all fail and trial k must succeed. Independence lets you multiply the probabilities: (1 − p) × (1 − p) × … × p. For the cumulative probability it is easier to look at the complement: "no success in k trials" has probability (1 − p)ᵏ, so "success by trial k" is 1 minus that. The geometric distribution is memoryless: after any number of failures, the chance of needing j more trials is exactly what it was at the start. Past failures do not make a success "due".

Worked example

  1. Defaults: p = 0.2, k = 3.
  2. P(X = 3) = 0.8² × 0.2 = 0.64 × 0.2 = 0.128.
  3. P(X ≤ 3) = 1 − 0.8³ = 1 − 0.512 = 0.488.
  4. Expected trials = 1 ÷ 0.2 = 5.

So with a 20% chance per try, there is a 12.8% chance the first success comes exactly on the third try, a 48.8% chance it has come by then, and on average it takes 5 tries.

How P(X = k) changes with Trial k of first successHow P changes with Trial k of first succ…0.050.10.150.20.250.751.52.2533.754.56Example: 0.128Trial k of first success
Each point is the calculator re-run with only “Trial k of first success” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Trial k of first successP(X = k)
0.750.2114742527
1.50.1788854382
2.250.1513186574
30.128
3.750.1082748174
4.50.0915893444
60.065536

How to read the result

The single most likely value is always k = 1, and probabilities decrease by the factor 1 − p each step. To plan with confidence, solve 1 − (1 − p)ᵏ ≥ target for k: with p = 0.2 you need 11 tries for a 90% chance (1 − 0.8¹¹ ≈ 0.914) and 14 tries for 95%. The spread is large: the standard deviation is √(1 − p)/p ≈ 4.47 tries here.

Common mistakes

Keep in mind: The model requires independent trials with constant p. If the odds change from try to try, the real waiting time can be very different.

Frequently asked questions

What is the probability of needing more than k trials?

P(X > k) = (1 − p)ᵏ, for example 0.8³ = 0.512 in the example.

How is it related to the binomial distribution?

The binomial counts successes in a fixed number of trials; the geometric counts trials until a fixed number (one) of successes.

What is the continuous counterpart?

The exponential distribution, which is also memoryless and models waiting times in continuous time.

Sources: Sheldon M. Ross, A First Course in Probability, Pearson — geometric random variables · William Feller, An Introduction to Probability Theory and Its Applications, Vol. 1, Wiley

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →