Intermediate

Union, Intersection & Complement Calculator

Find the union, intersection, and complement probabilities for two events, treating them as independent or using a supplied joint probability.
Probability of event A, 0 to 1
Probability of event B, 0 to 1

Relationship

Union P(A∪B)
0.7000

Probability that A or B (or both) occur

Intersection P(A∩B)
0.2
Complement P(Aᶜ)
0.5
Complement P(Bᶜ)
0.6
30%
20%
20%
30%
A only
A ∩ B
B only
Neither
Probability space: A only | overlap | B only | neither
Step by step
  1. 1

    P(A∩B) = P(A) × P(B)

    0.5 × 0.4 = 0.2
    Events are independent, so the joint probability is the product.
  2. 2

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

    0.5 + 0.4 − 0.2 = 0.7000
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

For two events, the complement is 1 − P. The union is P(A) + P(B) − P(A∩B), subtracting the overlap once. The intersection is P(A)·P(B) for independent events, or a supplied joint value otherwise. Enter each probability in [0, 1]; the joint value must not exceed the smaller marginal.

Formula
P(A∪B) = P(A) + P(B) − P(A∩B); P(Aᶜ) = 1 − P(A)
How this is calculated

Enter the marginal probabilities P(A) and P(B), each a value between 0 and 1. The relationship dropdown controls how the intersection P(A∩B) is found: choose "Independent" to compute it as the product P(A∩B) = P(A)·P(B), or choose "Enter P(A∩B) directly" to type a known joint probability for events that may be dependent.

The complement rule gives P(Aᶜ) = 1 − P(A) and P(Bᶜ) = 1 − P(B), the probabilities that each event does not occur. The addition rule gives the union P(A∪B) = P(A) + P(B) − P(A∩B); the intersection is subtracted once because it is otherwise counted in both P(A) and P(B). All outputs are dimensionless probabilities in [0, 1].

Validation enforces that every probability lies in [0, 1], that a supplied joint probability never exceeds min(P(A), P(B)) (an intersection cannot be larger than either event), and that the resulting union does not exceed 1. If any constraint is violated the calculator reports invalid input rather than an impossible result.

Frequently asked questions

Only when the events are independent, meaning the occurrence of one does not change the probability of the other. For dependent events you must supply the joint probability P(A∩B) directly.

Adding P(A) and P(B) counts the overlap (both events occurring) twice, so the intersection is subtracted once to count it a single time.

The intersection cannot exceed either marginal probability, so P(A∩B) must be ≤ min(P(A), P(B)), and the union cannot exceed 1. Values breaking these rules describe impossible event combinations.

Also known as

union of events
intersection probability
complement rule
addition rule probability
union intersection complement
p(a or b)
p(a and b)
set probability

APA

TG we-Calculate Editorial Team. (2026). Union, Intersection & Complement Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/event-probability-calculator

Chicago

TG we-Calculate Editorial Team. "Union, Intersection & Complement Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/event-probability-calculator.

IEEE

TG we-Calculate Editorial Team, "Union, Intersection & Complement Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/event-probability-calculator

BibTeX

@misc{wecalculate_event_probability_calculator, title = {Union, Intersection & Complement Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/event-probability-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?