Covered by insurance in all 50 states, incl. Medicare Advantage day one
Back to Blog

What Causes OCD? Brain Circuits, Genes, and the Doubt Cycle

Clinically reviewed by Wendy Delgado, PA-C

Reviewed November 5, 2026 · Last updated November 5, 2026

Key Takeaways

  • OCD develops from a combination of inherited risk, differences in brain circuits that handle error-checking and fear, and life events that can set symptoms off. Compulsions then keep the cycle running.
  • Genes account for about 47% of the variation in OCD risk in a Swedish study of 24,768 people with OCD, and experiences unique to each person are at least as important.
  • In mice, repeated overactivity in a circuit linking the front of the brain to the striatum produced lasting compulsive-like behavior, which an SSRI reversed.
  • Childhood strep throat was linked to a 51% higher OCD rate in a Danish study of over a million children, but a larger Swedish study suggests the infection link may be largely driven by shared genes.
  • More than a quarter of adults report obsessions or compulsions at some point, yet only 2.3% develop OCD. How a person responds to intrusive thoughts helps explain the difference.

If you live with OCD, you’ve probably asked why your mind grabs onto thoughts other people seem to shrug off. Maybe you’ve wondered whether you caused it, or whether something you went through flipped a switch. Those questions make sense, and research can answer more of them than it could a decade ago.

Your brain is constantly checking whether things are done, safe, and correct, then signaling when it’s okay to move on. In OCD, that error-checking system seems to keep sounding the alarm. An OCD circuit review in Trends in Cognitive Sciences describes how models of OCD have long centered on circuits linking the frontal cortex to deeper structures, with newer imaging also implicating regions involved in fear and its extinction. Pinpointing why that loop gets stuck takes precision, because genes, brain development, and life events each play a part.

For decades, the popular explanation centered on serotonin, largely because medications that act on serotonin help. That approach earned its place. In a 2016 OCD network meta-analysis of 54 trials and 6,652 adults, SSRIs as a class, clomipramine, and behavioral therapy all reduced OCD symptoms more than placebo. The results are real, and the science is well established.

But a medication’s success doesn’t reveal what caused the problem, and at Siggy we’d rather give you the fuller picture than a one-chemical story.

That picture is a circuit-and-learning model. Inherited risk and brain development shape how your error-checking loop works, life events can set it off, and compulsions keep it running. It covers the same illness the serotonin story tried to explain, with more precision, because it accounts for why OCD runs in families, why it can start around an infection or a birth, and why exposure therapy works. That account comes from genetic, imaging, and experimental research, and it changes how you can understand your own symptoms.

What This Page Covers

Is OCD Caused by Genes?

Genes are part of the story, though they don’t write all of it. A Swedish population study of 24,768 people with OCD and their relatives found that risk rose in step with genetic closeness, and twin modeling attributed about 47% of the variation in OCD risk to genes. The authors concluded that experiences unique to each person are at least as important.

That genetic risk is spread across thousands of small effects. The largest OCD genome-wide study, with 53,660 people with OCD and more than 2 million controls, identified 30 genome regions and estimated that about 11,500 variants explain 90% of OCD’s genetic heritability. It also found that OCD shares genetic risk with anxiety, depression, anorexia nervosa, and Tourette syndrome. Our guide to whether OCD is genetic covers family risk in more depth.

What Happens in the Brain With OCD?

The most studied explanation involves loops connecting the front of the brain, including the orbitofrontal cortex, with the striatum and thalamus. The Trends review notes that newer imaging also points to the anterior cingulate cortex and amygdala-related circuits, and argues that the ability to switch off fear may be impaired in OCD, along with the ability to stop a behavior.

There’s also experimental evidence that circuit overactivity can cause compulsive behavior rather than simply accompanying it. In a 2013 mouse optogenetics study, a single burst of stimulation between the orbitofrontal cortex and striatum didn’t produce repetitive behavior. Repeating it over several days did, causing a steady increase in grooming that lasted two weeks after stimulation stopped. Chronic treatment with the SSRI fluoxetine reversed it.

The genetic study points in the same direction. OCD genetic risk was concentrated in excitatory neurons of the hippocampus and cortex and in dopamine receptor-containing neurons of the striatum.

Can an Infection Trigger OCD?

In some cases, infection may play a role, but the evidence is mixed. A Danish national cohort of 1,067,743 children found that those with a positive strep throat test had a 51% higher rate of later OCD than children who were never tested. Throat infections that weren’t strep were also linked to a 28% higher rate, which suggests the effect may not be specific to strep.

A larger study complicates the story. In a Swedish infection study of 4.9 million people, relatives of people with severe infections also had a higher OCD risk, and that risk rose with genetic closeness. The authors concluded that the link between severe infections and OCD may be largely driven by shared genetic factors. If symptoms begin suddenly in a child after an illness, that’s a reason to see a clinician promptly.

Can Stress or Pregnancy Trigger OCD?

Life events can act as triggers, though proving cause is hard. An environmental risk review of 128 studies identified possible environmental risk factors in three main areas: complications around birth, the reproductive cycle, and stressful life events. It also concluded that no environmental factor has yet been convincingly shown to cause OCD, partly because many studies had methodological limits.

Pregnancy and the months after birth stand out. In a perinatal OCD meta-analysis, OCD affected about 2.07% of pregnant women and 2.43% of postpartum women, compared with 1.08% of women in the general population. Postpartum women had about 2.4 times the risk.

Why Do Ordinary Intrusive Thoughts Turn Into OCD?

Unwanted thoughts are a normal part of having a mind. In the National Comorbidity Survey Replication, more than a quarter of U.S. adults reported having obsessions or compulsions at some point in their lives. Only 2.3% met criteria for OCD.

What separates the two seems to be what happens next. A review of OCD experiments describes how cognitive and behavioral models, tested in the lab, link the development and maintenance of OCD to maladaptive beliefs about thoughts. Examples include believing you’re responsible for preventing any possible harm, or that an upsetting thought must mean something important. With those beliefs, an ordinary intrusive thought starts to feel like a warning that demands action. If your thoughts are mostly mental, without visible rituals, our guide to pure O OCD may resonate.

What Keeps the OCD Cycle Going?

Compulsions bring relief, and that relief is the trap. Checking, washing, mentally reviewing, or asking for reassurance lowers anxiety for a moment. Your brain learns that the ritual was what kept you safe, so the next doubt arrives with more urgency. The experiments review describes how lab studies of checking and reassurance-seeking helped shape the CBT approaches used today.

Other people can get pulled into the cycle without meaning to. A family accommodation meta-analysis of 41 studies found a moderate link, a correlation of 0.42, between how much family members accommodate OCD, such as by joining in rituals or helping someone avoid triggers, and how severe the OCD is.

The table below summarizes the contributors covered above.

Contributor What the Research Shows Type of Evidence
Genes About 47% of variation in risk National family and twin registry
Brain circuits Repeated overactivity caused lasting compulsive behavior Experiment in mice
Strep throat 51% higher OCD rate in children National cohort of over 1 million
Postpartum period About 2.4% vs 1.1% in women overall Meta-analysis
Intrusive thoughts Over a quarter have them, 2.3% develop OCD National survey
Family accommodation Linked to more severe symptoms Meta-analysis of 41 studies

Each row comes from the studies linked in the sections above.

What Does This Mean for Treatment?

If compulsions keep OCD going, treatment works best when it breaks that loop. In the 2016 network meta-analysis, behavioral therapy had the largest effect on symptoms compared with placebo, and SSRIs as a class and clomipramine also worked, with clomipramine no better than SSRIs. The authors noted that most therapy trials included people already taking antidepressants, and concluded that combining therapy and medication is likely more effective than therapy alone, at least in severe OCD.

The core therapy is exposure and response prevention, or ERP, which means facing the trigger while resisting the ritual until the anxiety fades on its own. Our guides to exposure therapy and medication for OCD explain both options.

How Siggy Fits In

Siggy’s licensed prescribers diagnose and treat the full range of mental health conditions, including OCD, and the anxiety and depression that often travel with it. The large genetic study found OCD shares genetic risk with both. Siggy’s AI therapy and daily check-ins support the work between visits, and an ERP specialist can be part of the plan.

Siggy can still help you get the full picture down in one place, including thoughts that feel too strange or shameful to say out loud. The anonymous intake asks for no name, email, or account, and you’ll get a downloadable summary you can bring to an ERP therapist or any clinician. A licensed prescriber reviews your full intake before making a diagnosis or prescribing anything.

Siggy isn’t an emergency service. If you’re in crisis, call 911 or call or text 988. This article is for education only and isn’t a substitute for personal medical advice. It reflects sources available as of October 2026.

The Bottom Line on What Causes OCD

OCD grows from inherited risk spread across thousands of genes, brain circuits that struggle to switch off a sense of danger, and triggers like stress, birth, or possibly infection. Once it starts, compulsions and accommodation keep it going. That’s why ERP, often alongside an SSRI, is the treatment with the strongest evidence. If you want practical ways to respond to intrusive thoughts in the moment, our guide on how to stop OCD thoughts is a good next read.

