Probability Calculator

Probability of A and B, A or B, and neither, for two independent events.

Enter details

%
%

P(A and B)

15%

P(A or B)
65%
P(exactly one)
50%
P(neither)
35%
P(not A)
50%

How p(a and b) changes with

P(A): 25 % → 7.5%75 % → 22.5%

The dot is your current value. The graph updates as you type.

Formula: P(A∩B) = P(A)P(B); P(A∪B) = P(A) + P(B) − P(A)P(B)

Comparison: P(A)

P(A)P(A and B)P(A or B)P(exactly one)
48%14.4%63.6%49.2%
49%14.7%64.3%49.6%
50%15%65%50%
51%15.3%65.7%50.4%
52%15.6%66.4%50.8%

Probability Calculator: Two Independent Events Solver

Short answer

This calculator computes compound probabilities for two statistically independent events, including joint occurrence, union, and mutual exclusion. For example, if Event A has a 50% chance and Event B has a 30% chance, the joint probability P(A and B) is 15%, while the probability of either occurring P(A or B) is 65%.

Formula

P(A ∩ B) = P(A) × P(B); P(A ∪ B) = P(A) + P(B) − P(A ∩ B); P(neither) = (1 − P(A)) × (1 − P(B))

P(A) represents the probability of Event A occurring; P(B) represents the probability of Event B occurring; P(A ∩ B) or P(A and B) denotes the joint probability that both events occur simultaneously; P(A ∪ B) or P(A or B) denotes the union probability that at least one of the events occurs; P(exactly one) is P(A) + P(B) − 2×P(A ∩ B); and P(neither) represents the probability that neither event occurs.

Worked example

P(A)
50
P(B)
30
  • P(A and B): 15%
  • P(A or B): 65%
  • P(exactly one): 50%
  • P(neither): 35%
  • P(not A): 50%

Understanding Independent Event Probability

Probability measures the likelihood of an outcome occurring within a defined set of possibilities. In statistics, evaluating scenarios with multiple variables often involves calculating joint, union, and complementary probabilities.

This calculator evaluates relationships between two statistically independent events. Two events are independent when the outcome of the first event provides no predictive information about the outcome of the second. This tool is designed for students, researchers, data analysts, quality engineers, and decision-makers who need quick, error-free multi-event calculations without manual algebraic steps.


Core Probability Formulas

