StatGardenREF. DESK
Calculators/Statistics/Geometric probability
Statistics

Geometric probability calculator

Chance the first success happens on a given trial, for repeated independent trials.

What this calculator does

Geometric probability works out chance the first success happens on a given trial, for repeated independent trials. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaP(X=k) = (1−p)^(k−1) × p; mean = 1/p; variance = (1−p)/p²

The inputs explained

FieldWhat to enter
Success probability per trial (%)A number, measured in %. Starts at 25.
Trial of the first success (k)A number. Starts at 4.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with success probability per trial

Every other input is held at the calculator’s starting values while success probability per trial varies. Select any row to load that scenario into the calculator.

How the answer changes with success probability per trial
Success probability per trial (%)P(first success on trial k)P(success within k trials)Expected trial of first success
12.58.37%41.4%8.00
18.7510.1%56.4%5.33
2510.5%68.4%4.00
37.59.16%84.7%2.67
506.25%93.8%2.00
751.17%99.6%1.33