Cousin Relationship Calculator

Stephanie Ben-Joseph headshot Stephanie Ben-Joseph

Genealogy research desk with a family tree chart, archival photos, sticky notes, and a laptop showing a family tree diagram.
Count both people up to the same shared ancestor, then use the generation counts to name the relationship.

Introduction

This calculator identifies the standard genealogical cousin degree and any removed amount between two people based on how many generations each person is from their nearest shared common ancestor. It also handles direct-line cases when one person is the shared ancestor, plus common aunt/uncle and niece/nephew cases that are not usually named as cousins.

How to Use

What to enter (how to count generations)

For each person, count the number of steps up the family tree to the shared ancestor you’re using:

Tip: The most common mistake is choosing the wrong common ancestor. If two people share multiple ancestors (common in endogamy, pedigree collapse, or double-cousin situations), you’ll get different results depending on which shared ancestor you select.

Definitions: “cousin degree” vs. “removed”

Two values determine the label:

Formulas (genealogical standard)

Let gA be the generations from Person A to the common ancestor, and gB be the generations from Person B to the same ancestor.

Cousin degree: k = min ( gA , gB ) 1

Removed: r = | gA gB |

Plain-text formula: cousinDegree = min(gA, gB) - 1 when min(gA, gB) >= 2. Plain-text formula: removed = abs(gA - gB). Special cases handle same person, direct ancestors, siblings, and aunt/uncle relationships before cousin naming is applied.

Special case: If gA = gB = 1, the two people share a parent, so they are siblings (not cousins).

How to interpret the result

The calculator returns one of these patterns:

“Removed” does not mean “not related.” It only indicates the two people are in different generations relative to the shared ancestor.

Worked example (step-by-step)

Scenario: You and another person are both descended from the same great-grandparent.

  1. From you to that great-grandparent is: you → parent (1) → grandparent (2) → great-grandparent (3). So gA = 3.
  2. From the other person to the same great-grandparent is also 3 steps. So gB = 3.
  3. Cousin degree: min(3, 3) − 1 = 22nd cousins.
  4. Removed: |3 − 3| = 0 → no “removed” term is added.

Quick lookup table (common inputs)

Person A generations (gA) Person B generations (gB) Result Typical relationship scenario
0 2 Person A is Person B's grandparent One person is the common ancestor
1 1 Siblings Same parent
1 2 Person A is Person B's aunt/uncle One person is a child of the common ancestor; the other is a grandchild
2 2 1st cousins Same grandparent
3 3 2nd cousins Same great-grandparent
3 4 2nd cousin once removed One person is a great-grandchild; the other is a 2× great-grandchild of the same ancestor
2 3 1st cousin once removed Your cousin’s child (or your parent’s cousin)
4 6 3rd cousin twice removed More distant cousins in different generations

Assumptions and limitations (important)

FAQ

What does “once removed” mean?
It means the two people are one generation apart relative to their shared ancestor (for example, your parent’s 1st cousin is your 1st cousin once removed).
Can I enter 0 generations?
Yes. Use 0 when one person is the shared ancestor. The calculator will return a direct-line relationship such as parent, grandparent, or great-grandparent instead of a cousin label.
Why aren’t siblings considered cousins?
Siblings share a parent (gA = gB = 1). In genealogy naming, “cousin” starts when the shared ancestor is a grandparent or older.
How do I find the “common ancestor” to use?
Look for the most recent ancestor both people descend from (often the nearest shared grandparent, great-grandparent, etc.). Then count each person’s steps up to that ancestor.
Can two people have more than one cousin relationship?
Yes. If they share more than one ancestral line (for example, double cousins), the cousin label can differ depending on which shared ancestor you use.

Source note: The rules used here follow standard cousin-degree and removal conventions commonly used in genealogy.

Enter generations to the nearest common ancestor
Use whole numbers: 0 = this person is the shared ancestor, 1 = parent, 2 = grandparent, 3 = great-grandparent, etc.
Count the number of steps from Person B up to the same shared ancestor; use 0 only if Person B is that ancestor.

Status messages will appear here.

Arcade Mini-Game: Cousin Relationship Tree Run

Catch useful genealogy inputs and avoid mistakes that change the cousin label.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.

Enter generations for both relatives.