Your personal flip dashboard
Every coin you flip anywhere on this site — single tosses, ten-flip batches, thousand-flip experiments — is recorded to the same local session statistics. This page is the dashboard for all of it: total flips, heads and tails counts, the running percentage split, and your longest heads and tails streaks to date.
The data lives in your browser's local storage, never on a server. Nothing is tracked across devices or shared with anyone, and the reset button at the bottom wipes the entire history in one click if you want to start counting again from zero.
Streaks: the shape of randomness
Two numbers here tend to surprise people. First, the longest streak: after a few hundred flips you will almost certainly have seen five or six identical results in a row somewhere — that is expected, not suspicious. Second, the current streak: whatever the last run of flips produced, which resets in type every time the other face appears.
Streaks are the most commonly misread feature of randomness. A long run of heads does not make tails 'due' — each flip is independent — but streaks of length five and six are so ordinary in large samples that their absence would actually be stranger than their presence.
From anecdote to dataset
Single flips are anecdotes; a thousand flips are a dataset. If you have been running batches on the 10-times, 100-times or 1000-times pages, the batch history table here shows your recent runs with their heads/tails splits, so you can watch the combined percentage tighten toward 50% as your lifetime total grows.
That convergence is the law of large numbers working on your own data, not a textbook diagram — the most persuasive probability lesson available anywhere, and it costs you nothing but a few idle clicks.
Binomial distribution and standard deviation: the math behind your spread
Your statistics page shows a percentage split, but how far from 50% should you expect it to wander? The answer comes from the binomial distribution. If you flip a fair coin n times, the expected number of heads is n/2, and the standard deviation — the typical one-sided swing — is √(n/4), which simplifies to √n / 2. For n = 100 that is 5; for n = 1000 it is about 15.8. In plain terms: after 100 flips your heads count will land within roughly ±5 of 50 about 68% of the time, and within ±10 about 95% of the time.
Plug in your own lifetime total from the dashboard and check whether your heads count sits inside the 68% band (±√n/2 from n/2) or the 95% band (±√n). If it does, your results are completely ordinary. If it falls outside the 95% band, you have seen a genuinely rare outcome — roughly a 1-in-20 event — but still not evidence of a biased coin. Example: 1000 flips, 530 heads. The 95% band runs from 469 to 531. You are right at the edge; nothing is wrong.
The shape of the binomial distribution is also why the percentage on your dashboard tightens toward 50% as your lifetime total grows. Doubling your flip count does not double the typical error — it only multiplies it by √2, so the percentage deviation shrinks. That is the mathematical explanation for the convergence you can watch in real time on the batch history table.
How long should a streak be? Expected run lengths in coin flips
A 'run' or 'streak' is any maximal sequence of the same face. In a long series of fair flips, runs of every length appear with predictable frequency. The expected number of runs of exactly length k in n flips is approximately n / 2^(k+1) for k ≥ 1. For 1000 flips: runs of length 1 appear about 250 times, length 2 about 125 times, length 3 about 63 times, length 4 about 31 times, length 5 about 16 times, length 6 about 8 times, and so on — each doubling of k roughly halves the count.
The longest streak in n flips follows a different formula. Its expected length is log₂(n) − 1, give or take one. For 100 flips that predicts a longest run near 5 or 6; for 1000 flips near 9 or 10. If your dashboard shows a longest streak in that ballpark, you are seeing the middle of the distribution, not an anomaly. A streak of 8 in 1000 flips would actually be slightly short of the median expectation, not a suspicious rarity.
This is why the streak counter on your statistics page is one of the most educational numbers it shows. Most people expect the longest streak to be 3 or 4 and are alarmed to see 9. But 9 is the predicted value, not a mystery — and now you have the formula to verify it yourself against your own lifetime total.
Gambler's fallacy vs. regression to the mean: why both ideas exist and how to tell them apart
Two concepts about coin flips sound contradictory but describe completely different things. The gambler's fallacy is the false belief that a run of heads makes tails more likely on the next flip. It is wrong because each flip is independent: the coin has no memory. If your dashboard shows 60 heads out of the last 100 flips, the 101st flip is still exactly 50/50 — the past does not tilt the scale.
Regression to the mean is a real and separate phenomenon. It says that if your current percentage is unusually far from 50% — say 60% after 100 flips — your lifetime percentage is likely to move closer to 50% as you flip more, not because the coin corrects itself, but simply because future flips will themselves be near 50% and will dilute the early imbalance. After 1000 total flips, those original 60 heads represent just 6% of the sample; their effect on the overall percentage is tiny.
Practical example: you flip 20 times and get 15 heads (75%). The gambler's fallacy says tails is now due — wrong. Regression to the mean says your lifetime percentage will drift back toward 50% over the next hundreds of flips — correct, because the math of large samples overwhelms early noise. The statistics page lets you watch this distinction live: notice how a lopsided early batch barely moves the needle once your total is above 500 flips.