How this calculation works
Compute autosomal pedigree kinship, additive relationships and individual inbreeding from declared parent identifiers.
φ(i,j)=[φ(parent1(i),j)+φ(parent2(i),j)]/2; φ(i,i)=[1+φ(parent1(i),parent2(i))]/2; F_i=2φ(i,i)−1.A worked example
Unrelated founders A and B have children C and D. Their child E has inbreeding F=0.25 and diagonal kinship φ(E,E)=0.625.
Good to know
1–100 unique labeled individuals; zero, one or two declared parents. Unknown parents are separate unrelated non-inbred founders. Directed cycles, self-parenting and identical known parents rejected. Autosomal diploid recursion only; no disease prediction, DNA inference or unspecified founder relatedness.
Reference: kinship2 authors: kinship matrix definitions (opens in a new tab) ↗
Kinship measures shared inherited copies
A pedigree supplies a model of inheritance, rather than a measurement of genetic similarity. The kinship coefficient for two people is the probability that an independently selected autosomal allele from each person is identical by descent under the entered ancestry. The coefficient depends on the relationships actually represented in the model.
Keep kinship distinct from the additive relationship coefficient, which is twice kinship under this convention. Both matrices are returned so that a statistical relationship matrix is not confused with a probability. Neither matrix estimates an individual’s disease risk or reconstructs ancestry from a laboratory sample.
Compare this with the Random intercept mixed model calculator for grouped data. Compute the inherited additive relationship/kinship matrix from a directed ancestry pedigree; the existing mixed model estimates a shared group variance and never traverses ancestry.
Build an acyclic ancestry table
Enter one identifier followed by two parent identifiers on each row. A dash marks an unknown parent; it does not refer to one shared anonymous person. Known parents must have their own rows, but they need not appear before their children because the calculator first constructs an ancestry-respecting order.
The ancestry graph must be directed and acyclic. A person cannot be their own parent, and the same known person cannot occupy both parent positions in one row. These are structural validation rules, not assumptions that all recorded pedigrees are complete or that every biological relationship has been established correctly.
Why founders set the baseline
An entered founder has two unknown parents. The model assigns that founder zero inbreeding and kinship zero with every other founder. Its diagonal kinship is one half because two sampled copies from the same non-inbred diploid individual have a one-half chance of selecting the same ancestral allele position.
For a child with one known parent, the unknown side is modeled as another unrelated founder contribution. Reusing a dash elsewhere does not create hidden kinship between those children. If founders are themselves related, this baseline is inappropriate; supplying more ancestry is different from silently assigning unentered relationships.
Apply the tabular recursion
Once parents precede children, the child’s kinship with an earlier individual is the average of that individual’s kinship with the two parents. Each autosomal copy is inherited from one parental side, giving the one-half weighting. A missing parental contribution is zero under the unrelated-founder assumption used here.
The diagonal uses a separate formula involving parental kinship. That distinction matters when related parents have a child: the child’s two inherited copies can already be identical by descent. Inbreeding is therefore read from twice the diagonal minus one, rather than inferred by comparing the child with an arbitrary reference individual.
Work through the sibling-parent example
The default begins with unrelated founders A and B. Their children C and D are full siblings, so their kinship is one quarter under the model. E is then entered as the child of C and D. E’s inbreeding coefficient equals the parental kinship, giving F equal to 0.25.
The same result appears on E’s diagonal: one half times one plus 0.25 equals 0.625. Multiplying that diagonal by two gives 1.25 in the additive relationship matrix. A diagonal above one in that matrix is meaningful under this convention; it does not mean that a probability has exceeded one.
Read matrices with their identifier order
The result lists the topological identifier order alongside the matrices. Read row and column positions using that order, since the calculator may reorder a submitted table to make the recursion possible. Symmetry means the coefficient at row C, column E must equal the coefficient at row E, column C.
Individual inbreeding values are also presented as named records, reducing the chance of attaching a diagonal to the wrong person after reordering. The maximum displayed inbreeding is a summary of the entered model, not a threshold-based recommendation. Inspect the full ancestry and assumptions before using a matrix in a separate analysis.
Model boundaries and useful checks
This implementation uses an autosomal diploid inheritance model with unrelated, non-inbred founders. It does not calculate sex-linked inheritance, mitochondrial descent, uncertainty in parentage, genetic selection effects or molecular estimates. Such questions need additional model inputs and cannot be recovered by interpreting the same coefficients differently.
Useful checks include unrelated founders with zero off-diagonal kinship, a child-parent coefficient of one quarter for an otherwise unrelated pedigree, and symmetry throughout the table. Renaming all identifiers without changing parent links must leave the coefficient pattern unchanged. These checks validate inheritance arithmetic, while accuracy of the supplied ancestry remains the user’s responsibility.
A few questions, answered
Why is a founder’s diagonal 0.5?
Two random autosomal copies sampled with replacement from the same non-inbred diploid founder select the same ancestral copy with probability one half.
Does a dash denote the same unknown person?
No. Each unknown parent contribution is treated as a separate unrelated founder; dashes do not connect otherwise unrelated branches.
Can the maximum inbreeding diagnose health risk?
No. It is a pedigree-model coefficient and does not estimate disease probability or replace genetic counseling.
Why did the matrix order change?
The calculator sorts the ancestry graph so that known parents precede children, then reports that order explicitly.