Geometric Distribution Calculator
- Failing 2 times first has probability (1 − p)^2, then the success lands: P(X = 3) = 12.50%.
- The chance the first success arrives within 3 trials is 87.50%, so the chance of needing more than 3 trials is 12.50%.
- On average the first success takes 1 ÷ p = 2.00 trials.
Our geometric distribution calculator computes the probability of the first success landing on a specific trial in repeated independent trials with success probability p. Using the formula P(X = k) = (1 - p)^(k - 1) x p, it returns the probability of success on exactly trial k, the cumulative probability of success within k trials, the probability of needing more than k trials, and the expected wait time of 1 / p. For instance, at p = 50%, the first success landing exactly on trial 3 has probability 12.50%, within 3 trials 87.50%, and the expected wait is 2.00 trials. At p = 10%, first success exactly on trial 5 has probability 6.56%, within 5 trials 40.95%, more than 5 trials 59.05%, and the expected wait is 10.00 trials. At p = 25%, first success on trial 1 has probability 25.00% and the expected wait is 4.00 trials.
The geometric distribution is the accepted standard for modeling the trial of the first success because it directly captures the mathematics of repeated independent trials with constant success probability p. A key property is that the distribution is memoryless: after any run of failures, the expected remaining wait is still 1 / p. This makes it the standard model for wait-time problems across fields from quality control to game theory. This page shows the formula P(X = k) = (1 - p)^(k - 1) x p, provides step-by-step workings, includes worked examples, and lists sources so you can verify every result.
Worked examples
Two tails, then a head
Primary result: 12.50% — two failures at 50% each, then the success: 0.5 × 0.5 × 0.5. (50 % · 3)
| P(first success on trial 3) | 12.50% |
| P(success within 3 trials) | 87.50% |
| P(more than 3 trials needed) | 12.50% |
| Expected trials to first success | 2.00 |
A stubborn 10% chance
Primary result: 6.56% — the first success waits until exactly the fifth try 0.9⁴ × 0.1 of the time. (10 % · 5)
| P(first success on trial 5) | 6.56% |
| P(success within 5 trials) | 40.95% |
| P(more than 5 trials needed) | 59.05% |
| Expected trials to first success | 10.00 |
First-try success
Primary result: 25.00% — with no failures before it, the probability is just p itself. (25 % · 1)
| P(first success on trial 1) | 25.00% |
| P(success within 1 trials) | 25.00% |
| P(more than 1 trials needed) | 75.00% |
| Expected trials to first success | 4.00 |
Waiting for the first success
The geometric distribution models the trial of the first success in repeated independent trials with success probability p. The formula is P(X = k) = (1 - p)^(k - 1) x p, where k is the trial number where the first success occurs. A geometric distribution calculator applies this formula so you can quickly find the probability of a first success landing on any given trial. The same logic applies whether you are flipping coins, making sales calls, or drilling test wells. Each attempt is independent, each has the same probability of success, and you are waiting to see how long it takes to get that first win.
Consider a fair coin with p = 50%. The chance of the first success landing exactly on trial 3 is 12.50%, meaning heads (or tails) does not appear on the first two flips and then appears on the third. The chance of getting at least one success within 3 trials is 87.50%. The expected wait is 2.00 trials. With a low probability of success, the wait stretches out considerably. At p = 10%, the probability of the first success landing exactly on trial 5 is 6.56%, the chance of success within 5 trials is 40.95%, and the chance of going more than 5 trials without a success is 59.05%. The expected wait jumps to 10.00 trials.
At p = 25%, the first success on trial 1 has probability 25.00%, and the expected wait is 4.00 trials. The expected number of trials to the first success is 1 / p, which is why higher success probabilities produce shorter expected waits. This relationship gives you a quick mental check before entering values into a geometric distribution calculator.
- Expected number of trials to the first success: 1 / p
- The distribution is memoryless: after any run of failures, the expected remaining wait is still 1 / p
The formula
The geometric distribution models the trial of the first success in repeated independent trials with success probability p. Its probability mass function is P(X = k) = (1 - p)^(k - 1) x p, where k is the trial number on which the first success occurs. The logic is straightforward: you need k - 1 consecutive failures, each with probability (1 - p), followed by one success with probability p. Multiply those probabilities together and you get the chance that the first success lands exactly on trial k.
To see the formula in action, consider a scenario where the success probability is p = 0.10, or 10%. If you want to know the probability that the first success arrives exactly on trial 5, you plug the values into the formula: P(X = 5) = (1 - 0.10)^(5 - 1) x 0.10, which simplifies to 0.9^4 x 0.1. That calculation yields 0.06561, or 6.56%. This verified result matches what a geometric distribution calculator should output for those inputs, confirming the formula works as intended.
The same formula can be extended to answer related questions. For instance, the probability of getting the first success within 5 trials at p = 10% is 40.95%, while the probability of waiting more than 5 trials is 59.05%. The expected number of trials to the first success is 1 / p, which at p = 10% equals 10.00 trials. This expected value holds regardless of how many failures have already occurred, because the distribution is memoryless: after any run of failures, the expected remaining wait is still 1 / p.
Other success probabilities produce different but equally predictable results. At p = 50%, the first success landing exactly on trial 3 has a probability of 12.50%, the probability of success within 3 trials is 87.50%, and the expected wait is 2.00 trials. At p = 25%, the first success on trial 1 has a probability of 25.00%, with an expected wait of 4.00 trials. In every case, the formula (1 - p)^(k - 1) x p provides the foundation for calculating exact probabilities at any specific trial number.
Worked examples
The geometric distribution models the trial of the first success in repeated independent trials with success probability p, using the formula P(X = k) = (1 - p)^(k - 1) x p. A geometric distribution calculator lets you reproduce the verified cases below and test your own parameters. Three cases cover common success probabilities of 50%, 10%, and 25%.
At a 50% success probability, the math is easy to check by hand. The first success landing exactly on trial 3 has a probability of 12.50%, because the first two trials must fail and the third must succeed. The cumulative probability of success within 3 trials reaches 87.50%, and the expected wait is 2.00 trials. Because the distribution is memoryless, after any run of failures the expected remaining wait is still 1 / p, which here equals 2.00 trials.
At a 10% success probability, success takes longer to arrive. The first success landing exactly on trial 5 has a probability of 6.56%. The cumulative probability within 5 trials is 40.95%, meaning the first success occurs on or before trial 5 about 41 times out of 100. The probability of more than 5 trials before the first success is 59.05%. The expected wait is 10.00 trials, which equals 1 / p. Even after five consecutive failures, the memoryless property means the expected remaining wait is still 10.00 trials.
At a 25% success probability, the first success on trial 1 has a probability of 25.00%, which is simply p itself. The expected wait is 4.00 trials, again equal to 1 / p. The expected number of trials to the first success is always 1 / p, so higher success probabilities shorten the wait and lower success probabilities lengthen it.
| Success probability (p) | Specific trial probability | Cumulative probability | More than target trials | Expected wait (trials) |
|---|---|---|---|---|
| 50% | Trial 3: 12.50% | Within 3 trials: 87.50% | Not provided | 2.00 |
| 10% | Trial 5: 6.56% | Within 5 trials: 40.95% | 59.05% | 10.00 |
| 25% | Trial 1: 25.00% | Not provided | Not provided | 4.00 |
Within k trials versus exactly k
A geometric distribution calculator usually gives you two different answers for the same value of k, and it helps to know exactly what each one means. The probability mass function P(X = k) = (1 - p)^(k - 1) x p tells you the chance that the first success lands on exactly trial k — not before, not after. The cumulative probability, written as 1 - (1 - p)^k, tells you something broader: the chance that the first success happens within k trials. That includes trial 1, trial 2, and every trial up through k.
The distinction matters because the two numbers can look very different even for the same k. At p = 10%, the first success landing exactly on trial 5 has probability 6.56%. Within 5 trials, the probability rises to 40.95%. The cumulative figure is much larger because it pools every way the first success could arrive on or before trial 5, while the exact-trial figure isolates just one of those outcomes.
Cumulative probability also has a natural complement. If 1 - (1 - p)^k is the chance of succeeding within k trials, then (1 - p)^k is the chance of needing more than k trials — that is, seeing k failures in a row before the first success. The two probabilities always add to 1. At p = 10%, within 5 trials gives 40.95%, so more than 5 trials gives 59.05%. A geometric distribution calculator typically reports both sides so you can see the full split between "success by now" and "still waiting."
This more-than-k tail ties directly to the memoryless property of the geometric distribution. After any run of failures, the expected remaining wait is still 1 / p. So if you have already passed k trials without a success, the chance of needing more than k additional trials is again (1 - p)^k. The past failures do not change the future odds. The expected number of trials to the first success remains 1 / p at every step, whether you are starting fresh or continuing after a long streak of misses.
The memoryless property
The geometric distribution has a feature that trips up nearly everyone the first time they meet it: it forgets the past. Mathematically, after any run of failures, the expected remaining wait for the first success is still 1 / p — exactly the same as it was before the run began. If you have already waited through several losing trials, your odds on the next trial have not improved one bit. Each trial is independent, so the success probability on the next attempt remains p, regardless of how many failures came before it.
This is the gambler's fallacy written in one equation. People instinctively feel that a success becomes "due" after a streak of failures, but the formula P(X = k) = (1 - p)^(k - 1) x p shows why that intuition is wrong. The probability of success on any single trial is always p. The past only determines where you are in the sequence — it does not change the mechanism generating the next outcome. A geometric distribution calculator makes this visible: shift your starting point past any number of failures, and the projected remaining wait stays the same.
The verified numbers drive the point home. At p = 10%, the expected wait for the first success is 10.00 trials. Suppose you have already endured 5 failures. The probability of going more than 5 additional trials is still 59.05%, and the expected remaining wait is still 10.00 trials — not 5.00, as a gambler might hope. The first 5 failures bought you nothing. Likewise, at p = 50%, the expected wait is 2.00 trials. After 3 failures, you are not "overdue" — the expected remaining wait is still 2.00 trials, and the chance of success on the very next trial is still 50%.
At p = 25%, the first success lands on trial 1 with probability 25.00%, and the expected wait is 4.00 trials. If trial 1 fails, the expected wait from that point forward is still 4.00 trials. The distribution resets itself completely after every failure. This is what "memoryless" means: no accumulation of past outcomes, no building pressure toward a success, no streak that must end. Every trial is a fresh start with the same odds as the very first one.
Understanding the memoryless property changes how you read the results from a geometric distribution calculator. When the tool reports an expected wait of 1 / p, that number applies at every moment — before the first trial and after the hundredth failure alike. The past is irrelevant to the future, and believing otherwise is precisely the error the gambler's fallacy describes.
Expected wait and spread
The expected number of trials needed to see the first success is 1 / p. This simple formula is one of the most useful outputs of a geometric distribution calculator, because it tells you the average wait you should plan for. When the success probability p is 25%, the expected wait is 4.00 trials. When p drops to 10%, the expected wait stretches to 10.00 trials. At p = 50%, the expected wait is 2.00 trials. Notice that cutting p in half doubles the expected wait, and reducing p by a factor of five lengthens the expected wait by that same factor.
A key feature of this distribution is its memorylessness. After any run of failures, the expected remaining wait is still 1 / p. If you have already gone through several trials without a success, the formula does not shorten. The geometric distribution assumes each trial is independent, so past failures carry no information about the next trial. This property is what makes 1 / p a stable benchmark throughout the process.
The spread around that average is wide. For the geometric distribution, the standard deviation is nearly as large as the mean, which means individual outcomes routinely fall far from the expected value. At p = 10%, the expected wait is 10.00 trials, yet the first success lands exactly on trial 5 with only 6.56% probability, and the chance of waiting more than 5 trials is 59.05%. So even though 10 trials is the average, a majority of runs exceed 5 trials, and many extend well beyond the mean.
At p = 50%, the spread tightens but remains substantial. The first success landing exactly on trial 3 has probability 12.50%, and the chance of success within 3 trials is 87.50%. The expected wait is 2.00 trials, yet roughly one run in eight still needs more than 3 trials. This is why the standard deviation stays close to the mean: the distribution places probability across many possible trial numbers, and the tail decays gradually rather than dropping off sharply.
- Expected wait: 1 / p trials.
- At p = 25%, the expected wait is 4.00 trials; the first success on trial 1 has probability 25.00%.
- At p = 10%, the expected wait is 10.00 trials; more than 5 trials has probability 59.05%.
- At p = 50%, the expected wait is 2.00 trials; within 3 trials has probability 87.50%.
- Memoryless property: after any run of failures, the expected remaining wait is still 1 / p.
FAQs
What is the geometric distribution?
The geometric distribution is the distribution of the trial number on which the first success occurs in repeated independent trials. Each trial has the same probability of success, and you keep running trials until the first success appears. It models scenarios like flipping a coin until the first head or rolling a die until a specific number shows up.
What is the probability the first head lands on flip 3?
The probability is 12.50%. This result comes from two tails, each with a probability of 0.5, followed by a head with a probability of 0.5. The calculation is 0.5 x 0.5 x 0.5, which equals 0.125 or 12.50%. This assumes a fair coin where each flip is independent and the success probability remains 0.5.
How many trials should I expect to wait?
On average, you should expect to wait 1 / p trials. At a 50% success probability, the expected wait is 2.00 trials. At a 10% success probability, the expected wait is 10.00 trials. At a 25% success probability, the expected wait is 4.00 trials. The lower the success probability, the longer the expected wait.
What is the chance of success within 5 tries at 10%?
The chance of success within 5 tries at a 10% success probability is 40.95%. This is calculated as one minus the chance of five straight failures, which is 1 - 0.9^5. Each trial has a 90% failure rate, so five consecutive failures occur with probability 0.59049, leaving a 40.95% chance of at least one success.
Does a long losing streak make success more likely?
No, a long losing streak does not make success more likely. The geometric distribution is memoryless, meaning past outcomes have no effect on future probabilities. The expected remaining wait is always 1 / p, regardless of how many failures have already occurred. Each trial remains independent with the same success probability every time.
How does it differ from the binomial distribution?
The binomial distribution counts the number of successes in a fixed number of trials, while the geometric distribution counts the number of trials until a fixed number of successes, specifically one success. In binomial, the trial count is fixed and successes vary. In geometric, the success count is fixed at one and the trial count varies.