This page is for general education and is not medical advice. It is not a substitute for diagnosis or treatment by a qualified professional. If this is an emergency, call 911 or 988.
Anxiety disorders and OCD are closely related but classified separately. The simplest distinction: generalized anxiety is broad, ongoing worry about real-life concerns, while OCD is built on obsessions — unwanted intrusive thoughts — paired with compulsions, the repetitive acts or mental rituals done to relieve them. Both involve real anxiety, and both are very treatable.
Key facts
- OCD was once grouped with anxiety disorders but is now in its own category of obsessive-compulsive and related disorders (NIMH).
- The OCD pattern is a cycle: an intrusive obsession spikes anxiety, a compulsion brings brief relief, and the cycle repeats (NIMH).
- Anxiety is central to OCD, which is why the two are so often compared (MedlinePlus).
- Both respond to CBT and often SSRIs; OCD responds best to a specific CBT variant called ERP (APA).
Generalized anxiety
- Broad, ongoing worry about everyday concerns — health, money, work, family
- Worry that feels excessive and hard to control
- Physical symptoms like restlessness, muscle tension, and trouble sleeping
- Not organized around specific rituals
See the types of anxiety for the full range.
OCD
- Obsessions — unwanted, intrusive thoughts, images, or urges that cause distress
- Compulsions — repetitive behaviors or mental acts (checking, washing, counting, reassurance) done to neutralize the distress
- A driving sense that performing the ritual will prevent something bad or relieve the discomfort
- Relief that is only temporary, which keeps the cycle going
How the difference matters for treatment
Both conditions respond to evidence-based care, with some overlap and one key distinction:
- Anxiety disorders often use broader CBT and exposure approaches, sometimes with medication.
- OCD responds best to exposure and response prevention (ERP), a form of CBT in which you face triggers without performing the compulsion, breaking the cycle. SSRIs are also commonly used.
If you’d like the full clinical picture of OCD, see our OCD condition hub.
From our clinical review. The tell I look for is the ritual. Lots of people worry; with OCD there’s a specific thing they feel compelled to do to make the worry go away. Naming that compulsion is what points us toward ERP, which is remarkably effective.
Whichever pattern fits you, help is available. See anxiety treatment options — or take a private, two-minute anxiety self-check.
Frequently asked questions
Is OCD an anxiety disorder?
OCD was once grouped with anxiety disorders but is now classified separately, in a category of obsessive-compulsive and related disorders. Anxiety is still a major feature of OCD, which is why the two are often compared.
What is the main difference between anxiety and OCD?
Generalized anxiety centers on broad, ongoing worry about real-life concerns. OCD centers on specific intrusive obsessions paired with compulsions — repetitive acts or mental rituals performed to relieve the distress the obsessions cause.
Are anxiety and OCD treated the same way?
They overlap. Both respond to cognitive behavioral therapy and often SSRIs. OCD specifically responds best to a CBT variant called exposure and response prevention (ERP), while general anxiety often uses broader CBT and exposure approaches.
Sources
- Obsessive-Compulsive Disorder (OCD) — National Institute of Mental Health (NIMH)
- Anxiety Disorders — National Institute of Mental Health (NIMH)
- Obsessive-Compulsive Disorder — MedlinePlus, U.S. National Library of Medicine
- Anxiety — American Psychological Association (APA)
Reviewed against the sources above. This page is educational and is not medical advice.