🧮
🧮 Math & statistics

Boy or Girl Paradox Calculator (two-child problem: 1/3, 1/2 or 13/27?)

Results update as you type.

Your numbers

Understanding the boy or girl paradox calculator — concept and principle

This calculator works through the two-child problem: a family has two children, and you learn something about them. What is the chance both are boys? Depending on exactly what you learned, the answer is 1/3, 1/2 or, with an extra detail such as "born on a Tuesday", 13/27. You can also change the chance of a boy and the rarity of the detail.

Boy or girl paradoxAt least one is a boyBBBGGBGG3 families left; only BB has two boysP(two boys)1/3 = 33.33 %
Knowing "at least one boy" removes only GG, leaving BB as one case in three.

How it is calculated

With b = chance a baby is a boy and t = 1/N = chance of the detail:

The principle

List the two children oldest first. With equal chances there are four equally likely families: BB, BG, GB and GG. "At least one boy" rules out only GG and leaves three cases, one of which is BB, so the answer is 1/3. "The older is a boy" leaves BB and BG, so 1/2. A specific detail matters because a two-boy family has two chances to contain a boy with that detail, which pushes the answer back toward 1/2. All of this assumes the fact was learned by asking "is at least one a boy?". If instead you met one child at random and saw a boy, the answer is 1/2.

Worked example

Default inputs: at least one child is a boy, chance of a boy 50 %, detail 1 in 7 (not used for this option).

  1. Equally likely families: BB, BG, GB, GG; GG is ruled out.
  2. P(two boys) = 0.5 ÷ (0.5 + 2 × 0.5) = 0.5 ÷ 1.5 = 33.33 %, as a fraction 1/3.
  3. P(one boy and one girl) = 2 out of the 3 remaining cases = 66.67 %.
  4. Gut answer, thinking only about the other child: 50 %.

How to read the result

The gap between 1/3 and 1/2 is about information, not biology. The precise question matters: how you found out changes which families are still possible. Try the "detail" option with N = 7 to see 13/27, and with a very rare detail (large N) to see the answer approach 1/2.

Common mistakes

Keep in mind: This is a probability puzzle about information. It does not predict any real family's children.

Frequently asked questions

Why is the answer 1/3 and not 1/2?

"At least one boy" leaves three equally likely families (BB, BG, GB), and only one of them has two boys.

How can a Tuesday birthday change the answer?

A family with two boys has two chances to include a Tuesday boy, so the detail makes two-boy families relatively more likely: 13/27.

Who made the puzzle famous?

Martin Gardner popularised it in his writing on recreational mathematics.

Sources: P. Norvig, "ProbabilityParadox" notebook (pytudes)

Checked 9 Nov 2026. P. Norvig, “ProbabilityParadox” notebook (norvig.com, pytudes): P(two boys | older is a boy) = 1/2, P(two boys | at least one boy) = 1/3, P(two boys | at least one boy born on Tuesday) = 13/27; problem popularised by Martin Gardner. General formulas derived here by enumerating the equally likely cases.

🧮 All math & statistics tools →🌍 Calculators by country →