Logo

MonoCalc

/

Geometric Distribution Calculator

Math
Probability of success on a single trial, 0 < p ≤ 1
Which quantity does k represent?

Show Steps

Show Chart

Show CDF Overlay

Show Table

P(X = 4)

0.1024
Probability
0.1024
Percentage
10.2400%
Complement
0.8976
Complement %
89.7600%

There is a 10.2400% chance that the first success occurs on exactly trial 4.

Distribution Statistics (p = 0.2, trials parameterization)

Mean (1/p)
5.0000
Variance ((1−p)/p²)
20.0000
Std Dev (√Variance)
4.4721
Mode
1
Skewness
2.0125
Excess Kurtosis
6.0500
Memoryless Property
The geometric distribution is memoryless: P(X ≥ m + n | X ≥ m) = P(X ≥ n). If the first success hasn't happened after m trials, the probability of needing n more trials is exactly the same as it was at the start — prior failures don't change future odds.

PMF Bar Chart

13579111315171921230.0000.1000.200

Selected event

Mean

PMF / CDF / Survival Table (k = 123)

kP(X = k)P(X ≤ k)P(X ≥ k)
10.20000.20001.0000
20.16000.36000.8000
30.12800.48800.6400
40.10240.59040.5120selected
50.08190.67230.4096
60.06550.73790.3277
70.05240.79030.2621
80.04190.83220.2097
90.03360.86580.1678
100.02680.89260.1342
110.02150.91410.1074
120.01720.93130.0859
130.01370.94500.0687
140.01100.95600.0550
150.00880.96480.0440
160.00700.97190.0352
170.00560.97750.0281
180.00450.98200.0225
190.00360.98560.0180
200.00290.98850.0144
210.00230.99080.0115
220.00180.99260.0092
230.00150.99410.0074

About This Tool

Geometric Distribution Calculator – Trials to First Success

The geometric distribution is a discrete probability distribution that models the number of independent Bernoulli trials needed to obtain the first success, given a constant per-trial success probability p. It answers questions like: how many sales calls will it take to land the first sale, how many coin flips until the first heads, or on which inspection the first defective part turns up. This calculator computes the exact probability mass function, cumulative probability, upper-tail probability, and key distribution statistics for any success probability and trial count.

Two Equivalent Parameterizations

Statisticians describe the geometric distribution in two interchangeable ways. The trials-until-first-success version counts the trial number on which the first success occurs, with support k = 1, 2, 3, … — its PMF is P(X = k) = (1 − p)^(k − 1) × p. The failures-before-first-success version instead counts only the failures that preceded the success, with support k = 0, 1, 2, … and PMF P(X = k) = (1 − p)^k × p. Both describe the same underlying experiment and differ only by a shift of one trial, so this calculator lets you switch between them and automatically adjusts the formulas and valid input range.

Exact, Cumulative, Upper-Tail, and Interval Probabilities

The exact mode gives P(X = k), the probability the first success lands on precisely the k-th trial. The cumulative mode gives P(X ≤ k), computed as 1 − (1 − p)^k for the trials version. The upper-tail (survival) mode gives P(X ≥ k) — the probability that at least k trials are needed, equal to (1 − p)^(k − 1). The interval mode combines two cumulative probabilities to compute P(a ≤ X ≤ b) for a bounded range of trial counts.

Mean, Variance, and the Memoryless Property

For the trials parameterization, the expected number of trials until the first success is E[X] = 1/p; for the failures parameterization it's E[X] = (1 − p)/p. Both share the same variance, Var(X) = (1 − p)/p². A defining feature of the geometric distribution is that it is memoryless: the probability of needing n more trials doesn't depend on how many trials have already failed. This is the only discrete distribution with this property, and it makes the geometric model especially convenient for reliability and waiting-time problems.

When is the geometric model appropriate?
The geometric distribution applies when trials are independent, the success probability p is constant across trials, and you are counting trials up to (and including, or excluding) the first success. If p changes between trials, or you need the number of trials until the r-th success rather than the first, consider the negative binomial distribution instead.

Relationship to Other Distributions

The geometric distribution is a special case of the negative binomial distribution with r = 1required success. It is also the natural "waiting time" counterpart to the binomial distribution: binomial counts successes across a fixed number of trials, while geometric counts trials needed for a fixed number (one) of successes. Understanding this relationship helps when choosing the right model for quality control, reliability testing, or conversion-rate analysis.

How This Calculator Works

Enter the success probability p as a decimal between 0 and 1, choose your parameterization and calculation mode, then supply the trial or failure count. The calculator evaluates the closed-form PMF and CDF formulas using log-space arithmetic for numerical stability when p is very small or k is very large, and displays the result alongside a probability table and an interactive PMF bar chart with an optional CDF overlay.

Common Use Cases

Quality-control analysts use the geometric distribution to estimate how many units must be inspected before finding a defect; sales and marketing teams model the expected number of contacts before a conversion; reliability engineers estimate the number of test cycles before a first failure; and students use it to build intuition for waiting-time problems in introductory probability courses.

Frequently Asked Questions

Is the Geometric Distribution Calculator free?

Yes, Geometric Distribution Calculator is totally free :)

Can I use the Geometric Distribution Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Geometric Distribution Calculator?

Yes, any data related to Geometric Distribution Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is the geometric distribution?

The geometric distribution models the number of independent Bernoulli trials needed to get the first success, given a constant per-trial success probability p. Classic examples include the number of sales calls until the first sale, the number of coin flips until the first heads, or the inspection number on which the first defective part is found.

How does this Geometric Distribution Calculator work?

Enter the success probability p, choose a parameterization (trials until first success, or failures before first success), select a calculation mode (Exact, Cumulative, Upper Tail, Interval, or Summary), and provide the required k value(s). The calculator applies the closed-form PMF/CDF formulas and returns the probability, distribution statistics, a probability table, and a PMF bar chart.

What is the difference between the two parameterizations?

"Trials until first success" counts the trial number on which the first success occurs (support k = 1, 2, 3, …), while "failures before first success" counts only the failures that precede it (support k = 0, 1, 2, …). Both describe the same experiment — they differ only by a shift of one trial — so pick whichever matches how your problem is phrased.

What does the memoryless property mean?

The geometric distribution is the only discrete distribution with the memoryless property: P(X ≥ m + n | X ≥ m) = P(X ≥ n). In practice, this means that if the first success hasn't happened yet, the probability of needing n more trials is the same regardless of how many trials have already failed — past failures don't change future odds.

How is the geometric distribution related to the binomial and negative binomial distributions?

The geometric distribution is a special case of the negative binomial distribution where you stop after exactly one success (r = 1). It is also the "waiting time" counterpart to the binomial distribution, which instead counts the number of successes in a fixed number of trials rather than the number of trials needed for a fixed number of successes.

What are the accuracy limits of this calculator?

Calculations use log-space arithmetic (log1p/exp) for the (1 − p)ⁿ terms, keeping results numerically stable even when p is very small or k is very large. k is capped at 100,000 and the chart/table range is capped at 200 rows to keep the visualization readable and the page responsive.