Demo site generated by Convella. Not affiliated with Andrew Huberman. Just big fans :)

The Science and Treatment of Obsessive-Compulsive Disorder (OCD)

Andrew Huberman
Andrew Huberman
Jul 9, 2026 • 11 min read

Obsessive-compulsive disorder is not simply a preference for cleanliness, organization, or getting things right. It is a condition in which unwanted thoughts and repetitive behaviors can take over substantial portions of a person’s life.

The central problem is a powerful feedback loop: an intrusive thought creates anxiety, a compulsive behavior briefly reduces that anxiety, and that relief reinforces the cycle. The behavior feels necessary, yet performing it can strengthen the very obsession the person wants to escape.

Understanding that loop helps explain both the biology of OCD and a seemingly counterintuitive feature of its treatment: sometimes the most effective approach is not to immediately reduce anxiety, but to learn that anxiety can be experienced without performing a compulsion.

Key Takeaways

  • Compulsions briefly reduce distress but can reinforce the cycle of intrusive thoughts and repetitive behavior.
  • Exposure and response prevention teaches people to experience distress without performing their usual rituals.
  • Identifying the specific fear beneath an obsession helps clinicians plan targeted treatment.
  • Medication can help some people, while complementary approaches require careful evaluation of their evidence.

Table of Contents

What Makes OCD So Disruptive?

OCD involves two closely related components:

  • Obsessions: Recurrent, intrusive thoughts, images, or impulses that are unwanted and distressing.
  • Compulsions: Behaviors or mental acts a person feels driven to perform, often to reduce the distress associated with an obsession.

These are not thoughts someone necessarily enjoys or agrees with. In fact, they may feel completely inconsistent with the person’s values or personality. Someone can recognize that a ritual is excessive and still feel an overwhelming need to complete it.

Estimates discussed for OCD prevalence range from approximately 2.5% to 4%, although estimates vary. The important point is that OCD is common and can be profoundly disabling.

Its impact goes well beyond the minutes spent performing a ritual. Intrusive thoughts can occupy attention during work, school, conversations, exercise, and relationships. Anticipating a compulsion, performing it, and then returning to the obsession can consume hours that would otherwise support a rich and functional life.

Checking, Repetition, and Order: Common OCD Patterns

One useful way to organize common OCD symptoms is around checking, repetition, and order. These categories overlap, and they do not capture every possible presentation, but they make the thought-action loop easier to understand.

Checking

Checking compulsions can involve repeatedly verifying that a stove is off or a door is locked. The person may already have checked, but the sense of certainty does not last. Doubt returns, followed by another urge to check.

Repetition

Repetition can involve observable actions or internal rituals. A person might repeatedly count through a particular sequence of numbers, perhaps forward and then backward, until it feels acceptable to stop.

This is an important distinction: a compulsion does not have to be visible to someone else. Mental repetition can be just as consuming as a physical ritual.

Order, Symmetry, and Incompleteness

Some people feel compelled to align objects, maintain symmetry, or arrange things in an exact sequence. A child, for example, might need stuffed animals placed in precisely the same order every day and become highly distressed if two are moved.

Other symptoms center on incompleteness. An email, a sentence, or a table setting may feel impossible to leave alone because something is not quite right. The problem is not merely wanting a good result. It is feeling unable to disengage.

Contamination and Disgust

Contamination concerns can produce repeated handwashing, cleaning, or avoidance. A towel, a shared space, or another person’s hand may become associated with an intolerable sense of contamination.

Across these examples, the same principle applies: the ritual may bring immediate relief, but that relief can teach the brain to rely on the ritual again.

Anxiety Connects the Obsession to the Compulsion

If we draw a line between an obsession and a compulsion, anxiety is often what runs along that line.

Fear generally refers to a response to an immediate threat or perceived threat. Anxiety can involve similar bodily changes, including increased heart rate, faster breathing, and sweating, without a clear danger directly present.

In OCD, an intrusive thought can generate that anxious state. The person then performs a ritual to try to change the feeling.

  1. An unwanted thought, image, or impulse appears.
  2. Anxiety, distress, or a feeling of incompleteness increases.
  3. The person performs a physical or mental compulsion.
  4. Distress briefly decreases.
  5. The relief reinforces the tendency to perform the compulsion again.

This explains why telling someone to “just stop” misses the problem. The behavior is tied to a powerful experience of distress and a learned route to relief.

Is There a Genetic Component?

Twin studies support a substantial genetic contribution to OCD. Estimates around 40% to 50% are often used to describe that contribution, but they require careful interpretation: they do not mean that half of people with OCD have a single identifiable mutation or that a genome test can explain an individual’s condition.

The practical point is that inherited biology matters, but it is not the entire explanation. Genetic contribution also does not tell us, by itself, which treatment will work best for a particular person.

The Brain Circuitry Behind OCD

A major focus of OCD research is a network linking the cortex, striatum, and thalamus. This is often described as a cortico-striatal-thalamic loop.

