Gluten-related conditions have a strong genetic component, especially celiac disease, where specific immune system genes are present in over 98% of diagnosed patients. But genetics alone don’t determine whether you’ll develop a problem with gluten. Carrying the relevant genes is necessary for celiac disease yet far from sufficient, since roughly half the general population carries the same genes without ever getting sick.
Celiac Disease Has the Clearest Genetic Link
Celiac disease is the most studied gluten-related condition, and its genetic basis is well established. Two immune system genes, known as HLA-DQ2 and HLA-DQ8, are found in 98.4% of people with celiac disease. About 80% carry HLA-DQ2 alone, 8% carry HLA-DQ8 alone, and roughly 11% carry both. These genes code for proteins on the surface of immune cells that recognize fragments of gluten as a threat, triggering the autoimmune attack on the small intestine that defines celiac disease.
Here’s the catch: carrying these genes is extremely common. Studies of healthy populations without any family history of celiac disease find that around 55 to 60% of people are positive for one or both of these markers. That means most carriers will never develop celiac disease. The genes set the stage, but something else has to pull the trigger.
How Much Risk Runs in Families
If a close family member has celiac disease, your risk is significantly higher than the general population’s rate of about 1%. A large meta-analysis covering more than 10,000 first-degree relatives of celiac patients found that 7.5% had the disease themselves. The breakdown by relationship is striking and reveals that sex matters:
- Sisters of someone with celiac disease have about a 1 in 7 chance of also having it.
- Daughters face roughly 1 in 8 odds.
- Sons have about a 1 in 13 risk.
- Brothers come in at 1 in 16.
- Parents are less commonly diagnosed, with mothers at 1 in 32 and fathers at 1 in 33, though this likely reflects underdiagnosis in older generations rather than lower genetic risk.
Overall, siblings carry the highest pooled risk at 8.9%, followed by children at 7.9% and parents at 3%. These numbers make celiac disease one of the more heritable autoimmune conditions, though they also show that even with a first-degree relative who has it, the odds are still in your favor.
Genes Alone Don’t Cause Celiac Disease
Since more than half the general population carries the relevant genes and only about 1% develops celiac disease, researchers have spent years trying to identify what tips the balance. The answer appears to be a combination of environmental exposures interacting with genetic susceptibility, particularly in early life.
Viral infections during infancy are one of the strongest suspects. Enterovirus and rotavirus infections in young children have been linked to a higher risk of developing celiac autoimmunity. Febrile infections between ages 3 and 6 months appear especially relevant. Season of birth also plays a role: children born in spring and summer consistently show higher rates of celiac disease than those born in fall and winter, possibly because of seasonal variation in immune function that’s detectable even in cord blood at birth.
The amount of gluten a child eats in the early years and the timing of its introduction may also matter, though findings on this have been mixed. Breastfeeding patterns, maternal exposures during pregnancy, and even epigenetic changes triggered by seasonal factors all appear to interact with HLA genes in complex ways. One study found that a specific variant in the CD247 gene (which helps T cells recognize threats) increased celiac risk in children born during spring and summer who also had early febrile infections. This kind of gene-environment interaction helps explain why identical twins, who share 100% of their DNA, don’t always both develop the disease.
An Evolutionary Quirk of Agriculture
Wheat was domesticated only about 10,000 years ago, which raises an obvious question: why would genes that cause a severe reaction to wheat be so common? The leading theory is that celiac-associated HLA genes were actually favored by natural selection because they helped fight infectious diseases. As agriculture led to denser human settlements, infections became a bigger killer than they had been for hunter-gatherers. Immune systems that were aggressive enough to cause autoimmune side effects like celiac disease may have offered a survival advantage against pathogens. In other words, the genes weren’t selected “for” celiac disease. They were selected for strong immunity, and gluten intolerance came along as collateral damage once wheat entered the diet.
Wheat Allergy Is a Different Condition
It’s worth clarifying that “gluten allergy” isn’t a precise medical term. What most people mean is either celiac disease (autoimmune) or wheat allergy (a classic allergic reaction involving the immune system’s IgE antibodies). These are distinct conditions with different mechanisms.
Wheat allergy follows the same general pattern as other food allergies: it tends to cluster with conditions like asthma, eczema, and hay fever, suggesting a shared genetic susceptibility to allergic reactions in general. Genome-wide studies have identified 16 genetic variants linked to food allergies at a significant level, many of which overlap with these other allergic conditions. One specific gene variant (in a gene called RBFOX1) has been identified as a susceptibility factor for wheat protein allergy specifically. However, researchers still don’t know whether being allergic to a particular food like wheat is driven mainly by environmental exposure interacting with a general tendency toward allergies, or whether food-specific genetic risk factors exist. The genetics of wheat allergy are real but far less defined than those of celiac disease.
Non-Celiac Gluten Sensitivity Remains a Mystery
Non-celiac gluten sensitivity (NCGS) is the category that gives researchers the most trouble. People with NCGS experience digestive symptoms and other complaints after eating gluten, but they test negative for celiac disease and wheat allergy. Unlike celiac disease, NCGS does not appear to depend on HLA-DQ2 or HLA-DQ8 genes, and no reliable genetic markers have been identified for it.
What evidence exists suggests NCGS involves the innate immune system (the body’s first-line, nonspecific defenses) rather than the adaptive immune system that drives celiac disease. Some researchers suspect the reaction may not even be to gluten itself but to other wheat components like amylase-trypsin inhibitors. Without a clear biological marker, let alone a genetic one, it’s impossible to say definitively whether NCGS runs in families. The honest answer is that science doesn’t yet know.
What Genetic Testing Can and Can’t Tell You
HLA gene testing is available and sometimes useful, but not in the way most people expect. A positive result (carrying DQ2 or DQ8) tells you very little, since more than half the population would test positive. A negative result, however, is highly informative. The negative predictive value of HLA testing approaches 100%, meaning that if you don’t carry either gene, you can essentially rule out celiac disease. This makes the test most valuable for people in gray-zone situations: family members of celiac patients who want to know if they need ongoing monitoring, or people already on a gluten-free diet whose blood tests are inconclusive because they’ve already removed gluten.
A negative HLA result typically eliminates the need for further celiac testing, including endoscopy and gluten challenge. In extremely rare cases, people who test negative for the standard markers may still carry unusual configurations of the DQ2 gene that can cause disease, but this applies to a tiny fraction of patients and usually only comes up when other evidence strongly points to celiac disease.
For wheat allergy and NCGS, no equivalent genetic test exists. Wheat allergy is diagnosed through skin prick tests, blood tests for specific antibodies, and food challenges. NCGS remains a diagnosis of exclusion: you get it when celiac disease and wheat allergy have both been ruled out and a gluten-free diet resolves your symptoms.

