Is OCD Genetic? What Family and Gene Studies Really Show
Clinically reviewed by Shannon Carres, PA-C, CAQ-Psy
Reviewed November 5, 2026 · Last updated November 5, 2026
Key Takeaways
- OCD runs in families. In one family study, 11.7% of close relatives of people with OCD had it at some point in their lives, compared with 2.7% of relatives in comparison families.
- A Swedish study of 24,768 people with OCD and their relatives estimated heritability at 47%, with no significant effect of the environment family members shared.
- OCD is polygenic. The largest genetic study so far, with 53,660 people with OCD, linked 30 regions of the genome to the condition and estimated that about 11,500 variants explain most of its genetic heritability.
- Genes aren't destiny. Experiences that differ even between siblings matter at least as much as genes, and most people with a close relative who has OCD never develop it.
- No genetic test can predict or diagnose OCD today, but OCD is treatable with exposure and response prevention therapy, serotonin-targeting medication, or both.
If OCD runs in your family, maybe a parent who checked the stove a dozen times or a sibling who couldn’t stop washing, you’ve probably wondered whether it’s coming for you. Or you live with OCD yourself and worry about what you might pass on to your kids.
Genes don’t hand down OCD as a single trait. The largest genetic study so far linked 30 regions of the genome to OCD and estimated that about 11,500 variants explain 90% of its genetic heritability, according to a genome-wide study published in 2025. Seeing risk as thousands of tiny nudges rather than one inherited switch gives the question its precision.
For decades, the answer came from family and twin studies. OCD clusters in families, and identical twins share it more often than fraternal twins. Large registry studies and a 2023 meta-analysis put its heritability near 50%, and the results are real.
But a heritability figure describes populations rather than your family, and at Siggy we’d rather help you understand what risk means for you than leave you holding a statistic.
This guide covers what family, twin, and DNA studies found, what else shapes risk, and what family history should change about your next step. Every number below comes from published research rather than guesswork, so the deciding factor stays the evidence.
What This Page Covers
- How Much of OCD Is Genetic?
- How Strongly Does OCD Run in Families?
- Does Childhood-Onset OCD Have a Stronger Genetic Link?
- What Did the Largest OCD Gene Study Find?
- What Else Shapes OCD Risk Besides Genes?
- Is There a Genetic Test for OCD?
- What Should Family History Change for You?
- Talk Through Your OCD Concerns With Siggy
How Much of OCD Is Genetic?
At the population level, genes account for about half of the variation in who develops OCD. Swedish registry research covered 24,768 people diagnosed with OCD, all their available relatives, and 16,383 twins. Twin modeling put heritability at 47%, with no significant effect of the environment family members shared. A 2023 meta-analysis of 19 family studies, 29 twin studies, and 6 population-based studies reached a similar answer, estimating heritability at around 50%.
Heritability is easy to misread. It describes how much of the variation in OCD across a population traces to genetic differences. It doesn’t mean half of your OCD came from your genes, and it doesn’t mean you have a 50% chance of developing it.
The figure also shifts with age. As summarized in the 2025 genome-wide study, twin-based estimates range from 27% to 47% in adults and from 45% to 65% in children. For background on brain circuits and other causes, see our guide to what causes OCD.
How Strongly Does OCD Run in Families?
The family signal is clear. A family study from Johns Hopkins compared 343 first-degree relatives of people with OCD with 300 relatives of community comparison participants. Over their lifetimes, 11.7% of the OCD group’s relatives had OCD, compared with 2.7% of the comparison relatives. Across 18 family studies, the 2023 meta-analysis found OCD 7.2 times more often in OCD families than in control families.
The Swedish data added an important detail. Risk rose in step with genetic closeness: first-degree relatives had the highest risk, then second-degree relatives, then third-degree relatives. Relatives at similar genetic distances had similar risk even when they’d shared very different amounts of home life. Partners who had a child with someone with OCD also had elevated risk (odds ratio 2.61), which the authors flagged as possible evidence that people with similar traits tend to pair up.
Each type of study answers a different question, as the summary below shows.
| Study Type | What It Compares | Key Finding |
|---|---|---|
| Family study | Relatives of people with and without OCD | 11.7% vs 2.7% lifetime OCD |
| Twin studies | Identical vs fraternal twins | Heritability near 50% |
| Population registry | 24,768 people with OCD and their relatives | Risk rises with genetic closeness |
| Genome-wide study | 53,660 cases and about 2 million controls | 30 genome regions linked to OCD |
Does Childhood-Onset OCD Have a Stronger Genetic Link?
It often does, though researchers disagree on how much. In the Johns Hopkins study, the earlier symptoms began in the person with OCD, the more OCD appeared among relatives. In that sample, no relatives of people whose symptoms started at 18 or older had OCD symptoms. The 2023 meta-analysis also found OCD especially familial among relatives of children and adolescents with the condition.
The Swedish population study tempered that picture. Early-onset cases showed only slightly higher family risk than OCD overall, and the difference wasn’t statistically significant. That was substantially lower than earlier studies had reported, and those earlier studies mostly recruited from specialty clinics. Childhood onset may carry somewhat more genetic loading, but the gap looks smaller across a whole population.
What Did the Largest OCD Gene Study Find?
The 2025 genome-wide study combined DNA from 53,660 people with OCD and 2,044,417 controls. It identified 30 independent regions of the genome linked to OCD. Gene-based analyses flagged 249 potential genes, with 25 classified as the most likely causal candidates, including WDR6, DALRD3, and CTNND1, plus several genes in the major histocompatibility complex region.
OCD genetic risk mapped onto specific brain cells, including excitatory neurons in the hippocampus and cortex and dopamine receptor-containing medium spiny neurons. OCD also shared genetic risk with 65 of 112 other traits the team examined, including every psychiatric disorder studied, with notable overlap with anxiety, depression, anorexia nervosa, and Tourette syndrome.
There’s an important limit. Common genetic variants explained only about 7% of the variation in OCD risk under the study’s assumptions, far below twin-based estimates. The genes found so far are real signals, but each one nudges risk only slightly.
What Else Shapes OCD Risk Besides Genes?
The Swedish family study concluded that nonshared environmental factors, meaning experiences that differ even between siblings, are at least as important as genes.
Some of those factors start before birth. A birth cohort of 2,421,284 people born in Sweden compared siblings to rule out shared family factors. Smoking 10 or more cigarettes a day during pregnancy, breech presentation, cesarean delivery, preterm birth, and low Apgar scores each raised OCD risk modestly, with hazard ratios between about 1.2 and 1.5. Risk climbed with the number of such events.
Infections have drawn attention too. Another Swedish study found that relatives of people with severe infections had higher OCD risk, and that risk rose with genetic relatedness. The authors concluded that the link between severe infections and OCD may be largely driven by shared genes.
NIMH’s OCD guide also lists temperament and childhood trauma among possible risk factors, while noting that more research is needed on trauma. It adds that symptoms often get worse during stressful periods.
Is There a Genetic Test for OCD?
No test can tell you whether you or your child will develop OCD. NIMH notes that scientists haven’t identified any gene or set of genes that definitively leads to OCD.
The International Society of Psychiatric Genetics says in its testing statement that polygenic risk scores are research analyses, not clinical tools. It doesn’t recommend using them to identify high-risk people or to help diagnose psychiatric patients. For now, your family history and your actual symptoms are more useful guides than any risk score.
What Should Family History Change for You?
Mostly, it should sharpen your attention rather than raise your alarm. MedlinePlus’s genetics summary notes that most people who have a close relative with OCD won’t develop the condition themselves.
NIMH says symptoms usually start between late childhood and young adulthood. Children may not see their rituals as unusual, so parents or teachers often notice first. An evaluation makes sense when obsessions or compulsions:
- Take up more than an hour a day
- Feel impossible to control, even when they seem excessive
- Cause real problems at home, school, or work
If you’re unsure whether what you notice is OCD, our guide on telling intrusive thoughts from OCD can help.
Whatever role genes played, OCD is treatable. NIMH describes exposure and response prevention (ERP), a form of cognitive behavioral therapy, and serotonin-targeting antidepressants such as SSRIs as core treatments. SSRIs for OCD can take 8 to 12 weeks to start working and may need higher doses than are used for depression. A network meta-analysis of 54 trials with 6,652 adults found that behavioral therapy, cognitive therapy, CBT, clomipramine, and SSRIs all outperformed placebo. It concluded that combining therapy with medication is likely more effective than therapy alone, at least in severe OCD. Our guide on how to treat OCD compares the options.
When you talk with a clinician, share who in your family has had OCD, tics, anxiety, or depression, and roughly when their symptoms started. That history gives useful context for an evaluation.
If your thoughts turn to harming yourself, or you feel unsafe, call or text 988. In an emergency, call 911. This article is for education only and isn’t a substitute for personal medical advice. It reflects sources available as of October 2026.
Talk Through Your OCD Concerns With Siggy
Family history is only one part of your story. Start your anonymous intake with Siggy to describe your intrusive thoughts, rituals, anxiety, and mood in your own words, without giving your name or email. It’s free, and you’ll get a downloadable summary you can share with any clinician, including a therapist trained in ERP. Siggy’s licensed prescribers diagnose and treat OCD, and Siggy’s AI therapy and daily check-ins support the work between visits. If medication such as an SSRI is part of the right plan, a licensed prescriber reviews your full clinical picture before anything is prescribed. To learn what SSRIs and other options do for OCD, see our guide to medication for OCD.
Mental healthcare should stay with you between appointments.
Siggy combines daily check-ins with clinician-supervised care so your treatment plan can respond to what is actually happening.
Start anonymously. A real doctor reviews every clinical decision. HIPAA-compliant.
Frequently Asked Questions
Is OCD genetic or environmental?
OCD is both genetic and environmental. Twin and family studies put its heritability at roughly 47% to 50%, meaning genetic differences account for about half of the variation in who develops it across a population. A large Swedish study found that experiences unique to each person, rather than the home environment family members share, made up most of the rest.
If I have OCD, will my child get it?
Your child's risk is higher than average, but most children of a parent with OCD don't develop it. In one family study, 11.7% of first-degree relatives of people with OCD had OCD during their lives, compared with 2.7% of relatives in comparison families. MedlinePlus Genetics notes that most people with a close relative who has OCD won't develop the condition themselves.
Can OCD skip a generation?
OCD doesn't follow a single-gene inheritance pattern, so skipping a generation isn't the right way to think about it. Risk is spread across thousands of genetic variants, and relatives beyond parents and siblings can carry some added risk. In Swedish registry data, risk rose with genetic closeness: first-degree relatives had the highest risk, second-degree relatives such as grandparents, aunts, and uncles came next, and third-degree relatives such as cousins had lower risk still.
Is there a genetic test for OCD?
No genetic test can diagnose OCD or predict who will develop it. NIMH notes that scientists haven't identified any gene or set of genes that definitively leads to OCD. The International Society of Psychiatric Genetics considers polygenic risk scores research tools and doesn't recommend using them clinically to identify high-risk people or help diagnose psychiatric conditions.
Is childhood-onset OCD more genetic?
Childhood-onset OCD often shows a stronger family pattern. Twin studies estimate heritability at 45% to 65% in children, compared with 27% to 47% in adults. In a Johns Hopkins family study, none of the relatives of people whose symptoms began at 18 or older had OCD symptoms. A large Swedish population study, however, found only slightly higher family risk for early-onset cases than for OCD overall.
Can parenting cause OCD?
Large studies don't point to parenting style as a cause. In Swedish family and twin data, relatives at similar genetic distances had similar OCD risk despite sharing very different amounts of home life, and shared family environment had no significant effect. Some studies have linked childhood trauma to obsessive-compulsive symptoms, but NIMH says more research is needed.
Sources
- Strom NI, Gerring ZF, Galimberti M, et al. Genome-wide analyses identify 30 loci associated with obsessive-compulsive disorder. Nature Genetics. 2025;57(6):1389-1401. doi:10.1038/s41588-025-02189-z
- Mataix-Cols D, Boman M, Monzani B, et al. Population-based, multigenerational family clustering study of obsessive-compulsive disorder. JAMA Psychiatry. 2013;70(7):709-717. doi:10.1001/jamapsychiatry.2013.3
- Blanco-Vieira T, Radua J, Marcelino L, et al. The genetic epidemiology of obsessive-compulsive disorder: a systematic review and meta-analysis. Translational Psychiatry. 2023;13(1):230. doi:10.1038/s41398-023-02433-2
- Nestadt G, Samuels J, Riddle M, et al. A family study of obsessive-compulsive disorder. Archives of General Psychiatry. 2000;57(4):358-363. doi:10.1001/archpsyc.57.4.358
- Brander G, Rydell M, Kuja-Halkola R, et al. Association of perinatal risk factors with obsessive-compulsive disorder: a population-based birth cohort, sibling control study. JAMA Psychiatry. 2016;73(11):1135-1144. doi:10.1001/jamapsychiatry.2016.2095
- Pol-Fuster J, Fernández de la Cruz L, Beucke JC, et al. A population-based multigenerational family coaggregation study of severe infections and obsessive-compulsive disorder. Biological Psychiatry. 2025;97(7):672-677. doi:10.1016/j.biopsych.2024.09.004
- National Institute of Mental Health. Obsessive-Compulsive Disorder: When Unwanted Thoughts or Repetitive Behaviors Take Over. NIH Publication No. 23-MH-4676. Revised 2023. nimh.nih.gov
- International Society of Psychiatric Genetics. Genetic Testing Statement. ispg.net
- MedlinePlus Genetics, U.S. National Library of Medicine. Obsessive-compulsive disorder. medlineplus.gov
- Skapinakis P, Caldwell DM, Hollingworth W, et al. Pharmacological and psychotherapeutic interventions for management of obsessive-compulsive disorder in adults: a systematic review and network meta-analysis. Lancet Psychiatry. 2016;3(8):730-739. doi:10.1016/S2215-0366(16)30069-4