Conditional Probability

Definitionnoun phrase

What is conditional probability?

Conditional probability is the probability that an event happens given that another event has already happened. It is written P(A ∣ B), read “the probability of A given B”, and found by P(A ∣ B) = P(A and B)P(B). Knowing B shrinks the possible outcomes to only those in B.

In Spanish
probabilidad condicional
Also called
probability of A given B, P(A|B)
Grade level
Statistics
Algebra 2StatisticsCCSS HSS-CP.A.3CCSS HSS-CP.A.5CCSS HSS-CP.B.6SATACTAPASVAB

Conditional Probability in a picture

Conditional probability from a two-way tableA two-way table of 50 students. Sport and pet: 8. Sport and no pet: 12. No sport and pet: 4. No sport and no pet: 26. Row totals 20 and 30, column totals 12 and 38. The sport row is shaded green and the pet column is outlined with dashes. P of pet given sport is 8 over 20, 0.4. P of sport given pet is 8 over 12, about 0.67.50 students: plays a sport? has a pet?PetNo petTotalSport81220No sport42630Total123850Given sport: look only at the green rowP(pet | sport) = 8 / 20 = 0.4Given pet: look only at the dashed columnP(sport | pet) = 8 / 12 ≈ 0.67Same 8 students, different “given” totals
For conditional probability, the given event becomes the whole: divide by its row or column total. P(pet ∣ sport) = 820, but P(sport ∣ pet) = 812.

Formal definition and notation

For events A and B in a sample space with P(B) > 0, the conditional probability of A given B is P(A ∣ B) = P(A ∩ B)P(B). With equally likely outcomes this is the fraction of B‘s outcomes that are also in A: n(A ∩ B)n(B). Rearranged, it gives the multiplication rule P(A ∩ B) = P(B) · P(A ∣ B). Events are independent exactly when P(A ∣ B) = P(A).

Symbol Read it as Meaning
P(A ∣ B) the probability of A given B B is known to have happened; the vertical bar means “given”
P(A ∩ B) the probability of A and B both events happen

Key facts

  • The event after the bar is the condition: it becomes the new whole. Divide by its total, not by the grand total.
  • Order matters: P(A ∣ B) and P(B ∣ A) are usually different (0.4 and 0.67 in the table).
  • If P(A ∣ B) = P(A), then knowing B does not change the chance of A, and the events are independent.
  • Drawing without replacement creates conditional probabilities: after an ace is drawn, P(ace) = 351.
  • The multiplication rule P(A ∩ B) = P(B) · P(A ∣ B) is the same formula solved for the “and” probability.
  • Two-way tables and Venn diagrams make conditional probabilities easy to read: restrict to the row, column or circle that is given.

Conditional probability formula

Conditional probability formula
P(A ∣ B) = P(A ∩ B)P(B)
P(A ∩ B)
probability that both A and B happen
P(B)
probability of the given event; must be greater than 0

From a table use counts: P(pet ∣ sport) = 820 = 0.4.

Conditional Probability examples, step by step

Example 1: Roll a die

Warm-up

A fair die is rolled and lands on an even number. What is the probability that it is a 6?

  1. Given “even”, the possible outcomes shrink to 2, 4, 6.
  2. Only one of these is a 6.
  3. P(6 ∣ even) = 13.

Answer: The probability is 13.

Example 2: Use the formula

Core

On a school day, the probability that it rains and the bus is late is 0.12. The probability that it rains is 0.30. Find the probability that the bus is late, given that it rains.

  1. P(late ∣ rain) = P(late and rain)P(rain).
  2. = 0.120.30.
  3. = 0.4.

Answer: The probability is 0.4, or 40 percent.

Example 3: Without replacement

Test-style

A bag holds 5 red and 3 blue marbles. Two marbles are drawn without replacement. What is the probability that the second is red, given that the first was red? What is the probability that both are red?

  1. After one red is removed, 4 red remain out of 7: P(R2 ∣ R1) = 47.
  2. Multiplication rule: P(R1 and R2) = 58 × 47.
  3. = 2056 = 514.

