Tools › Statistics › Genealogy › Kinship Calculator › Method

Kinship Calculator: Method

Open the free Kinship and Cousin Relationship Calculator

Kinship: Naming a Relationship and Counting Its Paths

The tool takes two people and the way they are connected: a relationship picked from a list, the number of generations from their common ancestors down to each of them, or a small pasted pedigree. It names the relationship, draws the two lines of descent, and computes the coefficient of relationship by adding up every path between the two people, together with the degree of kinship by two legal ways of counting. The figures are expected averages from the family tree alone; this is not legal or medical advice.

The idea

Two people are related when they have an ancestor in common. Find that ancestor, count the generations down to the first person (n) and down to the second (n′), and those two numbers settle both the name and the arithmetic. Two people 1 and 1 generations below a shared couple are siblings; 2 and 2 are first cousins; 3 and 3 are second cousins. When the counts differ, the smaller one sets the cousinship and the difference is the number of times “removed”: 3 and 4 are second cousins once removed.

A small family tree: a couple of common ancestors at the top, a line of two generations down to person A and a line of three generations down to person B, each generation numbered

A child receives half of its genes from each parent, so each step along a line of descent halves the share that comes from a given ancestor. That is the whole of the arithmetic.

The equations

A path runs from person A up to a common ancestor and down to person B without passing through anyone twice. With n steps up and n′ steps down, the path is worth (1/2)n + n′. The coefficient of relationship adds the paths:

R = Σ (1/2)n + n′ (1 + FJ) / √[(1 + FA)(1 + FB)]

FJ is the inbreeding coefficient of the common ancestor at the top of the path and FA, FB those of the two people; all three are zero in an ordinary family, and the formula is then just the sum of the halvings. This is Wright’s formula in the form printed as Equations 1 and 2 of University of Missouri Extension guide G2911.

  • Full relationship: the two lines meet in a couple, so there are two paths, one through each of the two ancestors. First cousins: 2 × (1/2)4 = 1/8.
  • Half relationship: the lines meet in one person only, so there is one path. Half siblings: (1/2)2 = 1/4.
  • Double relationship: the two people are related the same way through two separate couples (two brothers marry two sisters). Double first cousins: 4 × (1/2)4 = 1/4, the same figure as half siblings.
  • Direct line: one person is the ancestor of the other, so there is a single path straight down. Grandparent and grandchild: (1/2)2 = 1/4.

The kinship coefficient (also called the coefficient of coancestry) is the chance that a gene copy drawn at random from A and one drawn from B at the same place in the genome descend from one ancestral copy. It is Σ (1/2)n + n′ + 1 (1 + FJ), which is half of R when neither person is inbred. The inbreeding coefficient of a child of A and B equals the kinship coefficient of A and B (Equation 4 of the same guide): it describes the child, where the other two describe the pair.

For a pasted pedigree the page computes the kinship of every pair by the tabular method, working down from the founders: the kinship of a person with itself is (1 + F) / 2, and the kinship of a person with anyone born earlier is the average of the kinships of its two parents with that person. It then lists the paths one by one and checks that they add up to the tabular figure.

Degrees of kinship

Legal texts measure closeness in degrees, and there are two counts in use.

  • Civil-law count: the generations from one person up to the common ancestor plus the generations down to the other, n + n′. Louisiana Civil Code article 901 states it in these words, and canon 108 of the 1983 Code of Canon Law counts the same way. First cousins are in the fourth degree.
  • Older canon-law count: the generations in the longer of the two lines only. The 1908 Catholic Encyclopedia describes it as the church’s count for marriage at that time, under which first cousins are in the second degree and an uncle and niece are also in the second.

In a direct line the two counts agree. The page prints both and does not say which one a given statute, will or record means.

What it assumes

  • The common ancestors are unrelated to each other and not inbred, unless a pasted pedigree says otherwise. In a pedigree, people who appear only as parents are taken as unrelated founders.
  • The two people are related only through the lines entered. A second connection adds its own paths.
  • Ordinary inheritance of the autosomes: half from each parent. The X and Y chromosomes and mitochondrial DNA follow other rules and are not covered.
  • The pedigree is true as entered. The page cannot tell a wrong parent from a right one.

When it misleads

  • It is an average. A parent and child share exactly half. For every other pair the figure is what inheritance deals on average: two full siblings can share noticeably more or less than half, and beyond third cousins a pair can share no detectable DNA at all while still being cousins on paper.
  • Equal coefficients are not equal relationships. Half siblings, a grandparent and grandchild, an aunt and niece and double first cousins all come to 1/4, yet the pattern of what they share differs. A coefficient cannot be turned back into a relationship.
  • Small or closed communities. Where families have intermarried for generations, people are related through many distant lines that no short pedigree shows, and the true figure is higher than the one computed.
  • Legal questions. Which count of degrees applies, and what follows from it, depends on the statute and the place. Whether two people may marry and what a relationship means for a child’s health are questions for the law and for a genetic counselor.

Common mistakes

  • Counting people instead of generations. First cousins are 2 generations below their shared grandparents, not 3.
  • Calling a parent’s first cousin a “second cousin”. That person is a first cousin once removed; second cousins share great-grandparents.
  • Forgetting that a couple gives two paths. First cousins are 2 × 1/16, not 1/16; half first cousins are 1/16.
  • Mixing up the coefficient of relationship (1/8 for first cousins) with the kinship coefficient and the inbreeding coefficient of their child (both 1/16).
  • Reading a degree from one count as if it came from the other: “second degree” means first cousins in the older canon-law count and a grandparent or a sibling in the civil-law count.
  • Running a path through the same person twice in a pedigree with loops. Such a path is not counted.

Related tools

Few tools on this site sit near this one. Population Projection and Life Table deal with whole populations across generations; this page adds the arithmetic of one family tree.

Open the free Kinship and Cousin Relationship Calculator