Skip to content

Probability Calculator

Updated:

Enter the probabilities of two events A and B, choose how they are related, and instantly get the union, intersection, complements, and the chance of exactly one or neither event occurring.

Calculate Event Probabilities

Input Fields
P(A)
%
Any value from 0 to 100
P(B)
%
Any value from 0 to 100
If enabled, the result will update automatically when you change any value.

Probability

Formula
\[ P(A \cup B) = P(A) + P(B) - P(A \cap B) \\ P(A') = 1 - P(A), \quad P(B') = 1 - P(B) \\ P\big((A \cup B)'\big) = 1 - P(A \cup B) \\ P(A \oplus B) = P(A \cup B) - P(A \cap B) \\ P(A \cap B) = P(A) \times P(B) \ \text{(independent events)}, \quad P(A \cap B) = P(A \mid B) \times P(B) \\ \]

Where:

  • \(P(A)\), \(P(B)\) — probabilities of events A and B occurring
  • \(P(A \cap B)\) — probability that both events occur (the intersection)
  • \(P(A \cup B)\) — probability that at least one event occurs (the union)
  • \(P(A')\), \(P(B')\) — probabilities that A or B does not occur (the complements)
  • \(P(A \oplus B)\) — probability that exactly one of the two events occurs (the symmetric difference)
  • \(P(A \mid B)\) — conditional probability of A given that B has occurred

The first line is the inclusion–exclusion rule: adding P(A) and P(B) double-counts the cases where both happen, so the intersection is subtracted once. The last line shows the two most common ways to obtain the intersection: the multiplication rule for independent events and the general conditional-probability rule.

Probability – Calculation Example

Example: a sales team estimates a 60% chance a lead answers the email (event A) and a 50% chance the lead attends the demo (event B). Assume the two events are independent.

\[ P(A \cap B) = P(A) \times P(B) = 0.60 \times 0.50 = 0.30 \]
\[ P(A \cup B) = P(A) + P(B) - P(A \cap B) = 0.60 + 0.50 - 0.30 = 0.80 \]
\[ P(A') = 1 - 0.60 = 0.40, \quad P(B') = 1 - 0.50 = 0.50 \]
\[ P\big((A \cup B)'\big) = 1 - 0.80 = 0.20, \quad P(A \oplus B) = 0.80 - 0.30 = 0.50 \]

Result: at least one event occurs with probability 80%, both occur with probability 30%, A alone does not occur with probability 40%, B alone does not occur with probability 50%, neither occurs with probability 20%, and exactly one occurs with probability 50%.

How to use the calculator

  1. Enter the Probability of event A as a percentage between 0 and 100.
  2. Enter the Probability of event B as a percentage between 0 and 100.
  3. Choose the Relationship between A and B:
    • Independent events — one event has no effect on the other, so \(P(A \cap B) = P(A) \times P(B)\).
    • Mutually exclusive events — the events cannot both happen, so \(P(A \cap B) = 0\).
    • I know P(A∩B) directly — enter the overlap yourself.
    • I know the conditional P(A|B) — the calculator converts it with \(P(A \cap B) = P(A \mid B) \times P(B)\).
  4. Depending on the option chosen, an extra field appears: either Intersection P(A∩B) or Conditional P(A|B). Fill it in if applicable.
  5. Read the results: the union, the intersection, both complements, the probability of neither event, and the probability of exactly one event — plus a step-by-step breakdown of how each value was computed.

What is probability and why these rules matter

Probability quantifies how likely an event is, on a scale from 0 (impossible) to 1 (certain), usually expressed as a percentage. When you analyze a single event, everything follows from its probability and its complement: \(P(A') = 1 - P(A)\). As soon as two events are involved, the interesting questions begin — what is the chance that at least one occurs, that both occur, or that exactly one occurs?

The key to all these questions is the intersection \(P(A \cap B)\): the probability that both events happen at the same time. The inclusion–exclusion principle says \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\). Subtracting the intersection is necessary because the outcomes where both events occur are counted twice if you simply add the two probabilities. For example, two events with probabilities 60% and 50% cannot simply give a 110% union — the overlap is removed.

How you find the intersection depends on the relationship between the events. If the events are independent (knowing that one occurred tells you nothing about the other), the intersection is the product \(P(A) \times P(B)\). If they are mutually exclusive (like rolling a 2 and rolling a 5 on a single die), they can never occur together and the intersection is 0. In the general case you either know the overlap from data or you know a conditional probability \(P(A \mid B)\) and multiply it by \(P(B)\).

The remaining results follow directly. Neither event occurs is the complement of the union, \(P((A \cup B)') = 1 - P(A \cup B)\). Exactly one event occurs removes the overlap from the union: \(P(A \oplus B) = P(A \cup B) - P(A \cap B)\). Together, these seven values give a complete picture of every combination of the two events.

Assumptions, limitations and practical tips

  • The intersection must be feasible. For any two events, the intersection is bounded by \(\max(0, P(A)+P(B)-100\%) \le P(A \cap B) \le \min(P(A), P(B))\). These Fréchet bounds exist because the overlap cannot exceed either event alone and cannot be so large that the two probabilities together exceed 100%. The calculator checks your input against these bounds and reports an error if the combination is mathematically impossible.
  • Independence is an assumption, not a given. In real life, events are often correlated (a lead who answers an email may be more likely to attend a demo). If in doubt, use the conditional-probability option or estimate the intersection from data.
  • Mutual exclusivity is restrictive. If two events are mutually exclusive, their probabilities cannot add up to more than 100%, since their union must stay within that limit.
  • Percentages vs. fractions. The calculator works in percentages for convenience; the underlying math is identical to fractions between 0 and 1 — just move the decimal point two places.
  • The complements are often the useful answer. Questions like “what is the chance of no defects?” or “what is the chance the patient is not infected?” are complement calculations, and the calculator outputs them directly.

For problems involving a number of trials, a fixed success probability, or countable outcomes, the Binomial Distribution Calculator and the Poisson Distribution Calculator extend these basic rules to full distributions. If you also need to count how many ways events can unfold, the Permutations & Combinations Calculator is a natural companion, and the Normal Distribution Calculator handles continuous probabilities.

Frequently Asked Questions

How do I calculate the probability of A or B by hand?

Use the addition rule: \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\). Simply adding the two probabilities double-counts the outcomes where both events occur, so the overlap is subtracted once. For example, with \(P(A) = 0.6\), \(P(B) = 0.5\), and an overlap of 0.3, the union is \(0.6 + 0.5 - 0.3 = 0.8\), or 80%. If the events are mutually exclusive, the overlap is 0 and you can add the probabilities directly.

What is the difference between independent and mutually exclusive events?

Independent events do not influence each other: knowing one occurred does not change the probability of the other. Mutually exclusive events cannot occur together at all, so \(P(A \cap B) = 0\). The two concepts are often confused, but they pull in opposite directions — mutual exclusivity is actually a strong form of dependence, because if A happens, B becomes impossible. Only independent events allow the simple multiplication \(P(A) \cap B) = P(A) \times P(B)\).

What are Fréchet bounds and why did the calculator reject my intersection?

Any intersection must satisfy \(\max(0, P(A)+P(B)-1) \le P(A \cap B) \le \min(P(A), P(B))\). The overlap can never exceed the smaller of the two probabilities, and it must be large enough that the union stays within 100%. For example, with 80% and 70%, the intersection cannot be below 50% or above 70%. If your entered value falls outside this range, the combination is mathematically impossible, and the calculator reports an error.

Can I enter probabilities as decimals or odds instead of percentages?

The calculator expects percentages from 0 to 100, so convert first. A decimal like 0.25 becomes 25%, and odds of 3:1 convert with \(P = \frac{3}{3+1} = 75\%\). The underlying math is identical either way — percentages and fractions differ only by a factor of 100. Just be consistent: mixing a decimal probability with percentage inputs is one of the most common mistakes and can shift results by two orders of magnitude.

How do I find the probability that neither event happens?

Neither event occurring is the complement of the union: \(P((A \cup B)') = 1 - P(A \cup B)\). First compute the union with the addition rule, then subtract from 1 (or from 100% if working in percentages). Note that this is not generally equal to \(P(A') \times P(B')\) — that multiplication only works when the complements are independent, which happens exactly when A and B themselves are independent.

What does the symmetric difference P(A ⊕ B) mean?

It is the probability that exactly one of the two events occurs — A without B, or B without A, but not both. Compute it as \(P(A \cup B) - P(A \cap B)\): take the union and strip away the overlap. An equivalent formula is \(P(A) + P(B) - 2 \times P(A \cap B)\), since the overlap is counted in both events and must be removed twice. This value answers questions like 'what is the chance of exactly one of the two alarms triggering?'

How do I work with conditional probability P(A|B) in the calculator?

Choose the option 'I know the conditional P(A|B)' and enter the probability that A occurs given that B has already happened. The calculator converts it to an intersection with \(P(A \cap B) = P(A \mid B) \times P(B)\), then computes all the other values. Be careful about direction: \(P(A \mid B)\) and \(P(B \mid A)\) are usually different numbers. This option is the right choice when events are correlated, such as in medical testing or risk analysis.

Leave a Reply

Your email address will not be published. Required fields are marked *