Skip to content

Probability Calculator with Multiple Attempts

This probability calculator with multiple attempts finds the chance of at least one success in n tries, or combines two independent events.

Calculation
Enter probabilities as

For example 0.5 for a 50% chance.

A and B are treated as independent: one happening does not change the chance of the other.

P(A and B)

0.1515% chance that both A and B happen, assuming they are independent.
P(A or B), at least one
0.65 (65%)
P(exactly one)
0.5 (50%)
P(neither)
0.35 (35%)
P(A but not B)
0.35 (35%)
P(B but not A)
0.15 (15%)
P(not A)
0.5 (50%)
P(not B)
0.7 (70%)

How to use the Probability Calculator

  1. Choose Two events to combine P(A) and P(B), or Repeated trials to repeat one event several times.
  2. Pick whether you type probabilities as decimals (0.25) or percents (25). Switching converts the values already entered.
  3. Enter the probabilities, and for repeated trials the number of trials (1 to 10,000).
  4. Read the main result in the panel, with every other combination listed below it as a decimal and a percent.

Formula

P(A and B) = P(A) × P(B) P(A or B) = P(A) + P(B) − P(A) × P(B) P(at least once in n) = 1 − (1 − p)ⁿ

Where:

P(A), P(B)
The probability of each event on its own, from 0 (impossible) to 1 (certain)
P(not A)
The complement, 1 − P(A): the chance that A does not happen
P(exactly one)
P(A) + P(B) − 2 × P(A) × P(B): one of the two events happens, but not both
P(neither)
(1 − P(A)) × (1 − P(B)): neither event happens
p
The probability of the event on a single trial (repeated-trials mode)
n
The number of independent trials, a whole number from 1 to 10,000

Every formula assumes the events are independent: one happening does not change the chance of the other. Results use exact decimal arithmetic and are rounded to 10 decimal places only for display; very small chances are shown in scientific notation.

Worked example

The forecast gives a 35% chance of rain tomorrow in one city and a 60% chance in another city far away, so the two forecasts can be treated as independent. What is the chance it rains in both, in at least one, or in neither?

  1. Write the chances as decimals: P(A) = 0.35 and P(B) = 0.6.
  2. Both cities: P(A and B) = 0.35 × 0.6 = 0.21, a 21% chance.
  3. At least one: P(A or B) = 0.35 + 0.6 − 0.21 = 0.74, a 74% chance.
  4. Exactly one: 0.35 + 0.6 − 2 × 0.21 = 0.53, a 53% chance.
  5. Neither: (1 − 0.35) × (1 − 0.6) = 0.65 × 0.4 = 0.26, a 26% chance. Check: 0.21 + 0.53 + 0.26 = 1.

There is a 21% chance of rain in both cities, 74% in at least one, 53% in exactly one and 26% in neither.

Probability of at least one success in multiple attempts

A small chance repeated many times adds up, but not by simple addition. A 10% chance tried ten times is not a certainty: it gives about a 65.1% chance of at least one success. The reliable method is the complement rule. Find the chance that the event never happens, (1 − p)ⁿ, and subtract it from 1.

The Repeated trials mode does this for one probability per attempt, p, and a number of attempts, n, from 1 to 10,000. It returns four figures: the chance of at least once, the chance of never, the chance of every time (pⁿ) and the expected number of times (n × p). Type p as a decimal or switch the format to percent, so a 2.5% chance can be entered as 2.5.

Worked example: a 1% drop rate over repeated attempts

A game item drops 1% of the time, and every attempt is independent. Set the format to percent, enter 1 and change the number of trials:

AttemptsChance of neverChance of at least once
1090.44%9.56%
5060.50%39.50%
10036.60%63.40%
3004.90%95.10%

After 100 attempts the expected number of drops is 100 × 0.01 = 1, yet more than a third of players still have nothing. An expected value is an average over many players, not a promise to each one.

How many attempts for a target chance? There is no solver for that here, so raise the number of trials until the result passes your target, or use n = ln(1 − target) ÷ ln(1 − p) and round up. At 1% per attempt, a 50% chance of at least one drop takes 69 attempts and a 90% chance takes 230. A success is never "due" after a losing streak: with independent attempts, the chance on the next one is still p.

Probability of A and B for two independent events

The Two events mode takes P(A) and P(B) and multiplies them: P(A and B) = P(A) × P(B). Rolling two sixes with two dice is 1/6 × 1/6 = 1/36, about 2.78%.

