Covered by insurance in all 50 states, incl. Medicare Advantage day one
Back to Blog

OCD and Autism: Telling Compulsions From Routines

Clinically reviewed by Wendy Delgado, PA-C

Reviewed November 5, 2026 · Last updated November 5, 2026

Key Takeaways

  • OCD and autism often occur together. A 2019 meta-analysis found about 9% of autistic people also have OCD, compared with an estimated 2.3% lifetime rate among U.S. adults overall.
  • The clearest difference is function. Autistic routines usually bring comfort, predictability, or sensory satisfaction, while OCD compulsions are driven by unwanted thoughts and bring only brief relief from anxiety.
  • The distinction changes treatment. In an NIH trial, citalopram, an SSRI, worked no better than placebo for repetitive behavior in autistic children and caused more side effects.
  • Exposure-based therapy can help autistic people with OCD, especially when it's adapted and families reduce accommodation, though results are often more modest than in OCD alone.

Your child lines up toy cars in the same order every night and falls apart if one gets moved. Or maybe it’s you: the same breakfast, the same route to work, and a wave of distress when plans change at the last minute. You’ve read about OCD and you’ve read about autism, and you can’t tell which one explains what you’re seeing, or whether it could be both.

Both conditions involve repetition, but the brain’s reason for repeating is different. In autism, repetitive behavior often helps regulate the nervous system, bringing predictability, comfort, or sensory input that feels right. In OCD, a compulsion is the brain’s attempt to quiet an intrusive, unwanted thought, and NIMH’s OCD guide notes that people with OCD don’t get pleasure from compulsions, only temporary relief from anxiety. Telling them apart takes precision, because the behavior can look identical from the outside.

The traditional approach has been to evaluate one condition at a time. That made sense. Autism and OCD have separate diagnostic criteria, separate specialists, and well-studied treatments, and NIMH lists exposure and response prevention therapy and serotonin-targeting antidepressants as core treatments for OCD. The tools are real, and they work.

But autism and OCD overlap far more often than chance would predict, and at Siggy we think an evaluation that only looks for one of them risks treating the wrong thing.

A both-lens evaluation asks why a behavior happens, not just what it looks like. In a 2019 Lancet Psychiatry meta-analysis, about 9% of autistic people also had OCD, compared with an estimated 2.3% lifetime rate among U.S. adults overall. Separating compulsions from routines changes which treatment fits, and that distinction rests on clinical evidence.

What This Page Covers

How Often Do OCD and Autism Occur Together?

The Lancet Psychiatry meta-analysis pooled 96 studies and found that OCD affected about 9% of autistic people. Anxiety disorders were even more common, at about 20%. Rates were higher in clinic-based studies than in population-based ones, which is typical when the people being studied are already seeking care.

For comparison, NIMH’s OCD statistics estimate that 2.3% of U.S. adults have OCD at some point in their lives. The overlap runs in both directions. The International OCD Foundation notes that autism is found far more often in people with OCD than in the general population, and that some early studies likely overcounted OCD in autistic people because they didn’t separate autistic repetitive behavior from true compulsions.

Compulsion or Routine: The Core Difference

The most reliable question is what a behavior is for, not what it looks like. IOCDF’s autism guidance describes autistic repetitive behaviors as serving to preserve sameness, adjust sensory input, provide pleasure, or communicate a need, while OCD symptoms serve to reduce or avoid anxiety.

This comparison draws on IOCDF guidance, NIMH, and the clinical research described below.

Question Autistic Repetitive Behavior OCD Compulsion
Why it happens Comfort, predictability, sensory input To relieve anxiety or prevent harm
How it feels Pleasant or soothing Unwanted, with no real pleasure
When it started Early childhood Usually late childhood or later
If interrupted Distress about the change itself Fear that something bad will happen
Common forms Ordering, touching, tapping Cleaning, checking, counting

Timing is a useful clue. NIMH’s autism overview notes that autism signs generally appear in the first two years of life, while OCD usually begins between late childhood and young adulthood. A routine that has been there as long as anyone can remember points one way. A ritual that showed up at 14 and keeps growing points another.

What Research Shows About the Patterns

One of the clearest comparisons comes from a Yale case-controlled study of 50 autistic adults and 50 adults with OCD. The autistic group was significantly less likely to have obsessions about aggression, contamination, sex, religion, symmetry, or their own bodies. They were more likely to show repetitive ordering, hoarding, and touching, tapping, or rubbing, and less likely to clean, check, or count.

The overlap isn’t perfect. NIMH lists ordering and arranging as a common OCD compulsion too, so a lined-up shelf alone can’t settle the question. That’s why the function of a behavior, and the thought behind it, matters more than its form. This study was also done in adults decades ago, so it may not capture how these patterns look in children.

