Skip to main content
DNA Romance
DNA Romance
Sign Up

HLA Typing Explained: The MHC, Immune Genes, and Genetic Compatibility

Dr. Timothy SextonDNA Romance
  • genetics
  • mhc
  • dna-romance
HLA Typing Explained: The MHC, Immune Genes, and Genetic Compatibility

The Major Histocompatibility Complex (MHC) is a stretch of Chromosome 6 packed with hundreds of genes — among them the Human Leukocyte Antigen (HLA) genes. Together they encode the proteins your immune cells use to tell self from non-self. Anywhere your body has to recognise a virus, reject a transplanted kidney, tolerate a pregnancy, or pick a mate, MHC genes are doing some of the work.

The MHC matters far beyond hospital labs. It is the most polymorphic region in the human genome — and that diversity has been preserved by evolution because it pays off. Populations with more MHC variation survive epidemics better, conceive more successfully, and — at least according to the foundational scent-and-mate-choice research — show preferences for partners whose immune profile differs from their own.

Three Classes of MHC Proteins

MHC proteins are conventionally divided into three classes, each with a different role in immunity:

  • Class I (HLA-A, HLA-B, HLA-C) sits on almost every nucleated cell in the body. It presents fragments of whatever is happening inside a cell — including viral proteins — to killer T-cells. Without Class I, viruses replicate in your cells unnoticed.
  • Class II (HLA-DR, HLA-DQ, HLA-DP) is restricted to professional immune cells: B-cells, activated helper T-cells, macrophages, dendritic cells. It presents fragments of things the cell has swallowed from outside — bacteria, parasites, debris — and triggers antibody production.
  • Class III is a mixed bag of complement proteins and cytokines that supports the rest of the immune machinery rather than presenting antigens directly.

The structural difference is small but important. Class I has a single large chain anchored to a macroglobulin partner. Class II has two chains, an A chain and a B chain — which is why Class II protein names sometimes carry an extra letter to specify which chain you mean.

MHC proteins do one job well: they hold up molecular fragments and ask the immune system "have you seen this before, and is it ours?" Diversity in those proteins means your body can recognise more strangers.

HLA Naming and Typing

Because HLA is so variable, the field needed a standardised way to refer to specific alleles. The current system is the 2010 HLA naming convention, maintained by the WHO Nomenclature Committee. A typed allele looks like:

HLA-A*02:01:01:01

Each colon-separated field has a meaning:

  • The gene (A)
  • The allele group / serological type (02)
  • The specific protein (01)
  • Synonymous coding-sequence substitutions (01)
  • Non-coding variants beyond that (further fields)

You can read the official HLA naming reference and browse the IPD-IMGT/HLA database of every allele discovered to date. As of the most recent releases, more than 30,000 distinct HLA alleles have been described — orders of magnitude more variation than any other gene family in the human genome.

Typing is the process of reading which alleles a particular person carries. Clinical typing for transplants is done at high resolution (all four+ fields). Research and consumer-genomics workflows often use lower-resolution typing or SNP-based imputation — reading SNP markers across the MHC and inferring the most likely HLA alleles statistically.

What HLA Diversity Buys You

Why has evolution kept the MHC so variable? Three independent lines of evidence point to balancing selection — pressure to maintain diversity rather than fix on a single best version.

  1. Pathogen resistance. Different HLA alleles bind different peptides. A population with diverse HLA can collectively present a broader range of viral and bacterial fragments, so no single pathogen sweeps through everyone. Individuals heterozygous at HLA loci tend to fight infections better than homozygotes — a pattern documented across HIV, hepatitis, malaria, and SARS-like viruses.
  2. Reproductive success. Ober et al. (1998) studied the Hutterite community and found HLA-similar couples had significantly higher rates of fetal loss. Maternal–fetal HLA mismatch appears to support placentation; too much similarity correlates with miscarriage.
  3. Mate choice through scent. Wedekind et al. (1995) — the famous "sweaty t-shirt" study — found women preferred the body scent of men whose MHC genes were dissimilar to their own. The replication record since then is mixed (see our body-odour gene article for the nuance), but the underlying biology of MHC-driven volatile organic compounds in sweat has held up.

What This Means for Genetic Compatibility

Genetic compatibility is the match between two individuals' genomes — particularly the regions that matter for the children they might have together. The HLA region is the most heavily studied piece of that puzzle for two reasons:

  • Immune diversity in offspring. Parents with dissimilar HLA alleles produce children with a broader HLA repertoire. That child's immune system can recognise a wider array of pathogen fragments — a concrete fitness advantage in a world full of microbes.
  • Reduced miscarriage risk. As Ober's work suggests, couples with very similar HLA profiles experience higher fetal loss rates. Dissimilarity is protective.

This is what we mean at DNA Romance when we talk about "romantic chemistry." It is not pseudoscience — it is a well-described biological signal, even if the precise olfactory pathway from HLA gene to perceived attraction is still being argued over in the literature.

How DNA Romance Reads Your HLA

The DRom 1.0 algorithm reads 100 SNP markers across the MHC region, chosen because they tag HLA allele diversity well. It computes how dissimilar two profiles are — not whether you carry "good" or "bad" alleles, just how different yours is from someone else's. The output is a compatibility score. You can read more about how that algorithm works in our DRom 1.0 and DRom 2.0 product notes.

Some caveats worth keeping in mind:

  • Genetic compatibility is one input among many. Personality, life stage, geography, values, and timing all matter — sometimes more than DNA does.
  • Carrier screening for inherited disorders is a separate analysis from HLA matching, and couples planning children may want both.
  • HLA dissimilarity correlates with traits we care about; it does not guarantee them. Real chemistry needs a real conversation.

Explore your DNA-based compatibility → · Take a free personality test →


Related articles