OCD doesn’t have a single main cause. It develops from a combination of brain wiring, genetics, brain chemistry, and life experiences, with each factor contributing different levels of risk depending on the person. The condition affects 1% to 3% of the global population, and researchers now understand the biological mechanisms behind it far better than they did even a decade ago. What’s clear is that OCD is rooted in how the brain processes information, not in personal weakness or character flaws.
A Brain Circuit That Gets Stuck
The closest thing to a “main cause” is a malfunction in a specific brain loop called the cortico-striato-thalamo-cortical circuit. This loop connects four brain areas: the orbitofrontal cortex (involved in decision-making), the anterior cingulate cortex (which flags errors and conflict), the basal ganglia (which filters actions and habits), and the thalamus (a relay station for sensory information). In a healthy brain, this circuit runs two pathways in balance. One pathway (the “direct” loop) gives the green light to carry out an action. The other (the “indirect” loop) pumps the brakes, stopping actions that are no longer needed or appropriate.
In people with OCD, the go-pathway is overactive. The brake pathway can’t keep up. The result is a brain that keeps firing “do something” signals even when there’s no real threat. This is why someone with OCD might check a locked door 15 times despite knowing it’s locked. Neuroimaging studies consistently show this overall hyperactivity in the circuit. It’s not that the person lacks willpower. Their brain is literally sending too many excitatory signals and not enough inhibitory ones.
Genetics Account for Nearly Half the Risk
Twin studies provide the strongest evidence for a genetic component. The largest twin study to date found that identical twins share OCD at a rate of 52%, compared to 21% for fraternal twins. Overall heritability estimates land around 48%, meaning roughly half of what determines whether someone develops OCD comes from their genes. Genome-wide analyses have confirmed this, estimating additive heritability at 37%.
If you have a first-degree relative (parent or sibling) with OCD, your risk is about 4.5 to 5 times higher than the general population’s. For children of an affected parent, the relative risk climbs even higher, to about 6.3 times the baseline. Most studies estimate that 10% to 20% of first-degree relatives will develop OCD themselves. No single “OCD gene” has been identified. Instead, many genes likely contribute small amounts of risk, interacting with each other and with environmental factors.
Serotonin, Glutamate, and Dopamine
Three brain chemicals play key roles in OCD. Glutamate is the primary excitatory chemical driving the brain circuit described above. It’s essentially the fuel that keeps the loop firing, and excess glutamate activity may be one reason the circuit becomes hyperactive. Dopamine operates the two competing pathways within the circuit: one type of dopamine receptor powers the go-pathway, while another type powers the brake pathway. An imbalance between these two receptor systems can tip the scale toward compulsive behavior.
Serotonin is the chemical most people associate with OCD, largely because medications that increase serotonin availability are the most effective drug treatment. Serotonin appears to help regulate glutamate signaling in the cortex, so when serotonin levels are low or its signaling is disrupted, the excitatory loop may lose a layer of regulation. The interplay between all three chemicals matters more than any one of them alone.
How Normal Thoughts Become Obsessions
Everyone has intrusive thoughts. Studies show that over 90% of people occasionally think things like “What if I left the stove on?” or experience a sudden violent or taboo mental image. The difference in OCD is what happens next. Cognitive models of OCD describe a process where the person interprets these normal, meaningless thoughts as deeply important, dangerous, or morally significant. A fleeting thought about harm gets appraised as evidence that you’re a dangerous person. A passing doubt about the door lock gets treated as a genuine emergency.
This is sometimes called “thought-action fusion,” where having a thought feels equivalent to carrying out the action. That catastrophic interpretation triggers intense anxiety, which drives the person to perform compulsions (checking, washing, counting, seeking reassurance) to neutralize the threat. The temporary relief reinforces the cycle, making the brain more likely to flag similar thoughts as dangerous in the future. Over time, this pattern becomes deeply entrenched.
Environmental Triggers
Life experiences can activate or worsen OCD, particularly in people who are already genetically vulnerable. Childhood maltreatment is highly prevalent among OCD patients, and higher levels of childhood trauma correlate with more severe symptoms. Emotional abuse shows the strongest association. In one clinical study, the severity of childhood maltreatment predicted higher OCD symptom levels not just at the time of diagnosis but also after treatment and at six-month follow-up, suggesting that early trauma makes the condition harder to fully resolve.
In children, certain infections can trigger OCD almost overnight. A condition called PANDAS occurs when the immune system, after fighting a strep throat infection, mistakenly produces antibodies that attack the basal ganglia. Because the basal ganglia are a critical part of the brain circuit involved in OCD, this autoimmune attack can cause sudden-onset obsessive-compulsive symptoms and tics. The mechanism is molecular mimicry: proteins on the strep bacteria resemble proteins in the brain, so the immune system confuses the two.
Why Most People With OCD Have Other Conditions Too
About 69% of people with OCD also meet criteria for at least one other psychiatric condition, based on a meta-analysis of over 15,000 individuals. Major depression is the most common, affecting roughly 35% of OCD patients, with lifetime estimates ranging as high as 67% in some studies. Anxiety disorders co-occur in about 32% of cases. Tic disorders appear in 9% to 32%.
This high overlap isn’t coincidental. The same brain circuits and chemical systems disrupted in OCD are involved in mood regulation and anxiety processing. Depression often develops secondary to OCD, as the relentless cycle of obsessions and compulsions erodes quality of life. But in some cases, shared genetic and neurobiological vulnerabilities make a person susceptible to multiple conditions from the start.
Putting the Pieces Together
OCD is best understood as a threshold condition. Genetic vulnerability sets the stage, influencing how brain circuits are wired and how chemicals like serotonin, glutamate, and dopamine function. Environmental factors, from childhood adversity to infections, can push someone past the threshold into active illness. Cognitive patterns then maintain the disorder by turning normal mental events into sources of intense distress. For a diagnosis, obsessions or compulsions must be present on most days for at least two weeks, take more than an hour a day or significantly interfere with work, relationships, or daily functioning.
The upshot is that no single factor is “the” cause. But the brain circuit dysfunction, supported by about 50% genetic heritability and shaped by environment and learning, is the core mechanism that makes OCD what it is: a disorder of a brain that can’t stop sounding the alarm.

