OCD is classified as its own condition, not as an anxiety disorder

Obsessive-compulsive disorder (OCD) used to be grouped with anxiety disorders in the diagnostic manual doctors use. In 2013, that changed. The American Psychiatric Association moved OCD into its own category because the condition has distinct features that set it apart from generalized anxiety or panic disorder. However, anxiety is still a major part of OCD — which is why the confusion exists and why understanding the difference matters for getting the right treatment.

The key distinction is this: anxiety disorders center on worry about something that might happen. OCD centers on unwanted thoughts (called obsessions) that feel intrusive and disturbing, paired with repetitive actions or mental routines (called compulsions) that a person feels driven to perform. A person with OCD often knows the compulsions don't make logical sense, but they feel unable to stop.

Key Takeaways

  • OCD is now classified as a separate condition from anxiety disorders, though anxiety is a symptom within OCD.
  • The core feature of OCD is unwanted, intrusive thoughts followed by compulsive behaviors or mental routines the person feels driven to perform.
  • Anxiety disorders involve worry about future events, while OCD involves distress from thoughts the person cannot control and actions they feel compelled to repeat.
  • Both OCD and anxiety disorders respond to similar treatments, particularly cognitive-behavioral therapy and certain medications, but the approach differs based on the diagnosis.

How OCD differs from anxiety disorders

In an anxiety disorder like generalized anxiety disorder (GAD), a person worries persistently about real-world concerns — money, health, relationships, work. The worry feels connected to something that could actually happen. A person with GAD might worry constantly about their job performance or their child's safety. The anxiety is about the future.

In OCD, the pattern is different. A person has an unwanted thought that feels alien or disturbing — for example, a thought about harming someone they love, or contamination from germs, or that something terrible will happen if they don't perform a specific ritual. The person usually recognizes the thought doesn't reflect what they actually want or believe. But the thought creates intense anxiety or discomfort, and the person then performs a compulsion — a behavior or mental act — to reduce that discomfort. They might wash their hands repeatedly, check that a door is locked many times, arrange objects in a specific order, or perform a mental ritual like counting or praying.

The compulsion provides temporary relief, but the cycle repeats. The obsessive thought returns, anxiety builds, and the compulsion happens again. Over time, the compulsions can take up hours of a person's day and significantly interfere with work, school, or relationships.

Why OCD was reclassified in 2013

For decades, OCD was grouped with anxiety disorders because anxiety is present in both. But researchers and clinicians noticed that OCD has features that don't fit neatly into the anxiety disorder category. The most important difference is the role of compulsions. In anxiety disorders, the person typically tries to avoid the thing that makes them anxious. In OCD, the person is driven to perform specific actions or mental routines, even though these actions often don't logically address the fear.

The American Psychiatric Association created a new category called "Obsessive-Compulsive and Related Disorders" to reflect this distinction. OCD now sits alongside conditions like body dysmorphic disorder (excessive focus on perceived flaws in appearance) and hoarding disorder, which share the pattern of intrusive thoughts and repetitive behaviors.

This reclassification also helped clinicians tailor treatment more effectively. While anxiety disorders and OCD can both respond to cognitive-behavioral therapy and certain medications, the specific techniques differ. For OCD, a therapy called exposure and response prevention (ERP) is the gold standard — it involves gradually facing the feared thought or situation while resisting the urge to perform the compulsion.

Symptoms that look similar but work differently

Both OCD and anxiety disorders can involve physical symptoms like a racing heart, sweating, or difficulty concentrating. Both can cause a person to avoid certain situations. But the reason for avoidance differs. A person with social anxiety might avoid public speaking because they fear judgment. A person with OCD might avoid public speaking because they fear having an intrusive thought during the speech, or because the situation might trigger a compulsion they feel unable to control in public.

Similarly, both conditions can involve checking behaviors. A person with health anxiety might repeatedly check their body for signs of illness. A person with OCD might repeatedly check that they locked the door, not because they genuinely doubt they locked it, but because the compulsion temporarily quiets an intrusive thought or reduces the anxiety the thought created. After checking once, they feel driven to check again.

