It is common to feel anxious or worried at some point in life. However, for people with an obsessive-compulsive disorder (OCD), the anxiety related to these intrusive thoughts may force them toward persistent compulsive rituals that may make life difficult. Some people fear that something terrible will happen unless they perform a ritual; others seek relief from distress or a feeling that things are not “just right”. Rituals may provide temporary relief, but the distress often returns, maintaining the cycle. So does this mean that OCD is a type of anxiety disorder? If not, how are they different from one another?
OCD can cause intense anxiety, but anxiety itself is a symptom, not a single diagnosis. This article focuses mainly on generalized anxiety disorder (GAD) and OCD and explains the difference between anxiety and OCD, why they are separately categorized, and what happens when they overlap.
From a historical point of view, both obsessive-compulsive disorder (OCD) and generalized anxiety disorder (GAD) were categorized as anxiety disorders. As per the Diagnostic and Statistical Manual of Mental Disorders (DSM), experts’ diagnostic reference guide to classify psychiatric disorders once grouped both the issues in the same section. However, in 2013, the fifth edition of DSM separated them into different chapters.
This separation is retained in DSM-5-TR, published in 2022. GAD remains in the anxiety disorders chapter, while OCD is classified under “Obsessive-Compulsive and Related Disorders.” Some other issues that share the section include body dysmorphic disorder (BDD), trichotillomania (hair-pulling disorder), and hoarding disorder. This grouping reflects similarities among obsessive-compulsive and related disorders and distinctions from anxiety disorders; it does not mean that the conditions have completely separate, established biological causes. Some clinical differences are explained below.
The pattern and function of thoughts can help distinguish OCD from GAD, but thought content alone cannot establish a diagnosis. GAD involves excessive, difficult-to-control worry across areas such as family, school, work, health, relationships, and finances. These issues are the ones that almost all people worry about, but people with underlying anxiety do so to the extent that it significantly disrupts their daily functioning.
OCD involves intrusive, unwanted thoughts, images or urges and/or compulsions. Its themes can overlap with everyday GAD concerns, so whether a fear seems plausible does not reliably distinguish the conditions. Informal descriptions of OCD themes include:
- Contamination OCD, in which people obsess about germs and dirt and their effect on their health. For example, they may fear catching an infection by coming in contact with the suspected contaminant
- Hit and Run OCD, in which the sufferer obsesses over the fear of running over people with their vehicle
- Harm OCD, describes intrusive, unwanted fears or images of accidentally or intentionally harming oneself or others. Having such thoughts does not by itself mean a person wants or intends to act on them
- Relationship OCD, in which the focus of obsessions is the fear of not loving one’s partner or not being sexually attracted to them
- Scrupulosity OCD describes religious and/or moral obsessions, such as distressing fears of sin, offending one’s faith, or failing to meet personal moral standards.
These are examples of symptom themes, not separate formal diagnoses or an exhaustive list. OCD can involve many subjects, including realistic everyday concerns. Assessment considers how thoughts are experienced, any rituals or avoidance, and their effect on daily life rather than judging only how probable the feared event seems.
Responses to distressing thoughts also help distinguish GAD from OCD. People with GAD may worry repeatedly, avoid situations or seek reassurance. Worry alone is not an OCD-type compulsion. In OCD, compulsions are repetitive behaviors or mental acts that a person feels driven to perform in response to an obsession or according to rigid rules, often to reduce distress or prevent a feared event.
For instance, someone with GAD may repeatedly worry, “what if I lose my job and end up going broke?” They may spend considerable time considering possible consequences or seeking reassurance. This pattern does not by itself establish OCD.
In OCD, compulsions may be visible, such as repeated lock checking, or covert, such as silently counting, praying or mentally reviewing events. They may aim to reduce distress, neutralize an obsession or achieve a feeling that things are “just right”. Relief is often temporary, and mental rituals can be as disruptive as visible behaviors.
The treatment modalities for anxiety and OCD overlap significantly, despite having some critical differences. For example, both conditions respond well to psychotherapy called cognitive behavioral therapy and a particular class of antidepressants called selective serotonin reuptake inhibitors (SSRIs).
Cognitive Behavioral Therapy (CBT)
CBT refers to a type of behavioral therapy that encourages people to identify and change the negative thoughts contributing to the symptoms. While this therapy generally performs well in managing OCD and GAD, the specific techniques used may differ. For example:
- CBT for GAD may include cognitive restructuring, in which people identify and evaluate anxiety-provoking thoughts, alongside work on behaviors that maintain worry.
- CBT for OCD usually includes exposure and response prevention (ERP): planned, gradual contact with triggers while resisting compulsive responses, including mental rituals and neutralizing. With a trained therapist, people practice managing distress and uncertainty without relying on rituals.
Medications
Medication choices differ between GAD and OCD. The adult recommendations below follow NICE guidance used in England; medicine licenses vary by country and age. SSRIs are options for both disorders, while SNRIs are options for GAD but are not standard first-line medication for OCD. Psychotherapy, medication or a combination is selected according to severity, preferences and previous response, not on the assumption that combination treatment is always better.
- For adults with GAD choosing medication, NICE recommends an SSRI first, followed by another SSRI or an SNRI if the initial SSRI is ineffective.
- For adults with OCD, initial medication options include SSRIs such as sertraline, fluoxetine, fluvoxamine or paroxetine. Clomipramine, a tricyclic antidepressant rather than an SSRI, may be considered after an inadequate SSRI response or poor tolerability, or according to preference and previous response.
SSRIs can take several weeks to help GAD, and benefit in OCD may take up to 12 weeks. Prescribers should discuss side effects and monitor symptoms, particularly early in treatment and after dose changes. Seek prompt medical advice for worsening agitation or suicidal thoughts. If you may act on suicidal thoughts or cannot keep yourself or someone else safe, seek immediate help from local emergency services or the nearest emergency department. Do not stop or change medication without advice from the prescriber; stopping antidepressants abruptly can cause withdrawal symptoms.
OCD and GAD can occur together, and either can also occur with depression or other mental health conditions. Co-occurrence does not mean that one disorder inevitably causes another. Assessment should consider the full symptom pattern and how each condition affects functioning and treatment needs.
An accurate assessment is important when OCD and GAD occur together. SSRIs may help both, but treatment should address each condition and individual responses vary. Sodium valproate is not a routine guideline-recommended treatment for this combination. It has major reproductive risks, including birth defects and developmental harm following exposure during pregnancy; anyone already taking it should seek specialist advice rather than stop it abruptly. For treatment-resistant OCD, antipsychotic augmentation may be considered only after adequate standard treatment trials and specialist multidisciplinary review, with discussion and monitoring of adverse effects. It is not a general treatment for co-occurring OCD and GAD.
Distinguishing between OCD and an anxiety disorder can be challenging, given the commonalities in their symptoms. However, some key differences may aid in establishing an accurate diagnosis and commencement of suitable treatment.
Whether symptoms relate to GAD, OCD or another condition, persistent worry and intrusive thoughts can be distressing. Effective treatments are available, although progress and treatment needs vary. A primary care clinician or qualified mental health professional can assess symptoms and discuss an individual plan. Outpatient care is often appropriate; specialist or more intensive care may be needed for severe symptoms or an inadequate response to treatment.
If worry, intrusive thoughts or rituals are affecting daily life, seek a professional assessment. You do not need to know which diagnosis fits before asking for help.


