Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Probability Distributions
  4. /Geometric Distribution Calculator

Geometric Distribution Calculator

Last updated: March 15, 2026

Calculator

Results

P(X = k)

0.147

P(X ≤ k)

0.657

P(X > k)

0.343

Mean

3.333333

trials

Variance

7.777778

trials²

Standard Deviation

2.788867

trials

Median Trial

2

trials

Expected Failures Before First Success

2.333333

failures

Per-Trial Success Rate

0.3

Results

P(X = k)

0.147

P(X ≤ k)

0.657

P(X > k)

0.343

Mean

3.333333

trials

Variance

7.777778

trials²

Standard Deviation

2.788867

trials

Median Trial

2

trials

Expected Failures Before First Success

2.333333

failures

Per-Trial Success Rate

0.3

The Geometric Distribution Calculator computes probabilities and statistics for the geometric distribution, which models the number of Bernoulli trials needed to obtain the first success. It is the discrete counterpart of the exponential distribution and the only discrete distribution possessing the memoryless property.

Definition and PMF

If each trial independently succeeds with probability $$p$$, the probability that the first success occurs on trial $$k$$ is given by the probability mass function:

$$P(X = k) = (1 - p)^{k-1} \cdot p, \quad k = 1, 2, 3, \ldots$$

This formula counts $$k - 1$$ failures followed by one success. The cumulative distribution function is:

$$F(k) = P(X \leq k) = 1 - (1 - p)^k$$

Key Statistical Properties

The expected number of trials until the first success is $$E[X] = \frac{1}{p}$$. The variance is $$\text{Var}(X) = \frac{1 - p}{p^2}$$. The median is $$\left\lceil \frac{-1}{\log_2(1 - p)} \right\rceil$$. As $$p$$ increases, the distribution becomes more concentrated near $$k = 1$$, since success is more likely on early trials.

The Memoryless Property

The geometric distribution is the only discrete distribution with the memoryless property: $$P(X > s + t \mid X > s) = P(X > t)$$. This means that if you have already failed $$s$$ times, the probability distribution of remaining trials is the same as starting fresh. This is analogous to the memoryless property of the exponential distribution.

Connection to Other Distributions

The geometric distribution is a special case of the negative binomial distribution with $$r = 1$$ (waiting for the first success). It relates to the binomial distribution: if the number of successes in $$n$$ trials is binomial, then the number of trials until the first success is geometric. As $$p \to 0$$ with $$\lambda = 1/p$$, the geometric distribution approximates the exponential distribution.

Applications

The geometric distribution models scenarios such as the number of coin flips until the first heads, the number of items inspected before finding the first defective one, the number of job applications before receiving an offer, or the number of network packet transmissions before a successful delivery.

How to Use This Calculator

Enter the success probability $$p$$ (between 0 and 1) and the trial number $$k$$ (positive integer). The calculator computes the PMF, CDF, survival function, mean, variance, standard deviation, and median.

Visual Analysis

How It Works

The calculator evaluates $$P(X = k) = (1-p)^{k-1} \cdot p$$ using exponentiation. The CDF is computed as $$1 - (1-p)^k$$. The survival function is $$(1-p)^k$$. Statistical measures are calculated from the standard formulas for the geometric distribution.

Understanding Your Results

The PMF value tells you the probability that the first success occurs on exactly trial $$k$$. The CDF gives the probability of achieving at least one success within $$k$$ trials. The survival function gives the probability that all $$k$$ trials fail. A higher $$p$$ shifts the distribution toward smaller $$k$$ values.

Worked Examples

Coin Flips Until First Heads (p = 0.5)

Inputs

p0.5
k3

Results

pmf0.125
cdf0.875
sf0.125
mean val2
variance2
std dev1.414214
median1

The probability of the first heads on the 3rd flip is 12.5%. There is an 87.5% chance of getting at least one heads within 3 flips. On average, you need 2 flips.

Quality Inspection (p = 0.05, k = 10)

Inputs

p0.05
k10

Results

pmf0.03151247
cdf0.40126082
sf0.59873918
mean val20
variance380
std dev19.493589
median14

With a 5% defect rate, the probability of finding the first defective item on exactly the 10th inspection is about 3.2%. There is a 40.1% chance of finding a defect within 10 inspections.

Frequently Asked Questions

The geometric distribution models the number of independent Bernoulli trials required to achieve the first success. It applies to any scenario with repeated independent trials, each having the same probability $$p$$ of success.

Yes. One convention counts the number of trials until the first success ($$k = 1, 2, 3, \ldots$$), while the other counts the number of failures before the first success ($$k = 0, 1, 2, \ldots$$). This calculator uses the first convention, where $$k$$ starts at 1.

If you have already flipped a coin 10 times without heads, the probability of needing $$t$$ more flips is the same as if you were starting from scratch. Past failures do not change the probability of future success—each trial is independent.

The geometric distribution is a special case of the negative binomial with $$r = 1$$. While the geometric counts trials until the 1st success, the negative binomial counts trials until the $$r$$-th success.

The survival function $$P(X > k) = (1-p)^k$$ gives this directly. It is the probability that all $$k$$ trials result in failure, so the first success has not yet occurred.

If $$p = 1$$, success occurs on the first trial with certainty, so $$P(X = 1) = 1$$. If $$p = 0$$, success never occurs and the distribution is undefined, as the expected value $$1/p$$ diverges to infinity.

Sources & Methodology

Ross, S. M. (2014). A First Course in Probability (9th ed.). Pearson. Blitzstein, J. K. & Hwang, J. (2019). Introduction to Probability (2nd ed.). CRC Press.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Exponential Distribution Calculator

Probability Distributions

Uniform Distribution Calculator

Probability Distributions

Hypergeometric Distribution Calculator

Probability Distributions

Negative Binomial Distribution Calculator

Probability Distributions

Gamma Distribution Calculator

Probability Distributions

Weibull Distribution Calculator

Probability Distributions