Your genes come from your parents, but the story goes much deeper than that. Every gene in the human genome has a history stretching back billions of years, shaped by inheritance, copying errors, viral infections, and even transfers between entirely different species. Understanding where genes come from means looking at three levels: where your personal genes originated, how new genes arise in a species over time, and how the very first genes appeared on Earth.
What You Inherit From Your Parents
You carry roughly 20,000 protein-coding genes, and you received half from each biological parent. Your nuclear DNA, the main set of genetic instructions packed into 23 pairs of chromosomes, is a 50/50 split: one chromosome in each pair from your mother, one from your father. But inheritance isn’t perfectly symmetrical. Fathers pass along about 3.3 times as many new mutations as mothers do, and that rate doubles between age 20 and 58. Mothers show no similar age-related increase. So while both parents contribute equally to your gene count, your father’s copy is statistically more likely to contain changes that weren’t present in your grandparents.
Each generation introduces somewhere between 98 and 206 brand-new mutations per child. Most of these are harmless single-letter changes or small insertions and deletions in repetitive stretches of DNA. These tiny errors during copying are the raw material that, over thousands of generations, slowly reshapes a species.
You also carry a small but separate set of genes outside the nucleus. Mitochondria, the energy-producing structures in nearly every cell, have their own circular DNA containing 37 genes. With rare exceptions, mitochondrial DNA passes exclusively from mother to child. After fertilization, the mitochondria contributed by the sperm are almost always destroyed. This maternal lineage traces back unbroken for thousands of generations and, on a much longer timescale, to free-living bacteria that were absorbed by early cells roughly 1.5 billion years ago and never digested.
How New Genes Arise in a Species
Inheritance explains how existing genes pass from one generation to the next, but it doesn’t explain where those genes came from in the first place. Several mechanisms create genuinely new genetic material over evolutionary time.
Gene Duplication
The most common route to a new gene is duplication. When a stretch of DNA is accidentally copied twice during cell division, the organism ends up with two versions of the same gene. One copy can keep doing its original job while the other is free to accumulate mutations without consequences. Over millions of years, that spare copy may develop an entirely different function. The duplicated genes are called paralogues, and they’re a major source of the raw material behind biological diversity. Many gene families in the human genome, such as the hundreds of genes involved in smell, trace back to ancient duplication events.
Genes From Scratch
Perhaps the most surprising discovery in recent genetics is that functional genes can emerge from DNA that previously did nothing at all. These “de novo” genes evolve from non-coding regions of the genome, stretches that don’t contain instructions for making proteins. For non-coding DNA to become a working gene, two things need to happen: the DNA must contain a readable instruction sequence, and the cell must actually read and use it. These two steps can occur in either order.
In one scenario, a region of the genome is already being read into RNA but doesn’t yet contain usable protein instructions. Random mutations then create a readable sequence within it. In the other scenario, a readable sequence already sits silently in the DNA, and nearby mutations eventually switch on its expression. Research in fruit flies found clear evidence for this second path: some individuals in a population carry sequences that are readable but silent, and small genetic differences between individuals determine whether those sequences get turned on. Between these two routes, there’s a blurry continuum of “proto-genes” that exist somewhere between non-functional DNA and true working genes, gradually gaining or losing function over evolutionary time.
Genes Borrowed From Other Species
Bacteria routinely swap genes with each other, a process called horizontal gene transfer. For a long time, scientists assumed this was essentially impossible in complex animals. That assumption has been overturned. Genome-wide analyses across 26 animal species found that horizontal transfer typically produces tens or hundreds of active foreign genes in a given species, many involved in metabolism.
In the human genome, researchers have identified 1,467 regions spanning about 2.6 million bases that are more closely related to sequences in non-mammalian vertebrates than to those in other mammals. These regions involve 642 known genes. Some of the most reliably identified transferred sequences have close matches in parasitic flatworms that infect humans, suggesting parasites may have served as intermediaries. An earlier discovery found that cattle carry a DNA sequence far more similar to python and copperhead snake DNA than to horse DNA, with ticks proposed as the likely shuttle between species.
Viruses Wrote Part of Your Genome
About 8% of the human genome is composed of sequences with viral origin. These are remnants of ancient retroviruses that infected our ancestors, inserted their genetic material into egg or sperm cells, and became a permanent part of the genome passed down through every subsequent generation. They’re called human endogenous retroviruses, or HERVs. Most are now inactive, degraded by millions of years of mutation. But some have been repurposed. Certain viral sequences play active roles in the immune system and in forming the placenta during pregnancy. What started as an infection became, over deep time, a functional part of human biology.
Where the Very First Genes Came From
All the mechanisms above require genes to already exist. The deeper question is how the first gene-like molecules appeared on a planet that had none.
The leading explanation is the RNA world hypothesis. Before DNA and proteins existed, RNA molecules likely served as both the information carrier and the chemical workhorse of early life. RNA has a unique property: it can store genetic information like DNA, but it can also fold into shapes that catalyze chemical reactions like proteins do. A single type of molecule that can do both jobs is exactly what you’d need to bootstrap life from simple chemistry.
The critical step would have been an RNA molecule capable of copying other RNA molecules, including copies of itself. Such a self-replicating molecule wouldn’t need to be complex. Once it existed, natural selection could begin: copies with slight variations that replicated faster or more accurately would outcompete the rest. Over time, different RNA molecules could specialize for different tasks, forming cooperative systems. One might catalyze the production of building blocks, another might handle replication, and together they’d reproduce more efficiently than any single molecule alone.
Scientists suspect that even simpler molecules preceded RNA. The chemistry of RNA is complex enough that it likely wasn’t the first self-replicating polymer. Simpler, RNA-like molecules may have served as the original catalysts and templates, eventually giving way to true RNA as it proved more versatile. From there, the transition to DNA (a more stable storage molecule) and proteins (more powerful catalysts) followed, producing the system all life on Earth uses today.
How Similar Are Human Genes to Other Species?
Because genes are inherited and modified over time, closely related species share most of their genetic material. Humans and chimpanzees differ by about 4% when you count not just single-letter changes but also inserted and deleted segments, totaling roughly 35 million single-letter differences and about 90 million bases of insertions and deletions. That 96% overlap reflects a shared ancestor that lived roughly 6 to 7 million years ago.
The further back you go, the more the genomes diverge, but core genes involved in basic cell functions are recognizable across enormous evolutionary distances. Humans share genes with yeast, fruit flies, and even bacteria. These deeply conserved genes trace all the way back to the earliest single-celled organisms, connecting every living thing to the same molecular origins billions of years ago.

