Multiple sclerosis has a genetic component, but it is not a purely genetic disease. Genes account for roughly one-third of overall MS risk, with the rest coming from environmental factors like viral infections and vitamin D levels. Having a close relative with MS raises your risk about seven times compared to the general population, yet the majority of people with a family history never develop the condition.
How Much Risk Runs in Families
The clearest evidence for a genetic link comes from twin studies. If one identical twin has MS, the other twin develops it about 25% of the time. For female identical twins, that rate climbs to roughly 34%. In fraternal twins, who share about half their genes rather than nearly all of them, concordance drops to around 5%. Non-twin siblings have a rate of about 3%.
Those numbers tell an important story. If MS were entirely genetic, identical twins would match close to 100% of the time. The 25% concordance rate means genes create vulnerability, but something else has to push the process forward. At the same time, the steep drop from identical to fraternal twins confirms that genetics matter substantially.
Looking at broader family data, having a first-degree relative (parent, sibling, or child) with relapsing MS raises your odds about sevenfold. Siblings carry the highest risk among first-degree relatives, with odds roughly 8.5 times the general population. For second-degree relatives like aunts, uncles, and grandparents, the risk is about twice normal. These are relative increases, though. The baseline risk of developing MS in the general population is low, so even a sevenfold increase still means most family members will not develop it.
The Genes Involved
MS is not caused by a single gene. Instead, it follows a polygenic pattern, meaning dozens of genetic variations each contribute a small amount of risk. The strongest single contributor sits in the HLA region of chromosome 6, which controls how your immune system identifies threats. One variant in particular, called HLA-DRB1*15:01, has been consistently linked to MS across nearly every population studied.
This gene variant affects a protein on immune cells that presents fragments of potential threats to the rest of the immune system. In people carrying the variant, the protein is produced at unusually high levels, and its structure may cause the immune system to react more aggressively. The combination of overproduction and structural properties appears to strengthen the immune signal in a way that can tip the balance toward attacking the body’s own myelin, the insulating coating around nerve fibers. This is the core of what goes wrong in MS: the immune system mistakenly treats myelin as a threat.
Beyond HLA, researchers have identified more than 50 additional genetic regions associated with MS susceptibility. Most of these involve genes related to immune function, and each one nudges risk up by a small amount. No single non-HLA variant is powerful enough to cause disease on its own. The collective effect of carrying many of these variants, however, meaningfully shifts a person’s risk profile.
Genetic Risk Varies by Ethnicity
Most MS genetics research has been conducted in people of European descent, where the disease is most common. Studies examining Hispanic and African American populations show that many of the same risk variants are relevant, but the picture is not identical. About 76% of known European MS risk variants show the same direction of effect in Hispanic populations, and 68% do the same in African Americans.
Some variants behave differently across populations. A handful of risk variants identified in Europeans actually show a protective effect in Hispanic individuals, and vice versa. African Americans show greater differences in the frequency of risk variants compared to Europeans, which partly explains why the genetic architecture of MS looks somewhat different in this group. These differences also complicate efforts to apply genetic findings universally, since the surrounding genetic context around each risk variant differs between populations.
How Genes and Environment Work Together
The environmental trigger with the strongest evidence is Epstein-Barr virus, the common virus that causes mononucleosis. Nearly all people with MS have been infected with EBV, and the risk of MS after EBV infection is dramatically higher than in uninfected individuals. What makes this relevant to genetics is that EBV doesn’t just act independently. It interacts directly with MS risk genes.
A protein produced by the virus during infection, called EBNA2, binds to DNA near many of the known MS risk locations in the genome. At some of these sites, the virus protein preferentially binds to the risk version of the gene rather than the protective version, effectively amplifying the genetic risk. At other sites, it binds more to the protective version, potentially dampening it. About 25% of MS risk gene locations show activity patterns that are specifically altered in cells infected with EBV compared to uninfected immune cells. The net effect appears to reduce the body’s ability to control EBV-infected cells while simultaneously increasing immune cell activity that can cross-react with myelin.
Vitamin D provides another example of gene-environment interaction. Low blood levels of vitamin D are associated with higher MS risk, and research using genetic analysis techniques has established this as likely causal rather than coincidental. Specific genetic variations at sites where the vitamin D receptor binds to DNA are independently associated with MS risk. One such variant increases MS risk by about 10%, and its effect becomes stronger when vitamin D levels are low. This means that the same genetic variant can have a larger or smaller impact depending on a person’s vitamin D status, illustrating how genes and environment don’t operate in isolation.
Can Genetic Testing Predict MS?
Genetic testing is not part of the standard diagnostic process for MS. The McDonald criteria, which doctors use to diagnose the condition, rely on MRI scans, clinical symptoms, and sometimes spinal fluid analysis to demonstrate that damage has occurred in multiple parts of the nervous system at different points in time. No genetic test can confirm or rule out MS.
Researchers have developed polygenic risk scores that combine the effects of many genetic variants into a single number. These scores can improve risk prediction when added to conventional factors like age, sex, and family history, boosting the accuracy of risk models by a meaningful margin. Higher genetic risk scores have also been linked to faster brain tissue loss in the thalamus, a region important for relaying sensory and motor signals, during the first decade of disease. This suggests some overlap between the genes that make someone susceptible to MS and the genes that influence how aggressively the disease progresses.
For now, polygenic risk scores remain a research tool rather than something used in clinical practice. Their potential value lies in identifying high-risk individuals before symptoms appear, particularly during adolescence, when preventive strategies targeting modifiable risk factors like vitamin D levels and possibly EBV vaccination could theoretically reduce the rising global incidence of MS. That application is still developing, but it represents the direction genetic research is heading.
What This Means for Your Family
If you have MS and are wondering about your children’s risk, the numbers are reassuring for most families. Children of a parent with MS have roughly 6 to 7 times the general population risk, but since the baseline risk is approximately 0.1% to 0.3% depending on the population, even a sevenfold increase translates to a lifetime risk that remains well under 5% for most individuals. The vast majority of children with an affected parent will not develop MS.
Siblings of someone with MS carry slightly higher risk than children or parents, with odds roughly 8.5 times the general population. This likely reflects the fact that siblings share both genetic background and many early-life environmental exposures, including the household conditions during the period when EBV exposure and vitamin D status are most influential.
There is no single gene to test for, no clear inheritance pattern like you would see with conditions such as sickle cell disease or cystic fibrosis. MS behaves more like heart disease or type 2 diabetes: many genes contribute small effects, environmental factors play a major role, and family history raises risk without making the outcome inevitable.

