Probability Calculator - Event Probability Probability Calc

Enter probabilities for events A and B to calculate complement, union, intersection, and conditional probability.

Event Probabilities

Leave blank to assume independent events: P(A) × P(B)

Your Results

P(A ∪ B) — Either A or B 0.72
Formula P(A) + P(B) − P(A ∩ B) = 0.6 + 0.3 − 0.18 = 0.72
P(A) 0.6
P(B) 0.3
P(A') — Complement of A 0.4
P(B') — Complement of B 0.7
P(A ∩ B) — Both A and B 0.18
P(A ∪ B) — Either A or B 0.72
P(A | B) — A given B 0.6
P(B | A) — B given A 0.3
P(A' ∩ B') — Neither A nor B 0.28
Independent? Yes
Mutually Exclusive? No

Probability Calculator - Guide

What Is the Probability Calculator?

The probability calculator is a free online tool that computes the likelihood of single and multiple events occurring. Probability is a branch of mathematics that quantifies uncertainty on a scale from 0 (impossible) to 1 (certain). This calculator accepts the probabilities of two events — A and B — and instantly returns their complements, union, intersection, conditional probabilities, and whether the events are independent or mutually exclusive.

Whether you are a student solving homework problems, a data analyst assessing risk, or simply curious about the odds of everyday events, this probability calculator provides accurate results with a clear formula breakdown.

Key Features

  • Comprehensive output: Calculates P(A'), P(B'), P(A ∪ B), P(A ∩ B), P(A|B), P(B|A), and P(A' ∩ B') in one click.
  • Independent-event assumption: Leave P(A ∩ B) blank and the calculator automatically assumes independence, computing P(A) × P(B).
  • Relationship detection: Automatically checks and displays whether events are independent and/or mutually exclusive.
  • Formula display: Every result is accompanied by the formula used, so you can learn while you calculate.
  • Input validation: Ensures probabilities are between 0 and 1, and that P(A ∩ B) does not exceed P(A) or P(B).
  • No sign-up required: 100% free with no account or download needed.

Probability Formulas — How It’s Calculated

1. Complement (Probability of “Not A”)

P(A') = 1 − P(A)

2. Union — Addition Rule (Either A or B)

P(A ∪ B) = P(A) + P(B) − P(A ∩ B)

3. Intersection (Both A and B)

Independent events: P(A ∩ B) = P(A) × P(B)

General case: P(A ∩ B) = P(A|B) × P(B)

4. Conditional Probability (A Given B)

P(A | B) = P(A ∩ B) ÷ P(B),   where P(B) ≠ 0

5. Bayes’ Theorem

P(A | B) = [P(B | A) × P(A)] ÷ P(B)

How to Use — Step-by-Step

  1. Enter P(A): Type the probability of Event A as a decimal between 0 and 1 (e.g., 0.6).
  2. Enter P(B): Type the probability of Event B (e.g., 0.3).
  3. Optionally enter P(A ∩ B): If you know the probability that both events occur together, enter it. Otherwise, leave this field blank — the calculator will assume the events are independent and compute P(A) × P(B).
  4. Click “Calculate”: All results — complements, union, intersection, conditional probabilities, and event-type checks — appear instantly.
  5. Review formulas: The formula box above the results shows the exact calculation for the highlighted result.

Practical Examples with Real Numbers

  • Example 1 — Independent events: P(A) = 0.5 (coin lands heads), P(B) = 0.1667 (die shows 6). Since the events are independent, P(A ∩ B) = 0.5 × 0.1667 = 0.0833. P(A ∪ B) = 0.5 + 0.1667 − 0.0833 = 0.5834.
  • Example 2 — Conditional probability: In a class, P(pass maths) = 0.7, P(pass science) = 0.6, P(pass both) = 0.5. What is the probability of passing maths given you passed science? P(Maths | Science) = 0.5 ÷ 0.6 = 0.8333.
  • Example 3 — Mutually exclusive events: P(rolling a 3) = 1/6, P(rolling a 5) = 1/6. These cannot happen simultaneously, so P(A ∩ B) = 0 and P(A ∪ B) = 1/6 + 1/6 = 1/3 ≈ 0.3333.

Real-World Use Cases

  • Risk assessment: Insurance companies use probability to set premiums based on the likelihood of claims.
  • Medical testing: Conditional probability and Bayes’ theorem help interpret diagnostic test results (sensitivity and specificity).
  • Games & gambling: Compute odds in card games, dice games, lotteries, and sports betting.
  • Weather forecasting: Meteorologists express rain or storm chances as probabilities.
  • Quality control: Manufacturers calculate the probability of defective items in a production batch.
  • Machine learning: Bayesian classifiers and probabilistic models underpin spam filters, recommendation engines, and more.

Understanding Your Results

After clicking “Calculate”, the results card displays:

  • P(A) & P(B): Your input probabilities echoed back for confirmation.
  • P(A') & P(B'): The complements — the probability that each event does not occur.
  • P(A ∩ B): The probability that both events occur together (intersection).
  • P(A ∪ B): The probability that at least one event occurs (union).
  • P(A|B) & P(B|A): Conditional probabilities — the likelihood of one event given the other has occurred.
  • P(A' ∩ B'): The probability that neither event occurs.
  • Independent?: “Yes” if P(A ∩ B) equals P(A) × P(B); “No” otherwise.
  • Mutually Exclusive?: “Yes” if P(A ∩ B) = 0; “No” otherwise.

Tips & Best Practices

  • Express probabilities as decimals: Enter 0.25 rather than 25%. The calculator expects values between 0 and 1.
  • Leave P(A ∩ B) blank when unsure: If you do not know whether events are dependent, leaving it blank lets the calculator assume independence — a common and reasonable starting point.
  • Use the complement shortcut: Sometimes it is easier to calculate the probability that something does not happen and subtract from 1.
  • Double-check with the union formula: P(A ∪ B) should never exceed 1. If it does, your P(A ∩ B) input may be too small.
  • Relate back to counting: Probability = favorable outcomes ÷ total outcomes. Pair this calculator with a permutation/combination calculator for complex problems.

Common Mistakes to Avoid

  • Confusing independent and mutually exclusive: Independent means one event does not affect the other’s probability. Mutually exclusive means both cannot happen at the same time. They are not the same concept.
  • Adding probabilities without subtracting overlap: P(A ∪ B) ≠ P(A) + P(B) unless the events are mutually exclusive. Always subtract P(A ∩ B).
  • Entering probabilities greater than 1: Probabilities must be between 0 and 1. Values like 60 should be entered as 0.6.
  • Dividing by zero in conditional probability: P(A|B) is undefined when P(B) = 0. The calculator handles this gracefully, but be aware of the limitation.
  • Assuming independence without justification: Real-world events are often dependent. Only assume independence when there is a clear logical reason.

Frequently Asked Questions

  • What is the difference between independent and mutually exclusive events?

    Independent events do not influence each other’s probability: P(A ∩ B) = P(A) × P(B). Mutually exclusive events cannot happen at the same time: P(A ∩ B) = 0. Two events can be independent but not mutually exclusive, and vice versa.

  • What is conditional probability?

    Conditional probability P(A|B) is the probability that event A occurs given that event B has already occurred. It is calculated as P(A ∩ B) ÷ P(B).

  • When should I use Bayes’ theorem?

    Use Bayes’ theorem when you know P(B|A) and want to find P(A|B), or when you need to update a prior probability with new evidence. It is widely used in medical diagnosis, spam filtering, and statistical inference.

  • Can probability be greater than 1?

    No. Probability ranges from 0 (impossible) to 1 (certain). If a calculation yields a value greater than 1, one or more inputs are incorrect.

Find a Calculator

Browse All Calculators →