Start Your Anonymous Intake

If you’re in crisis right now, call 911 or call or text 988 first. If intrusive thoughts and rituals are taking up more of your day, and anxiety or low mood is coming along with them, start your anonymous intake. It’s free, there’s no name or email required, and a licensed prescriber reviews your intake before anything is prescribed. Your summary goes with you to whoever you see next, including an OCD specialist.

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.

Start Anonymous Intake

Frequently Asked Questions

What is the main cause of OCD?

There's no single cause. OCD develops from a combination of genetic risk, differences in brain circuits involved in error-checking and fear, and environmental factors such as stressful life events, pregnancy and the postpartum period, and possibly infections. Once it starts, compulsions and reassurance-seeking keep the cycle going, which is why treatment targets those behaviors.

Is OCD genetic?

OCD is partly genetic. A Swedish population study estimated that genes account for about 47% of the variation in OCD risk, with experiences unique to each person at least as important. The largest genetic study so far found 30 genome regions linked to OCD and estimated that about 11,500 genetic variants explain most of its genetic heritability, so there's no single OCD gene.

Can stress cause OCD?

Stress can trigger or worsen OCD in people who are vulnerable to it. A systematic review of 128 studies identified stressful life events, perinatal complications, and the reproductive cycle as possible environmental risk factors, but concluded that none has yet been convincingly proven to cause OCD, partly because many studies were small or limited in design.

Can an infection cause OCD?

It's possible, though the picture is complicated. A Danish study of more than a million children found a 51% higher rate of OCD after a positive strep throat test, and a smaller increase after other throat infections. A Swedish study of nearly 5 million people later found that relatives of people with severe infections also had higher OCD risk, suggesting the link may be largely driven by shared genes.

Can OCD start after having a baby?

Yes, OCD risk rises around pregnancy and after birth. A meta-analysis found OCD in about 2.4% of postpartum women and 2.1% of pregnant women, compared with about 1.1% of women in the general population. Perinatal OCD is treatable, so it's worth raising with a clinician.

Is OCD caused by low serotonin?

Low serotonin alone doesn't explain OCD. SSRIs, which act on serotonin, reduce OCD symptoms more than placebo, but a treatment's success doesn't prove what caused the condition. Current research points to brain circuits linking the frontal cortex with deeper structures like the striatum, shaped by thousands of genetic variants, including some tied to dopamine-related brain cells.

Sources

  1. Milad MR, Rauch SL. Obsessive-compulsive disorder: beyond segregated cortico-striatal pathways. Trends in Cognitive Sciences. 2012;16(1):43-51. doi:10.1016/j.tics.2011.11.003
  2. 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
  3. 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
  4. 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
  5. Ahmari SE, Spellman T, Douglass NL, et al. Repeated cortico-striatal stimulation generates persistent OCD-like behavior. Science. 2013;340(6137):1234-1239. doi:10.1126/science.1234733
  6. Orlovska S, Vestergaard CH, Bech BH, et al. Association of streptococcal throat infection with mental disorders: testing key aspects of the PANDAS hypothesis in a nationwide study. JAMA Psychiatry. 2017;74(7):740-746. doi:10.1001/jamapsychiatry.2017.0995
  7. 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
  8. Brander G, Pérez-Vigil A, Larsson H, Mataix-Cols D. Systematic review of environmental risk factors for obsessive-compulsive disorder: a proposed roadmap from association to causation. Neuroscience and Biobehavioral Reviews. 2016;65:36-62. doi:10.1016/j.neubiorev.2016.03.011
  9. Russell EJ, Fawcett JM, Mazmanian D. Risk of obsessive-compulsive disorder in pregnant and postpartum women: a meta-analysis. Journal of Clinical Psychiatry. 2013;74(4):377-385. doi:10.4088/JCP.12r07917
  10. Ruscio AM, Stein DJ, Chiu WT, Kessler RC. The epidemiology of obsessive-compulsive disorder in the National Comorbidity Survey Replication. Molecular Psychiatry. 2010;15(1):53-63. doi:10.1038/mp.2008.94
  11. Gagné JP, Kelly-Turner K, Radomsky AS. From the laboratory to the clinic (and back again): how experiments have informed cognitive-behavior therapy for obsessive-compulsive disorder. Journal of Experimental Psychopathology. 2018;9(4). doi:10.1177/2043808718810030
  12. Wu MS, McGuire JF, Martino C, et al. A meta-analysis of family accommodation and OCD symptom severity. Clinical Psychology Review. 2016;45:34-44. doi:10.1016/j.cpr.2016.03.003