Suppose a morning train is delayed on 7% of days and the connecting bus is late on 8% of days, independently of the train. The four possible days are:

TrainBusWorkingChance
DelayedLate0.07 × 0.080.56%
DelayedOn time0.07 × 0.926.44%
On timeLate0.93 × 0.087.44%
On timeOn time0.93 × 0.9285.56%

These four outcomes cover everything without overlapping, so they add up to exactly 100%. Both legs fail on about one day in 180.

Probability of A or B, exactly one and neither

The same mode lists every other combination of the two events:

  • A or B means at least one, including both: P(A) + P(B) − P(A and B). For the commute, 0.07 + 0.08 − 0.0056 = 0.1444, so something goes wrong on 14.44% of days.
  • Exactly one is P(A) + P(B) − 2 × P(A and B): 13.88% for the commute.
  • Neither is (1 − P(A)) × (1 − P(B)): the 85.56% trouble-free day.
  • A but not B, B but not A, not A and not B complete the list.

Adding without the overlap is the classic error: two independent 50% chances give 0.5 + 0.5 − 0.25 = 0.75, not 100%.

The independence assumption

Every result assumes the events are independent: the outcome of one gives no information about the other. Dice rolls and separate coin tosses qualify. Two flights on the same stormy evening do not, and neither do two cards drawn from one deck without replacement, because the first draw changes what remains.

For dependent events the rule becomes P(A and B) = P(A) × P(B given A). That conditional probability is not an input here, and multiplying dependent chances as if they were independent can badly understate how often things go wrong together. Independent is also not the same as mutually exclusive: mutually exclusive events cannot happen together, so P(A and B) = 0.

Common mistakes and limits

  • Exactly two events. The Two events mode takes A and B only. For a third independent event, multiply its probability in by hand.
  • One fixed chance per attempt. A rate that changes between attempts, such as a pity system that raises the drop chance, is outside the formula.
  • At least once, never or every time only. The chance of exactly k successes in n attempts needs the binomial formula, which is not included, and there are no dice, card or conditional modes.
  • Probabilities, not odds. Results appear as a decimal and a percent. Inputs must lie between 0 and 1 (or 0% and 100%).
  • Tiny results. Arithmetic keeps 40 significant digits, and values below one in a million switch to scientific notation instead of showing a misleading 0.

Frequently asked questions

How do I calculate the probability of something happening at least once?

Work out the chance it never happens and subtract from 1: P(at least once) = 1 − (1 − p)ⁿ. With a 10% chance per try and 10 tries, the chance of never succeeding is 0.9¹⁰ ≈ 0.3487, so the chance of at least one success is about 0.6513, or 65.1%. It is not 10 × 10% = 100%.

How do I calculate the odds with multiple attempts?

Treat each attempt as an independent try with the same chance p and use 1 − (1 − p)ⁿ. A 2% chance over 50 attempts gives 1 − 0.98⁵⁰ ≈ 0.6358, a 63.6% chance of at least one success, with 50 × 0.02 = 1 success expected on average. Choose Repeated trials, set the format to percent, then enter 2 and 50 trials. Earlier failures do not make the next attempt any more likely to succeed.

How do I find the probability of A and B?

For independent events, multiply the two probabilities: P(A and B) = P(A) × P(B). If a coin lands heads with probability 0.5 and a die shows a six with probability 1/6, the chance of both is 0.5 × 1/6 = 1/12, about 0.0833. If the events are not independent, you need the conditional probability instead: P(A and B) = P(A) × P(B given A).

How do I calculate the probability of A or B?

Use the addition rule: P(A or B) = P(A) + P(B) − P(A and B). You subtract the overlap because outcomes where both happen would otherwise be counted twice. For independent events with P(A) = 0.5 and P(B) = 0.3, that is 0.5 + 0.3 − 0.15 = 0.65. “Or” here means at least one, including both.

How do you know whether two events are independent?

Two events are independent when knowing that one happened tells you nothing about whether the other happened. Two separate coin tosses are independent; drawing two cards from the same deck without putting the first one back is not, because the first card changes what is left. This calculator assumes independence for every result.

How do I convert odds to a percentage?

Odds compare successes with failures, so odds of a to b in favor give a probability of a ÷ (a + b). Odds of 1 to 3 in favor mean 1 ÷ (1 + 3) = 0.25; multiply by 100 to get 25%. In the other direction, a probability of 0.25 is 0.25 against 0.75, or 1 to 3. The results here are shown as decimals and percents only, so convert odds before you type them in.

Last updated: