Coin Flip Streak Probability Calculator

Enter the number of flips and desired streak length to find the exact probability of at least one consecutive run, plus the expected streak count.

Parameters

1 – 10,000

1 – 100 (must be ≤ n)

Set your parameters and click Calculate

Results use exact Markov-chain math — no simulation

Summary

Enter the number of flips and desired streak length to find the exact probability of at least one consecutive run, plus the expected streak count.

How it works

  1. Set the number of flips (n) and the streak length (k) you want to detect.
  2. Choose whether to count heads streaks, tails streaks, or either outcome.
  3. The tool builds a Markov chain where each state tracks the current run length toward k.
  4. It evolves the probability distribution across all n flips without any approximation.
  5. Results show P(at least one streak), probability of zero streaks, and expected streak count.

Use cases

  • Verify gambling intuitions — how likely is 5 heads in a row over 20 flips?
  • Teach probability and Markov chains with a concrete, interactive example.
  • Analyze streaks in sports win/loss records under the null hypothesis of equal skill.
  • Assess quality-control run rules: how often does a 7-in-a-row alarm trigger by chance?
  • Settle probability debates at card game tables or in statistics classes.
  • Explore how streak probability scales with flip count and streak length.

Frequently Asked Questions

Last updated: 2026-07-22 · Reviewed by Nham Vu