What is a Geometric Distribution Calculator?
A geometric distribution calculator finds the probability that the first success in repeated independent trials happens on a given trial, by it or after it. With success probability p on each trial and X as the trial of the first success, P(X = k) = (1 − p)ᵏ⁻¹·p and P(X ≤ k) = 1 − (1 − p)ᵏ. The mean is 1/p and the standard deviation is √(1 − p)/p. For a fair die, the chance the first six comes on roll 3 is 0.1157.
What the Geometric Distribution Calculator does
The geometric distribution answers “how many tries until it works?”: rolls until the first six, sales calls until the first sale, attempts until a login succeeds. This calculator handles both textbook conventions (the trial number of the first success, starting at 1, or the number of failures before it, starting at 0), so you can match your course, your textbook or your software.
Pick a probability type and the calculator returns the exact value, its complement, the mean, median, variance and standard deviation, a chart with your outcomes highlighted and, when the likely values number 100 or fewer, a probability table. The steps show the geometric probability formula with your numbers and the closed-form tail P(X > x), so cumulative answers are easy to check by hand.
It works as a geometric probability calculator, a geometric pdf calculator for single values (the same result as geometpdf on a TI-84) and a geometric cdf calculator for “at most” questions (the same as geometcdf). Everything runs in your browser.
How to use the Geometric Distribution Calculator
- Choose what X counts: the trial on which the first success occurs, or the failures before it.
- Enter the Probability of success on each trial, p, as a decimal, fraction (1/6) or percentage (20%).
- Choose the Probability to find (exactly, at most, fewer than, at least, more than or between) and enter Value of X, k or a range a to b.
- Read the probability, the mean waiting time and the chart; open the step-by-step solution for the formula with your numbers.
When does the geometric distribution apply?
A trial is one attempt with two possible results, called success and failure. “Success” is just the outcome you are waiting for: a six, a sale, a defective item. Use the geometric distribution when all four conditions hold:
- Two outcomes: each trial is a success or a failure.
- Independent trials: one result does not change the chance of the next.
- Constant p: the probability of success is the same on every trial.
- Count until the first success: the number of trials is not fixed in advance; you stop at the first success.
Geometric distribution formula
The first success lands on trial k only if the first k − 1 trials fail and trial k succeeds. Independence lets you multiply those chances, which gives the geometric probability formula. Adding the terms (or noticing that X > k means k failures in a row) gives the cumulative formula, and the mean, variance and standard deviation follow from the series sums.
| Symbol | Meaning |
|---|---|
| p | probability of success on each trial (0 < p < 1) |
| 1 − p | probability of failure on each trial, sometimes written q |
| k | the value of X: a trial number, or a number of failures |
| X, Y | trial of the first success; failures before it (Y = X − 1) |
The two conventions differ by exactly 1: trial number = failures + 1. They share the same variance and standard deviation, but their means differ by 1. TI calculators’ geometpdf and geometcdf use the trial convention.
Worked example: exact and cumulative geometric probability
Basketball shots: first make on the 4th attempt
Problem. A basketball player makes 20% of her long-range shots. What is the probability that her first make is on her 4th attempt, and that she needs more than 4 attempts?
- 01X = attempt of the first make, X ~ Geometric(p = 0.2) with X = 1, 2, ….
- 02Exact: first make on attempt 4 means 3 misses then a make: P(X = 4) = 0.8³ × 0.2 = 0.512 × 0.2 = 0.1024.
- 03Cumulative: more than 4 attempts means the first 4 all miss: P(X > 4) = 0.8⁴ = 0.4096.
- 04So P(X ≤ 4) = 1 − 0.4096 = 0.5904.
- 05Mean number of attempts = 1 / 0.2 = 5; σ = √0.8 / 0.2 = 4.4721.
Answer. The first make lands on the 4th shot with probability 0.1024, and 40.96% of the time she needs 5 or more shots. On average she needs 5 attempts.
Example: the first six on a die
Roll a fair die until a six appears, so p = 1/6 and 1 − p = 5/6. Load the First 6 on the 3rd roll example above (or enter p as 1/6) to reproduce each row.
| Question | Formula | Probability |
|---|---|---|
| First six on roll 3, P(X = 3) | (5/6)² × 1/6 = 25/216 | 0.1157 |
| A six within 3 rolls, P(X ≤ 3) | 1 − (5/6)³ = 91/216 | 0.4213 |
| No six in the first 3 rolls, P(X > 3) | (5/6)³ = 125/216 | 0.5787 |
| Expected number of rolls, μ | 1 / (1/6) | 6 |
| Standard deviation, σ | √(5/6) / (1/6) | 5.4772 |
How to find the standard deviation of a geometric distribution
The standard deviation formula for the geometric distribution is σ = √(1 − p) / p. It is the same whether X counts trials or failures, because shifting every value by 1 does not change the spread. For p = 0.25:
- Find the failure probability: 1 − p = 1 − 0.25 = 0.75.
- Variance: σ² = (1 − p) / p² = 0.75 / 0.0625 = 12.
- Standard deviation: σ = √12 = √0.75 / 0.25 = 3.4641.
- Compare with the mean: μ = 1 / 0.25 = 4 trials (or 3 failures). The SD is almost as large as the mean, which is typical: the geometric distribution is strongly right-skewed.
Geometric vs binomial distribution
Both models use independent trials with a constant success probability p. The difference is what is fixed and what is counted. If you know the number of trials and want the number of successes, use the Binomial Distribution Calculator. If you keep going until the first success, use the geometric. For the wait until the r-th success, use the Negative Binomial Distribution Calculator; the geometric is its r = 1 case.
| Geometric | Binomial | |
|---|---|---|
| Fixed in advance | the target: 1 success | the number of trials, n |
| Random variable X | trials until the first success | successes in n trials |
| Possible values | 1, 2, 3, … (no upper limit) | 0, 1, …, n |
| P(X = k) | (1 − p)ᵏ⁻¹ · p | C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ |
| Mean | 1 / p | n · p |
| Variance | (1 − p) / p² | n · p · (1 − p) |
| TI-84 functions | geometpdf, geometcdf | binompdf, binomcdf |
Geometric probabilities on a TI-84, in Excel, R and Python
Software differs on the convention, so check whether it counts trials or failures before comparing answers with this page.
- TI-83 / TI-84: 2nd → DISTR → geometpdf(p, k) for P(X = k) and geometcdf(p, k) for P(X ≤ k). Both count trials (X = 1, 2, …).
- Excel / Google Sheets: there is no GEOM function; use =NEGBINOM.DIST(k − 1, 1, p, FALSE) for P(X = k) and TRUE for P(X ≤ k), with X counting trials.
- R: dgeom(k, p) and pgeom(k, p) count failures (Y = 0, 1, …). For the trial convention use dgeom(k − 1, p).
- Python (SciPy): scipy.stats.geom.pmf(k, p) and geom.cdf(k, p) count trials (X = 1, 2, …).
The geometric distribution has no memory
If the first m trials have failed, the number of further trials needed has the same geometric distribution as at the start: P(X > m + n | X > m) = P(X > n). Five misses in a row do not make the next shot more likely to go in; believing otherwise is the gambler’s fallacy. The geometric is the only discrete distribution with this property, and the exponential distribution is its continuous counterpart.
Common use cases
- Games of chance: the number of rolls or draws (with replacement) until a particular result appears.
- Sales and marketing: calls, emails or ad impressions until the first conversion. With a 10% close rate, P(first sale within 10 calls) = 1 − 0.9¹⁰ = 0.6513.
- Reliability: the number of cycles or uses until the first failure when each use carries the same small risk.
- Computing: retries until a network request succeeds, or attempts in randomized algorithms.
- Quality inspection: items inspected until the first defective one.
Assumptions and limitations
- Trials must be independent with a constant p. If the chance changes with each attempt (learning, fatigue, or items drawn without replacement), the geometric model does not apply.
- It covers the wait for the first success only. For the wait until the r-th success, use the Negative Binomial Distribution Calculator.
- For the number of successes in a fixed number of trials, use the Binomial Distribution Calculator.
- Check which convention your textbook or software uses; mixing them shifts every answer by one trial.
Frequently asked questions
What is the geometric distribution used for?
What is the geometric distribution formula?
How do you find the standard deviation of a geometric distribution?
What is the expected value of a geometric distribution?
What is the difference between geometpdf and geometcdf?
Why are there two versions of the geometric distribution?
Is the geometric distribution memoryless?
Cite this page
Statculator. (2026, November 14). Geometric Distribution Calculator. Retrieved November 14, 2026, from https://statculator.com/probability-distributions/geometric-distribution-calculator/