How doctors tell the difference

A doctor or mental health professional will ask detailed questions about the pattern of thoughts and behaviors. They want to know: Are the thoughts unwanted and intrusive, or are they worries that feel like natural extensions of your concerns? When you perform a behavior or ritual, does it feel driven by a need to reduce anxiety from a specific thought, or are you trying to prevent a feared outcome? Do you recognize the thoughts or compulsions as excessive, or do they feel necessary and reasonable?

The timeline also matters. Anxiety disorders typically develop gradually as worry increases over time. OCD often has a more sudden onset — a person might remember the exact moment an intrusive thought appeared and the compulsion began.

A professional diagnosis requires that the obsessions and compulsions take up a significant amount of time (usually at least an hour per day) or cause marked distress or interfere with work, school, social life, or other important areas of functioning.

Treatment approaches for OCD versus anxiety disorders

Both OCD and anxiety disorders respond well to cognitive-behavioral therapy (CBT), a type of talk therapy that helps people identify and change thought patterns and behaviors. However, the specific technique used in OCD is exposure and response prevention (ERP). In ERP, a therapist helps a person gradually face situations or thoughts that trigger the obsession, while the person practices resisting the urge to perform the compulsion. This teaches the brain that the anxiety will decrease on its own, without the compulsion.

For anxiety disorders, the approach is often different. A therapist might use techniques like worry postponement (setting aside a specific time to worry rather than worrying throughout the day) or behavioral activation (gradually doing activities the person has been avoiding).

Medications can help both conditions. Selective serotonin reuptake inhibitors (SSRIs) — a class of antidepressants — are often prescribed for both OCD and anxiety disorders. However, OCD typically requires higher doses and longer treatment periods than anxiety disorders do.

Can someone have both OCD and an anxiety disorder?

Yes. A person can have OCD and also have generalized anxiety disorder, social anxiety, or another anxiety disorder at the same time. When this happens, a mental health professional will assess both conditions and tailor treatment to address each one. The presence of both conditions might mean a longer course of therapy or a combination of approaches, but it does not change the core treatment strategies.

Having both conditions also means a person might experience anxiety that is not tied to obsessions and compulsions — general worry that exists separately from the OCD cycle. A therapist will help distinguish between these patterns so treatment can address each appropriately.

Frequently Asked Questions

If I have OCD, does that mean I have an anxiety disorder?

OCD is not classified as an anxiety disorder, but anxiety is a symptom within OCD. You have anxiety as part of the condition, but the diagnosis is OCD specifically. It is possible to have both OCD and a separate anxiety disorder, but they are distinct conditions.

Why does it matter whether OCD is called an anxiety disorder or not?

The classification affects how doctors approach treatment. OCD responds best to exposure and response prevention therapy, which is different from the techniques used for anxiety disorders. Knowing the correct diagnosis helps ensure you receive the most effective treatment for your specific pattern of thoughts and behaviors.

Can OCD develop from anxiety, or does anxiety develop from OCD?

OCD and anxiety disorders are separate conditions with different underlying patterns, though they can co-occur. OCD does not develop from anxiety disorder, and anxiety disorder does not develop from OCD. However, someone can experience both at the same time. A mental health professional can help determine which condition or conditions are present.

Is exposure and response prevention used to treat anxiety disorders too?

Exposure-based therapy is used for some anxiety disorders, particularly specific phobias and social anxiety. However, the way it is applied differs. In OCD, the focus is specifically on resisting the compulsion while facing the thought or situation. In anxiety disorders, the focus is often on gradually facing the feared situation to learn it is safe.

Will the same medication work for OCD and anxiety disorders?

SSRIs are used for both conditions, but OCD typically requires higher doses and longer treatment duration. A doctor will adjust the medication based on your specific diagnosis and how you respond. It is important to discuss your diagnosis with your prescriber so they can tailor the dose appropriately.