Answer: P(R2 ∣ R1) = 47 and P(both red) = 514.

Common mistakes

✗ MistakeP(pet ∣ sport) = 850
✓ InsteadDivide by the sport total: 820 = 0.4.

850 is P(pet and sport). “Given sport” means only the 20 sport players count.

✗ MistakeP(A ∣ B) = P(B ∣ A), so both table answers are 0.4.
✓ InsteadP(sport ∣ pet) = 812 ≈ 0.67, not 0.4.

The given event decides the denominator. Swapping the events changes it.

✗ MistakeP(A ∣ B) = P(A) × P(B)
✓ InsteadP(A ∣ B) = P(A ∩ B)P(B).

Multiplying probabilities gives an “and” probability (for independent events), not a conditional one.

Not to be confused with

Conditional Probabilityvs.Joint probability

P(A and B) uses the grand total: 850. The conditional P(A ∣ B) uses only B’s total: 820.

Conditional Probabilityvs.Independent events

For independent events the condition changes nothing: P(A ∣ B) = P(A). In the table, P(pet) = 0.24 but P(pet ∣ sport) = 0.4, so they are dependent.

Quick check: 3 questions

Question 1 of 3

If P(A and B) = 0.18 and P(B) = 0.6, what is P(A ∣ B)?

Show answer and explanation

Answer: A. 0.180.6 = 0.3. 0.108 multiplies instead of dividing, 0.78 adds, and 3.33 divides the wrong way.

Question 2 of 3

Using the table of 50 students, what is the probability that a student plays a sport, given that the student has no pet?

Show answer and explanation

Answer: C. Restrict to the 38 students with no pet; 12 of them play a sport: 1238 = 619. 1250 uses the grand total, 1220 gives sport the role of the condition, and 2638 counts non-players.

Question 3 of 3

Events A and B have P(A) = 0.5 and P(A ∣ B) = 0.5. What can you conclude?

Show answer and explanation

Answer: D. Knowing B leaves the chance of A unchanged, which is the definition of independence. Mutually exclusive events would give P(A ∣ B) = 0, and nothing here fixes P(B).

Conditional Probability: frequently asked questions

What does the vertical bar mean in P(A|B)?

The bar means “given”. P(A ∣ B) is the probability of A when you already know that B happened. It is not a fraction bar and not division. For example, P(rain ∣ cloudy) asks how likely rain is on days that are already cloudy, which is higher than the chance of rain on a random day.

How do you find conditional probability from a two-way table?

Find the row or column for the given condition and use its total as the denominator. Then take the count where both events happen as the numerator. In a table where 20 students play a sport and 8 of them have pets, P(pet ∣ sport) = 820 = 0.4. Ignore every row or column outside the condition.

What is the difference between conditional probability and independence?

Conditional probability is a number, P(A ∣ B). Independence is a relationship: A and B are independent when that number equals P(A), so learning B tells you nothing about A. Coin flips are independent; drawing cards without replacement is not, because the first card changes the deck.

Practice and tools

Sources

  1. Common Core State Standards, High School Statistics and Probability: Conditional Probability and the Rules of Probability (S-CP)
  2. OpenStax, Introductory Statistics 2e, 3.1 Terminology
  3. OpenStax, Introductory Statistics 2e, 3.4 Contingency Tables

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS HSS-CP.A.3, CCSS HSS-CP.A.5, CCSS HSS-CP.B.6

Cite this entry

Effortless Math Team. “Conditional Probability.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/conditional-probability/

Flashcard

TermConditional ProbabilityP(A ∣ B)
DefinitionThe chance of A when B is known to have happened: P(A and B)P(B). Die shows even; chance it is 6: 13.
Study the full deck

Browse all terms in the Math Dictionary · More probability terms · Random term