Joint Probability Calculator

Quick answer

The joint probability calculator finds P(A and B), the chance that two events happen together, for independent events (P(A) × P(B)) or dependent events (P(A) × P(B | A)), and also gives the union, the conditional probabilities and a shaded Venn diagram.

%
%
Joint probability P(A and B)
20 %
Venn diagram
P(A or B) – at least one
70 %
P(neither)
30 %
P(A and not B)
30 %
P(B and not A)
20 %
P(A | B)
50 %
P(B | A)
40 %
Independent?
Yes – P(A and B) equals P(A) × P(B)

A joint probability is the probability of two events occurring at the same time: passing both a maths and a science exam, a customer both opening and clicking an email, or rain on Saturday and on Sunday. In set language it is the intersection A ∩ B, the overlap of the two circles in a Venn diagram.

How you compute it depends on whether the events influence each other. For independent events (two coin flips, two separate machines) multiply the individual probabilities. For dependent events, multiply the probability of A by the conditional probability of B once A has happened. Drawing two aces without replacement is the textbook case: 4/52 × 3/51 = 0.45%, not 4/52 × 4/52.

Choose whether your events are independent, enter P(A) and P(B) (and P(B | A) for dependent events) and the calculator gives the joint probability, the probability that at least one happens, that neither happens, both conditional probabilities and a Venn diagram with the overlap highlighted. It also checks that your numbers are consistent: a joint probability can never exceed either individual probability.

How to use the Joint 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)

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

How it works

For independent events P(A) and P(B) are multiplied; for dependent events P(A) is multiplied by P(B | A). The union, complement and conditional probabilities then follow from the joint probability and the two marginals.

Worked example

A student passes maths with probability 50% and science with probability 40%. If the results are independent, P(both) = 0.5 × 0.4 = 20%, P(at least one) = 0.5 + 0.4 − 0.2 = 70% and P(neither) = 30%. If passing maths raises the chance of passing science to 70%, P(both) = 0.5 × 0.7 = 35%, P(at least one) = 55% and P(maths | science) = 0.35 ÷ 0.4 = 87.5%.

Joint probability with cards

Two cards drawn without replacement: P(two aces) = 4/52 × 3/51 = 12/2,652 = 0.45%. With replacement the draws are independent: 4/52 × 4/52 = 0.59%.

Formula

Independent: P(A and B) = P(A) × P(B) Dependent: P(A and B) = P(A) × P(B | A) P(A or B) = P(A) + P(B) − P(A and B)

Worked example

Inputs: Probability of A – P(A): 50 %; Probability of B – P(B): 40 %; How are A and B related?: Independent.
Results: Joint probability P(A and B) = 20 %; P(A or B) – at least one = 70 %; P(neither) = 30 %; P(A and not B) = 30 %; P(B and not A) = 20 %; P(A | B) = 50 %.

Key terms

Joint probability
P(A and B), the probability that both events occur.
Intersection
The overlap of two events, written A ∩ B.
Dependent events
Events where the occurrence of one changes the probability of the other.

Frequently asked questions

What is joint probability?

The probability that two events happen together, written P(A and B) or P(A ∩ B).

How do I calculate it for independent events?

Multiply: P(A) = 50% and P(B) = 40% give 0.5 × 0.4 = 20%.

And for dependent events?

Multiply P(A) by P(B | A). With P(A) = 50% and P(B | A) = 70% the joint probability is 35%.

What is the joint probability of two dependent events with 50% each?

It depends on P(B | A). If P(B | A) = 50% it is 25%; if B always follows A it is 50%.

Can the joint probability be larger than P(A)?

No. Both events happening is never more likely than either one on its own.

What is the difference between joint and conditional probability?

Joint is the chance of both; conditional is the chance of one given the other. P(A | B) = P(A and B) ÷ P(B).

How do I extend this to three events?

For independent events multiply all three probabilities; see the three-events calculator for the other cases.

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). Joint Probability Calculator. Speedy Calculator. https://speedycalculator.com/calculators/statistics/joint-probability/