Home / All calculators / Coin Toss Streak Probability Calculator

Mathematics, Numbers & Statistics · Free online calculator

Coin Toss Streak Probability Calculator

Calculate the probability of at least one run of k consecutive heads in n independent tosses, using the probability of heads you enter.

Calculator

Probability of heads is a decimal from 0 to 1; use 0.5 for a fair coin.

Enter values and calculate.

Formula

Dynamic programming tracks the probability of no target run and r trailing heads (r = 0,…,k−1). A tail resets the trailing-head state to 0; a head advances it, while a head from state k−1 enters the target-run event. Summing the event mass gives the probability of at least one run.

The calculation runs in your browser. Check units and assumptions before relying on a result.

Worked example

For 20 fair tosses (p = 0.5) and a target of 5 consecutive heads, the probability is approximately 0.2498703, or 24.987%.

Assumptions and limitations

References

These sources support the stated formula, convention or context. Read the limitations above before using the estimate.

  1. Bret Larget, University of Wisconsin–Madison — Notes on the Longest Run of Heads
  2. Wang Ling — The Probability of Runs of K Consecutive Heads in N Coin Tosses
  3. Schilling — The Longest Run of Heads, The College Mathematics Journal

Related calculators

Frequency Distribution Calculator · Basic Calculator · All calculators

Friendly Calculator provides general educational tools. Check the method and assumptions before relying on any result.