- Introduction to Probability
How do you calculate conditional probability?
To calculate a conditional probability, divide the probability of both events happening together (the intersection) by the probability of the given condition: P(A|B) = P(A and B) / P(B). This determines the likelihood of an outcome after another has occurred. The given condition restricts your sample space, making P(B) your new denominator.
The topic explained
The condition shrinks your sample space
The core idea behind conditional probability is that extra information eliminates possibilities. Knowing that an event has already occurred does not change the experiment itself, but it removes everything that fails to meet that condition. Consequently, your total pool of possible outcomes becomes smaller.
Because the pool shrinks, your denominator changes from the entire sample space to just the condition. For instance, suppose a group of 20 students has 8 students taking Arabic, and 3 of those 8 also take French. If you pick a student at random and are told they take Arabic, the sample space is no longer 20. It is 8. The probability that this student takes French given that they take Arabic is 3 out of 8.
The formula: intersection divided by condition
In probability notation, the vertical bar means 'given'. The formula for P(A|B), read as 'the probability of A given B', is P(A and B) divided by P(B). You take the probability of both events occurring together and divide it by the probability of the given event.
On a two-way frequency table, this calculation is very simple. The intersection of A and B is a single cell where the two categories cross. The condition B is the total of that specific row or column. You simply divide the cell count by that row or column total.
Why the direction matters
P(A|B) is rarely equal to P(B|A). While the numerator remains the shared overlap in both cases, the denominator changes entirely based on which event comes after the word 'given'.
Consider our student example again: 8 take Arabic, 9 take French, and 3 take both. The chance a student takes French given Arabic is 3 out of 8 (0.375). But the chance a student takes Arabic given French is 3 out of 9 (around 0.333). To avoid swapping them, identify the word 'given' first and write down that condition as your denominator before doing any math.
Conditional Probability Practice
Use these problems to practice reading conditions, shrinking the sample space, and calculating conditional probabilities. Write each answer as a fraction in simplest form.
Free, no sign-up. The answer key prints on the second page. Regenerating a new worksheet on the same topic needs a free account.
A standard six-sided die is rolled. Find the probability that the number is 6, given that the roll is an even number.
A standard six-sided die is rolled. Find the probability that the number is greater than 3, given that the roll is an odd number.
In a club of 30 members, 12 play chess, 10 play bridge, and 4 play both. Find P(Bridge | Chess).
Using the same club data (12 play chess, 10 play bridge, 4 play both), find P(Chess | Bridge).
A survey of 50 pets shows 30 dogs and 20 cats. Among the dogs, 18 have short fur. Among the cats, 14 have short fur. A pet is chosen at random and has short fur. What is the probability that it is a dog?
Two coins are tossed. Find the probability that both are heads, given that at least one coin landed on heads.
If P(A) = 0.5, P(B) = 0.4, and P(A and B) = 0.2, calculate P(B | A).
Common questions
What does the vertical bar in P(A|B) mean?
The vertical bar is read as 'given'. The expression P(A|B) means the probability that event A occurs under the condition that event B has already occurred.
Can a conditional probability ever be greater than the unconditional probability?
Yes. Because the condition restricts the sample space to a smaller group, the proportion of desired outcomes inside that group can be much higher than in the original group.
What happens if the condition has a probability of zero?
Conditional probability is undefined if the condition has a probability of zero. You cannot divide by zero, and you cannot evaluate outcomes inside an event that is impossible.
How do independent events affect conditional probability?
If two events A and B are independent, knowing that B occurred gives no new information about A. In that case, P(A|B) is simply equal to P(A).

Still have a question? Ask Lessi
Any question about this subject. Lessi answers right here, step by step.
Try asking
Asking needs a free account; your question is kept while you sign up. Answers are written by AI and can contain mistakes. Lessi doesn’t give medical or legal advice.
Learn it with a teacher
Learn this topic live with Lessi
Lessi, the AI teacher, explains it out loud on a board, with short quizzes, at your pace. The first 60 minutes are free.
Private teachers for Statistics
Teachers on Lessoons, online or face to face. Each profile opens on the Lessoons site.
יוחאי אStatistics teacherרמת גןסטטיסטיקאי ומוסמך MBA מסייע בעיבודים סטטיסטיים ומעביר שיעורים פרטיים (ליחיד או לקבוצות קטנות).Full profile
נועה טלStatistics teacher₪130 / hourתל אביב -יפומורה פרטית לביולוגיה, מתמטיקה ומדעי המחשב. BSc בביולוגיה ומדעי המחשב + MSc בהנדסה (אונ׳ תל אביב)Full profile
חן זליגStatistics teacher₪180 / hourראשון לציוןמהנדס בעל תואר שני ומורה למתמטיקה ופסיכומטרי עם ניסיון של 15 שנים והרבה אהבה ללימוד והדרכה.Full profile
דני יעקבStatistics teacher₪176 / hourרמת גןמורה פרטי מעולה, בעל ניסיון כמתרגל, מנחה קבוצות ומרצה. מקצועי, סבלני, יסודי. קרוב ל 15 אלף שעות ניסיון בהוראה. ברמת-גן וגם בזום (zoom)Full profile
ספיר פאבלוקסStatistics teacher₪200 / hourפתח תקווהרוצים להצליח? שלחו הודעה עכשיו! אני ספיר, בעלת נסיון רב בהוראה פרטית. בשיעורים נעבוד על יצירת בטחון עצמי ופתיחות ללמוד, להבין ולהנות מהחומרFull profile
אור שחר Academax כתיבת עבודות בלבדStatistics teacher₪199 / hourתל אביב -יפוסיוע בכתיבה לכל עבודה סוג של עבודה אקדמית - סמינריונית, תזה או דוקטורט. 10 שנות ניסיון עם סטודנטים מכל המוסדות בארץ, צוות כותבים שנותן מענה כמעט בכל מקצוע ויחס אישי לכל עבודה - איכות ללא תחרות!Full profile
מאור ביטוןStatistics teacher₪240 / hourכרמיאלמלמד, מסייע בעבודות ומלווה אתכם בדרך להצלחה! הפשטות וההבנה מנצחות – בהתחייבות. סיוע בעבודות, ליווי אישי או קבוצתי בלימודים, הכנה לבחינות ולמטלות, עם דגש על הבנה אמיתית של החומר והצלחה בפועל.Full profile
יעקב אברמסStatistics teacher₪180 / hourירושליםמורה למדעי המחשב עם הרבה נסיון וסבלנות, בעל יחס אישי וחם. אצלי תצאו עם הבנה מצויינת של החומר!Full profile