Compulsion

Last reviewed Saturday, October 24, 2026

A compulsion is a repeated action or mental act that a person feels driven to do, usually to ease anxiety. It’s often meant to stop something bad from happening. Common examples are washing, checking and counting. The relief is brief, so the urge returns. Compulsions are a core part of obsessive-compulsive disorder (OCD), and they respond to treatment.

Also called: compulsive behaviour; rituals; “neutralising”, when the act happens in the mind. Outside OCD, “compulsive” also describes gambling, eating or drug use that a person feels unable to stop.

Examples

A compulsion usually follows an obsession: an unwanted thought, image or urge that causes distress. The compulsion is the person’s attempt to make that feeling go away.

  • Washing and cleaning after a fear of germs or dirt.
  • Checking that doors are locked, the gas is off or a message was sent correctly.
  • Counting, ordering and arranging until things feel “just right”.
  • Asking for reassurance again and again.
  • Mental acts nobody else can see, such as repeating words or prayers in your head, or thinking a “good” thought to cancel a bad one.
  • Avoiding places, people or objects that set off the obsession.

Most people with OCD know the compulsion doesn’t make logical sense. They do it anyway, “just in case”.

Causes

Compulsions grow out of a loop. The obsession brings anxiety, the compulsion brings quick relief, and the relief teaches the brain to repeat it. Then the obsession and the anxiety come back, and the cycle starts again. Researchers link compulsive behaviour to brain circuits that handle goals and habits, and see it across OCD, addiction and related conditions. OCD runs in families, and a stressful event such as bereavement or childbirth can set it off.

Treatment

The main treatment is a form of cognitive behavioural therapy (CBT) called exposure and response prevention (ERP). With a therapist, you face the thought or situation that triggers the urge, step by step, and practise not doing the compulsion. The anxiety rises at first, then fades on its own, and the urge weakens. A doctor may also prescribe an antidepressant such as an SSRI. OCD is unlikely to get better without treatment.

In Nigeria

Compulsions can be easy to misread. Repeated washing can pass for cleanliness, constant checking for being careful, and long or repeated prayers for devotion. When obsessions are about sin or faith, clinicians call it scrupulosity, and the compulsions often take a religious form. There’s little evidence that religion causes OCD, and a therapist can adapt treatment to respect your faith; see Therapy and Faith: Can a Religious Nigerian Go to Therapy?

A practice you choose freely, and that brings peace, isn’t a compulsion. One done out of fear, that you can’t stop and that takes over your day, may be. Nigerian research on OCD is scarce, so nobody knows how common it is here.

Compulsion vs addiction vs habit

  • Compulsion: driven by fear or distress. It brings relief rather than pleasure, and the person usually knows it doesn’t make sense.
  • Addiction: usually starts with something rewarding, such as a drink, a drug or a win. Over time the use becomes compulsive: the person keeps going despite the harm, as the brain’s reward, stress and self-control systems change.
  • Habit: an automatic action set off by a familiar situation and learned through repetition, like reaching for your phone as soon as you wake. It saves effort, and you can usually override it.

The lines blur. Researchers see compulsivity as a thread running through OCD, addiction and problem gambling, with habit-like repetition in all of them. Our OCD entry covers obsessions and compulsions together.

When to get help

Get help if compulsions take up a lot of your time (more than an hour a day is a common marker), cause distress, or get in the way of work, study, sleep or relationships. You can book a licensed therapist on Mytherapist.ng who offers CBT and skills-based therapy; ask whether they use ERP. If the compulsion is gambling, betting, drinking or drug use, look for a therapist who works with substance use and addiction. If you’re worried about a child, start with a family doctor or paediatrician.

Read next


This entry is awaiting clinical review. It’s based on published research and health guidelines, and we’ll update it once a clinician has reviewed it.

Related terms

Back to the glossary

AS SEEN ON

Start your first therapy session today.

Download our app to match with an affordable, vetted professional in minutes.