Coin Flip Calculator

The Coin Flip Calculator runs two modes. In Simulator mode you flip a virtual coin anywhere from 1 to 10,000 times and watch the heads/tails counts and percentages drift toward the expected 50/50 split (or your chosen bias). In Probability mode it computes the exact binomial probability of getting exactly N heads, at most N, or at least N heads in M flips using the formula P(X = k) = C(n,k) × p^k × (1-p)^(n-k). A bias slider lets you simulate loaded coins — set heads probability anywhere from 0 to 1. Use it for probability homework, decision-making, teaching the law of large numbers, or just settling a dispute.

star 4.9
New

Coin Flip calculator

monetization_on

Coin Flip

Always tails (0) Fair (0.5) Always heads (1)
Heads
0 0%
Tails
0 0%
Total Flips
0
Expected Heads
0
Actual vs Expected
Longest Streak
0
history

Recent Flips (last 100)

Flip the coin to start.

tips_and_updates Tips

  • A fair coin has p = 0.5 — set the bias slider to 0.5 for an unbiased simulator
  • Real coins are very close to fair; studies measure bias under 0.51
  • The 'law of large numbers' says results approach the true probability as flips grow — 10 flips can easily deviate 30% from 50/50, but 10,000 flips rarely deviate more than 1%
  • Getting exactly 50% heads is less likely than you think — with 10 flips it is only 24.6%
  • Long streaks are normal: in 100 flips of a fair coin, expect a run of 6+ heads or tails roughly 80% of the time
  • Use Probability mode for homework — it gives exact binomial answers, no sampling noise
  • A bias of 0.6 (slightly loaded coin) flips heads 60% of the time on average

How to Use the Coin Flip

1

Pick a mode

Simulator flips a virtual coin up to 10,000 times. Probability computes exact binomial probabilities.

2

Set number of flips

In Simulator mode, this is how many times to flip. In Probability mode, this is M — the total trials.

3

Set target heads (Probability mode)

N = how many heads you are asking about. We show P(exactly N), P(at most N), and P(at least N).

4

Adjust bias if needed

Default 0.5 is a fair coin. Slide to 0.6 for a slightly loaded heads coin, 0.4 for tails-biased, etc.

The Formula

Each coin flip is an independent Bernoulli trial with probability p of heads. For n independent flips, the number of heads follows a binomial distribution. The probability of exactly k heads is C(n,k) × p^k × (1-p)^(n-k). 'At most k' and 'at least k' probabilities are cumulative sums. When p = 0.5 (fair coin), the distribution is symmetric around n/2 and the most likely outcome is exactly n/2 heads.

P(X = k) = C(n, k) × p^k × (1-p)^(n-k)

lightbulb Variables Explained

  • n Total number of flips
  • k Number of heads outcomes of interest
  • p Probability of heads on a single flip (default 0.5)
  • C(n,k) Binomial coefficient = n! / (k! × (n-k)!)

tips_and_updates Pro Tips

1

A fair coin has p = 0.5 — set the bias slider to 0.5 for an unbiased simulator

2

Real coins are very close to fair; studies measure bias under 0.51

3

The 'law of large numbers' says results approach the true probability as flips grow — 10 flips can easily deviate 30% from 50/50, but 10,000 flips rarely deviate more than 1%

4

Getting exactly 50% heads is less likely than you think — with 10 flips it is only 24.6%

5

Long streaks are normal: in 100 flips of a fair coin, expect a run of 6+ heads or tails roughly 80% of the time

6

Use Probability mode for homework — it gives exact binomial answers, no sampling noise

7

A bias of 0.6 (slightly loaded coin) flips heads 60% of the time on average

The coin flip is the simplest and most intuitive example of a random binary event, making it a cornerstone of probability theory and statistics education. A fair coin has exactly a 50% chance of landing heads and 50% chance of tails on any single flip, but the actual observed distribution in a small sample often deviates from this expectation. Flip a coin 10 times and getting 7 heads is not unusual — it happens about 11.7% of the time. Flip it 1,000 times and the proportion of heads almost certainly falls between 47% and 53%, illustrating the law of large numbers. Coin flips follow the binomial distribution, which gives the exact probability of observing k heads in n flips. This distribution underlies hypothesis testing, confidence intervals, and A/B testing in modern statistics. This coin flip calculator operates in two modes: a simulator that flips a virtual coin up to 10,000 times with animated results and running statistics, and a probability calculator that computes exact binomial probabilities for any number of trials and desired outcomes. Use it for classroom demonstrations, quick decisions, game night, or exploring how randomness behaves at different sample sizes.

Simulator mode vs probability mode

Simulator mode runs actual random coin flips and reports observed heads and tails counts plus a running percentage chart. Because it uses real randomness, 100 flips might give you 47 heads or 56 heads — you can hit 'Flip' again to see the variance. Probability mode computes exact binomial probabilities with no randomness: the answer is deterministic and matches textbook values. Use Simulator to teach the law of large numbers; use Probability for homework and exact answers.

Law of large numbers, streaks, and how to spot a biased coin

With 10 flips of a fair coin, deviation from 50/50 is huge — a 7-3 split happens 11.7% of the time. With 1,000 flips, a 7-3 style (700 heads) would be astronomically unlikely (P ≈ 10^-38). Streaks are common: in 100 fair flips, the longest run of heads averages about 7. To detect a biased coin, run at least 1,000 flips and compare to the expected standard deviation of √(n × p × (1-p)). Results more than 3 SDs from the mean strongly suggest bias.

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.