Probability of at least one

Enter a per-trial probability and number of trials. This calculator uses the complement trick: P(at least one) = 1 − (1 − p)ⁿ.

Enter probability and trials

Example: 1% chance per trial over 100 trials gives a 63.4% cumulative chance.

The complement trick

Calculating the probability of at least one success directly is messy — you would need to sum P(exactly 1) + P(exactly 2) + … + P(exactly n). The complement trick avoids all that:

P(at least one) = 1 − P(none) = 1 − (1 − p)ⁿ

This is one of the most useful results in probability. It requires only two assumptions: each trial is independent, and each trial has the same probability of success.

Worked examples

  1. Security breach: A system faces a 0.1% daily chance of being hacked. Over a year (365 days): P(≥1) = 1 − (0.999)^365 ≈ 30.6%. That tiny daily risk becomes a 1-in-3 annual risk.
  2. Concert tickets: If you enter 10 ballots each with a 5% chance, P(≥1 success) = 1 − (0.95)^10 ≈ 40.1%.
  3. Defective products: A factory has a 2% defect rate. In a batch of 50, P(≥1 defect) = 1 − (0.98)^50 ≈ 63.6%.

Why small probabilities add up

People underestimate cumulative risk. A 1% daily chance sounds negligible, but over 100 days it gives P(≥1) = 1 − (0.99)^100 ≈ 63.4%. This is the mathematical basis for why rare events happen regularly in large populations — something Hannah Fry discusses in Hello World when explaining why unlikely algorithmic errors are inevitable at scale.

Connection to the birthday paradox

The birthday paradox is the same formula applied differently. With 23 people, the probability that at least two share a birthday is 1 minus the probability that all are different. The complement trick makes the counter-intuitive result (50.7%) easy to derive. Try our birthday paradox calculator to see it in action.

Tips

  • The result grows quickly: even with p = 0.01, you only need 69 trials for a 50% cumulative chance.
  • For dependent events (without replacement), you need the hypergeometric distribution instead.
  • This formula is the basis of reliability engineering: "what is the probability at least one component fails?"
  • To find how many trials you need for a target cumulative probability, rearrange: n = log(1 − target) / log(1 − p).

More worked examples

  1. Lottery syndicate: 20 people each buy one £2 ticket for a game with 1-in-14-million odds. P(≥1 win) = 1 − (1 − 1/14000000)^20 ≈ 0.000143%. Still vanishingly small.
  2. USB plug orientation: If you randomly try one side with a 50% chance of being right, P(≥1 success in 2 tries) = 1 − (0.5)^2 = 75%. You will usually get it within two tries.
  3. Software testing: A bug occurs in 0.5% of runs. In 500 test runs, P(≥1 occurrence) = 1 − (0.995)^500 ≈ 91.8%. Very likely to surface.

Rearranging the formula

Sometimes you want to work backwards: how many trials do I need for a 90% chance? Rearranging P = 1 − (1−p)^n gives:

n = log(1 − P) / log(1 − p)

For example, with p = 0.05 and a target of 90%: n = log(0.1) / log(0.95) ≈ 44.9, so you need 45 trials. This is useful for planning: how many attempts, experiments or tickets do I need?

Related tools and pages

Questions about this tool

What does 'at least one' mean in probability?

It means one or more successes. The easiest way to calculate it is 1 minus the probability of zero successes: P(≥1) = 1 − (1−p)^n.

Does this assume independent trials?

Yes. Each trial must have the same probability and be independent of the others. If trials affect each other, the formula does not apply.

Why is the complement easier?

Counting all ways to get at least one success is complicated. Counting all ways to get zero successes is simple: it is just (1−p)^n.

How does this relate to the birthday paradox?

The birthday paradox uses the same complement trick. The probability of at least one shared birthday = 1 − P(all different).

Sources and method notes

Last reviewed 2026-10-06. Spotted a mistake? Tell us. This tool is free and runs entirely in your browser: nothing you enter is sent anywhere.