This calculator works out probabilities for the geometric distribution, the model for how many independent attempts it takes to get the first success. Whenever you repeat a trial that either succeeds or fails with the same probability each time, such as flipping a coin until it lands heads, rolling a die until you get a six, or making sales calls until one converts, the number of attempts up to and including the first success follows the geometric distribution. It answers questions like: what is the chance the first success comes exactly on the third try, or what is the chance it takes more than five attempts, and on average how many attempts are needed. This tool computes them. You enter the probability of success on a single trial and a trial number of interest, and the calculator returns the probability that the first success occurs exactly on that trial, the cumulative probability that it occurs on or before that trial, the probability it takes longer, and the expected, or mean, number of trials until the first success. The results update as you type. Use it for probability and statistics study, for modelling waiting times and reliability, or to plan how many attempts a task is likely to take. The expected number of trials has a pleasingly simple form, one divided by the success probability, so an event with a one in five chance takes five attempts on average. A defining feature of the geometric distribution is that it is memoryless: no matter how many failures you have already had, the chance of success on the next trial is unchanged, which is why past failures do not bring a success any closer. The calculations are exact for your inputs, rounded for display.
P(X = k) = (1 - p)^(k-1) x p. Mean = 1 / p. The distribution is memoryless: past failures do not change the next trial. Rounded for display.
The probability the first success occurs exactly on trial k is the chance of failing the first k minus one times, which is one minus p to that power, multiplied by the chance of success p on trial k. The cumulative probability up to k is one minus the chance of failing all k trials. The expected number of trials is one divided by p.
With a success probability of 0.2, the chance the first success comes exactly on the third trial is 0.8 squared times 0.2, which is 0.64 times 0.2, equals 0.128. The chance it happens within three trials is one minus 0.8 cubed, about 0.488, and on average it takes one over 0.2, which is 5 trials.
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.
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.
© 2019 to 2026 Calculate.co.nz. All rights reserved.