The short answer: OCD and autism are separate conditions, but they often occur together. A large 2019 meta-analysis found OCD in about 9% of autistic people, compared with roughly 2% of the general population. Both involve repetitive behavior, so telling them apart takes care. The key question is whether a behavior brings comfort or relieves distress from unwanted thoughts.
How often do OCD and autism occur together?
More often than chance would predict. A 2019 systematic review and meta-analysis in The Lancet Psychiatry pooled 96 studies of mental health conditions in autistic people. It estimated OCD prevalence at 9%. Estimates from clinic samples ran higher than those from population and registry studies.
A 2026 editorial in the Journal of the American Academy of Child and Adolescent Psychiatry summarizes the wider data this way:
- About 9% to 12% of autistic people meet criteria for OCD.
- About 2% of the general population has OCD.
- Autism is present in roughly 10% of young people with OCD.
The link runs in both directions. A 2015 Danish national registry study in PLoS One followed people over time. Those first diagnosed with autism had about a 2-fold higher risk of a later OCD diagnosis. Those first diagnosed with OCD had nearly a 4-fold higher risk of a later autism diagnosis.
Why are the two conditions linked?
Nobody knows for certain, but shared family risk is part of the picture. The same Danish study found that children of parents with OCD were more likely to be diagnosed with autism. The authors concluded that the two conditions probably share some causes. The links were somewhat stronger for autism without intellectual disability.
A 2021 Cochrane review notes that researchers have proposed genetic, anatomic, neurobiological, and psychological explanations. None has been proven. Both conditions also have a strong inherited component on their own, which our article on whether OCD is genetic covers in more detail.
What is the difference between autistic routines and OCD compulsions?
From the outside, they can look almost the same. MedlinePlus notes that autistic people may spend a lot of time putting things in order or repeat the same sentence. Arranging and repeating are also classic OCD compulsions. The difference usually lies in how the behavior feels and what drives it.
- Autistic repetitive behaviors often feel comforting, calming, or enjoyable. They fit how the person sees themselves. Stopping them may cause distress because a need for sameness is disrupted.
- OCD compulsions usually feel unwanted and driven by fear. They respond to an intrusive thought, such as a fear of harm or contamination. They bring brief relief, then the urge returns.
Clinicians call this contrast ego-syntonic (in line with the self) versus ego-dystonic (at odds with the self). A 2024 interview study in the journal Autism asked 15 autistic adults with OCD symptoms to describe the difference. They said repetitive behaviors are part of who they are and what they want to be doing. OCD symptoms clashed with how they viewed themselves and caused negative emotions.
The line is not always clean. Participants said OCD sometimes took over existing routines and made them feel more intense and negative. Special interests were sometimes tied to their obsessions. The same pattern of needing things to feel exact appears in just-right OCD.
Why is diagnosis difficult when both may be present?
The research tools are still blunt. A 2024 systematic review in the Journal of Autism and Developmental Disorders examined 31 studies comparing repetitive behaviors in autism and OCD. It found considerable overlap in both the intensity and the content of the behaviors. Most studies compared only total scores, so they could not separate specific behaviors well.
Other factors make it harder:
- Some autistic people find it hard to describe inner thoughts, and obsessions are inner thoughts.
- Intrusive thoughts may be hidden, and the Autism study participants said they tried to mask visible symptoms of both kinds.
- Many screening questionnaires were built for non-autistic people.
Getting it right matters. The JAACAP editorial points out that autism-related repetitive behaviors respond poorly to SSRIs, even though SSRIs work well for OCD. Treating a comforting routine as a compulsion can lead to the wrong plan.
How is ERP adapted for autistic people?
Cognitive behavioral therapy with exposure and response prevention (ERP) remains the main treatment for OCD. The NICE guideline on OCD (CG31) recommends CBT including ERP for adults and children. It does not give separate advice for autistic people. That advice sits in NICE's autism guideline for adults (CG142).
CG142 says treatment for a co-occurring mental disorder should follow the NICE guidance for that disorder. It also lists adaptations to cognitive and behavioral therapy:
- A more concrete and structured approach, with more written and visual material such as worksheets and images.
- More focus on changing behavior than on changing thoughts, using the behavior as the starting point.
- Explicit rules, with their context explained.
- Plain English, with little metaphor, ambiguity, or hypothetical situations.
- Involving a family member, partner, carer, or professional, if the person agrees.
The evidence base is thin. The 2021 Cochrane review found only one randomized trial, with 46 participants. It compared CBT for OCD with anxiety management in autistic people. Results leaned toward CBT, but the certainty was low. For the standard approach, see our guide to ERP therapy for OCD.
Do SSRIs work for OCD in autistic people?
NICE CG142 says medication for a co-occurring condition should also follow the guidance for that condition. For adults with OCD, CG31 lists fluoxetine, fluvoxamine, paroxetine, sertraline, or citalopram as first SSRI options.
The picture is less clear for autism itself. A 2013 Cochrane review of SSRIs for autism included nine trials with 320 participants. It found no evidence of benefit in children and emerging evidence of harm. Small adult studies showed some gains, but their risk of bias was unclear. Those trials targeted autism features, not diagnosed OCD, which is why an accurate diagnosis comes first.
Anxiety often travels with both conditions. If worry is the bigger problem, anxiety.md covers it in depth. Attention problems can add another layer, as our article on OCD and ADHD together explains.
The bottom line
OCD is several times more common in autistic people than in the general population, and each condition raises the risk of the other. Repetitive behaviors that feel comforting usually belong to autism. Those driven by fear and unwanted thoughts point toward OCD. ERP can help, especially with concrete, structured adaptations, though research in autistic people remains limited. A clinician experienced with both conditions gives the best chance of an accurate diagnosis.
Last updated: September 2026. This article is for informational purposes only and does not constitute medical advice. Talk to a qualified clinician about diagnosis and treatment for OCD or autism.