Geometric Distribution Calculator

The geometric distribution answers a simple but important question: if you repeat an experiment with a fixed probability of success on each attempt, what is the chance that your first success comes on exactly the k-th try? Each attempt is independent and has the same probability p of succeeding. A free-throw shooter with a 30 percent success rate, a quality control inspector checking items until finding the first defect, or a student re-sitting a test until they pass: all of these follow the geometric distribution. The probability that the first success occurs on trial k is P(X = k) = (1 minus p) to the power (k minus 1) times p. The cumulative probability P(X less than or equal to k) = 1 minus (1 minus p) to the power k gives the chance of succeeding by trial k. The expected number of trials to first success is 1 divided by p. This calculator takes the success probability p (between 0 and 1) and the trial number k (a positive integer), and returns the exact probability P(X = k), the cumulative probability P(X less than or equal to k), the probability of still waiting P(X greater than k), and the distribution mean, variance and standard deviation. It is useful for students studying probability theory, quality engineers, sports analysts and anyone dealing with repeated Bernoulli trials.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
0.1029
P(X = 4): first success on trial 4
P(X ≤ 4)0.7599
P(X > 4)0.2401
Mean (1/p)3.33
Variance7.78
Std Dev2.79

P(X = k) = (1-p)^(k-1) times p. P(X ≤ k) = 1 - (1-p)^k. p must be between 0 and 1 exclusive. k must be a positive integer.

How it works

For a geometric distribution with success probability p and trial number k:
P(X = k) = (1-p)k-1 × p
P(X ≤ k) = 1 - (1-p)k
P(X > k) = (1-p)k
Mean = 1/p
Variance = (1-p) / p²
Standard deviation = √(variance)
The distribution has the memoryless property: the number of additional trials needed is independent of how many trials have already failed.

Worked example

With p = 0.3 and k = 4: P(X = 4) = (0.7)³ × 0.3 = 0.343 × 0.3 = 0.1029. P(X ≤ 4) = 1 - (0.7)4 = 1 - 0.2401 = 0.7599. P(X > 4) = (0.7)4 = 0.2401. Mean = 1/0.3 = 3.33. Variance = 0.7/0.09 = 7.78. Std dev = √7.78 = 2.79.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.