Compulsions in OCD are repetitive behaviors or mental acts that a person feels driven to perform in response to an obsessive thought, usually to reduce anxiety or prevent something bad from happening. They are not enjoyable. The temporary relief they provide is what keeps the cycle going, making the compulsions harder to stop over time. OCD affects roughly 4.1% of people over a lifetime, with more than 80% of cases beginning by early adulthood.
How Compulsions Work
A compulsion starts with an obsession: an intrusive, unwanted thought that spikes anxiety or dread. The compulsion is whatever you do to neutralize that feeling. You might check the stove, wash your hands, or silently repeat a phrase in your mind. The behavior itself isn’t pleasurable. It’s performed because not doing it feels unbearable.
The relief that follows a compulsion is real but temporary. Your brain registers that sharp drop in anxiety as proof the compulsion “worked,” which makes you more likely to do it again next time the obsession surfaces. This is called negative reinforcement. Research tracking people’s anxiety in real time found that greater anxiety reduction after a compulsion predicted more severe compulsions overall. Even when a compulsion only partially reduces distress, it can still be reinforcing if your brain interprets the outcome as “it could have been worse.” Over time, compulsions become persistent and excessive because your brain has learned to depend on them.
This creates a self-sustaining loop: obsession triggers anxiety, compulsion briefly lowers anxiety, the relief trains your brain to repeat the compulsion, and the obsession returns. Each cycle strengthens the pattern rather than resolving it.
Common Types of Compulsions
Compulsions tend to cluster around recognizable themes:
- Washing and cleaning: Hand-washing until skin becomes raw, scrubbing surfaces, showering repeatedly, or decontaminating objects after they’ve been “contaminated.”
- Checking: Returning to doors, locks, stoves, or appliances over and over to confirm they’re secure or turned off. Some people check dozens of times before they can leave the house.
- Counting and repeating: Counting in specific patterns, repeating actions a set number of times, or doing something until it “feels right.”
- Ordering and symmetry: Arranging objects in exact positions, evening things out, or needing items to be perfectly aligned.
- Reassurance-seeking: Repeatedly asking others for confirmation that something bad hasn’t happened or won’t happen.
- Following rigid routines: Performing everyday tasks in a strict, unvarying sequence and starting over if interrupted.
The compulsion often has little logical connection to the feared outcome. Someone might tap a doorframe three times to prevent a family member from getting sick. The person typically recognizes this doesn’t make sense, yet the urge to perform the behavior is overwhelming.
Mental Compulsions
Not all compulsions are visible. Mental compulsions happen entirely inside your head, which makes them easy to overlook and harder for others to recognize. Examples include silently repeating a prayer or “lucky phrase,” mentally replaying conversations to check whether you said something harmful, reviewing memories from the distant past for evidence of wrongdoing, or analyzing why you’re having a particular thought in the first place.
Some people with OCD perform almost exclusively mental compulsions, sometimes called “Pure O” because there are no obvious outward rituals. The name is misleading, though. The compulsions are still there; they’re just invisible. Mental compulsions follow the same cycle as physical ones: they temporarily reduce the distress of an obsession and reinforce the pattern through that brief relief.
Compulsions vs. Impulsive Behaviors
Compulsions are sometimes confused with impulsive behaviors, but they work in opposite directions. Impulsive actions are spontaneous and driven by the pursuit of pleasure or excitement, like an unplanned shopping spree or a reckless gamble. Compulsions are rigid, repetitive, and driven by the need to reduce distress. A person acting impulsively typically underestimates risk. A person performing a compulsion overestimates it.
There’s also a difference in self-awareness. People with OCD generally recognize their compulsions as excessive or irrational. The behaviors feel alien to who they are. Clinicians call this “ego-dystonic,” meaning the behavior conflicts with the person’s self-image. Impulsive actions, by contrast, often feel consistent with what the person wants in the moment, even if they regret it later. Compulsions are also more pervasive, sometimes consuming hours of a day, while the most impulsive behaviors tend to be intense but infrequent.
What Happens in the Brain
OCD involves a communication loop between the front of the brain (responsible for decision-making and evaluating threats), a deeper structure called the striatum (which helps select and execute actions), and the thalamus (which relays information between brain regions). In people with OCD, this loop is overactive. Specifically, the “go” pathway that triggers actions fires too strongly relative to the “stop” pathway that should inhibit actions no longer needed. The result is that your brain keeps sending the signal to perform a behavior long after it should have moved on. Neuroimaging studies consistently show this imbalance, with certain relay stations in the “stop” pathway showing abnormally strong connectivity that paradoxically disrupts their braking function.
How Treatment Targets Compulsions
The most effective therapy for compulsions is exposure and response prevention, or ERP. The concept is straightforward: you deliberately face the situation that triggers your obsession (exposure) while resisting the urge to perform the compulsion (response prevention). If your compulsion is checking the stove, you might turn it off once and then leave the kitchen without going back.
Two things happen during this process. First, your anxiety naturally decreases on its own without the compulsion, which your brain registers as new information. The distress you expected doesn’t last forever. Second, the feared outcome doesn’t occur, which violates your expectation that skipping the compulsion means something terrible will happen. Both mechanisms help weaken the link between the obsession and the compulsion.
Research on ERP outcomes shows that how much your distress drops during the very first exposure session predicts how much your symptoms will improve over the course of treatment. And when your actual anxiety at the end of a session is lower than what you expected, your odds of full remission roughly double for each unit of that gap. Across clinical trials, 62% to 65% of people with OCD respond to exposure-based therapy, and 43% to 50% achieve full remission. Intensive formats, where treatment is concentrated into a few days rather than spread across months, have pushed remission rates as high as 73%.
The goal of treatment isn’t to eliminate obsessive thoughts. It’s to break the automatic connection between those thoughts and the compulsive response, so the thought can pass without demanding action.