The names can sound complicated. The functions are more intuitive.

  • Cortex: Supports conscious perception, interpretation, and understanding of experience.
  • Striatum and related basal ganglia circuitry: Help select actions and suppress actions, including whether to initiate or withhold a behavior.
  • Thalamus: Relays much of our sensory information toward the cortex and helps regulate what reaches awareness.
  • Thalamic reticular nucleus: Forms a shell-like structure around the thalamus and helps gate the information passing through it.

These structures do not operate independently. They communicate through interconnected loops. In OCD, dysfunction within these networks is thought to contribute to persistent intrusive experiences and repetitive responses.

What Brain-Imaging Studies Show

Researchers have examined these circuits by provoking OCD symptoms under controlled laboratory conditions.

For someone with contamination obsessions and handwashing compulsions, that might involve presenting a towel containing another person’s sweat. Researchers can then measure brain activity as distress and the urge to wash increase.

Across imaging studies, including functional MRI and PET studies, the cortico-striatal-thalamic network has repeatedly been implicated. Some medication studies also show that symptom improvement is accompanied by reduced activity in parts of these circuits.

This does not mean a single brain loop explains every feature of OCD. Other networks may contribute. But it provides a useful framework: treatment can potentially change how distress is perceived, how actions are selected, or how automatically a ritual follows an intrusive thought.

Assessment: Identifying Symptoms and the Fear Beneath Them

A commonly used clinical instrument is the Yale-Brown Obsessive Compulsive Scale, or Y-BOCS. It helps clinicians characterize symptoms and assess their severity as part of a broader evaluation.

A clinician first clarifies what counts as an obsession and what counts as a compulsion. That matters because a person may not recognize internal rituals as compulsions or may feel too uncomfortable to disclose certain intrusive thoughts without a clear explanation.

Symptom checklists can explore current and past experiences involving:

  • Fears of harming oneself or someone else.
  • Fears of acting on unwanted impulses.
  • Contamination, dirt, germs, or residues.
  • Unwanted sexual thoughts or images.
  • Saving-related concerns.
  • Excessive concerns about morality, sacrilege, or blasphemy.
  • Symmetry, exactness, and incompleteness.

The presence of an unwanted thought is not the same as wanting to act on it. Indeed, its disturbing or personally unacceptable nature can be central to the obsession.

Why the Specific Feared Outcome Matters

Effective assessment goes beyond identifying a broad label such as “germs” or “checking.” The clinician and patient need to understand what the person fears would happen if the ritual were not performed.

What is the anticipated catastrophe? What makes uncertainty feel intolerable? What, precisely, does completing the ritual seem to prevent?

That deeper understanding helps guide treatment. Interrupting a behavior without understanding the fear driving it may miss a crucial part of the cycle.

The National Institute of Mental Health’s OCD resource provides additional context on symptoms, assessment, and treatment.

Exposure and Response Prevention: Learning Not to Perform the Ritual

One of the most powerful treatments for OCD is exposure-based cognitive behavioral therapy, particularly exposure and response prevention, or ERP.

The core idea is straightforward, even though the work can be difficult: the person encounters something that evokes an obsession and then practices not performing the usual compulsion.

This differs from approaches focused primarily on calming the body in the moment. Breathing exercises, visualization, self-talk, and social support can be useful in many settings. But in ERP, the central learning is that distress can be present without requiring a ritual.

For someone whose compulsion is handwashing, treatment may involve a carefully planned exposure to a feared contamination cue while refraining from the compulsive washing response.

The goal is not to prove that anxiety can always be eliminated. It is to weaken the link between anxiety and compulsive action.

Exposure Is Gradual, Planned, and Clinically Guided

This is not a recommendation to overwhelm yourself or force someone else to confront their greatest fear. Treatment should be guided by a trained, licensed clinician with appropriate expertise.

Exposures are typically organized hierarchically. The patient and clinician plan what will happen and progressively work toward more challenging situations. The aim is meaningful learning in a supportive setting, not distress for its own sake.

In the brain-circuit framework, ERP intervenes in the relationship between perception, anxiety, and action selection. The urge to perform the ritual can arise, yet the person practices withholding that response.

Over repeated experiences, anxiety and compulsive action no longer have to function as an inseparable pair.

What a Structured Treatment Course Can Look Like

Dr. Helen Blair Simpson, a physician-scientist at Columbia University and a leading OCD researcher and clinician, has studied structured exposure and ritual-prevention protocols.

One protocol discussed in this work includes:

  1. Two planning sessions: Clarify the symptoms, explain the treatment, and establish what exposures will involve.
  2. Approximately 15 exposure sessions: Conduct sessions twice weekly or more frequently.
  3. Progressive ritual prevention: Increase exposure difficulty while helping the person refrain from compulsive responses.

Treatment can extend over several weeks, sometimes roughly 10 to 12 weeks or longer. This is an example of a structured approach, not a universal schedule for every patient.

The International OCD Foundation’s explanation of ERP offers more detail about this form of treatment.

How Exposure-Based Therapy Compares With Medication

Selective serotonin reuptake inhibitors, or SSRIs, can reduce OCD symptoms in some people. They do not work for everyone, and side effects can affect whether a particular medication is appropriate or tolerable.

Comparisons of exposure-based therapy, medication, placebo, and combined treatment help clarify their roles.

In the treatment comparisons discussed here, placebo did not produce a meaningful reduction in symptoms, whereas exposure-based cognitive behavioral therapy produced a substantial improvement. In one reported comparison, symptom scores fell from approximately 25 to 11 by about four weeks.

Medication also reduced symptoms, but the reduction was smaller than that observed with exposure-based therapy in that comparison. Combining medication with therapy did not produce a further reduction beyond therapy alone in those particular results.

That finding is important, but it should not be turned into a rule that combined treatment never helps. Rather, it emphasizes that specialized behavioral treatment is an active, powerful intervention, not merely an optional supplement to medication.

For an individual patient, therapy alone or a combination of therapy and medication may be appropriate. Starting, stopping, or changing a prescription should always be discussed with the prescribing clinician.

A Medication’s Benefit Does Not Prove the Cause of a Disorder

There is another important distinction here. The fact that SSRIs can improve OCD does not establish that OCD is caused by a serotonin deficiency or a primary malfunction of the serotonin system.

A drug can alter a circuit in a useful way without correcting the original cause of the disorder. Treatment effects and disease mechanisms are related questions, but they are not identical.

This distinction applies broadly across psychiatry and helps prevent overly simple explanations of complex conditions.

Cannabis and CBD: Anxiety Relief Is Not the Same as OCD Treatment

Because anxiety is so prominent in OCD, it is reasonable to ask whether cannabis or cannabidiol, commonly called CBD, might help. But a plausible idea still requires testing.

A small human laboratory study from Dr. Simpson and colleagues examined the acute effects of smoked cannabis containing predominantly THC or CBD.

The study found little immediate impact on OCD symptoms. Reductions in anxiety were also smaller than those seen with placebo.

These findings do not answer every question about every cannabinoid preparation or pattern of use. They do, however, fail to support the assumption that cannabis or CBD reliably treats OCD simply because people associate them with relaxation.

Transcranial Magnetic Stimulation: Targeting the Circuit

Transcranial magnetic stimulation, or TMS, uses a magnetic coil placed against the scalp to influence activity in targeted brain regions without surgery.

Some OCD studies have targeted motor or supplementary motor regions while participants experience intrusive thoughts. The rationale is to interfere with the tendency for a compulsive behavior to follow automatically.

Small studies have reported symptom improvements that extend beyond the period when stimulation is being delivered. These findings are encouraging, but TMS should not be presented as a guaranteed solution.

One especially interesting research direction is combining stimulation with other interventions, including medication or exposure-based therapy. The broader idea is to influence the relevant circuit while also changing the learned relationship between obsessions and actions.

Mindfulness Meditation and Complementary Approaches

Mindfulness meditation may have a role in OCD treatment, but its role needs to be described carefully.

The evidence discussed here suggests that meditation may help indirectly by improving attention and engagement with cognitive behavioral therapy, including therapy homework. That is different from demonstrating that meditation alone directly relieves OCD symptoms.

In other words, a practice can be useful because it helps someone participate more effectively in a proven treatment.

I think potentially useful approaches deserve careful study, provided that research can be done safely. The National Center for Complementary and Integrative Health, part of the National Institutes of Health, supports research on complementary approaches, including meditation and related practices.

The relevant question is not whether an intervention is called traditional or holistic. It is what the evidence shows, what risks it carries, and whether it helps on its own or as an adjunct.

Inositol and Other Nutraceuticals

Over-the-counter supplements, sometimes called nutraceuticals, have also been explored in relation to OCD. One compound of interest is myo-inositol.

A dose of approximately 900 milligrams was discussed in connection with possible sleep and anxiety benefits. That should not be confused with an established effective dose for OCD.

Improved sleep, reduced general anxiety, and reduced OCD symptoms are different outcomes. Evidence for one does not automatically establish the others.

The important research questions include which formulations and doses might help, whether benefits are reproducible, and whether supplements add anything to behavioral therapy or prescription treatment. Possible combinations with brain stimulation also remain an area for investigation rather than an established recommendation.

“Available without a prescription” is not the same as “proven for OCD.” Supplements should be discussed with a qualified clinician, particularly when someone is already receiving treatment.

Breaking the Loop Starts With Understanding It

OCD can be extremely distressing, but its symptoms are not evidence of weak character or a lack of effort. They emerge from an interaction among intrusive experiences, anxiety, action-selection circuitry, and the short-term relief produced by rituals.

The most useful treatment framework is therefore not simply “feel less anxious.” It is to understand the specific obsession, identify the fear beneath it, and change the response that keeps the cycle going.

Exposure and response prevention provides a particularly direct way to do that. Medication can help some people, and other interventions may have roles depending on the individual and the strength of the evidence.

Understanding the science should accomplish two things: improve treatment decisions and increase compassion for what people with OCD are experiencing. Both matter.

Share

Andrew Huberman

Neuroscience and science-based tools for sleep, focus, mental health, fitness and everyday well-being from Andrew Huberman and Huberman Lab.

© 2026 Andrew Huberman
Powered by Convella