Geometric Distribution Calculator
The geometric distribution models the number of trials needed to get the first success. With p = 0.25, the probability the first success happens on trial 3 is (0.75)² × 0.25 = 0.1406, and the expected number of trials is 1 ÷ p = 4.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Is the Geometric Distribution?
The geometric distribution describes how long you wait for something to happen for the first time. You repeat independent trials, each with the same probability p of success, and count the trial on which the first success occurs. Rolling a die until a six appears, calling leads until one agrees to a meeting, or testing items until the first defect is found are all geometric situations.
It is the “waiting time” companion to the binomial distribution. Binomial fixes the number of trials and counts successes. Geometric fixes the number of successes (one) and counts trials.
Geometric vs Binomial
| Geometric | Binomial | |
|---|---|---|
| Question | On which trial does the first success occur? | How many successes occur in n trials? |
| Number of trials | Not fixed | Fixed at n |
| Values possible | 1, 2, 3, … | 0, 1, …, n |
| Mean | 1 ÷ p | n × p |
The geometric distribution has a notable property called memorylessness: after any number of failures, the chance of success on the next trial is still p. The coin does not “owe” you a head.
Geometric Distribution Formulas
pis the probability of success on each trial.kis the trial number on which the first success happens (k = 1, 2, 3, …).(1 − p)ᵏ⁻¹is the probability of k − 1 failures in a row, followed bypfor the success.
This version counts the number of trials including the successful one. Some textbooks count only the failures before the first success, which shifts the mean to (1 − p) ÷ p.
Worked Example: First Success on Trial 3
Each trial succeeds with probability p = 0.25. Find the probabilities for k = 3.
- First success exactly on trial 3: 0.75 × 0.75 × 0.25 = 0.1406.
- Success by trial 3: 1 − 0.75³ = 1 − 0.4219 = 0.5781.
- No success in the first 3 trials: 0.75³ = 0.4219.
- Expected number of trials: 1 ÷ 0.25 = 4.
- Variance: 0.75 ÷ 0.0625 = 12, so the standard deviation is 3.46.
Example: Rolling a Six
With p = 1/6, the chance that the first six comes on roll 4 is (5/6)³ × (1/6) = 0.0965, the chance of getting a six within four rolls is 0.5177, and the expected wait is 6 rolls.
Example: Sales Calls
If 10% of calls lead to a sale, the expected number of calls until the first sale is 10. The probability of landing a sale within the first 5 calls is 1 − 0.9⁵ = 0.4095, so there is a 59% chance you need more than five calls.
The Full Pattern for p = 0.25
| Trial k | P(X = k) | P(X ≤ k) |
|---|---|---|
| 1 | 0.2500 | 0.2500 |
| 2 | 0.1875 | 0.4375 |
| 3 | 0.1406 | 0.5781 |
| 4 | 0.1055 | 0.6836 |
| 5 | 0.0791 | 0.7627 |
| 6 | 0.0593 | 0.8220 |
Each probability is 75% of the one before it, so the most likely single outcome is always the first trial, even though the expected wait is 4.
How to Use This Geometric Distribution Calculator
- Enter the success probability p as a decimal between 0 and 1.
- Enter the trial number k (a whole number of 1 or more).
- Read P(X = k), P(X ≤ k), P(X > k), the expected number of trials and the variance.
If you want the number of successes in a fixed number of trials, use the binomial probability calculator. For waiting times that are continuous, see the exponential distribution calculator, its continuous cousin.
Real-World Uses of the Geometric Distribution
- Sales and marketing: how many contacts until the first conversion.
- Quality control: how many items are inspected before the first defect.
- Reliability testing: how many cycles a device runs before it first fails.
- Games: how many attempts before landing a hit or drawing a card.
- Networks: how many transmission attempts until a packet gets through.
What Are the Most Common Mistakes With the Geometric Distribution Calculator?
- Mixing up the two conventions. Check whether k counts trials (starting at 1) or failures (starting at 0).
- Non-constant p. If the chance changes between trials, the model fails.
- Dependent trials. Drawing without replacement breaks the independence assumption.
- Misusing memorylessness. Past failures do not raise the chance of success next time.
- Reading the mean as a promise. An expected wait of 4 trials does not mean success happens by trial 4. P(X ≤ 4) is only 68%.
- Entering k = 0. The first success cannot occur before trial 1.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What does the geometric distribution measure?
The number of independent trials needed to get the first success, when each trial has the same success probability p.
What is the formula for the geometric distribution?
P(X = k) = (1 − p)ᵏ⁻¹ × p. It is the probability of k − 1 failures followed by a success.
What is the expected value of a geometric distribution?
The mean is 1 ÷ p. With p = 0.25 you expect about 4 trials until the first success.
What is the memoryless property?
The probability of success on the next trial is p regardless of how many failures have already occurred. Past outcomes carry no information about future trials.
What is the difference between geometric and negative binomial distributions?
Geometric counts trials until the first success. Negative binomial counts trials until a fixed number r of successes, so the geometric is the special case r = 1.
How do I find the probability of success within k trials?
Use P(X ≤ k) = 1 − (1 − p)ᵏ. For p = 0.25 and k = 3 this is 0.5781.