Other Calculators

← All calculators

Pedigree Relationship Matrix Calculator

The whole pedigree matrix A from one list: every pairwise relationship, every F, every diagonal as 1 plus F.

Your pedigree list

One animal per line: the animal identifier, its sire and its dam, separated by commas. List animals oldest to youngest, parents before progeny. Write a dash for an unknown parent. Up to 40 animals. An entry that breaks the ordering rules is reported by name instead of producing a wrong matrix.

This is the pedigree relationship matrix, built from the list alone. No genotype data is used and no genomic relationship matrix is produced.

Your relationship matrix answer first: the full matrix A and every inbreeding coefficient

This pedigree relationship matrix calculator builds the additive relationship matrix A for a whole pedigree list by the tabular method: enter each animal oldest to youngest with its sire and dam, with unknown parents treated as unrelated founders, and it returns the full pairwise matrix, every individual inbreeding coefficient F, and each diagonal shown as 1 plus F. It is a whole-pedigree tool: a calculator for the inbreeding of one planned mating is a different function, and this page does not do that job.

Enter the pedigree list oldest to youngest, each animal with its sire and dam, and this calculator returns the full relationship matrix A, every inbreeding coefficient and each diagonal as 1 plus F. On the worked example loaded when the page opens, the Schaeffer A to F pedigree gives F for F of 0.125 and a diagonal for F of 1.125, with all other inbreeding coefficients at zero.

AnimalInbreeding coefficient FDiagonal (1 plus F)

