Geometric Distribution Formula

Geometric distribution is the probability distribution for the number of independent Bernoulli trials needed to get the first success, where each trial has success probability p.

The Formula

P(X=k)=(1−p)k−1⋅p,k=1,2,3,…

Ask yourself: Am I counting the number of trials up to and including the first success (not the number of successes in a fixed set of trials)?

Quick example

Probability of getting first heads on the 4th flip of a fair coin: P(X=4)=(1−0.5)4−1⋅0.5=(0.5)3⋅0.5=0.0625

Notation

X∼Geom(p). Mean: E(X)=1p. Standard deviation: σ=1−pp.

What this formula means

The probability distribution for the number of independent Bernoulli trials needed to get the first success, where each trial has success probability p.

Waiting for a geometric success resembles waiting for a bus that arrives completely at random, each minute carrying the same chance. Having already waited ten minutes doesn't make the next minute any luckier, so the wait so far says nothing about the wait to come. Real buses run on timetables, so the comparison holds only for truly random arrivals.

Formal view

P(X=k)=(1−p)k−1p for k=1,2,3,…; E(X)=1p, Var(X)=1−pp2

Worked examples

Example 1

medium
A basketball player makes free throws with probability p=0.7. Find the probability they make their first free throw on exactly the 3rd attempt.
Show solution

Answer

P(X=3)=(0.3)2(0.7)=0.063. 6.3% chance first make is on attempt 3.

First step

1.
Geometric distribution: P(X=k)=(1−p)k−1⋅p

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
For a geometric distribution with p=0.4: (a) find P(X≤3), (b) find the expected number of trials until first success.

Example 3

medium
Derive a closed form for P(X≤n) when X is geometric with parameter p.

Common mistakes

  • Using the binomial because both involve p and 1−p - the geometric has no fixed n; it counts trials until the first success.
  • Writing the exponent as k instead of k−1 - the first k−1 trials are failures, so it's (1−p)k−1⋅p.
  • Forgetting the trials must be independent with constant p - if p changes or trials are dependent, the geometric model fails.

Why this formula matters

Waiting questions are everywhere: how many calls until a sale, how many packs until the rare card, how many attempts until a part fails. The geometric distribution turns them into exact probabilities and a mean wait of 1p, so a 1-in-20 chance means about 20 tries on average, with a long tail of unlucky runs. Using the binomial instead answers a different question and gives wrong numbers.

Frequently asked questions

What is the Geometric Distribution formula?

The probability distribution for the number of independent Bernoulli trials needed to get the first success, where each trial has success probability p.

How do you use the Geometric Distribution formula?

Use the geometric distribution when you repeat independent trials with a constant chance p and count the trials until the first success: "how many tries until…", "first success on the kth attempt", "expected number of attempts." The count can be 1, 2, 3 and so on with no upper limit. If the number of trials is fixed and you count successes, use the binomial. If the chance changes from try to try, as when drawing without replacement, neither model applies directly.

What do the symbols mean in the Geometric Distribution formula?

X∼Geom(p). Mean: E(X)=1p. Standard deviation: σ=1−pp.

Why is the Geometric Distribution formula important in Math?

Waiting questions are everywhere: how many calls until a sale, how many packs until the rare card, how many attempts until a part fails. The geometric distribution turns them into exact probabilities and a mean wait of 1p, so a 1-in-20 chance means about 20 tries on average, with a long tail of unlucky runs. Using the binomial instead answers a different question and gives wrong numbers.

What do students get wrong about Geometric Distribution?

The procedure for geometric distribution is the easy part; the trap is using the binomial because both involve p and 1−p. Asking "Am I counting the number of trials up to and including the first success (not the number of successes in a fixed set of trials)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Geometric Distribution formula?

Before studying the Geometric Distribution formula, you should understand: binomial distribution, independent events, expected value.