When two events, $A$ and $B$, are independent, their interactions follow strict mathematical laws:

  • Joint Probability (Both Happen): $$P(A \cap B) = P(A) \times P(B)$$

  • Union Probability (At Least One Happens): $$P(A \cup B) = P(A) + P(B) - [P(A) \times P(B)]$$

  • Exclusive Union (Exactly One Happens): $$P(\text{Exactly One}) = P(A) + P(B) - 2 \times [P(A) \times P(B)]$$

  • Neither Event Occurs: $$P(\text{Neither}) = (1 - P(A)) \times (1 - P(B)) = 1 - P(A \cup B)$$

  • Complement of Event A (Not A): $$P(A') = 1 - P(A)$$


Step-by-Step Worked Example

To understand the mechanics, consider a scenario with the following inputs:

  • Probability of Event A, $P(A)$: $50%$ ($0.50$ in decimal form)
  • Probability of Event B, $P(B)$: $30%$ ($0.30$ in decimal form)

1. Joint Occurrence: $P(A \text{ and } B)$

Multiply the individual decimal probabilities: $$P(A \cap B) = 0.50 \times 0.30 = 0.15 \text{ (or } 15%\text{)}$$

2. Union Probability: $P(A \text{ or } B)$

Sum the probabilities and subtract the joint overlap: $$P(A \cup B) = 0.50 + 0.30 - 0.15 = 0.65 \text{ (or } 65%\text{)}$$

3. Exactly One Event Occurs

Add the probabilities and subtract twice the joint overlap: $$P(\text{Exactly One}) = 0.50 + 0.30 - (2 \times 0.15) = 0.80 - 0.30 = 0.50 \text{ (or } 50%\text{)}$$

4. Neither Event Occurs

Multiply the complement of each individual event: $$P(\text{Neither}) = (1 - 0.50) \times (1 - 0.30) = 0.50 \times 0.70 = 0.35 \text{ (or } 35%\text{)}$$

5. Complement of A: $P(\text{not } A)$

Subtract the likelihood of $A$ from certainty ($1.0$): $$P(A') = 1.0 - 0.50 = 0.50 \text{ (or } 50%\text{)}$$


Input Sensitivity Comparison

Changing the baseline probability of an individual event directly scales the compound results. Here is how varying $P(A)$ alters the joint probability $P(A \text{ and } B)$ while keeping $P(B)$ fixed at $30%$:

  • Lower Input ($P(A) = 40%$): $P(A \text{ and } B) = 0.40 \times 0.30 = 12%$
  • Base Example ($P(A) = 50%$): $P(A \text{ and } B) = 0.50 \times 0.30 = 15%$
  • Higher Input ($P(A) = 60%$): $P(A \text{ and } B) = 0.60 \times 0.30 = 18%$

Because the relationship is multiplicative, every $10%$ increase in an independent variable increases the joint probability by $10%$ of the secondary event's base rate ($10% \times 30% = 3%point change$).


How to Interpret the Output

  • 0% Probability: The outcome is impossible under the defined parameters.
  • 100% Probability: The outcome is mathematically certain to occur.
  • Overlapping Spaces: The union $P(A \text{ or } B)$ will always be greater than or equal to the individual probabilities of either $A$ or $B$, but it will never exceed $100%$.
  • Inverse Check: The sum of $P(A \cup B)$ and $P(\text{neither})$ must always equal exactly $100%$ ($65% + 35% = 100%$ in our baseline example).

Practical Tips for Reliable Results

  1. Verify Complete Independence: Ensure that external conditions cannot influence both events simultaneously. For example, machine failure rates on unrelated production lines are independent, but failures caused by a shared factory-wide power surge are dependent.
  2. Express Values Consistently: When working outside the calculator, always convert percentages to decimals ($25% \rightarrow 0.25$) before multiplying. Multiplying $25 \times 25$ directly yields $625$, leading to calculation errors.
  3. Use the Complement Rule: When calculating complex probabilities like "at least one success in multiple trials," it is often faster to calculate the probability of zero successes and subtract it from $100%$.

When Not to Rely on This Calculator

Do not use this calculator if your scenario involves conditional probability or dependent events. Common examples include:

  • Sampling Without Replacement: Drawing cards from a 52-card deck or drawing lottery numbers without returning the selected item changes the denominator for subsequent draws.
  • Correlated Market Variables: Asset returns in closely tied financial sectors frequently move together during broader market swings, violating independence.
  • Sequential Medical Diagnostics: The likelihood of a second positive test result is strongly dependent on whether the patient actually carries the condition.

Comparison

ScenarioInputResult
Lower inputP(A): 40P(A and B): 12%
Base exampleP(A): 50P(A and B): 15%
Higher inputP(A): 60P(A and B): 18%

Common mistakes

  • Assuming events are independent when they are dependent (e.g., drawing cards from a deck without replacement).
  • Adding probabilities directly for P(A or B) without subtracting the intersection P(A and B), which double-counts simultaneous occurrences.
  • Confusing independent events with mutually exclusive events (mutually exclusive events cannot happen at the same time, meaning P(A and B) = 0).
  • Entering raw counts or odds instead of standard percentage probabilities.
  • Assuming that a low joint probability means individual events are unlikely on their own.

Checklist

  • Confirm both events are statistically independent before using these multiplication rules.
  • Input individual probabilities as percentages between 0% and 100% (or decimals between 0.0 and 1.0).
  • Verify that the occurrence of Event A does not alter the likelihood of Event B occurring.
  • Use P(A or B) when looking for the chance that at least one event happens.
  • Examine P(exactly one) if you need scenarios where one event succeeds but both cannot occur together.
  • Ensure total probabilities for complementary event spaces sum to 100%.

Calculators Percentage Editorial Team

Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.

Last reviewed:

This calculator is intended for educational, academic, and basic analytical purposes under the assumption of strict statistical independence.

Frequently Asked Questions

What does it mean for two events to be independent?

Two events are independent if the occurrence of one event has no effect on the mathematical probability of the other event occurring. A classic example is flipping a fair coin twice; getting heads on the first flip does not change the 50% probability of getting heads on the second flip.

How is P(A and B) calculated for independent events?

For independent events, the probability of both events occurring simultaneously, denoted as P(A ∩ B), is calculated by multiplying their individual probabilities: P(A) × P(B). In decimal form, 0.50 multiplied by 0.30 yields 0.15, or 15%.

Why do you subtract P(A and B) when finding P(A or B)?

When you add P(A) and P(B), the scenario where both events occur simultaneously is included in both individual groups. Subtracting P(A and B) once eliminates this overlap, preventing double-counting and keeping the final probability within valid bounds.

What is the difference between independent and mutually exclusive events?

Independent events can occur at the same time without influencing each other, such as rolling a 6 on a die while flipping heads on a coin. Mutually exclusive events cannot occur at the same time at all, such as rolling a single die and landing on both a 2 and a 5 simultaneously.

Can the sum of P(A) and P(B) exceed 100%?

Yes, the individual probabilities of two separate independent events can sum to more than 100%. For instance, if P(A) is 70% and P(B) is 60%, their individual sum is 130%, but their union P(A or B) is 88%, which remains strictly under 100%.

How do you calculate the probability of neither event happening?

The probability that neither event happens equals the product of their individual complements: (1 − P(A)) × (1 − P(B)). Alternatively, it can be found by subtracting the union from 1: 1 − P(A or B).

What is the probability of exactly one event occurring?

The probability of exactly one event occurring is calculated as P(A) + P(B) − 2×P(A ∩ B). This accounts for either Event A happening without B, or Event B happening without A, while removing the chance that both occur together.

Sources & references

Formulas are tested against hand-checked answers. How we check our calculators.

Estimates only. Confirm final figures, terms and fees with your bank, provider or a qualified professional.

Last updated: January 15, 2026