AND Probability Calculator
Enter the probability of event A and event B to find the probability that BOTH occur together, P(A and B). Choose independent events (the standard multiplication rule) or dependent events (using a conditional probability you supply). The calculator also shows the complement, union, exclusive-OR, and the probability of the combined event occurring at least once across multiple trials. Results update as you type.
Formula
Worked example
If P(A) = 0.5 and P(B) = 0.4 and the events are independent, then P(A and B) = 0.5 x 0.4 = 0.20 (20%). The union is P(A or B) = 0.5 + 0.4 - 0.2 = 0.70. The probability of exactly one event is 0.5 + 0.4 - 2 x 0.2 = 0.50. Over 5 trials the chance that both events co-occur at least once is 1 - (1 - 0.2)^5 = 1 - 0.32768 = 0.67232, about 67%.
What the AND probability formula means
The AND probability, written P(A and B) or P(A intersect B), is the probability that two events both happen during the same trial. For independent events, the result of A has no influence on B, and the formula is simply the product of the two individual probabilities: P(A and B) = P(A) x P(B). For example, flipping two coins and getting heads on both has probability 0.5 x 0.5 = 0.25, or 25%. The multiplication rule holds because neither coin knows what the other did.
Independent versus dependent events
Events are independent when knowing that one occurred gives no information about whether the other will occur. Drawing a card, replacing it, then drawing again is independent. Events are dependent when one outcome affects the other, for example drawing two cards without replacement. For dependent events the formula uses the conditional probability: P(A and B) = P(A) x P(B|A), where P(B|A) is the probability of B given that A has already happened. This calculator handles both cases: choose "independent" for the plain product rule or "dependent" to supply your own P(B|A).
Related probabilities: union, XOR, complement and neither
This calculator also outputs several quantities built on P(A and B). The union P(A or B) = P(A) + P(B) - P(A and B) uses the inclusion-exclusion principle to avoid counting the overlap twice. The exclusive-OR, P(A XOR B) = P(A) + P(B) - 2 x P(A and B), is the probability that exactly one event occurs but not both. The complement P(A') = 1 - P(A) is the probability that event A does not happen. And P(neither) = 1 - P(A or B) is the probability that neither event occurs at all.
Multi-trial probability: at least once in n trials
A common question is: if I run this experiment n times, what is the probability that both events co-occur at least once? The easiest approach is to compute the complementary probability that they never co-occur: P(never) = (1 - P(A and B))^n, and then subtract from 1. So P(at least once in n) = 1 - (1 - P(A and B))^n. With P(A and B) = 0.20 and n = 10 trials, the answer is 1 - 0.80^10 = 1 - 0.107 = 0.893, about 89%. The chart above shows how the at-least-once probability climbs as n increases.
Key probability formulas
| Event | Formula | Plain English |
|---|---|---|
| P(A and B) | P(A) x P(B) | Both occur (independent) |
| P(A and B) | P(A) x P(B|A) | Both occur (dependent) |
| P(A or B) | P(A) + P(B) - P(A and B) | At least one occurs |
| P(A XOR B) | P(A) + P(B) - 2P(A and B) | Exactly one occurs |
| P(A') | 1 - P(A) | A does not occur (complement) |
| P(neither) | 1 - P(A or B) | Neither occurs |
| P(at least once, n trials) | 1 - (1 - P(A and B))^n | Combined event over n trials |
Core formulas used in this calculator for independent events.
Frequently asked questions
What is the AND probability formula for independent events?
For two independent events A and B, P(A and B) = P(A) x P(B). You simply multiply the individual probabilities together. For example, the probability of rolling a 6 on a fair die (1/6) AND flipping heads on a fair coin (1/2) is 1/6 x 1/2 = 1/12, about 8.3%.
How is AND probability different from OR probability?
AND probability, P(A and B), is the probability that both events occur at the same time - it is always at most as large as the smaller of the two individual probabilities. OR probability, P(A or B), is the probability that at least one occurs, always at least as large as the larger individual probability. The relationship is P(A or B) = P(A) + P(B) - P(A and B).
What if the events are not independent?
When events are dependent, use the general multiplication rule: P(A and B) = P(A) x P(B|A), where P(B|A) is the conditional probability of B given A. Switch this calculator to "Dependent events", enter P(A), P(B) (used for the union calculations), and P(B|A), and the tool applies the general rule automatically.
Can P(A and B) ever be greater than P(A) or P(B)?
No. P(A and B) is always less than or equal to both P(A) and P(B). If it were greater, that would imply more trials have both events than have just one event alone, which is logically impossible.
What does P(A and B) = 0 mean?
P(A and B) = 0 means the events are mutually exclusive: they cannot both occur in the same trial. For mutually exclusive events the AND probability is zero and the OR rule simplifies to P(A or B) = P(A) + P(B).
How do I find the probability of both events occurring at least once in multiple trials?
Use the complement rule. The probability that the co-occurrence never happens in n trials is (1 - P(A and B))^n. Subtract that from 1 to get P(at least once) = 1 - (1 - P(A and B))^n. This calculator computes this automatically when you set the "Number of trials" field.