Skip to main content

Calculate basic probability from favorable and total outcomes.

Enter values to see the result.

P(A) = favorable / total

P(A and B) = P(A) x P(B) (independent)

P(A or B) = P(A) + P(B) - P(A and B)

Guide: Probability

Probability is a measure of certainty of an event occurring, expressed as a number between 0 and 1. P = 0 means impossible event, P = 1 means certain event. For example, the probability of getting heads in a coin flip is 0.5 or 50%.

Basic probability is calculated as the ratio of favorable outcomes to the total number of possible outcomes. In a 6-sided die, if there are 3 favorable outcomes, P = 3/6 = 0.5 or 50%. This classical probability assumes each outcome is equally likely.

P(A and B) - multiplication rule: For two independent events, the probability of both occurring is P(A) × P(B). For example, the probability of two heads in a row is 0.5 × 0.5 = 0.25. Events are independent if the occurrence of one does not affect the other.

P(A or B) - addition rule: For two events, the probability of at least one occurring is P(A) + P(B) - P(A and B). We subtract the intersection to avoid double counting. For mutually exclusive events (cannot occur together), simply add them.

Applications: Probability is used in insurance for risk assessment, in medicine for drug efficacy, in finance for asset pricing, in gambling for strategy, and in business decision-making.

23 people give a 50.7% chance of a shared birthday — but only 5.9% that someone shares yours

The birthday problem is the cleanest demonstration that probability counts pairs, not people. Among 23 people there are 253 possible pairs, and it is the pairs that accumulate. Ask instead whether anyone matches one specific birthday — yours — and the answer collapses to 5.9%, because now there are only 22 comparisons instead of 253.

How it works

  • Computes probabilities for independent events, including at-least-one cases.
  • Handles the complement, which is usually the easier route: 1 minus the chance nothing happens.
  • Covers the shared-birthday family of problems, where intuition and arithmetic diverge sharply.
P(at least one) = 1 − P(none)

shared birthday among n people:
  P = 1 − (365/365 × 364/365 × … × (365−n+1)/365)

someone matching one specific date:
  P = 1 − (364/365)^(n−1)

pairs among n people = n(n−1) ÷ 2

Worked example

A room filling up, tracked two ways.

  1. 10 people → 11.7% chance some pair shares a birthday
  2. 23 people → 50.7%
  3. 30 people → 70.6%
  4. 50 people → 97.0%
  5. 57 people → 99.0%

Fifty per cent arrives at 23 people because 23 people form 253 pairs. Asking whether anyone shares your birthday is a different question with only 22 comparisons, and it sits at 5.9% — you would need 253 other people for that to reach even odds.

Reading the result

  • The number 253 appearing on both sides is not a coincidence worth over-reading, but it is a useful memory hook: 23 people make 253 pairs, and 253 others is roughly what one specific date needs for even odds.
  • Working with the complement is almost always easier. Computing the chance that all 23 birthdays differ is a single product; computing the chance that at least one pair matches directly would mean summing a large number of overlapping cases.
  • Streaks feel rarer than they are for the same reason. In 100 coin flips there is an 81.0% chance of seeing at least one run of five heads — people reading a genuinely random sequence routinely conclude it must be rigged.
  • The standard calculation assumes birthdays are uniformly spread and ignores 29 February. Real birth dates cluster seasonally, which slightly raises the true probability, so 50.7% is a mild underestimate rather than an overestimate.

Common questions

Why does 23 feel far too small?
Because intuition counts people and the problem counts pairs. Each new person is compared against everyone already present, so pairs grow roughly with the square of the headcount: 23 people produce 253 comparisons, and half of those chances are enough to cross even odds.
How many people until someone shares my exact birthday?
Around 253 others for a 50% chance. That is a completely different question from the classic one, and the gap between 23 and 253 is the whole point — matching any pair is easy, matching one fixed date is not.