Key Takeaways
Compulsive Disorder and Anxiety: How the Two Are Connected
Searches for compulsive disorder and anxiety usually concern obsessive-compulsive disorder (OCD) and how it relates to anxiety. The two are closely linked: in the NCS-R, a nationally representative survey of U.S. adults, 75.8% of people with lifetime OCD had also met criteria for an anxiety disorder[1].
Anxiety also sits inside OCD itself. NIMH describes obsessions as intrusive, unwanted thoughts, urges or images that "make most people anxious," and notes that compulsions can bring temporary relief from that anxiety[5]. This article covers how the conditions relate; for how common each one is, see the anxiety and OCD statistics pages.
Since DSM-5 was published in 2013, OCD has not been classified as an anxiety disorder in the U.S. diagnostic manual[2]. The sections below cover why it moved, how often the conditions overlap, how clinicians tell them apart and what treatment trials show.
U.S. adults with lifetime OCD who had also had an anxiety disorder
Ninety percent of the same group had at least one other lifetime mental disorder. The figure comes from 73 respondents with OCD in the NCS-R, so its margin of error is wide.
"OCD is associated with substantial comorbidity"
Is OCD an Anxiety Disorder?
It used to be. DSM-III, DSM-III-R and DSM-IV all classified OCD as an anxiety disorder[3]. The World Health Organization's ICD-10 took a middle position, listing OCD separately from the anxiety disorders but within the same larger group of "neurotic, stress-related, and somatoform disorders"[3].
DSM-5, published in 2013, moved OCD into a new chapter called Obsessive-Compulsive and Related Disorders[2]. The American Psychiatric Association said the change reflected growing evidence that these disorders are related to one another and distinct from other anxiety disorders[2].
The chapter groups OCD with body dysmorphic disorder, trichotillomania, hoarding disorder and excoriation (skin-picking) disorder, which share obsessive preoccupation and repetitive behaviors[2]. The full group is covered on the OCD-related disorders page.
The move was debated. A 2010 review in Depression and Anxiety preliminarily recommended keeping OCD in the anxiety category and widening that category to include obsessive-compulsive spectrum disorders[3]. DSM-5 went the other way, so under current U.S. criteria OCD is closely tied to anxiety but is not an anxiety disorder.
The DSM-5 chapter, introduced in 2013, that groups obsessive-compulsive disorder with body dysmorphic disorder, trichotillomania, hoarding disorder and excoriation disorder, conditions that share obsessive preoccupation and repetitive behaviors[2].
Related Terms
Source: American Psychiatric Association, DSM-5 fact sheet
What Role Does Anxiety Play in Obsessions and Compulsions?
The diagnostic criteria build anxiety into the definition. Under DSM-5, obsessions are thoughts, urges or images experienced as intrusive and unwanted that "in most individuals cause marked anxiety or distress"[4].
Compulsions are repetitive behaviors, such as hand washing, ordering or checking, or mental acts, such as praying or counting, that the person feels driven to perform[4]. They are aimed at "preventing or reducing distress or preventing some dreaded event or situation," but are either clearly excessive or not realistically connected to what they are meant to prevent[4].
NIMH notes that people with OCD do not get pleasure from compulsions but may feel temporary relief from their anxiety[5]. To meet the diagnosis, symptoms must cause marked distress, take more than 1 hour a day or significantly interfere with daily functioning[4].
Can you have OCD without feeling anxious?
Anxiety is common in OCD but not universal. DSM-IV required obsessions to cause marked anxiety or distress, and DSM-5 removed that requirement by adding the words "in most individuals"[4].
Research on why people perform compulsions separates two motives. Harm avoidance is associated with anxiety and a wish to prevent harm, while incompleteness is linked to tension, discomfort and a need to do tasks perfectly or "just right"[6].
Someone who rearranges objects until they feel right may describe discomfort rather than fear. Researchers have argued that models of OCD focused only on harm avoidance miss this second group of symptoms[6].
Intrusive thoughts and rituals are also common without the disorder. More than one quarter of NCS-R respondents reported obsessions or compulsions at some point in life, yet only 2.3% met full criteria for lifetime OCD[1]. The OCD symptoms guide covers the main symptom types.
How Often Do OCD and Anxiety Disorders Occur Together?
Co-occurrence is the norm. In the NCS-R, 90% of respondents with lifetime OCD met criteria for at least one other lifetime disorder, and 75.8% had an anxiety disorder[1].
Social phobia (43.5%) and specific phobia (42.7%) were the most common anxiety disorders among people with OCD, followed by separation anxiety disorder (37.1%)[1]. Generalized anxiety disorder was less common, at 8.3%[1].
Mood disorders were also frequent: 63.3% of people with lifetime OCD had a mood disorder, including 40.7% with major depressive disorder[1]. NIMH likewise describes co-occurring mood and anxiety disorders as common in people with OCD[10]. The general pattern of overlapping diagnoses is covered on the comorbidity page.
These estimates rest on 73 respondents, and the standard error on the 75.8% figure was 7.6 percentage points[1]. The direction is clear; the exact percentages are not.
Anxiety and Mood Disorders Among U.S. Adults With Lifetime OCD
| Co-occurring disorder | Had it (lifetime) | OCD began first |
|---|---|---|
| Any anxiety disorder | 75.8% | 15.2% |
| Social phobia | 43.5% | 19.0% |
| Specific phobia | 42.7% | 5.8% |
| Separation anxiety disorder | 37.1% | 53.2% |
| Panic disorder | 20.0% | 30.3% |
| Posttraumatic stress disorder | 19.1% | 39.4% |
| Generalized anxiety disorder | 8.3% | 16.7% |
| Agoraphobia without panic | 7.8% | 10.2% |
| Any mood disorder | 63.3% | 45.6% |
| Major depressive disorder | 40.7% | 47.1% |
Share of NCS-R respondents with lifetime DSM-IV OCD (n = 73) who also met criteria for each disorder, and the share of those comorbid cases in which OCD started first[1].
1"OCD began first" excludes cases where the other disorder came first or both began in the same year[1].
2The survey used DSM-IV categories, so PTSD is listed with the anxiety disorders.
Sources
- •Ruscio et al., Molecular Psychiatry, 2010
Which Comes First, Anxiety or OCD?
Usually the anxiety disorder. Among NCS-R respondents with both, OCD began at a later age than 79.6% of their comorbid anxiety disorders[1].
Two exceptions stood out. Separation anxiety disorder tended to follow OCD (53.2% of comorbid cases), and posttraumatic stress disorder followed OCD (39.4%) about as often as it preceded it (39.9%)[1].
Mood disorders showed no clear order: OCD came first in 45.6% of comorbid cases and the mood disorder came first in 40.2%[1].
Onset order shows sequence, not cause. An earlier anxiety disorder is associated with later OCD, but survey data of this kind cannot show that one condition produces the other. Shared risk factors are covered in what causes anxiety.
How Is OCD Different From Generalized Anxiety?
Both involve repetitive thoughts that are hard to dismiss, which is why OCD and generalized anxiety disorder (GAD) are often confused. A study of 254 students who each rated one obsession-like thought and one worry found shared features, including negative emotion, difficulty dismissing the thought and loss of mental control[7].
The two kinds of thought still differed on frequency, duration, how much they took the form of words or images, how much they interfered and whether they felt ego-dystonic, meaning at odds with the person's values[7]. The ego-dystonic dimension emerged as an important variable separating obsessions from worry[7].
DSM-IV drew the line in its criteria: obsessions were "not simply excessive worries about real-life problems"[4]. DSM-5 dropped that clause but still requires that symptoms not be better explained by another disorder, naming "excessive worries, as in generalized anxiety disorder" as an example[4].
Rituals are the clearest marker. OCD can be diagnosed from obsessions, compulsions or both[4], while the GAD criteria center on excessive worry. Prevalence for GAD is on the generalized anxiety disorder page.
Obsessive-compulsive personality disorder is a separate condition
"Compulsive disorder" is sometimes used to mean obsessive-compulsive personality disorder (OCPD). OCPD is marked by a pervasive preoccupation with orderliness, perfectionism and control, and it lacks the intrusive obsessions and compulsions typical of OCD[9].
OCD behaviors are ego-dystonic and confined to specific areas of life, while OCPD behaviors are ego-syntonic and affect overall functioning[9]. The two can co-occur: in a 2026 study of 300 patients with OCD, 18.6% also had OCPD, and that group went longer without treatment (an average of 9.2 vs. 6.1 years)[9].
How Are OCD and Anxiety Treated When They Occur Together?
OCD treatment research centers on two approaches: behavioral therapy, including exposure and response prevention (ERP), and serotonergic antidepressants. A 2016 network meta-analysis in The Lancet Psychiatry compared them across 54 trials with 6,652 participants[8].
Compared with drug placebo, behavioral therapy lowered Yale-Brown Obsessive Compulsive Scale (Y-BOCS) scores by an average of 14.48 points, cognitive therapy by 13.36 points, clomipramine by 4.72 points and SSRIs as a class by 3.49 points[8]. Clomipramine was not better than SSRIs[8].
The psychotherapy figures carry a caveat. Most psychotherapy trials let participants stay on stable antidepressant doses (12 of 15 explicitly allowed it), which the authors called a serious limitation when comparing therapy with medication[8].
Medication timelines for OCD are long. NIMH notes that antidepressants can take 8 to 12 weeks before symptoms begin to improve and that OCD may require higher doses than are typically used for depression[5].
In ERP, a person faces feared triggers while refraining from the compulsion; the trial evidence is covered in ERP therapy for OCD. For co-occurring anxiety disorders, see therapy for anxiety and SSRIs for anxiety.
Frequently Asked Questions
Sources & References
- Ruscio AM, Stein DJ, Chiu WT, Kessler RC. The epidemiology of obsessive-compulsive disorder in the National Comorbidity Survey Replication. Molecular Psychiatry. Published 2010. Accessed October 2026. https://pmc.ncbi.nlm.nih.gov/articles/PMC2797569/ [Link]
- American Psychiatric Association. Obsessive Compulsive and Related Disorders (DSM-5 fact sheet). Published 2013. Accessed October 2026. https://www.psychiatry.org/file%20library/psychiatrists/practice/dsm/apa_dsm-5-obsessive-compulsive-disorder.pdf [Link]
- Stein DJ, Fineberg NA, Bienvenu OJ, et al. Should OCD be classified as an anxiety disorder in DSM-V? Depression and Anxiety. Published 2010. Accessed October 2026. https://doi.org/10.1002/da.20699 [Link]
- Potter A, Owens M, Albaugh M, et al. Impact of DSM-5 revisions to obsessive-compulsive disorder on prevalence rates in youth. Journal of the American Academy of Child and Adolescent Psychiatry. Published 2021. Accessed October 2026. https://pmc.ncbi.nlm.nih.gov/articles/PMC8992388/ [Link]
- National Institute of Mental Health. Obsessive-Compulsive Disorder: When Unwanted Thoughts or Repetitive Behaviors Take Over. Published 2023. Accessed October 2026. https://www.nimh.nih.gov/health/publications/obsessive-compulsive-disorder-when-unwanted-thoughts-or-repetitive-behaviors-take-over [Link]
- Pietrefesa AS, Coles ME. Moving beyond an exclusive focus on harm avoidance in obsessive-compulsive disorder: behavioral validation for the separability of harm avoidance and incompleteness. Behavior Therapy. Published 2009. Accessed October 2026. https://doi.org/10.1016/j.beth.2008.06.003 [Link]
- Langlois F, Freeston MH, Ladouceur R. Differences and similarities between obsessive intrusive thoughts and worry in a non-clinical population: study 1. Behaviour Research and Therapy. Published 2000. Accessed October 2026. https://pubmed.ncbi.nlm.nih.gov/10661001/ [Link]
- Skapinakis P, Caldwell DM, Hollingworth W, et al. Pharmacological and psychotherapeutic interventions for management of obsessive-compulsive disorder in adults: a systematic review and network meta-analysis. The Lancet Psychiatry. Published 2016. Accessed October 2026. https://pmc.ncbi.nlm.nih.gov/articles/PMC4967667/ [Link]
- Girone N, Bucca C, Benatti B, et al. Is comorbid obsessive-compulsive personality disorder responsible for a longer duration of untreated illness in obsessive-compulsive disorder? Journal of Psychiatric Research. Published 2026. Accessed October 2026. https://doi.org/10.1016/j.jpsychires.2026.03.029 [Link]
- National Institute of Mental Health. Obsessive-Compulsive Disorder (OCD). Published 2024. Accessed October 2026. https://www.nimh.nih.gov/health/topics/obsessive-compulsive-disorder-ocd [Link]