Geometric Distribution Calculator
Find exact and cumulative geometric probabilities, mean, variance, and a full distribution table for any k and p.
🎯 What is the Geometric Distribution?
The geometric distribution models the number of independent Bernoulli trials needed to obtain the first success. Each trial has two possible outcomes (success or failure), every trial is independent of the others, and the probability of success p remains constant across all trials. If you roll a die repeatedly until you get a six, or call customers until one agrees to a demo, or inspect products until you find a defect, the number of attempts follows a geometric distribution.
The probability mass function (PMF) is P(X = k) = (1 - p)^(k-1) times p for k = 1, 2, 3, and so on. The term (1 - p)^(k-1) is the probability of exactly k-1 consecutive failures, and the final p is the probability of success on the k-th trial. There is only one arrangement because the success must fall on the last trial, so no binomial coefficient appears in the formula.
The geometric distribution has three key properties that set it apart from other discrete distributions. First, it is memoryless: if the first success has not occurred by trial m, the conditional probability that it occurs on trial m + n is exactly the same as if you started fresh. Second, the support is infinite: unlike the binomial (which has fixed n), the geometric can take any positive integer value. Third, it belongs to the exponential family, making it the discrete analogue of the continuous exponential distribution.
Common real-world applications include modelling the number of free throws until a basketball player makes a shot, the number of network packets sent before one is successfully acknowledged, the number of customer calls until a sale, and the number of quality-control inspections until a defective unit is found. In each case the key assumption is that trials are independent and p is constant, which should be verified before applying the geometric model.