Coin Flip Probability Calculator

This calculator works out the probability of getting a chosen number of heads or tails across any number of coin flips, using the binomial distribution formula that underpins probability and statistics. You enter the number of flips (n), the number of heads to check (k), and the probability of heads per flip, which defaults to 50% for a fair coin but can be set from 0% to 100% to model a biased coin, using the built-in presets or your own figure. You then pick a scenario: exactly k heads, at least k heads, at most k heads, fewer than k heads, or more than k heads. The calculator returns the probability of that outcome as a percentage, the equivalent 1 in X chance, the expected number of heads, and the standard deviation, showing how far the actual result typically strays from that average. Below the results sits a calculation breakdown showing the combinations C(n,k) used in the formula, a bar chart of probabilities across every possible number of heads, and a full table listing the exact, at-most, and at-least chance for each outcome from 0 to n. A worked example explains the result in plain language. Use it to check your intuition about coin flip odds, work through probability homework, or see how the chance of an exact outcome falls as flips increase.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Verified 2025  Binomial distribution formula. Each flip is independent.

1. Flip Settings

2. Scenario

Coin Flip Probability Results

Probability
24.61%
Exactly 5 heads
1 in X chance
4.06
approximately
Expected heads
5.00
on average (n x p)
Std deviation
1.58
spread of outcomes

Calculation Breakdown

Number of flips (n)10
Heads to check (k)5
P(heads) per flip50.0%
P(tails) per flip50.0%
ScenarioExactly 5 heads
Combinations C(n,k)252
Result probability24.6094% (24.609375)

Full Distribution

Worked example: Adjust the inputs above to see your result.

All Possible Outcomes (full probability table)

Heads (k)Exact probabilityPercentageAt most kAt least k

How Coin Flip Probability Works

Each coin flip is an independent event with two outcomes: heads or tails. For a fair coin, both outcomes have a probability of 0.5 (50%). When you flip a coin n times, the total number of heads follows a binomial distribution. The binomial formula gives the probability of getting exactly k heads in n flips:

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

Where C(n, k) is the number of combinations (ways to choose k heads from n flips), p is the probability of heads on each flip, and (1 - p) is the probability of tails.

Worked Example

For 10 fair coin flips, the probability of getting exactly 5 heads is:

So even though 5 heads is the most likely single result, it only occurs about 1 in 4 times because there are 11 possible outcomes (0 to 10 heads) and many outcomes are close to equally likely.

Cumulative Probabilities

To find the probability of at least k heads, you sum the exact probabilities from k through to n. To find at most k heads, you sum from 0 through to k. These cumulative probabilities are useful for understanding how likely a run of luck is. For example, the probability of getting at least 8 heads in 10 fair flips is P(8) + P(9) + P(10) = 4.39% + 0.98% + 0.10% = 5.47%.

Expected Value and Standard Deviation

The expected number of heads is simply n x p. For 10 fair flips: E = 10 x 0.5 = 5 heads on average. The standard deviation tells you how much the actual result is likely to vary from this average: SD = sqrt(n x p x (1-p)). For 10 fair flips: SD = sqrt(10 x 0.5 x 0.5) = sqrt(2.5) = 1.58. This means a typical result falls within about 1.58 of the average, so roughly 3 to 7 heads is a common range.

Biased Coins

The same formula applies to any fixed probability p. A biased coin with p = 0.6 (60% chance of heads) will on average produce 6 heads in 10 flips. The distribution shifts to the right compared to a fair coin. This calculator lets you set any probability from 0% to 100% to model biased scenarios.

Related Calculators

Method: Binomial distribution formula P(X = k) = C(n,k) x p^k x (1-p)^(n-k). C(n,k) computed using multiplicative formula. Cumulative probabilities summed from the distribution. Expected value E = np; standard deviation SD = sqrt(np(1-p)).

This calculator is for educational purposes. Each coin flip is assumed to be independent with a fixed probability per flip. Real-world coins are not perfectly fair; minor biases in manufacturing or flipping technique can affect outcomes over many trials.