Ancestor Count Calculator
Ancestor count calculator — see how many direct ancestors you have at any generation back (it doubles each generation: 2 parents, 4 grandparents, 8 great-grandparents…), the running total, and why the theoretical numbers eventually exceed the human population. A genealogy and maths tool. Runs in your browser.
Ancestor Count Calculator
How to Use the Ancestor Count Calculator
Choose generations
Drag the slider to how many generations back you want.
See the count
The ancestors at that level appear, doubling each step.
Check the total
See the cumulative ancestors and the rough years back.
Read the table
Scan the per-generation breakdown all the way back.
The Doubling That Breaks the Tree
Start with a simple fact — everyone has two biological parents — and a startling pattern unfolds. Each generation you climb, the number of direct ancestors doubles: 2 parents, 4 grandparents, 8 great-grandparents, 16 beyond them, and on it goes. This calculator lets you set how many generations back you want to look and instantly shows the ancestors at that single level (two to the power of the generation number), the cumulative total across all generations, a rough estimate of how many years back that reaches, and a per-generation table you can scroll all the way down.
The doubling is innocent at first but quickly turns absurd. Ten generations back — roughly three centuries — gives you 1,024 ancestors at that level alone. Twenty generations gives over a million. Push to forty generations, about a thousand years, and the theoretical figure exceeds a trillion: vastly more people than have ever lived on Earth. Something has to give, and what gives is the assumption that every ancestor slot is a different person. The resolution is a phenomenon genealogists call pedigree collapse: because people in past centuries frequently married distant cousins — usually with no idea they were related — branches of the family tree fold back on themselves, and the same individuals fill many slots at once.
Pedigree collapse has a profound consequence. While the number of ancestral positions explodes, the number of distinct ancestors grows far more slowly, and the family trees of everyone alive are deeply interwoven. Population geneticists have shown that the most recent common ancestor of all living humans likely lived only a few thousand years ago (Rohde, Olson and Chang, Nature 2004) — a direct fall-out of this arithmetic. It is also worth remembering that ancestry on paper is not the same as genetic inheritance: beyond a handful of generations, many of your ancestors contribute no detectable DNA to you at all, even though they remain unquestionably your ancestors. Treat this tool as a window onto the beautiful, slightly dizzying mathematics of descent rather than a literal headcount, and enjoy exploring it — entirely in your browser, with nothing you enter ever leaving your device.
Forty generations back, the maths demands a trillion ancestors — proof that your family tree must fold back on itself.
Forty generations back exceeds a trillion, so the tree must fold
Your direct ancestors double every generation back.
You have 2 parents, 4 grandparents, 8 great-grandparents.
10 generations back is 1,024 ancestors.
40 generations back exceeds a trillion — impossible.
The fix is pedigree collapse: ancestors repeat.
Distant cousins marrying makes the tree fold back.
A generation averages roughly 28–32 years (Fenner, 2005); this tool uses 28.
Everyone alive shares common ancestors not long ago.
The maths is simply 2 to the power of generations.
This calculator runs in your browser — nothing is uploaded.
Frequently Asked Questions
- The number doubles every generation you go back, because each person has two biological parents. So you have 2 parents, 4 grandparents, 8 great-grandparents, 16 great-great-grandparents, and so on. At generation N back the count is two to the power of N, which this calculator works out instantly along with the running total across all generations.
- At a given generation N back, the number of direct ancestors at that single level is 2 raised to the power N. The cumulative total of all ancestors from your parents down to generation N is two to the power of N plus one, minus two. The calculator computes both and lists the per-generation counts in a table.
- If the doubling continued unchecked, just 40 generations back — roughly a thousand years — you would have over a trillion ancestors, far more than all the humans who have ever lived (about 117 billion, by the Population Reference Bureau’s 2022 estimate). The numbers quickly exceed the entire population of the planet at that time, which tells us the simple doubling model cannot be literally true.
- Pedigree collapse is the resolution to that paradox: the same ancestors appear in your family tree more than once. Because, generations ago, people married distant cousins (often without knowing it), branches of the tree fold back on themselves. So while you have a vast number of ancestor slots, they are filled by a much smaller number of distinct individuals.
- A genealogical generation — the gap between parents and children — varies by era and family. Fenner’s cross-cultural review (American Journal of Physical Anthropology, 2005) puts the female interval near 28–29 years and the male near 31–32. This calculator uses 28 years per generation to estimate how far back a given number of generations reaches, so the year figure is a rough guide rather than a date.
- They are ancestor “slots” in the theoretical tree. The count tells you how many positions exist at each level. Because of pedigree collapse, the number of distinct people filling those slots is smaller — sometimes much smaller — the further back you go. The tool shows the theoretical maximum, which is the standard way the question is framed.
- Yes. The mathematics of doubling, combined with pedigree collapse, means that everyone alive today shares common ancestors surprisingly recently in human history. Rohde, Olson and Chang (Nature, 2004) modelled the most recent common ancestor of all living people as having lived only a few thousand years ago — a striking consequence of these numbers.
- That depends on surviving records, which vary hugely by country and community. Many people can document several centuries with parish registers, censuses and civil records, but written records thin out the further back you go. This calculator shows the theoretical ancestor counts, which grow far faster than documentation typically allows you to trace.
- It is a genealogical and mathematical tool about the structure of family trees, not a DNA test. Note that you do not inherit measurable DNA from every distant ancestor — beyond a handful of generations, many ancestors contribute no detectable DNA to you at all, even though they remain your ancestors on paper.
- The per-generation table lists rows up to generation 25 — by then a single level holds over 33 million slots and the rows stop being readable. The headline count, the cumulative total and the years-back figure keep following the slider all the way to generation 40, where the theoretical count passes a trillion.
Method & sources
How it computes
Direct-ancestor slots at generation n back = 2^n; cumulative slots from parents to generation n = 2^(n+1) − 2; approximate years back = n × 28. Pure arithmetic on a theoretical (non-collapsed) pedigree; the page explains pedigree collapse and cites the population-genetics result that all living humans share recent common ancestors.
What this tool implements
- Ancestor slots double each generation: 2^n at generation n; cumulative 2^(n+1) − 2 (heritage kernel).
- Generation length fixed at 28 years for the years-back estimate, inside the cross-cultural generation interval of about 28–32 years (Fenner 2005).
- Counts are theoretical slots, not distinct individuals — pedigree collapse is stated; genetic inheritance is distinguished from genealogical descent.
- Reference figures: 2^40 ≈ 1.1 × 10^12 exceeds the ~117 billion humans ever born (PRB 2022).
Sources
- Fenner JN. Cross-cultural estimation of the human generation interval for use in genetics-based population divergence studies. Am J Phys Anthropol 2005;128(2):415-423.
- Rohde DLT, Olson S, Chang JT. Modelling the recent common ancestry of all living humans. Nature 2004;431(7008):562-566.
- Population Reference Bureau. How Many People Have Ever Lived on Earth? (15 Nov 2022, ~117 billion): https://www.prb.org/articles/how-many-people-have-ever-lived-on-e…
What can make this go out of date
- none at runtime
Pick up where you left off
Stored only in this browser — never sent to our servers.