Probability Calculator (Two Events)

Quick answer

The probability calculator combines two events A and B: both, at least one, exactly one, neither and each complement, for independent, dependent, overlapping or mutually exclusive events. It draws a Venn diagram and gives the chance of A or B happening every time, never or at least once over repeated trials.

%
%
Requested probability
15 %
Venn diagram
P(A and B) – both
15 %
P(A or B) – at least one
65 %
P(exactly one)
50 %
P(neither)
35 %
P(not A)
50 %
P(not B)
70 %
P(A but not B)
35 %
P(B but not A)
15 %
P(A | B)
50 %
P(B | A)
30 %
Independent?
Yes – P(A and B) equals P(A) × P(B)
A happens in every trial
3.125 %
A never happens
3.125 %
A happens at least once
96.875 %
B happens in every trial
0.243 %
B never happens
16.807 %
B happens at least once
83.193 %

Probability measures how likely an event is on a scale from 0 (impossible) to 1 (certain), often written as a percentage. For equally likely outcomes it is the number of favourable outcomes divided by the number of possible ones: a die shows an even number with probability 3/6 = 50%.

Most real questions involve two events at once. This calculator handles the four common relationships. Independent events (two coin flips) multiply. For dependent events you supply P(B | A), the chance of B once A has happened. If you know how often both occur, enter P(A and B) directly. Mutually exclusive events cannot happen together, so their “or” probability is simply the sum. From that, the calculator derives every combination (both, at least one, exactly one, neither, A only, B only) and both conditional probabilities, and checks whether the events are independent.

Choose which result you are after and it is highlighted in the Venn diagram. The series section repeats the experiment n times and gives the probability that A (or B) happens every time, never, or at least once: the classic “chance of at least one success” question.

How to use the Probability Calculator

  1. Probability of A, P(A)
  2. Probability of B, P(B)
  3. How are A and B related?
  4. Probability of B given A, P(B | A)
  5. Probability of both, P(A and B)
  6. Which probability do you want?
  7. Number of repetitions (for the series results)

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

The overlap P(A and B) is found from the relationship you chose. Every other quantity follows from the overlap and the two individual probabilities using the addition and complement rules. Repeated independent trials use powers: pⁿ for every time and 1 − (1 − p)ⁿ for at least once.

Worked example

P(A) = 50% and P(B) = 30%, independent. Both: 0.5 × 0.3 = 15%. At least one: 0.5 + 0.3 − 0.15 = 65%. Exactly one: 65% − 15% = 50%. Neither: 35%. Over 5 independent trials A happens every time with probability 0.5⁵ = 3.125% and at least once with probability 96.875%; B happens at least once with probability 1 − 0.7⁵ = 83.193%.

Probability rules summary

Rule Formula
Complement P(not A) = 1 − P(A)
Addition P(A or B) = P(A) + P(B) − P(A and B)
Multiplication P(A and B) = P(A) × P(B | A)
Independence P(A and B) = P(A) × P(B)
Conditional P(A | B) = P(A and B) ÷ P(B)

Formula

P(A and B) = P(A) × P(B) if independent · P(A) × P(B | A) if dependent P(A or B) = P(A) + P(B) − P(A and B) · P(exactly one) = P(A or B) − P(A and B) P(neither) = 1 − P(A or B) · P(A in all n trials) = P(A)ⁿ · P(A at least once) = 1 − (1 − P(A))ⁿ

Worked example

Inputs: Probability of A – P(A): 50 %; Probability of B – P(B): 30 %; How are A and B related?: Independent; Which probability do you want?: A and B both happen; Number of repetitions (for the series results): 5.
Results: Requested probability = 15 %; P(A and B) – both = 15 %; P(A or B) – at least one = 65 %; P(exactly one) = 50 %; P(neither) = 35 %; P(not A) = 50 %.

Key terms

Event
A set of outcomes of a random experiment.
Complement
"Not A", with probability 1 − P(A).
Independent events
Events where P(A and B) = P(A) × P(B).
Mutually exclusive events
Events that cannot occur together.

Frequently asked questions

How do I calculate the probability of A and B?

For independent events multiply: 50% × 30% = 15%. For dependent events multiply P(A) by P(B | A).

How do I calculate the probability of A or B?

Add and subtract the overlap: P(A) + P(B) − P(A and B). With 50% and 30% independent: 50 + 30 − 15 = 65%.

What is the probability of exactly one?

P(A or B) − P(A and B) = 65% − 15% = 50% in the same example.

What if the events are mutually exclusive?

Then P(A and B) = 0 and P(A or B) = P(A) + P(B); they cannot be independent unless one has probability 0.

How likely is A at least once in 5 tries?

1 − (1 − P(A))⁵. At 50% per try: 1 − 0.5⁵ = 96.875%.

Can a probability be more than 100%?

No. If an "or" result seems to exceed 100%, the overlap has not been subtracted or the inputs are inconsistent.

What is the difference between theoretical and experimental probability?

Theoretical probability comes from reasoning about equally likely outcomes; experimental probability is the observed frequency in trials, which approaches the theoretical value as trials increase.

Sources

  1. OpenStax: Introductory Statistics 2e, Chapter 3: Probability topics
  2. Penn State STAT 414: Introduction to Probability Theory
  3. Khan Academy: Statistics and probability

Cite this calculator

Speedy Calculator. (2026). Probability Calculator (Two Events). Speedy Calculator. https://speedycalculator.com/calculators/statistics/probability/