Calculate the probability of getting heads (or tails) a specific number of times in any number of coin flips. Choose an exact outcome, at-least, or at-most scenario. Works for fair coins and biased coins.
| Heads (k) | Exact probability | Percentage | At most k | At least k |
|---|
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.
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.
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%.
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.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.