Understanding genealogy

Sosa-Stradonitz (Ahnentafel) numbering explained, with calculation tips

A single number is enough to place any ancestor in a tree: that’s the whole point of Sosa-Stradonitz numbering, also called Ahnentafel numbering. The numbers on Gedcom Tree’s cards follow this rule.

The whole series · Updated November 28, 2026

The rule

  • The starting person is number 1.
  • A person’s father has twice their number: 2 × n.
  • Their mother has twice their number plus one: 2 × n + 1.

So the starting person’s father is 2 and their mother 3. The parents of 2 are 4 and 5, those of 3 are 6 and 7. Beyond number 1, all men have even numbers and all women odd numbers, and each wife’s number is her husband’s plus one.

Finding a number’s generation

Each generation starts at a power of 2: parents at 2, grandparents at 4, great-grandparents at 8, then 16, 32, 64. A number belongs to the generation whose first number it reaches without reaching the next one’s.

GenerationWhoNumbersCount
1 The starting person 1 1
2 Parents 2 and 3 2
3 Grandparents 4 to 7 4
4 Great-grandparents 8 to 15 8
5 Great-great-grandparents 16 to 31 16
6 Sixth generation 32 to 63 32
10 Tenth generation 512 to 1,023 512

Number 45, for instance, lies between 32 and 63: it’s an ancestor in the sixth generation. It’s odd: she’s a woman.

Finding an ancestor’s child

To go down one generation, divide by 2 and keep the whole part. The child of 45 is 22, the child of 22 is 11, then come 5, 2 and finally 1. So 45 is the mother of the father (22) of the mother (11) of the mother (5) of the father (2) of the starting person.

A tip for number lovers: written in binary, a Sosa number gives you the path directly. 45 is 101101; drop the first 1 and read the rest from left to right, 0 for the father and 1 for the mother: father, mother, mother, father, mother. It’s the same path, read from the starting person.

Why everyone uses it

The system is named after Jerónimo de Sosa, a Spanish friar who used it in 1676, and Stephan Kekule von Stradonitz, a German genealogist who popularised it in the late nineteenth century. It caught on because it needs no lookup table: the number alone tells you who the person is in relation to the starting person.

Its limits: it only numbers ancestors, not siblings or cousins, and it depends on the starting person. The same ancestor has a different number in your tree and in your cousin’s.

On a Gedcom Tree chart

Each card has its Sosa number at the top right, and number 1 is marked with a seal. When an ancestor fills several places in the tree, they appear on several cards, each with its own number: that’s pedigree collapse. The trees in the example gallery list every ancestor with their number.

Your tree already has a few generations?

Export it as a GEDCOM file from your software, then upload it to Gedcom Tree: the tree preview is free. The example gallery shows the result on four historical families.

In the same series