Geometric Distribution P(X = k) Calculator
Enter a success probability p and a trial number k to get (1 - p)^(k-1) · p, the chance that the first success falls exactly on trial k.
P(X=k)
—
Geometric P(X = k): trials until first success
The geometric distribution tells you how many independent Bernoulli trials it takes to land the first success, when each trial succeeds with probability p: P(X = k) = (1 − p)^(k − 1) · p, for k ∈ {1, 2, 3, …}. Its mean is 1/p and its variance is (1 − p)/p². Among the discrete distributions, it is the only one that is memoryless: how many times you have already failed says nothing about what comes next. Say you flip a fair coin until heads shows up. The chance it first happens on flip 3 is 0.5·0.5·0.5 = 0.125.
Applications
Reliability engineers use it for the waiting time until the first failure. In quality control it gives the position of the first defective item in a sample. It also covers everyday cases like the number of rolls until a die shows a 6, the attempts before a network connection goes through, or how many job applications you send before the first yes.
FAQ
Does k start at 0 or 1? You will see both conventions in textbooks. Here X is the trial number on which the first success lands, so k ≥ 1. The other version counts the failures that came before the success and starts at 0.
What does memoryless mean? P(X > m + n | X > m) = P(X > n). Once m failures are behind you, the trials still ahead follow the very same distribution as if you were starting over. Luck does not build up.
How does it relate to the negative binomial? The geometric is just the negative binomial with r = 1, the case where you wait for a single success. Add up r independent geometrics and you get a negative binomial.
What if p = 0? Then the first success never comes and the distribution is degenerate. At the other extreme, p = 1 means the first trial always succeeds, so P(X = 1) = 1.
Related Tools
Arithmetic Geometric Harmonic Mean Calculator
Computes arithmetic, geometric and harmonic means simultaneously for a list of positive numbers separated by comma.
Geometric Progression
Calculate the general term and sum of a Geometric Progression. Enter the first term, ratio and number of terms.
Geometric Mean Calculator
Calculate the geometric mean of a list of positive numbers, ideal for growth rates, returns and indexes. Enter the values and see the result instantly.
Geometric Asian Call (Kemna-Vorst)
Computes the price of a geometric-average Asian call option with the Kemna-Vorst closed form. Asian options pay based on the average price over the period, which reduces the impact of expiry manipulation and makes the premium cheaper. The geometric-average version has an exact solution: it's a Black-Scholes with volatility adjusted to σ/√3 and an adapted cost of carry. Enter the spot price, the strike, the interest rate, the term and the volatility.
Wedding Gifts by Number of Guests
Estimates average number of wedding gifts received based on guest count.
ICMS by Brazilian State
Computes ICMS on sale using internal rate per state.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.