Skip to main content
Chris Ferrie

Resolving the Boy-or-Girl Paradox

How tiny shifts in wording swing the probability of two boys from ⅓ to ½ to 13/27—and simple ways to see why, from counting and visual filters to simulation.

BY CHRIS FERRIE •
After Martin Gardner (1959) & Gary Foshee’s Tuesday Boy Problem (2010)
Interactive NotesTap or hover any dotted term (like or ) for a plain-English note, or open ? Tutorial on any figure for a guided walkthrough.

“I have two kids, and at least one of them is a boy,” a stranger at the conference coffee cart says to you.

Most people nod politely and wonder why this matters. A few of us freeze, caffeine forgotten, and ask the only sensible question:

What’s the probability that the other child is also a boy?

Instinct shouts ½. Mathematics replies ⅓.

The mismatch sparks the Boy-or-Girl paradox—a probability riddle that survives endless explainers, lectures, and internet wars. Below, we’ll dissect the puzzle, its infamous variants, and the real villain behind the confusion: vague language. Once you make the information-gathering rule explicit, simple counting resolves every variant—and when intuition still puts up a fight, visual filters and make the answer impossible to unsee.

Probability’s favourite booby-trap

Probability paradoxes feel like they’re exposing holes in math. They aren’t. They expose holes in storytelling. Human language happily blurs key details—details that change the answer. Formal probability, on the other hand, demands microscopic precision. What exactly happened? How exactly did we learn it? Any wiggle room invites multiple “correct” answers to what sounds like the same question.

The Boy-or-Girl paradox is a masterclass in this ambiguity. Tiny tweaks to the setup swing the result from ⅓ to ½ to 13/27. Once you lock down the that produced the clue, the “paradox” dissolves.

Part I • Simple Counting (→ ⅓)

The classic “at least one boy” → ⅓

Problem Statement • Variant 1

A family has two children. At least one of them is a boy. What is the probability that both are boys?

The casual argument goes like this: We know one kid is a boy. The other kid is either a boy or a girl. That’s a 50:50 chance. The flaw is subtle. We haven’t pointed to a specific child and asked about their sibling. “At least one” is a fact about the pair as a whole, not about a single slot in birth order.

You don’t need fancy machinery or simulation to see what happens—just list all four equally likely two-child families in our (older first, younger second): BB, BG, GB, and GG.

Learning “at least one is a boy” simply crosses out GG. The remaining three families—BB, BG, and GB—were equally likely before, and the clue doesn’t favour one over another. Only one of the three is BB, so the is ⅓.

Figure I • & Weights

Four Equally Likely Families—Three Different Ways to Filter Them

BB100%
Older (B)
Younger (B)

Survives (has ≥ 1 boy)

BG100%
Older (B)
Younger (G)

Survives (has ≥ 1 boy)

GB100%
Older (G)
Younger (B)

Survives (has ≥ 1 boy)

GG0%
Older (G)
Younger (G)

Eliminated (no boy)

Resulting
P(BB ∣ ≥1 boy) = 1 / (1 + 1 + 1) = 1/3

Rules out GG only. All three surviving worlds (BB, BG, GB) carry equal weight, so BB is 1 out of 3.

Exact P(Both Boys)
33.3%
1/3 exact
Part II • Pinning a Slot (→ ½)

The variant “older child is a boy” → ½

Problem Statement • Variant 2

A family has two children. The older child is a boy. What is the probability that both are boys?

Now the clue pins the boy to a specific slot—the firstborn. Look back at Figure I above and click Older is boy (1/2): both GB and GG vanish immediately.

Only BB and BG remain, and they are equally likely. Because the older child’s sex tells you nothing about the younger child, BB occurs exactly half the time. No paradox, no simulation required—just a sharper statement that leaves two worlds instead of three.

Part III • Sampling Weights (→ ½)

The variant “you meet a child, and it’s a boy” → ½

Problem Statement • Variant 3

A family has two children. You meet one of them at random. It is a boy. What is the probability that both are boys?

At first glance this looks identical to Variant 1—after all, you now know the family has at least one boy, and you don’t know whether he’s older or younger! Yet the answer flips back to ½. Why?

Because you didn’t simply filter for families with a boy—you . Count it on 400 typical two-child families (100 of each type):

  • From the 100 BB families, whichever child answers the door is a boy: 100 boys met.
  • From the 100 BG families, you only meet the boy half the time: 50 boys met.
  • From the 100 GB families, you again meet the boy half the time: 50 boys met.
  • From the 100 GG families, you never meet a boy: 0 boys met.

