b2KIT

Probability Calculator

Calculate probabilities for coin flips, dice rolls, card draws, and custom events with combination support.

Tested tool guide Tested browser tools Checked August 16, 2026

What Probability Calculator does, with a checked example

Enter a scenario such as a number of coin flips, dice rolls, or card draws, plus the outcome you want, and the tool returns the probability of that outcome. It counts equally likely outcomes and uses combinations, so repeated trials such as 3 heads in 5 flips and hands drawn without replacement such as 2 aces in 5 cards are both handled, along with custom events where you set your own per-trial success probability. The most common surprise is the gap between exactly and at least: exactly 3 heads in 5 flips is 31.25%, while at least 3 heads is 50%.

Worked example

A concrete input and expected output from the current implementation.

Input

5 coin flips, exactly 3 heads, fair coin

Expected output

Probability: 0.3125 (31.25%)

Each flip has 2 outcomes, so 5 flips give 2^5 = 32 equally likely sequences. The number of sequences with exactly 3 heads is the combination C(5,3) = 10, so the probability is 10/32 = 0.3125.

How the result is produced

1

Outcome counting for coins and dice

For a fair coin or die, every full sequence of flips or rolls is equally likely, so the tool divides the number of sequences matching the stated target by the total: 2^n sequences for n flips, 6^n for n rolls. The answer depends entirely on how the target is phrased; exactly 3 heads and at least 3 heads are different counts in the same 5-flip scenario, and the result shown follows the wording you entered.

2

Combinations for unordered outcomes

When order does not matter, the tool counts outcomes with combinations, n choose k = n! / (k! (n-k)!). A 5-card hand from a 52-card deck is one of C(52,5) possible hands, so the probability of exactly 2 aces is C(4,2) x C(48,3) / C(52,5). For a custom event with per-trial success probability p in n trials, the probability of exactly k successes is C(n,k) p^k (1-p)^(n-k).

Good uses

  • Settling a coin-flip argument: a run of 5 heads in 10 flips may feel rare, but the chance of exactly 5 heads is C(10,5) / 2^10 = 252/1024, about 24.6%.
  • Judging an unusual card hand: entering 5 cards from a 52-card deck with exactly 2 aces returns C(4,2) x C(48,3) / C(52,5) = 103,776 / 2,598,960, about 3.99%, which shows how uncommon a two-ace hand really is.
  • Checking a reliability question: if 6 independent trials each succeed 30% of the time, the probability that at least 2 succeed is 1 - 0.7^6 - 6(0.3)(0.7^5), about 0.58 or 58%.

Limits and checks

  • Exactly is not at least: for 5 flips, exactly 3 heads is 10/32 = 31.25%, but at least 3 heads is 16/32 = 50%. The tool answers the wording you enter, and a question phrased as odds of 3 heads in 5 flips is ambiguous, so confirm which form you asked for before interpreting the result.
  • Presets assume fairness and independence: coin and die scenarios treat every outcome as equally likely and each trial as unaffected by the others. A biased coin, weighted die, or process where trials influence each other needs the custom-event mode with your own success probability; the preset answer will not match the real process.
  • Past results do not change the next trial: the tool computes the probability of a scenario as specified, and observed history is not an input. After five tails in a row, the next fair flip is still 50%; the calculator will not report that a head is due. Results describe future outcomes, not a correction of past streaks.

Common questions

Why is exactly 3 heads in 5 flips only 31.25% when 3 out of 5 feels like a majority?

Because the tool counts sequences, not average heads. Of the 32 equally likely 5-flip sequences, 10 have exactly 3 heads, which gives 31.25%; another 6 have 4 or 5 heads, so at least 3 is 16/32 = 50%. The lower figure answers the narrower question you asked, and the tool shows the larger number when you ask for at least 3.

Can the tool tell me the chance that my next coin flip is heads after five tails in a row?

No. The calculator treats every flip as an independent trial with a fixed 50% chance, and it does not accept past outcomes as input. Five tails in a row is a 1-in-32 event for a fair coin, but the sixth flip still has exactly a 50% chance of heads, because past flips do not influence the next one.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools