Conditional Probability Formula

Conditional probability is the probability that one event happens given that another event has already happened.

The Formula

P(A∣B)=P(A∩B)P(B)

Ask yourself: Are you told that some condition is already true, so only the cases meeting it count as the new total?

Quick example

In a class, 12 students play a sport, 8 students play music, and 5 do both. If you know a student plays music, then the conditional probability that the student also plays a sport is 5/8.

Notation

P(A∣B) reads “the probability of A given B.” The bar ∣ means “given” or “assuming” — it names the event you already know has happened. P(A∩B) is the probability that A and B both happen, and P(B) is the new, smaller denominator: once you know B happened, B’s outcomes are the only ones left to count. So P(A∣B)=P(A∩B)P(B) asks: out of the times B happens, how often does A happen too? P(B∣A) flips the roles — it assumes A happened and divides by P(A) instead, which usually gives a different answer.

What this formula means

Conditional probability is the probability that one event happens given that another event has already happened. It narrows the sample space to the cases where the given condition is true.

Zoom a camera onto one section of a stadium: once you know the person is in the student section, you count only the people in that frame and ask what share of them wear red. Zooming changes the group you divide by, not the people in the overlap.

Formal view

For events A and B with P(B)>0, conditional probability is defined by restricting the sample space to B and measuring the fraction of that restricted space that also lies in A.

Worked examples

Example 1

medium
In a study, 60% of subjects exercise, 40% follow a diet plan, and 25% do both. Find the probability a randomly sampled subject follows the diet plan given they exercise.
Show solution

Answer

512

First step

1.
Identify P(D∩E)=0.25 and P(E)=0.60.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

medium
A two-way table of 500 customers shows 200 buy Brand A and 80 buy both Brand A and Brand B. Find P(Brand B∣Brand A).

Example 3

medium
A survey shows P(owns car)=0.7, P(owns bike)=0.4, P(owns both)=0.3. Find P(owns bike∣owns car).

Common mistakes

  • Keeping the original total instead of the conditional total
  • Confusing P(A∣B) with P(B∣A) - These are usually different because they divide by different totals. With 12 sport, 8 music, and 5 both: P(sport∣music)=5/8, but P(music∣sport)=5/12. Always ask which event is the “given” one — that event is your denominator.
  • Treating conditional probability as the same as independence

Common mistakes guide

If this formula keeps breaking in real problems, read the most common errors before you practice again.

Why this formula matters

New information changes chances, and conditional probability says by how much. It is how a doctor reads a positive test, how an insurer prices a teenage driver, and how a forecast updates when clouds roll in. Confusing P(A∣B) with P(B∣A) is one of the costliest errors in statistics: for a rare disease, a positive result from an accurate test can still leave a person more likely healthy than sick.

Frequently asked questions

What is the Conditional Probability formula?

Conditional probability is the probability that one event happens given that another event has already happened. It narrows the sample space to the cases where the given condition is true.

How do you use the Conditional Probability formula?

Use conditional probability when a question gives you a fact first and asks about chances within it: given, if, among, of those who, "what fraction of the players who…". Two-way tables and the second-stage branches of tree diagrams are its usual homes. Find the condition; its total is your denominator. If the question is about everyone, with no restriction, you want the joint probability P(A∩B) or the Multiplication Rule; if knowing the condition changes nothing, the events are independent.

What do the symbols mean in the Conditional Probability formula?

P(A∣B) reads “the probability of A given B.” The bar ∣ means “given” or “assuming” — it names the event you already know has happened. P(A∩B) is the probability that A and B both happen, and P(B) is the new, smaller denominator: once you know B happened, B’s outcomes are the only ones left to count. So P(A∣B)=P(A∩B)P(B) asks: out of the times B happens, how often does A happen too? P(B∣A) flips the roles — it assumes A happened and divides by P(A) instead, which usually gives a different answer.

Why is the Conditional Probability formula important in Statistics?

New information changes chances, and conditional probability says by how much. It is how a doctor reads a positive test, how an insurer prices a teenage driver, and how a forecast updates when clouds roll in. Confusing P(A∣B) with P(B∣A) is one of the costliest errors in statistics: for a rare disease, a positive result from an accurate test can still leave a person more likely healthy than sick.

What do students get wrong about Conditional Probability?

Students often know a procedure related to conditional probability but skip the recognition step: Are you told that some condition is already true, so only the cases meeting it count as the new total? That leads to a calculation or graph that looks reasonable but answers a different question.

What should I learn before the Conditional Probability formula?

Before studying the Conditional Probability formula, you should understand: stat sample space, compound events, two way tables.