In total, you meet a boy 200 times, and exactly 100 of those boys come from BB families. That’s 100 / 200 = ½! Observing a random boy gives BB families twice the weight of mixed families, erasing the 1-in-3 tilt.

This is the moment where simulation starts pulling its weight as a second check. Whenever two wordings sound identical in English, writing down the exact —whether in a flowchart or six lines of code—forces you to commit to how the observation happened. Try running all four procedures side by side below.

Optional • Python Simulation Code (Random Child)Show ↓

Notice the line observed = random.choice(family): it makes “you meet one of them” completely unambiguous.

import random

N = 100_000
sample = [tuple(random.choice("BG") for _ in range(2)) for _ in range(N)]
families_with_boy = []

for family in sample:
    observed = random.choice(family)
    if observed == "B":
        families_with_boy.append(family)

prob = sum(1 for family in families_with_boy if family == ("B", "B")) / len(families_with_boy)
print(prob)  # ~0.500 (1/2)
Figure II • Live Simulator

Different Code, Different Answer—Run All Four Scenarios Live

A family has two children. At least one of them is a boy.if 'B' in family:
StartGenerate family2 kids (older, younger)≥ 1 boy?YesKeep & tally BBP = BB / kept → 1/3NoDiscard / next family
Simulated Families
1,200
Passed Filter
914
76.2% kept
Simulated P(BB)
31.29%
286 / 914
Exact Theory
33.33%
Fraction: 1/3
25%33.3%50%60%Exact 1/3 (33.33%)Surviving families kept (914 total)
Part IV • The Infamous Twist (→ 13/27)

The “Tuesday boy” → 13/27

Problem Statement • Variant 4

A family has two children. At least one is a boy born on a Tuesday. What is the probability that both are boys?

This is the twist that drives people up the wall. How could a totally irrelevant piece of day-of-the-week trivia change the odds of having two boys?

The secret is the exact same two-shots effect we just saw in Variant 3—only now it comes from a rare trait instead of meeting a child at the door. A BB family has two boys, so it gets two chances for at least one of them to land on Tuesday. A mixed family (BG or GB) has only one boy, so it gets one chance.

To turn that intuition into an exact fraction without any algebra, picture 196 equally likely families—one for every combination of two children and their days of the week (14 × 14 = 196), split evenly into 49 BB, 49 BG, 49 GB, and 49 GG families:

  • Among the 49 BG families, the older boy must be born on Tuesday and the younger girl can be born on any of the 7 days: 7 surviving families.
  • Among the 49 GB families, the younger boy must be born on Tuesday and the older girl on any of the 7 days: 7 surviving families.
  • Among the 49 BB families, the older boy is a Tuesday boy in 7 families and the younger boy is a Tuesday boy in 7 families—but those two lists overlap in one family where both boys were born on Tuesday. To avoid , subtract 1: 7 + 7 − 1 = 13 surviving families.

Put the surviving families together and you have 13 BB families out of 13 + 7 + 7 = 27 total families with a Tuesday boy:

P(BB ∣ Tue boy) =1313 + 7 + 7= 1327≈ 48.15%Almost 1/2—the lone overlap cell is all that keeps it under 50%
Optional Walkthrough • Deriving 13/27 Two Ways (+ Python Check)Expand ↓
Method A • Direct Conditional Probabilities (Bayes’s Rule)

Instead of counting 196 cells, compute the chance that each family type produces at least one Tuesday boy:

  • For BB, the chance neither boy is born on Tuesday is (6/7) × (6/7) = 36/49, so the chance at least one is born on Tuesday is 1 − 36/49 = 13/49.
  • For BG, there is only one boy, so the chance he is born on Tuesday is 1/7 = 7/49.
  • For GB, by symmetry, the chance is also 7/49.
  • For GG, the chance is 0.

Since all four family types start equally likely (1/4 each), the 1/4 and 1/49 factors cancel cleanly, leaving 13 / (13 + 7 + 7) = 13/27.

Method B • Why Rarer Details Push the Odds Toward 1/2

Replace “born on Tuesday” (1/7) with any independent trait shared by 1/k of boys. A BB family passes with probability 1 − ((k − 1)/k)2 = (2k − 1)/k2, while BG and GB each pass with k/k2. That gives (2k − 1) / (4k − 1): at k = 1 (any boy) you recover 1/3; at k = 7 (Tuesday) you get 13/27; and as k grows large (like a specific birthday, k = 365), double-hits virtually vanish so the ratio approaches 1/2!

