Why Do I Feel Like I Have to Do Things a Certain Number of Times

This page reflects our understanding of mental health topics as of 2026. If you are reading this at a later date, some details may no longer be current, so please verify anything important against up to date sources. If you notice anything that needs updating, we would welcome you letting us know.

The light switch gets flicked a certain number of times, or a door gets checked until it feels right, not because you consciously decided to but because something insists on it. Stopping partway, or doing it an "incorrect" number of times, leaves a nagging discomfort that is hard to shake until it is redone properly. If this kind of pattern is part of your daily life, it is worth understanding where it might be coming from.

It Could Be a Lot of Things

Everyday habit or superstition. Many people have small personal rituals or lucky numbers that carry no real distress if interrupted, more a mild preference than a compulsion. These are common, harmless, and not something to be concerned about on their own. For more on this, see Why Can't I Stop Checking Things Over and Over.

Stress and a need for control. During periods of high stress or uncertainty, small repeated rituals can offer a sense of predictability and control over at least one part of the day, even without meeting the criteria for anything clinical. You can read more in Why Do I Need Constant Reassurance.

Autism. Repetitive behaviours and a preference for sameness or specific patterns are a recognized feature of autism, and can include repeating actions a particular number of times as a form of self-regulation, distinct from OCD in both function and the internal experience behind it. This is covered in more depth in Why Do Changes in Plans Upset Me So Much.

General perfectionism. A broader tendency to redo things until they feel exactly right can extend to physical actions as well as tasks, without necessarily involving the specific intrusive anxiety that characterizes OCD.

When It Looks More Like OCD

When repeating actions a specific number of times is connected to OCD, it typically follows a distinct pattern: an intrusive thought or feeling of discomfort (the obsession) drives the repeated action (the compulsion), which temporarily relieves the discomfort, only for it to return again soon after, keeping the cycle going. The specific number or pattern often feels arbitrary even to the person doing it, but deviating from it produces a disproportionate, hard to ignore sense that something bad might happen, or simply an intolerable feeling of incompleteness, sometimes described as a feeling that something is not "just right."

What distinguishes this from an everyday habit is the level of distress involved and the degree to which it interferes with daily life. A superstition or preference can usually be broken without much difficulty. An OCD-related compulsion typically cannot be skipped without triggering real anxiety or a persistent, uncomfortable sense of incompleteness that makes it very hard to simply move on, even when the person fully recognizes, often with real frustration, that the behaviour does not make logical sense.

It is also common for this specific pattern, needing to repeat an action a certain number of times, to exist alongside other checking or ordering-related compulsions, and for the specific numbers or rules involved to shift or become more elaborate over time if left unaddressed, which is a pattern worth paying attention to.

What Can Help

For patterns that are mild and not particularly distressing, gentle awareness and simply noticing the pattern without judgment is often enough. For patterns that are more distressing or time-consuming, evidence-based treatment for OCD, particularly a specific form of therapy called exposure and response prevention, is highly effective and works by gradually helping the brain tolerate the discomfort of not completing the compulsion, which over time reduces the urge itself. This is genuinely different from simply trying to white-knuckle through it with willpower, and tends to work considerably better.

Getting Support at Pacific Maple Psych Centre

If repeating actions a certain number of times is causing real distress, taking up significant time, or interfering with daily life, an assessment can help determine whether OCD is part of the picture and connect you with treatment approaches that are specifically effective for this kind of pattern.

Pacific Maple Psych Centre offers psychological assessments and individual therapy, including approaches specifically suited to OCD, in Vancouver and virtually across British Columbia.

Book a Session

Common Questions About Repeating Actions a Certain Number of Times

Does having a lucky number or small ritual mean I have OCD?

No. Many people have small personal habits or superstitions that cause little to no distress and can be broken without much difficulty. OCD involves a level of distress and interference that goes well beyond an everyday preference.

What makes a repeated action a “compulsion” rather than just a habit?

A compulsion is typically driven by an intrusive thought or uncomfortable feeling and is performed to relieve that discomfort, often accompanied by real anxiety or distress if it cannot be completed. A habit, by contrast, is usually much more flexible and low stakes.

What does it mean when something has to feel “just right”?

This refers to a specific kind of discomfort, common in OCD, where an action needs to be repeated until an internal sense of correctness or completeness is reached, rather than being driven by a specific feared outcome.

Could this be related to autism instead of OCD?

Yes, it is possible. Repetitive behaviours and a need for specific patterns are also a recognized feature of autism, though they generally serve a different internal function, more related to regulation and predictability than to anxiety relief from an intrusive thought.

Does stress make the urge to repeat things a certain number of times worse?

It can. Periods of high stress or uncertainty can intensify small rituals or the need for repetition, as they can offer a sense of predictability, though this can occur with or without an underlying OCD diagnosis.

Is it normal to know the behaviour doesn't make logical sense but do it anyway?

Yes, this is actually a very common and telling feature of OCD specifically. Many people with OCD are fully aware their compulsions do not follow logical reasoning, which distinguishes it from simply believing a superstition is true.

Can these patterns get worse or more elaborate over time?

Yes, if left unaddressed, the specific rules, numbers, or triggers involved in OCD-related compulsions can sometimes expand or become more rigid over time, which is one reason earlier support tends to be more effective.

What is exposure and response prevention?

It is a specific, well-researched form of therapy for OCD that involves gradually facing the discomfort of not completing a compulsion, which over time reduces both the anxiety and the urge to perform the behaviour.

Is medication ever used for OCD counting and repeating rituals?

Medication can be part of treatment for OCD in some cases, often alongside therapy, though the specific approach depends on the severity and nature of the symptoms, which an assessment can help clarify.

When is it worth seeking professional support for this?

It is worth seeking support when the pattern causes real distress, takes up a significant amount of time each day, or interferes with daily responsibilities and relationships, rather than remaining a mild, easily set aside preference.