Introduction
When an event can happen repeatedly, a natural question is how many attempts it may take before it happens for the first time. The geometric distribution gives a mathematical answer when each attempt has the same chance of success and attempts are independent. It describes both the probability of waiting a particular number of attempts and the average wait across many repeated situations.
- The basic idea: count attempts until success
- How to calculate the probability
- Probability of waiting longer than a given number of attempts
- What the average waiting time means
- Why the same chance applies after a failure
- The assumptions behind the model
- A second convention: count failures before success
- How it differs from related distributions
- Where the geometric distribution is useful
- Conclusion
The basic idea: count attempts until success
The geometric distribution models a sequence of trials with two possible outcomes: success or failure. Here, “success” simply means the outcome being tracked; it does not have to be a desirable result. The distribution answers questions such as: What is the probability that the first success occurs on attempt four? How many attempts should we expect to wait?
For the standard version, let X be the number of attempts up to and including the first success. If the probability of success on each attempt is p, then X follows a geometric distribution with parameter p. The parameter must be greater than zero and no more than one.
For example, imagine a fair six-sided die is rolled repeatedly, and a roll of 6 is defined as a success. Each roll has a success probability of 1/6. The geometric distribution can describe the probability that the first 6 appears on a particular roll, as well as the expected number of rolls needed.
How to calculate the probability
For the first success to occur on attempt k, the first k − 1 attempts must be failures, and attempt k must be a success. If trials are independent and the success probability stays at p, the failure probability on each trial is 1 − p. Multiplying the required probabilities gives:
P(X = k) = (1 − p)k − 1p, for k = 1, 2, 3, and so on.
The exponent is one less than the attempt number because success on attempt k requires exactly k − 1 failures before it. In the die example, the probability that the first 6 appears on the fourth roll is (5/6)3 × (1/6), or about 9.65%.
The probability that the first success occurs on the very first attempt is simply p. The probability it occurs on the second attempt is the probability of a failure followed by a success: (1 − p)p. Later probabilities continue in the same pattern, shrinking as more failures must occur first.
Probability of waiting longer than a given number of attempts
Sometimes the question is not about the exact attempt of the first success, but whether success has happened by a certain point. The probability of getting at least one success in the first n attempts is:
P(X ≤ n) = 1 − (1 − p)n.
The expression (1 − p)n is the probability that all of the first n attempts fail. Subtracting it from 1 gives the probability that at least one succeeds. For a 1-in-6 chance on each die roll, the probability of seeing a 6 within three rolls is 1 − (5/6)3, about 42.1%.
The same idea gives the chance of waiting beyond attempt n: P(X > n) = (1 − p)n. This is useful for questions such as, “What is the chance there is still no success after ten attempts?” It also shows that the distribution has a tail: if p is less than 1, there is a positive chance of any particular finite number of consecutive failures.
What the average waiting time means
The mean, or expected value, of the standard geometric distribution is:
E(X) = 1/p.
This is the long-run average number of attempts until the first success across many repetitions of the same process. If success has probability 1/6 on each roll, the expected waiting time is six rolls. It does not mean that a 6 is guaranteed to appear by the sixth roll, or that every sequence will take six rolls. Some first successes happen sooner, while others take longer.
That distinction matters because an average is a summary across repeated runs, not a schedule for an individual run. With a small success probability, long waits can occur even though the mean is finite. For instance, if a success chance is 1/100 per independent attempt, the expected number of attempts is 100, but a particular wait could be substantially shorter or longer.
The variance, a measure of how spread out values tend to be around the mean, is (1 − p)/p2. The standard deviation is the square root of the variance. These measures help describe how variable the waiting time can be. When success is relatively rare, the distribution can be quite spread out compared with its average.
Why the same chance applies after a failure
A notable feature of the geometric distribution is the memoryless property. In this model, if the first success has not happened yet, the probability of success on the next attempt remains p. Previous failures do not change the probability for a future attempt, because the trials are assumed to be independent and to have an unchanged success probability.
For example, if a fair die has not shown a 6 after five rolls, the probability that the next roll is a 6 is still 1/6. The die does not “owe” a 6 because earlier rolls were not successful. The probability of at least one 6 over several future rolls can be calculated from those future rolls alone, provided the assumptions of the model continue to apply.
Memorylessness is a property of the mathematical model, not a claim that every real-world process works this way. If a process changes with time, or if earlier outcomes affect later ones, the geometric distribution may not be suitable. A machine becoming more likely to fail after repeated use, for example, would not fit a model with a constant success probability unless that changing risk were deliberately ignored for a simplified analysis.
The assumptions behind the model
The geometric distribution is useful when three conditions are reasonable. First, each trial has a clearly defined success or failure. Second, the chance of success is the same on every trial. Third, the outcomes of separate trials are independent, meaning that one trial does not alter the probability of another.
Consider repeatedly checking whether a randomly selected item has a particular feature. A geometric model may be reasonable if the selection process gives each check the same probability and the checks do not affect one another. If items are drawn from a small collection without replacement, however, the probability changes as items are removed. In that situation, the constant-probability assumption may fail.
In practice, the model often acts as an approximation. The important question is whether its assumptions are suitable for the situation and the level of detail needed. If the probability changes substantially from attempt to attempt, or outcomes influence one another, another model may represent the process more accurately.
A second convention: count failures before success
Some explanations define the geometric random variable as the number of failures before the first success rather than the number of attempts up to and including success. Call that count Y. Its possible values begin at zero: success on the first attempt means zero preceding failures.
Under this convention, P(Y = j) = (1 − p)jp, for j = 0, 1, 2, and so on. The expected number of failures before success is E(Y) = (1 − p)/p. Since the attempt of the first success is one more than the number of earlier failures, X = Y + 1.
Both definitions describe the same waiting process. The difference is only what is being counted. Checking whether a problem counts attempts or failures prevents a common off-by-one error, especially when interpreting the mean or listing possible values.
How it differs from related distributions
The geometric distribution focuses on the first success. A binomial distribution instead counts the number of successes in a fixed number of trials. If ten independent attempts are made, a binomial model can describe the chance of getting a specified number of successes among those ten; the geometric model describes how far into the sequence the first one occurs.
The negative binomial distribution extends the waiting-time idea to a specified number of successes. The geometric distribution is the special case where the target is just one success. These related models share assumptions about independent trials and a constant success probability, but they answer different questions.
For processes measured in continuous time rather than in discrete attempts, a different model may be more appropriate. The exponential distribution is often used for waiting times in certain continuous-time settings. It has a related memoryless property, but it describes a different kind of measurement and relies on its own assumptions.
Where the geometric distribution is useful
The model can help explain repeated processes in education, quality control, communications, ecology, and everyday probability examples. A teacher might use it to discuss how many independent questions a learner encounters before a particular type appears. A quality-control analyst might model how many inspected items are checked before finding one with a defined feature, if the checks can reasonably be treated as independent with an unchanged probability.
In each case, the distribution provides a structured way to answer questions about exact waiting times, average waiting, and the chance of no success after a given number of attempts. It does not, by itself, establish that the assumed probability is correct. That value must come from the situation, reliable observations, or a clearly stated hypothetical assumption.
Conclusion
The geometric distribution answers “How long until the first success?” by assigning probabilities to the number of independent, same-chance attempts required. Its formula follows from having failures first and a success next, while its mean of 1/p describes the average wait over repeated runs. The model is most useful when its assumptions fit the process and when attempts and failures are counted consistently.