Method C • Empirical Check in Python
import random

kids = [(gender, day) for gender in "BG" for day in range(7)]
N = 200_000
tuesday_boys = 0
boy_boy = 0

for _ in range(N):
    family = (random.choice(kids), random.choice(kids))
    cond = any(g == "B" and d == 1 for g, d in family)
    if cond:
        tuesday_boys += 1
        if all(g == "B" for g, _ in family):
            boy_boy += 1

print(boy_boy / tuesday_boys)  # ~0.481 (13/27)

See those exact 13 vermilion cells and 14 indigo cells laid out across all 196 worlds below—and use the rarity presets to slide smoothly from 1/3 through 13/27 up to 49.97%.

Figure III • Exact 14 × 14 Outcome Space

Why “Born on a Tuesday” Lifts the Odds to 13/27

Younger: Boy (Mon–Sun)
Younger: Girl (Mon–Sun)
Older ↓
M
T
W
T
F
S
S
M
T
W
T
F
S
S
B Mon
B Tue
B Wed
B Thu
B Fri
B Sat
B Sun
G Mon
G Tue
G Wed
G Thu
G Fri
G Sat
G Sun
Cell (2, 2)Older: Boy (Tue) · Younger: Boy (Tue)
BB • Both Tue (counted once!)
Count the 27 Surviving Cells
BB (7 row + 7 col − )13
BG (older Tue boy, 7 girl days)7
GB (7 girl days, younger Tue boy)7
P(BB ∣ Tue boy)13 / 27 = 48.15%
What If the Detail Is Even Rarer?
1 in 7

Replace “born on Tuesday” (1/7) with any independent trait shared by 1/k of boys. As the trait grows rarer, double-hits vanish and the odds climb toward 50%:

(2k − 1) / (4k − 1) = 13/27
48.15%
Part V • Visual Proof

Seeing is believing

Counting grids and frequency arguments give us the exact fractions, yet nothing builds intuition faster than watching all four rules carve up the same real population of families side by side.

Each grid below has seven columns (Mon–Sun) and two rows for birth order (top = younger, bottom = older). Every filled dot is a boy, every hollow dot is a girl, and each line connects two siblings. Moving from left to right applies the clue: surviving families stay sharp while discarded families fade into ghosts.

Figure IV • Sibling-Pair Filter Lens

Watch the Exact Same Population Fade Under Each Rule

Population:
Boy (filled dot)Girl (hollow dot)Both boys (BB)Mixed (BG / GB)
1. All (N = 50)
YoungerOlderMonTueWedThuFriSatSun
2. At least one boy (keep 39)
YoungerOlderMonTueWedThuFriSatSun
3. Both boys (keep 13)
YoungerOlderMonTueWedThuFriSatSun
Hover or tap any dot or sibling line to inspect that family across all three panels. Switch scenarios above to watch the same 50 families filter differently.
Sample Ratio
13/39 (33.3%)
Exact
1/3
  • At least one boy (→ ⅓): The middle panel stays full of mixed pairs—BG and GB—leaving roughly a third of the survivors as BB.
  • Older child is a boy (→ ½): Every family with a hollow girl dot on the bottom (older) row disappears at once, leaving an even split between BB and BG.
  • Random child met is a boy (→ ½): Only the dashed-ring child you bumped into gets checked. Mixed families survive only half the time, while BB families always survive—restoring the 1:1 balance.
  • Tuesday boy (→ 13/27): Requiring a filled boy dot inside the shaded Tuesday column wipes out most mixed families while keeping nearly twice the proportion of BB families—leaving vermilion BB pairs at almost half of what remains.
Coda

One puzzle, zero mystery

None of these four answers contradict one another. Every time the fraction shifted—from ⅓ to ½ to 13/27—it wasn’t the mathematics changing its mind. It was the story changing how we learned the clue.

For simple filters, listing the four worlds is plenty. For sampling weights or Tuesday-boy twists, counting 196 concrete families or watching a population fade under a visual filter makes the answer click immediately. And whenever natural language still tries to smuggle in a hidden assumption, a quick simulation acts as forced explicitness—making you write down the exact rule before you argue about the answer.

So next time someone drops “I have a probability paradox…” at the conference coffee cart, don’t rush to blurt out a fraction. Ask one clarifying question first—how did you find that out?—and watch the paradox vanish before the espresso finishes pouring.