Skip to main content
DataVelix
FR

Probability Calculator

Probabilities of single and combined events.

  • Free
  • No sign-up
  • Runs locally

Single event

Probability of one event among equally likely outcomes.

Two events A and B

Enter probabilities from 0 to 1 or as percentages (for example 30%). Leave P(A and B) blank to assume independent events.

Enter your data or load the example to see the results.

How to use it

  1. 1For a single event, enter the number of favorable outcomes and the total number of equally likely outcomes.
  2. 2For two events, enter P(A) and P(B) as decimals (0.3) or percentages (30%).
  3. 3Enter P(A and B) if you know it, or leave it blank to assume independent events.
  4. 4Read the complementary, joint, union and conditional probabilities, then copy the results.

Probability rules used

Basic probability: P(A) = favorable outcomes / total outcomes. Complement: P(not A) = 1 − P(A). Union: P(A or B) = P(A) + P(B) − P(A and B). Conditional: P(A | B) = P(A and B) / P(B).

Two events are independent when P(A and B) = P(A) × P(B). The calculator checks the exact decimal inputs against max(0, P(A) + P(B) − 1) ≤ P(A ∩ B) ≤ min(P(A), P(B)). It uses no rounding tolerance for these bounds. Outcome counts must be exact integers up to 2⁵³ − 1.

Frequently asked questions

Can I enter percentages?

Yes. Type a value followed by % (for example 25%), or a decimal between 0 and 1.

Why is P(A and B) rejected?

It can never exceed the smaller of P(A) and P(B), and it cannot be lower than P(A) + P(B) − 1. The calculator shows the valid range.

When is a conditional probability undefined?

P(A | B) is undefined when P(B) = 0, because you cannot condition on an impossible event.