Skip to content
Other

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.

Your details

Independent: knowing A happened does not change the probability of B. Dependent: B is more or less likely given A.
Enter a value between 0 and 1 (e.g. 0.3 means 30%).
For independent events this is the unconditional probability of B. For dependent events it is the unconditional probability of B (used for the union and XOR formulas).
How many times both events are tested independently. When n = 1 the multi-trial section equals the single-trial result.
trials
P(A and B)Unlikely
0.2

Probability that both A and B occur together

P(A and B) as %20%
P(A or B)0.7
P(A XOR B)0.5
P(neither A nor B)0.3
P(A and not B)0.3
P(B and not A)0.2
P(A and B at least once in n trials)0.2
P(never in n trials)0.8
P(A and B)0.2
P(A or B)0.7
P(A XOR B)0.5
P(neither)0.3
00.490.9911120
Number of trials (n)
Probability
Number of trials (n)P(at least once in n)P(never in n)
10.20.8
20.360.64
30.490.51
40.590.41
50.670.33
60.740.26
70.790.21
80.830.17
90.870.13
100.890.11
110.910.09
120.930.07
130.950.05
140.960.04
150.960.04
160.970.03
170.980.02
180.980.02
190.990.01
200.990.01
  • P(at least once in n)
  • P(never in n)

P(A and B) = 20.00%

  • The events are independent, so knowing A occurred does not change the probability of B.
  • P(A or B) = 70.00%: this is the probability that at least one of the two events happens (the union).
  • P(A XOR B) = 50.00%: the probability that exactly one event happens (but not both simultaneously).

Next stepSet the number of trials above 1 to find the probability that the combined event occurs at least once over many repeated attempts.

Formula

P(A∩B)=P(A)×P(B) (independent),P(A∩B)=P(A)×P(B∣A) (dependent)P(A \cap B) = P(A) \times P(B) \text{ (independent)}, \quad P(A \cap B) = P(A) \times P(B|A) \text{ (dependent)}

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

EventFormulaPlain 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))^nCombined 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.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…