Expected Number of Trials Calculator

Enter the per-trial success probability to find the expected number of trials.

How to use

  1. Enter your values in the fields above.
  2. Press Calculate to see your result instantly.
  3. Use the Share button to copy a link to your result.

About this calculator

When each independent trial has a fixed success probability p, the number of trials needed until the first success follows the geometric distribution. Its expected value is E[X] = 1/p, its median is the smallest integer m satisfying (1−p)^m ≤ 0.5, and the number of trials needed to reach 90% confidence of at least one success is the smallest n satisfying (1−p)^n ≤ 0.10.

Statisticians and quality control engineers use these figures to plan sampling or inspection processes, game designers use them to tune random item drop rates so players get a fair sense of how many attempts a rare drop should take, and anyone reasoning about repeated independent attempts — from A/B test iterations to games of chance — uses the geometric distribution to separate an average outcome from a reasonably confident upper bound.

Was this helpful?

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators