How to Stop OCD Compulsions: What Actually Works

Stopping OCD compulsions requires learning to sit with the anxiety that triggers them, rather than fighting the thoughts themselves. The most effective approach, supported by decades of research, is a specific form of therapy called Exposure and Response Prevention (ERP). About 50 to 60% of people who complete ERP experience clinically significant improvement, and those gains tend to hold over time.

Why Compulsions Feel Impossible to Resist

Compulsions exist because they work, at least in the short term. When an obsessive thought fires (did I lock the door? are my hands contaminated?), anxiety spikes. Performing the ritual, whether that’s checking, washing, counting, or mentally reviewing, brings quick relief. That relief is the problem. It teaches your brain that the ritual was necessary, which makes the urge stronger next time.

At a neurological level, OCD involves a feedback loop between the cortex (where planning and decision-making happen) and deeper brain structures that regulate habits and impulses. In people with OCD, the excitatory part of this loop is overactive, while the braking system that would normally shut it down can’t keep up. The result is a brain that gets stuck in a cycle of alarm and action, even when the threat isn’t real. This is why compulsions feel less like a choice and more like something your body demands.

How ERP Breaks the Cycle

ERP is the core component of cognitive behavioral therapy for OCD, and every major clinical guideline lists it as a first-line treatment. The idea is straightforward: you deliberately face the situation that triggers your obsession while choosing not to perform the compulsion. When you do this repeatedly, your brain learns two things. First, the feared outcome doesn’t happen. Second, the anxiety passes on its own without the ritual.

Older models explained this through habituation: stay in the anxious situation long enough and the fear naturally fades. More recent research suggests something more nuanced is happening. Rather than erasing the old fear, your brain builds a new, competing association. You learn that the trigger doesn’t necessarily mean danger, and over time, that new association becomes the one your brain retrieves first. This distinction matters because it means the goal isn’t to feel zero anxiety during an exposure. It’s to build a track record of tolerating uncertainty.

Building an Exposure Hierarchy

ERP doesn’t start with your worst fear. You and a therapist build a ranked list of triggering situations, from mildly uncomfortable to intensely distressing. You rate each one on a 0 to 100 scale based on how much anxiety it would cause. If touching a doorknob rates a 20 and using a public restroom without washing rates an 80, the therapist can design intermediate steps that gradually bridge the gap.

You begin with lower-rated exposures and work your way up. At each level, you stay in the situation without performing any ritual until the anxiety decreases naturally. Some exposures are real-world (touching something “contaminated,” leaving the house without checking the stove), while others are imaginal, where you deliberately hold the intrusive thought in your mind without neutralizing it. Both types matter, especially for obsessions that can’t be easily recreated in real life, like fears of harming someone.

Practical Ways to Resist the Urge

Full response prevention, meaning you don’t do the compulsion at all, is the goal. But getting there is a process. Several strategies can help when the urge hits:

  • Delay the ritual. If you can’t stop yourself entirely, wait. Set a timer for five minutes, then ten, then longer. Many people find the urge peaks and fades within 20 to 30 minutes if they don’t give in. Each time you delay, you weaken the automatic link between obsession and compulsion.
  • Shorten or modify the ritual. If you normally check the lock seven times, check it three. If you wash your hands for two minutes, wash for 30 seconds. Partial response prevention still disrupts the habit loop and builds confidence for fuller prevention later.
  • Label the thought, don’t engage with it. A technique borrowed from Acceptance and Commitment Therapy called cognitive defusion involves recognizing a thought as just a thought, not a fact. Instead of treating “the stove might be on” as an emergency, you notice it as a hypothesis your brain generated, one you don’t need to test. When you stop treating obsessive thoughts as truths that require action, the compulsion loses its fuel.
  • Lean into uncertainty. OCD thrives on the demand for absolute certainty. Practicing statements like “maybe the door is unlocked, and I’m choosing not to check” directly challenges the compulsion’s logic. This feels deeply uncomfortable at first, which is the point.

What to Expect From Treatment

A typical course of ERP involves 12 to 20 sessions, though this varies. The first few sessions focus on understanding your specific OCD pattern and building the exposure hierarchy. Active exposures usually begin within the first few weeks. Progress isn’t linear. Some weeks feel like breakthroughs, others feel like setbacks, and that’s normal.

The success numbers are encouraging but honest. About 50 to 60% of people who complete treatment see significant symptom reduction, and those improvements tend to last. However, roughly 25 to 30% of people drop out before finishing, usually because the exposures feel too distressing. This is one reason therapist fit matters: a good ERP therapist moves at your pace and helps you understand that the discomfort is temporary and purposeful, not a sign that something is going wrong.

The Role of Medication

SSRIs (a class of antidepressant) are the other first-line treatment for OCD, often used alongside ERP. OCD typically requires higher doses than depression does, and it can take 8 to 12 weeks at an adequate dose before you notice a meaningful change. Medication doesn’t eliminate compulsions on its own, but it can lower baseline anxiety enough to make ERP more tolerable, especially for people whose symptoms are severe enough that they can’t engage with exposures initially.

For many people, the combination of ERP and medication works better than either alone. Others do well with ERP by itself. The decision depends on symptom severity, personal preference, and how you respond to each approach.

Keeping Compulsions From Coming Back

OCD is a chronic condition, and the goal of treatment isn’t to never have an intrusive thought again. It’s to change your relationship with those thoughts so they don’t control your behavior. Relapse prevention starts during therapy itself. The newer inhibitory learning model emphasizes that you’re not trying to make fear disappear during exposures. You’re building tolerance for uncertainty and distress, a skill that travels with you after therapy ends.

People who maintain their gains tend to keep practicing exposures on their own after formal treatment ends. When a new trigger appears, or an old one resurfaces, they apply the same principle: face it without ritualizing. Viewing occasional spikes in OCD symptoms as expected rather than catastrophic makes the difference between a temporary flare and a full relapse. The compulsions only regain power if you start feeding them again.