Steps, shown in full

    By Waqar Ghouri, founder of CalcMega

    Pedigree relationship matrix in short

    The pedigree relationship matrix A is the square table of additive genetic relationships between every pair of animals in a pedigree, with each diagonal equal to 1 plus that animal's inbreeding coefficient.

    On the Schaeffer A to F pedigree loaded when the page opens, F for F is 0.125 and the diagonal for F is 1.125. Every other animal in the example has an inbreeding coefficient of 0 and a diagonal of 1.

    The four interactive tools that rank for this work each answer one planned mating by the path method; none of them takes a pedigree list or prints a matrix.

    QuestionAnswer
    Inbreeding of F on the Schaeffer A to F pedigree0.125
    Diagonal for F on the same pedigree1.125
    Relationship of D to E0.25
    Relationship of D to F, and of E to F0.625 each
    One-parent animal G, by A out of an unknown dam: inbreeding, diagonal, relationship to A, relationship to D0, 1, 0.5, 0.25
    Founders A and B: inbreeding each, diagonal each, relationship0, 1, 0

    Worked example: the Schaeffer A to F pedigree gives F for F of 0.125 and a diagonal of 1.125

    The pedigree loaded when the page opens is the standard teaching example for the tabular method. A, B and C are founders with unknown parents. D is by A out of B, E is by A out of C, and F is by E out of D. Because E and D are themselves related, through A, F is inbred: its sire and dam share an ancestor, and the matrix shows exactly how much.

    Work the last animal by the recursion and the whole table follows. The relationship of E to D is 0.25, because D is half A and half B, E is half A and half C, and the only shared ancestry is the half of A on each side. The inbreeding of F is half the relationship of its parents, so F for F is half of 0.25, which is 0.125, and the diagonal for F is 1 plus 0.125, which is 1.125. Every other animal in the example has unrelated parents, so A to E all carry an inbreeding coefficient of 0 and diagonals of 1. The finished matrix, as the calculator prints it, is:

    ABCDEF
    A1000.50.50.5
    B0100.500.25
    C00100.50.25
    D0.50.5010.250.625
    E0.500.50.2510.625
    F0.50.250.250.6250.6251.125

    The matrix check: aDF and aEF are 0.625 and aDE is 0.25 on the A to F pedigree

    Three cells are worth checking by hand before trusting any matrix, from any source. The relationship of D to F averages D relationships to F parents, E and D: half of 0.25 plus 1, which is 0.625. The relationship of E to F averages E relationships to E and D: half of 1 plus 0.25, again 0.625. And the relationship of D to E is half of D's relationship to A plus D's relationship to C, half of 0.5 plus 0, which is 0.25. If those three cells are right and the matrix is symmetric, the recursion has been applied properly; the results above show all three on the loaded example.

    What is a pedigree relationship matrix?

    The pedigree relationship matrix A gives, for every pair of animals in a pedigree, their additive relationship, with each diagonal equal to 1 plus that animal's inbreeding coefficient.

    This calculator is the only web calculator found that builds the whole pedigree additive relationship matrix by the tabular method, with every individual inbreeding coefficient from the same table.

    The matrix is the working table behind pedigree based breeding values and most pedigree diversity checks. Its off diagonal entries say how much of their ancestry any two animals share, on the additive scale where a parent and its offspring score 0.5 and full siblings score 0.5 through their two shared parents. Its diagonal entries are the same scale turned inward: an animal against itself, which is why they start at 1 and rise above it exactly when the animal is inbred. One table therefore answers both halves of the usual pedigree question, how related are these two, and how inbred is each one, for the whole population at once.

    How does the tabular method build the matrix?

    List the animals oldest to youngest, parents before progeny, with founders treated as unrelated, so a founder has diagonal 1 and relationships of 0. The relationship of animal X to animal Y is half the sum of X relationships to Y sire and Y dam. The inbreeding of Y is half the relationship of its sire and dam, and its diagonal is 1 plus that inbreeding. The matrix is symmetric, and each animal row is completed in list order by the same rule.

    The method earns its name honestly: it is a table filled in order, each new animal needing only the rows already written. An animal contributes half of itself to each relationship through each parent, which is all the averaging rule says, and inbreeding appears in the table the moment two parents turn out to be related to each other. Because every later entry leans on the earlier rows, the ordering rule is not housekeeping: a parent listed after its offspring would be read as an unknown founder, the matrix would come out wrong, and nothing in the figures would warn you. That is why this calculator checks the order and names the entry at fault instead of sorting silently or computing anyway.

    The one parent check: an animal with one known parent takes a diagonal of 1 and half weight relationships

    Add an animal G by A out of an unknown dam to the loaded list and the rule shows itself. G parents cannot be shown related from the list, because one of them is unknown, so the inbreeding of G is 0 and its diagonal is 1. Its relationship to A is 0.5, the average of A's relationship to A, which is 1, and A's relationship to the unknown dam, which counts as 0. Its relationship to D is 0.25, half of D's relationship to A. Every figure for a one parent animal is the known parent contribution at half weight and nothing from the unknown side, exactly as if that side were an unrelated founder, which is the assumption the method makes throughout.

    How is this different from a single mating inbreeding calculator?

    A single mating calculator gives the inbreeding coefficient of one planned mating, usually by the path method through the common ancestors of one sire and one dam. This calculator does a different job: it builds the relationship matrix for every animal in a whole pedigree at once, and the inbreeding coefficient of each animal in that pedigree falls out of the same table. If you only need one planned mating checked, the single mating tool is the right one; if you need the whole population, this is the tool.

    The difference matters in practice. A path method answer for one mating tells you nothing about the rest of the herd or flock, and checking twenty matings one at a time still leaves the pairwise relationships between the animals themselves uncomputed. The matrix holds all of it in one table, which is what breeding value estimation and population level diversity work consume. Neither tool is a substitute for the other; they answer different questions that happen to share the word inbreeding.

    What this calculator does not cover

    This calculator builds the relationship matrix for a whole pedigree list. It does not check one planned mating on its own: for a single sire and dam, a coefficient of inbreeding calculator that works by the path method is the right tool, and it will give the same answer for that mating as the matrix gives here.

    It uses pedigree records only. It does not read genotype data and does not produce a genomic relationship matrix. It builds no dominance or epistatic matrix and no inverse of A. The list is capped at 40 animals. Founders are treated as unrelated and not inbred, so a pedigree whose founders are themselves related needs phantom parent groups, which this page does not handle. An animal with one known parent takes an inbreeding coefficient of 0, because its parents cannot be shown related from the list. Every figure is relative to the founders entered: a shallow pedigree understates inbreeding, because relatedness beyond the recorded generations is invisible to the calculation.

    Pedigree Relationship Matrix Calculator FAQs

    What is a pedigree relationship matrix?

    It is the additive relationship matrix A for a whole pedigree: a square table whose entry for two animals is their additive genetic relationship from shared ancestry, whose diagonal for each animal is 1 plus that animal's inbreeding coefficient, and from which every individual inbreeding coefficient in the pedigree can be read. This calculator builds it by the tabular method from an entered pedigree list.

    How does the tabular method build the matrix?

    List the animals oldest to youngest, parents before progeny, with founders treated as unrelated, so a founder has diagonal 1 and relationships of 0. The relationship of animal X to animal Y is half the sum of X relationships to Y sire and Y dam. The inbreeding of Y is half the relationship of its sire and dam, and its diagonal is 1 plus that inbreeding. The matrix is symmetric, and each animal row is completed in list order by the same rule.

    What does the worked example on this page give?

    The Schaeffer A to F pedigree: A, B and C are founders, D is by A and B, E is by A and C, and F is by E and D. Inbreeding is 0 for A to E and 0.125 for F, because F for F is half of the relationship of E and D, which is 0.25. The diagonal for F is 1.125, the relationships of F to D and to E are each 0.625, and the full matrix is printed on this page as the check.

    How is this different from a single mating inbreeding calculator?

    A single mating calculator gives the inbreeding coefficient of one planned mating, usually by the path method through the common ancestors of one sire and one dam. This calculator does a different job: it builds the relationship matrix for every animal in a whole pedigree at once, and the inbreeding coefficient of each animal in that pedigree falls out of the same table. If you only need one planned mating checked, the single mating tool is the right one; if you need the whole population, this is the tool.

    What happens with unknown parents or one known parent?

    An animal with both parents unknown is a founder: diagonal 1, and relationships of 0 to the other founders. An animal with one known parent takes a diagonal of 1, because its parents cannot be shown related from the list, and its relationships to other animals are averaged over the known parent only, at half weight. Unknown parents are never treated as related to each other or to any listed animal.

    What happens if the pedigree is out of order or has an error?

    Parents must be listed before their progeny. If an entry names a parent that appears later in the list, this calculator shows a clear message naming the entry instead of printing a wrong matrix. An animal listed as its own parent, and a duplicate animal identifier, are rejected with a message in the same way. Fix the order or the identifier and run it again.

    Sources: Schaeffer Animal Breeding course text, tabular method

    The method on this page is the tabular method as set out in L. R. Schaeffer's Animal Breeding course text (2010), Chapter 2: Genetic Relationships: animals ordered oldest to youngest, founders unrelated, off diagonal relationships averaged over the two parents, inbreeding as half the relationship of the sire and dam, and each diagonal as 1 plus that inbreeding. The A to F worked example and its figures are the course text example, recomputed independently for this page and matched cell for cell before the page was built. Last verified 30 November 2026.

    Nothing on this page states a search volume, a cost per click, a keyword difficulty or an authority score, because none was measured for this tool.

    Related calculators

    🎲
    Dice Roller

    Fair dice with real pip faces — any count and sides, modifiers, session history.

    ⏱️
    Time Calculator

    Add, subtract and scale durations — base-60 carrying done exactly via total seconds.

    🏗️
    Concrete Maturity Calculator

    Concrete maturity temperature time factor and equivalent age from history data.

    🌍
    Köppen-Geiger Climate Classification Calculator

    Koppen Geiger climate classification from monthly temperature and rainfall normals.

    ⚾
    Base Runs Calculator

    Compute Base Runs in the FanGraphs Smyth form, with A, B, C, D and the league adjustment.

    📂
    All Other Calculators

    Browse every calculator in this category.