SahlCalc سهل
Gulf Hubs:

Saudi Arabia: Labour: HRSD · Tax and zakat: ZATCA

Probability Calculator

Combine the probabilities of two independent events: both happening, either one, neither, exactly one, and the complements.

0 to 1, a percentage or a fraction, e.g. 0.5, 50% or 1/6

Same format, e.g. 0.4, 40% or 2/5; A and B are independent

Whole number, e.g. 3 for the chance A happens at least once in 3 tries

P(A and B)

0.2(20%)

P(A or B)

0.7

P(neither)

0.3

P(not A)

0.5

A at least once in 3 tries

0.875

All results (independent events) (7)
EventFormulaProbabilityPercent
A and BP(A)·P(B)0.220%
A or B (at least one)P(A) + P(B) − P(A)·P(B)0.770%
Exactly one of A, BP(A) + P(B) − 2·P(A)·P(B)0.550%
Neither A nor B(1 − P(A))(1 − P(B))0.330%
A but not BP(A)(1 − P(B))0.330%
Not A1 − P(A)0.550%
Not B1 − P(B)0.660%

Formula with your numbers

  • And = 0.5 × 0.4 = 0.2
  • Or = 0.5 + 0.4 − 0.2 = 0.7
  • At least once = 1 − (1 − 0.5)^3 = 0.875

Quick answer: If P(A) = 0.5 and P(B) = 0.4 and the events are independent, P(A and B) = 0.5 × 0.4 = 0.2 and P(A or B) = 0.5 + 0.4 − 0.2 = 0.7.

How it's calculated

For independent events (one does not change the chance of the other), the multiplication rule gives P(A and B) = P(A) × P(B). The addition rule gives P(A or B) = P(A) + P(B) − P(A and B); the overlap is subtracted so it is not counted twice.

The complement of an event is everything else: P(not A) = 1 − P(A). "Neither" is (1 − P(A))(1 − P(B)), and the chance of A at least once in n tries is 1 − (1 − P(A))ⁿ.

These rules assume independence. Drawing cards without putting them back, for example, makes events dependent and needs conditional probability. For counting outcomes, see the permutation and combination calculator.

Worked examples

  • P(A) = 0.5, P(B) = 0.4: and 0.2, or 0.7, neither 0.3
  • Two dice, both sixes: 1/6 × 1/6 = 0.027778
  • P(A) = 0.5 at least once in 3 tries: 1 − 0.5³ = 0.875

Frequently asked questions

What does independent mean?

Two events are independent when knowing one happened does not change the probability of the other, like two separate coin tosses.

What if the events are mutually exclusive?

Mutually exclusive events cannot both happen, so P(A and B) = 0 and P(A or B) = P(A) + P(B). Such events are not independent (unless one has probability 0), so do not use this calculator's "and" result for them.

Can I enter percentages or fractions?

Yes. 0.4, 40% and 2/5 all mean the same probability.

What's the chance of at least one six in four rolls?

A little over half, about 51.8%. The chance of no six in four rolls is (5/6)⁴, around 48.2%, and you take that away from 100%.

After five tails in a row, is heads more likely?

No. A fair coin doesn't remember, so the next toss is still 50/50. Believing a result is "due" is known as the gambler's fallacy.

How do I turn odds into a probability?

Odds of 3 to 1 against mean one win for every three losses, so the chance is 1 in 4, or 25%.