Consanguinity & Inbreeding Coefficient Calculator
Consanguinity & Inbreeding Coefficient Calculator
Wright’s coefficient of inbreeding, with the working shown.
Consanguinity & Inbreeding Coefficient Calculator
Coefficient of inbreeding F
Wright’s formula, term by term
Degree of kinship, counted two ways
A degree is a count of generations. Neither count says whether any law permits a marriage; this page does not address marriage law.
Educational only. This calculator reports a published statistic and is not medical, genetic or legal advice. It does not address marriage law. Anyone with a specific concern should consult a genetic counsellor.
How to use the consanguinity calculator
Pick how the parents are related
Seventeen standard relationships are listed, from first cousins through to a parent and child. The coefficient shown is for their child, not for the couple themselves.
Or describe the ancestry yourself
Switch to custom mode and set how many generations run from each parent up to the shared ancestor, and how many ancestors are shared there. A shared couple is two; a single shared ancestor makes it a “half” relationship.
Read F as a fraction
F is always a fraction with a power of two underneath, so it is printed as one — 1/16 rather than 0.0625. The percentage, the coefficient of relationship between the parents, and a band locating it against first and second cousins sit alongside it.
Check the working
The panel below writes out each term of Wright’s sum: the exponent, the (1 + FA) factor where the shared ancestor was themselves inbred, and what each path contributes to the total. Under it, the degree of kinship between the parents is counted both ways in use: the civil count and the Germanic count of the 1917 canon law code.
What the coefficient of inbreeding actually measures
Sewall Wright introduced F in 1922 to answer a specific question: given a pedigree, what is the chance that the two copies of a gene in an individual are identical by descent — the same ancestral copy, arriving twice, once down each parental line? It is a probability, not a verdict.
The formula sums over every chain connecting the two parents through a common ancestor. Each chain contributes one half raised to the number of generations up one side, plus the number up the other, plus one — and is multiplied by one plus that ancestor’s own inbreeding coefficient, for the case where the shared ancestor was themselves the child of relatives. This tool prints every term rather than only the total, because the total on its own is a number to be believed, while the terms are a calculation to be checked.
The numbers worth knowing
First cousins share a pair of grandparents. Two chains, each four steps long — four is the civil degree of kinship between first cousins — gives an exponent of five: 1/32 per chain, doubled for the two grandparents, and F comes out at exactly 1/16. Halve the shared ancestry — half first cousins, one shared grandparent — and F halves to 1/32. Double it, as double first cousins do when two brothers marry two sisters, and F rises to 1/8, the same figure as an uncle and niece. Full siblings reach 1/4, as does a parent and child.
These are not approximations. F is always a dyadic fraction, and printing it as 0.0625 rather than 1/16 loses information about where it came from, which is why this tool prints the fraction.
F is the child’s coefficient; r is the parents’. For non-inbred parents one is exactly twice the other, which is why both “12.5%” and “6.25%” are correct about first cousins.
F, r, and the factor of two that confuses everyone
Two numbers circulate for every relationship and they differ by a factor of two, which produces an enormous amount of confusion. The coefficient of relationship r describes the two parents: first cousins have r of 1/8, so they share about 12.5% of their DNA. The inbreeding coefficient F describes their child: 1/16, or 6.25%. Both statements are true because they are about different people. F for a child equals the kinship coefficient of its parents, and r is twice that kinship coefficient — which is the whole of the relationship between the two figures, once parental inbreeding is accounted for.
The degree of kinship is the exponent
Counted the civil way — generations up from one person to the shared ancestor, plus generations down to the other — the degree of kinship is the length of the path Wright’s formula sums over, and the working panel prints it beside every term. For relatives who are not in a direct line and share one couple of ancestors, the two paths together give F = (1/2) to the power of that degree: 1/16 at the fourth degree, whether the parents are first cousins or a great-uncle and great-niece (set 1 and 3 generations, two ancestors, in custom mode), and 1/64 at the sixth. The degree alone does not fix F. A parent and child are one degree apart and full siblings two, yet both come to 1/4, because the parent is a single ancestor and the siblings share two. Half relationships, double relationships and an inbred shared ancestor move F again at the same degree.
Two ways to count a degree
“Degree” is counted two ways, and they disagree for every relative outside the direct line. The civil or Roman count, set out in Justinian’s Institutes, counts every generation up from one person to the shared ancestor and back down to the other: siblings are in the second degree, an uncle and niece in the third, first cousins in the fourth. The Germanic count, which the Catholic Church used in its 1917 Code of Canon Law (canon 96), counts only the longer of the two lines: siblings are in the first degree, an uncle and niece and first cousins both in the second. The 1983 Code (canon 108) uses the civil count instead. In a direct line, parent to child or grandparent to grandchild, both count the generations between the two people. So a relative “in the second degree” is a sibling or a grandparent by the civil count, but a first cousin, an uncle or a niece by the Germanic one; the table below gives both counts for every relationship.
What this tool will not tell you
It reports a statistic about a pedigree. It does not assess the risk for any particular couple, which depends on family history that no calculator can see, and it does not address marriage law. Anyone with a specific concern should speak to a genetic counsellor.
Wright’s path formula, as used here, is set out as Eq. (1) in M. D. Vigeland, “Relatedness coefficients in pedigrees with inbred founders”, Journal of Mathematical Biology 81 (2020): 185–207 (open access), which attributes it to Wright (1922). The second-cousin definition of a consanguineous couple is from Bennett et al., “Genetic Counseling and Screening of Consanguineous Couples and Their Offspring”, Journal of Genetic Counseling 11 (2002): 97–119. The two degree counts are from Justinian’s Institutes 3.6, the 1983 Code of Canon Law, canon 108, and the 1917 Code of Canon Law, canon 96 §3.
Seventeen relationships: F, r and both degree counts
| Parents are | F of their child | r between them | Civil degree | Germanic degree |
|---|---|---|---|---|
| Parent and child | 1/4 | 1/2 | 1 | 1 |
| Full siblings | 1/4 | 1/2 | 2 | 1 |
| Half siblings | 1/8 | 1/4 | 2 | 1 |
| Grandparent and grandchild | 1/8 | 1/4 | 2 | 2 |
| Uncle and niece (or aunt and nephew) | 1/8 | 1/4 | 3 | 2 |
| Half uncle and niece | 1/16 | 1/8 | 3 | 2 |
| Double first cousins | 1/8 | 1/4 | 4 | 2 |
| First cousins | 1/16 | 1/8 | 4 | 2 |
| Half first cousins | 1/32 | 1/16 | 4 | 2 |
| First cousins once removed | 1/32 | 1/16 | 5 | 3 |
| First cousins twice removed | 1/64 | 1/32 | 6 | 4 |
| Double second cousins | 1/32 | 1/16 | 6 | 3 |
| Second cousins | 1/64 | 1/32 | 6 | 3 |
| Half second cousins | 1/128 | 1/64 | 6 | 3 |
| Second cousins once removed | 1/128 | 1/64 | 7 | 4 |
| Third cousins | 1/256 | 1/128 | 8 | 4 |
| Fourth cousins | 1/1024 | 1/512 | 10 | 5 |
Ordered by civil degree. Every value is exact, for parents who are not themselves inbred, and none of it depends on population or ancestry. Same degree does not mean same F: half and double relationships share a degree with the ordinary one and differ by a factor of two each way.
Frequently asked questions
-
Written F, it is the probability that the two copies of a gene in an individual are identical by descent — that is, both inherited from the same ancestor through both parents. Sewall Wright defined it in 1922. F is zero for the child of unrelated parents, 1/16 for the child of first cousins, and 1/4 for the child of full siblings.
-
By summing over every chain that connects the two parents through a common ancestor. Each chain contributes (1/2) raised to the power of the number of generations from one parent up to the ancestor, plus the number from the other parent, plus one — multiplied by (1 + F of that ancestor). This tool writes out every term so you can see where the total comes from rather than taking it on trust.
-
Two first cousins share a pair of grandparents, so there are two chains. Each runs two generations up from one parent and two from the other, giving an exponent of 2 + 2 + 1 = 5, so each chain contributes 1/32. Two grandparents, two chains: 2/32 = 1/16. Change it to half first cousins, who share only one grandparent, and the answer halves to 1/32.
-
F is the inbreeding coefficient of a child; r is the coefficient of relationship between the two parents. For non-inbred parents r is exactly twice F, which is why first cousins are said to share 12.5% of their DNA while their child has an F of 6.25%. Both statements are true and they are not in conflict — they measure different people.
-
No. F is a probability about how much of a child’s genome is expected to be identical by descent; it is not a risk figure, and this page does not turn it into one. The risk for any particular couple depends on family history that no calculator can see. Anyone with a specific concern should speak to a genetic counsellor.
-
Fourth degree by the civil count, which adds the two generations up from one cousin to the shared grandparents to the two down to the other; second degree by the Germanic count, which takes only one line. Justinian’s Institutes use the civil count, as does the Catholic Church’s 1983 Code of Canon Law; its 1917 Code used the Germanic one. The table on this page gives both counts for every relationship in the list.
-
No. It computes Wright’s coefficient of inbreeding from a pedigree and nothing else. It does not address marriage law.
-
It accounts for shared ancestors who were themselves the product of related parents. If a shared great-grandparent was the child of first cousins, that ancestor’s own F of 1/16 raises the contribution of every path running through them by a factor of 17/16. You can set it in the custom mode and watch the total move.
-
Yes — switch to custom mode and give the number of generations from each parent up to the shared ancestor, how many ancestors are shared at that position, and that ancestor’s own F. A shared couple is two ancestors; a single shared ancestor makes it a “half” relationship. It covers any relationship through ancestors at a single position, and it refuses a combination no family can have — more shared ancestors than the shorter side has.
-
The arithmetic is exact — F is always a fraction with a power of two underneath, and the tool prints it as one rather than as a rounded decimal. It is checked two ways: the path formula is verified against an independent implementation of the Malécot kinship recursion over explicit family graphs, and both are checked against the published values for seventeen standard relationships.
-
Completely free, with no account and no limit. Everything runs in your browser, so nothing you enter about your family is transmitted anywhere, and the page keeps working offline once loaded.
Method & sources
How it computes
F = Σ (1/2)^(n1 + n2 + 1) × (1 + F_A) over every path joining the parents through a common ancestor A (Wright 1922; Vigeland 2020, Eq. 1), as an exact fraction, checked against a Malécot kinship recursion. Degree of kinship to the nearest shared ancestor, two ways: civil n1 + n2 (Justinian, Inst. 3.6; 1983 Code of Canon Law can. 108), and Germanic, the longer line (1917 Code can. 96 §3). Computed in your browser, tested. Not a risk figure; no marriage law.
What this tool implements
- Wright, S. (1922) "Coefficients of inbreeding and relationship", American Naturalist 56:330-338: the path formula F = Σ (1/2)^(n1 + n2 + 1) × (1 + F_A), printed as Eq. (1) by Vigeland (2020).
- Civil (Roman) degree = generations up from one parent to the nearest shared ancestor plus generations down to the other: Justinian, Institutes 3.6 puts siblings in the second degree, an uncle and his brother's child in the third, first cousins (consobrini) in the fourth and second cousins (sobrini) in the sixth. The 1983 Code of Canon Law (can. 108 §3) counts the collateral line the same way.
- Germanic degree = the generations in one line when the two are equal, or in the longer line when they are not: 1917 Code of Canon Law, can. 96 §3 (first cousins second degree, uncle and niece second degree). In the direct line both codes count the generations (1917 can. 96 §2; 1983 can. 108 §2).
- Bennett, R. L. et al. (2002), Journal of Genetic Counseling 11(2):97-119: the National Society of Genetic Counselors' recommendations are written for consanguineous couples "related as second cousins or closer" (abstract, read through Crossref 2026-11-06). The band note now says that, rather than that the society "defines" the term.
Sources
- Wright, S. (1922) "Coefficients of Inbreeding and Relationship", The American Naturalist 56(645):330-338. https://doi.org/10.1086/279872
- Vigeland, M. D. (2020) "Relatedness coefficients in pedigrees with inbred founders", Journal of Mathematical Biology 81:185-207, Eq. (1), Wright's path formula (open access, CC BY 4.0). https://doi.org/10.1007/s00285-020-01505-x
- Bennett, R. L. et al. (2002) "Genetic Counseling and Screening of Consanguineous Couples and Their Offspring: Recommendations of the National Society of Genetic Counselors", Journal of Genetic Counseling 11(2):97-119. https://doi.org/10.1023/A:1014593404915
- Justinian. Institutiones, book 3, title 6 (De gradibus cognationis), Latin text, The Latin Library. https://www.thelatinlibrary.com/justinian/institutes3.shtml
- Code of Canon Law (1983), canons 108-109, English text, Holy See. https://www.vatican.va/archive/cod-iuris-canonici/eng/documents/c…
- Codex Iuris Canonici (1917; Rome: Typis Polyglottis Vaticanis, 1918 printing), canon 96, Internet Archive scan (University of Illinois copy). https://archive.org/details/codexiuriscanoni00cath
What can make this go out of date
- None at runtime: every figure is computed in the browser from the relationship chosen, and nothing the reader enters is sent anywhere.