Why the Distinction Changes Treatment

This is the part most guides skip. SSRIs are the most common medications for OCD, and NIMH notes they can take 8 to 12 weeks to work, often at higher doses than for depression. It’s tempting to assume they’d also ease autistic repetitive behavior.

The evidence says otherwise. In an NIH-funded randomized trial of 149 autistic children with high levels of repetitive behavior, 32.9% improved on citalopram and 34.2% improved on placebo, a difference that wasn’t meaningful. Children taking citalopram were more likely to have side effects, including increased energy, impulsiveness, trouble concentrating, hyperactivity, and trouble sleeping. The authors concluded there isn’t enough evidence to recommend SSRIs as a class for autistic repetitive behavior.

Therapy works the same way. Exposure and response prevention is built to break the link between a feared thought and a ritual. Routines that keep an autistic person regulated don’t run on that link, so they aren’t what ERP is designed to change. Our guide to exposure therapy for OCD explains how that link gets broken when it is OCD.

How OCD Treatment Is Adapted for Autistic People

The good news is that OCD in autistic people is treatable. In a 2013 randomized trial, 46 autistic adolescents and adults with OCD received either OCD-focused CBT or anxiety management. Both groups improved, and 45% responded to CBT compared with 20% to anxiety management, though that difference wasn’t statistically significant. One finding stood out: the more family members accommodated rituals, the worse the outcome.

Adapting the approach seems to help. A 2021 youth trial analysis followed 167 autistic kids ages 7 to 13 with anxiety or obsessive-compulsive disorders, so it speaks to OCD only in part. Both standard and personalized CBT were effective, with some advantage for the personalized version, and kids with moderate repetitive behaviors did worse only in standard CBT. Honest expectations matter too. A Swedish ERP study of adapted treatment in 19 autistic adults found large average symptom drops but modest remission rates and low engagement with exposure homework, a sign that treatment still needs refining.

Naming feelings can be its own hurdle. A 2019 alexithymia meta-analysis found that about half of autistic participants had alexithymia, a difficulty identifying and describing emotions, compared with about 5% of non-autistic participants. If “how anxious do you feel?” is a hard question, a good clinician will find more concrete ways to ask it.

When you’re looking for care, it’s reasonable to ask:

  • Have you treated OCD in autistic clients before?
  • How will you adjust ERP for sensory needs and communication style?
  • How will family members be involved, including reducing accommodation?
  • How will we measure anxiety if describing feelings is hard?

Signs It Might Be Both

Only a clinician can sort this out, but these patterns are worth writing down before an appointment:

  • A repetitive behavior that started later in life and feels unwanted
  • Distress tied to a specific fear, such as “if I don’t, someone will get hurt”
  • Rituals that keep expanding or take more than an hour a day, a marker NIMH uses for OCD
  • Hiding rituals out of embarrassment, while openly enjoying other routines
  • New cleaning, checking, or counting on top of long-standing preferences for sameness

The reverse matters too. IOCDF notes that some people being treated for OCD have learned to camouflage autistic traits to fit in. Our guide to masking in autism and ADHD explains why that can delay an accurate picture for years.

Getting an Evaluation That Sees Both

IOCDF points out a practical problem: clinicians often have deep expertise in autism or in OCD, but not both. Standard OCD rating scales also weren’t designed with autistic people in mind, although measures validated for autistic children and adults now exist. The strongest evaluations combine current symptoms with a detailed developmental and medical history.

Bring specific examples. Describe what happens right before a behavior, how it feels during, and what happens if it’s interrupted. Those three details often say more than any checklist. If you’re still sorting out whether what you’re experiencing is OCD at all, start with our guide to OCD signs beyond the stereotypes.

If you or someone you love is having thoughts of self-harm, call or text 988. If you’re in immediate danger, call 911.

This article is for education only and isn’t a substitute for personal medical advice. It reflects sources available as of October 2026.

Talk Through What You’re Noticing

“I have to retell my story every time I see someone new.” When autism and OCD overlap, that story is long, and it’s easy for pieces to get lost between specialists. Start your anonymous intake with Siggy to describe the thoughts, routines, anxiety, or low mood you’re noticing in your own words. It’s free and asks for no name or email, and you’ll get a summary you can download and bring to an autism or OCD specialist. A licensed prescriber reviews every Siggy treatment plan before anything is prescribed. Siggy’s licensed prescribers diagnose and treat the full range of mental health conditions, including OCD and autism-related concerns.

Mental healthcare should stay with you between appointments.

Siggy combines daily check-ins with clinician-supervised care so your treatment plan can respond to what is actually happening.

