Home » Statistics & Probability Calculators » Geometric Distribution Calculator

Geometric Distribution Calculator

Home › Statistics & Probability Calculators › Geometric Distribution Calculator

Geometric Distribution Calculator

The geometric distribution describes the number of trials needed to get the first success when each trial succeeds independently with probability p: how many times you roll a die before the first six, how many customers a salesperson calls before the first sale. Enter p, the probability type and k, and the calculator uses P(X = k) = (1 − p)ᵏ⁻¹p and the closed form P(X ≤ k) = 1 − (1 − p)ᵏ.

The output includes the single-term calculation, the cumulative rule, the mean 1/p and variance (1 − p)/p², a bar chart and a probability table. Because the distribution has no upper limit, the table runs far enough to cover almost all of the probability.

This page counts trials including the successful one (support k = 1, 2, 3, …), the convention used by SciPy and most textbooks. If your course counts failures before the first success, subtract 1 from k. The geometric distribution is the discrete analogue of the exponential distribution and shares its memoryless property.

Result and step-by-step solution

P(X ≤ 3)
0.488

X = number of trials up to and including the first success. Mean 1/p = 5, variance (1 − p)/p² = 20, SD = 4.4721

13579111315171921
  1. Formula
    P(X = k) = (1 − p)k − 1 × p,  P(X ≤ k) = 1 − (1 − p)k
  2. Single term at k = 3
    P(X = 3) = 0.82 × 0.2 = 0.128
  3. Apply the rule
    P(X ≤ 3) = 0.488
  4. Probability table
    kP(X = k)P(X ≤ k)P(X ≥ k)
    10.20.21
    20.160.360.8
    30.1280.4880.64
    40.10240.59040.512
    50.081920.672320.4096
    60.065540.737860.32768
    70.052430.790280.26214
    80.041940.832230.20972
    90.033550.865780.16777
    100.026840.892630.13422
    110.021470.91410.10737
    120.017180.931280.0859
    130.013740.945020.06872
    140.0110.956020.05498
    150.00880.964820.04398
    160.007040.971850.03518
    170.005630.977480.02815
    180.00450.981990.02252
    190.00360.985590.01801
    200.002880.988470.01441
    210.002310.990780.01153

If your textbook counts failures before the first success (Y = X − 1), subtract 1 from each k.

Frequently asked questions

What is the expected number of trials until the first success?
1/p. If a free throw succeeds 20% of the time, the first success takes 5 attempts on average.
How do I find the probability the first success takes more than k trials?
P(X > k) = (1 − p)ᵏ, the probability of k failures in a row. Choose P(X > x) in the calculator.
Which version of the geometric distribution is this?
The number of trials up to and including the first success, so k starts at 1. For the failures-before-success version, use k − 1.
What does memoryless mean?
Having already failed several times does not change the chance of success on the next trial or the expected number of further trials.

Last reviewed: September 25, 2026. Calculations run in your browser and were validated against SciPy.

Scroll to Top