Geometric Distribution Calculator
Calculate the exact probability of first success, cumulative distribution, mean, and standard deviation with instant results.
How to Use the Calculator
- Number of trials (x): Enter the specific trial on which you want the first success to occur. This must be an integer of 1 or greater.
- Probability of success (P): Enter the likelihood of success for a single trial as a decimal between 0 and 1 (e.g., for 50%, enter 0.5).
The calculator immediately outputs the exact probability for that specific trial, alongside all cumulative probabilities (less than, greater than, etc.).
What is the Geometric Distribution?
In probability theory and statistics, the geometric distribution is a discrete probability distribution that models the number of consecutive trials required to achieve the first success in a series of Bernoulli trials.
A “Bernoulli trial” is simply an experiment with exactly two possible outcomes: success or failure. While the binomial distribution calculates the total number of successes in a fixed number of trials, the geometric distribution flips the script. It asks: How long do we have to wait before a success finally occurs?
Because you are counting trials, the geometric distribution is strictly for discrete, whole numbers. You cannot have 2.5 trials.
The Four Necessary Conditions
- Binary Outcomes: Each individual trial must result in exactly one of two outcomes. We mathematically label these as “Success” and “Failure.” (Note: “Success” doesn’t necessarily mean a good thing; it just means the specific event you are tracking happened).
- Independence: The outcome of one trial cannot influence the outcome of the next. The system has no memory.
- Constant Probability: The probability of success (denoted as p) must remain exactly the same for every single trial.
- First Success Focus: The variable we are measuring (denoted as x) is the total number of trials conducted up to and including the very first success.
Note on variations: There are two common ways to define the geometric distribution. One counts the total number of trials to get the first success (x = 1, 2, 3…). The other counts the number of failures before the first success (x = 0, 1, 2…). Our calculator uses the standard first definition, meaning x must be ≥ 1.
Geometric vs. Binomial Distribution
- Binomial: The number of trials is fixed ahead of time, and you are counting the varying number of successes. (e.g., “I will flip a coin 10 times. How many heads will I get?”)
- Geometric: The number of successes is fixed at exactly one, and you are counting the varying number of trials it takes to get there. (e.g., “I will keep flipping this coin until I get heads. How many flips will it take?”)
Real-World Applications
- Quality Control: A manufacturing line produces light bulbs with a 2% defect rate. A quality assurance inspector tests bulbs one by one. The geometric distribution calculates the probability that the first defective bulb is found on the 10th test.
- Database Management: Calculating the number of network requests a system needs to make to a server before it successfully retrieves a specific packet of data, assuming a constant packet drop rate.
- Sales and Marketing: If a salesperson has a 5% historical conversion rate on cold calls, this distribution can model the probability that they land their first sale on their 12th call of the day.
Expected Value, Variance, and Standard Deviation
Beyond simple probabilities, this distribution gives us statistical properties that define the “average” expectation.
Mean (Expected Value)
The expected value represents the theoretical average number of trials needed to get the first success if you repeated the experiment infinitely. If a basketball player makes 20% of their half-court shots ($p = 0.20$), the expected number of attempts to make the first shot is $1 / 0.20 = 5$.
Variance and Standard Deviation
Because waiting times can be volatile, variance and standard deviation measure the spread or dispersion of the distribution. A lower probability of success not only increases the expected wait time but drastically increases the variance, meaning the actual number of trials could be wildly different from your expected average.
Geometric Distribution Formulas
For the calculations above, let p = probability of success, q = probability of failure (1 – p), and x = the number of trials.