Start anonymously. A real doctor reviews every clinical decision. HIPAA-compliant.

Start Anonymous Intake

Frequently Asked Questions

Can you have both OCD and autism?

Yes, OCD and autism can occur together, and they do more often than chance would predict. A 2019 meta-analysis in The Lancet Psychiatry estimated that about 9% of autistic people also have OCD. Because the two conditions can look similar, a clinician experienced in both is best placed to tell them apart.

How do you tell an autistic routine from an OCD compulsion?

The main difference is why the behavior happens and how it feels. Autistic routines and repetitive behaviors usually bring comfort, predictability, or sensory satisfaction. OCD compulsions are driven by unwanted, intrusive thoughts, feel like something you have to do to prevent a bad outcome, and bring only temporary relief from anxiety.

Is OCD a form of autism?

No, OCD is not a form of autism. Autism is a developmental condition whose signs generally appear in the first two years of life, while OCD is a mental health condition that usually starts between late childhood and young adulthood. They share some surface features, such as repetitive behavior, and they can co-occur.

Do SSRIs help autistic repetitive behaviors?

The evidence that SSRIs help autistic repetitive behaviors is weak. In an NIH-funded trial of 149 autistic children, citalopram worked no better than placebo and caused more side effects, such as hyperactivity and trouble sleeping. SSRIs are a standard treatment for OCD itself, so an accurate diagnosis matters before starting one.

Does exposure therapy work for autistic people with OCD?

Exposure-based cognitive behavioral therapy can reduce OCD symptoms in autistic people, especially when it's adapted. In one randomized trial of 46 autistic adolescents and adults with OCD, 45% responded to OCD-focused CBT, compared with 20% who received anxiety management, though that difference wasn't statistically significant. Results are often more modest than in OCD alone, and family accommodation of rituals predicted poorer outcomes.

Should I be screened for autism if I have OCD?

Screening for autism is worth considering if you have OCD and also notice lifelong differences in social communication, strong preferences for sameness, or sensory sensitivities. The International OCD Foundation recommends that clinicians screen people with OCD for autism when these concerns are present, partly because many people learn to mask autistic traits.

Sources

  1. National Institute of Mental Health. Obsessive-Compulsive Disorder: When Unwanted Thoughts or Repetitive Behaviors Take Over. NIH Publication No. 23-MH-4676. Revised 2023. nimh.nih.gov
  2. Lai MC, Kassee C, Besney R, et al. Prevalence of co-occurring mental health diagnoses in the autism population: a systematic review and meta-analysis. Lancet Psychiatry. 2019;6(10):819-829. doi:10.1016/S2215-0366(19)30289-5
  3. National Institute of Mental Health. Obsessive-Compulsive Disorder (OCD) statistics. nimh.nih.gov
  4. International OCD Foundation. OCD and Autism. Updated July 2024. iocdf.org
  5. National Institute of Mental Health. Autism Spectrum Disorder. Last reviewed December 2024. nimh.nih.gov
  6. McDougle CJ, Kresch LE, Goodman WK, et al. A case-controlled study of repetitive thoughts and behavior in adults with autistic disorder and obsessive-compulsive disorder. American Journal of Psychiatry. 1995;152(5):772-777. doi:10.1176/ajp.152.5.772
  7. King BH, Hollander E, Sikich L, et al. Lack of efficacy of citalopram in children with autism spectrum disorders and high levels of repetitive behavior. Archives of General Psychiatry. 2009;66(6):583-590. doi:10.1001/archgenpsychiatry.2009.30
  8. Russell AJ, Jassi A, Fullana MA, et al. Cognitive behavior therapy for comorbid obsessive-compulsive disorder in high-functioning autism spectrum disorders: a randomized controlled trial. Depression and Anxiety. 2013;30(8):697-708. doi:10.1002/da.22053
  9. Storch EA, Wood JJ, Guzick AG, et al. Moderators of response to personalized and standard care cognitive-behavioral therapy for youth with autism spectrum disorder and comorbid anxiety. Journal of Autism and Developmental Disorders. 2022;52(2):950-958. Published online April 7, 2021. doi:10.1007/s10803-021-05000-0
  10. Flygare O, Andersson E, Ringberg H, et al. Adapted cognitive behavior therapy for obsessive-compulsive disorder with co-occurring autism spectrum disorder: a clinical effectiveness study. Autism. 2020;24(1):190-199. doi:10.1177/1362361319856974
  11. Kinnaird E, Stewart C, Tchanturia K. Investigating alexithymia in autism: a systematic review and meta-analysis. European Psychiatry. 2019;55:80-89. doi:10.1016/j.eurpsy.2018.09.004