Obsessive-compulsive disorder (OCD) features a pattern of unwanted thoughts and fears known as obsessions. These obsessions lead you to do repetitive behaviors, also called compulsions. These obsessions and compulsions get in the way of daily activities and cause a lot of distress.

Ultimately, you feel driven to do compulsive acts to ease your stress. Even if you try to ignore or get rid of bothersome thoughts or urges, they keep coming back. This leads you to act based on ritual. This is the vicious cycle of OCD.

OCD often centers around certain themes, such as being overly fearful of getting contaminated by germs. To ease contamination fears, you may wash your hands over and over again until they're sore and chapped.

If you have OCD, you may be ashamed, embarrassed and frustrated about the condition. But treatment can be effective.


Obsessive-compulsive disorder usually includes both obsessions and compulsions. But it's also possible to have only obsession symptoms or only compulsion symptoms. You may or may not know that your obsessions and compulsions are beyond reason. But they take up a great deal of time, reduce your quality of life, and get in the way of your daily routines and responsibilities.

Obsession symptoms

OCD obsessions are lasting and unwanted thoughts that keeping coming back or urges or images that are intrusive and cause distress or anxiety. You might try to ignore them or get rid of them by acting based on ritual. These obsessions usually intrude when you're trying to think of or do other things.

Obsessions often have themes, such as:

  • Fear of contamination or dirt.
  • Doubting and having a hard time dealing with uncertainty.
  • Needing things to be orderly and balanced.
  • Aggressive or horrific thoughts about losing control and harming yourself or others.
  • Unwanted thoughts, including aggression, or sexual or religious subjects.

Examples of obsession symptoms include:

  • Fear of being contaminated by touching objects others have touched.
  • Doubts that you've locked the door or turned off the stove.
  • Intense stress when objects aren't orderly or facing a certain way.
  • Images of driving your car into a crowd of people.
  • Thoughts about shouting obscenities or not acting the right way in public.
  • Unpleasant sexual images.
  • Staying away from situations that can cause obsessions, such as shaking hands.

Compulsion symptoms

OCD compulsions are repetitive behaviors that you feel driven to do. These repetitive behaviors or mental acts are meant to reduce anxiety related to your obsessions or prevent something bad from happening. But taking part in the compulsions brings no pleasure and may offer only limited relief from anxiety.

You may make up rules or rituals to follow that help control your anxiety when you're having obsessive thoughts. These compulsions are beyond reason and often don't relate to the issue they're intended to fix.

As with obsessions, compulsions usually have themes, such as:

  • Washing and cleaning.
  • Checking.
  • Counting.
  • Ordering.
  • Following a strict routine.
  • Demanding reassurance.

Examples of compulsion symptoms include:

  • Hand-washing until your skin becomes raw.
  • Checking doors over and over again to make sure they're locked.
  • Checking the stove over and over again to make sure it's off.
  • Counting in certain patterns.
  • Silently repeating a prayer, word or phrase.
  • Trying to replace a bad thought with a good thought.
  • Arranging your canned goods to face the same way.

Severity varies

OCD usually begins in the teen or young adult years, but it can start in childhood. Symptoms usually begin over time and tend to vary in how serious they are throughout life. The types of obsessions and compulsions you have also can change over time. Symptoms generally get worse when you are under greater stress, including times of transition and change. OCD, usually thought to be a lifelong disorder, can have mild to moderate symptoms or be so severe and time-consuming that it becomes disabling.

When to see a doctor

There's a difference between being a perfectionist — someone who needs flawless results or performance — and having OCD. OCD thoughts aren't simply excessive worries about real issues in your life or liking to have things clean or arranged in a specific way.

If your obsessions and compulsions affect your quality of life, see your doctor or mental health professional.

From Mayo Clinic to your inbox

Sign up for free and stay up to date on research advancements, health tips, current health topics, and expertise on managing health. Click here for an email preview.

To provide you with the most relevant and helpful information, and understand which information is beneficial, we may combine your email and website usage information with other information we have about you. If you are a Mayo Clinic patient, this could include protected health information. If we combine this information with your protected health information, we will treat all of that information as protected health information and will only use or disclose that information as set forth in our notice of privacy practices. You may opt-out of email communications at any time by clicking on the unsubscribe link in the e-mail.


The cause of obsessive-compulsive disorder isn't fully understood. Main theories include:

  • Biology. OCD may be due to changes in your body's natural chemistry or brain functions.
  • Genetics. OCD may have a genetic component, but specific genes have yet to be found.
  • Learning. Obsessive fears and compulsive behaviors can be learned from watching family members or learning them over time.

Risk factors

Factors that may raise the risk of causing obsessive-compulsive disorder include:

  • Family history. Having parents or other family members with the disorder can raise your risk of getting OCD.
  • Stressful life events. If you've gone through traumatic or stressful events, your risk may increase. This reaction may cause the intrusive thoughts, rituals and emotional distress seen in OCD.
  • Other mental health disorders. OCD may be related to other mental health disorders, such as anxiety disorders, depression, substance abuse or tic disorders.


Issues due to obsessive-compulsive disorder include:

  • Excessive time spent taking part in ritualistic behaviors.
  • Health issues, such as contact dermatitis from frequent hand-washing.
  • Having a hard time going to work or school or taking part in social activities.
  • Troubled relationships.
  • Poor quality of life.
  • Thoughts about suicide and behavior related to suicide.


There's no sure way to prevent obsessive-compulsive disorder. However, getting treated as soon as possible may help keep OCD from getting worse and disrupting activities and your daily routine.

Obsessive-compulsive disorder (OCD) care at Mayo Clinic

Dec. 21, 2023
  1. Kara PJ, et al. Deep brain stimulation for obsessive compulsive disorder: Evolution of surgical stimulation target parallels changing model of dysfunctional brain circuits. Frontiers in Neuroscience. 2019; doi:10.3389/fnins.2018.00998.
  2. Allscripts EPSi. Mayo Clinic. 2019.
  3. Obsessive-compulsive and related disorders. In: Diagnostic and Statistical Manual of Mental Disorders DSM-5-TR. 5th ed. American Psychiatric Association; 2022. https://dsm.psychiatryonline.org. Accessed May 17, 2023.
  4. Blair Simpson H. Pharmacotherapy for obsessive-compulsive disorder in adults. https://www.uptodate.com/search. Accessed May 17, 2023.
  5. Blair Simpson H. Obsessive-compulsive disorder in adults: Epidemiology, pathogenesis, clinical manifestations, course, and diagnosis. https://www.uptodate.com/search. Accessed May 17, 2023.
  6. Abromowitz J. Psychotherapy for obsessive-compulsive disorder in adults. https://www.uptodate.com/search. Accessed May 17, 2023.
  7. Obsessive-compulsive disorder. National Alliance on Mental Illness. https://www.nami.org/Learn-More/Mental-Health-Conditions/Obsessive-compulsive-Disorder/Overview. Accessed May 17, 2023.
  8. Obsessive-compulsive disorder in children and adolescents. American Academy of Child & Adolescent Psychiatry. https://www.aacap.org/AACAP/Families_and_Youth/Facts_for_Families/FFF-Guide/Obsessive-Compulsive-Disorder-In-Children-And-Adolescents-060.aspx. Accessed May 17, 2023.
  9. Obsessive-compulsive disorder: When unwanted thoughts or repetitive behaviors take over. National Institute of Mental Health. https://www.nimh.nih.gov/health/topics/obsessive-compulsive-disorder-ocd. Accessed May 17, 2023.
  10. Mental health medications. National Institute of Mental Health. https://www.nimh.nih.gov/health/topics/mental-health-medications. Accessed May 17, 2023.
  11. AskMayoExpert. Obsessive-compulsive disorder (OCD). Mayo Clinic; 2023.
  12. Depression. National Institute of Mental Health. https://www.nimh.nih.gov/health/publications/depression. Accessed May 17, 2023.
  13. Obsessive-compulsive disorder (OCD). Merck Manual Professional Version. https://www.merckmanuals.com/professional/psychiatric-disorders/obsessive-compulsive-and-related-disorders/obsessive-compulsive-disorder-ocd. Accessed May 17, 2023.
  14. Woody EZ, et al. Obsessive compulsive disorder (OCD): Current treatments and a framework for neurotherapeutic research. Advances in Pharmacology. 2019; doi:10.1016/bs.apha.2019.04.003.
  15. Cervin M. Obsessive-compulsive disorder: Diagnosis, clinical features, nosology and epidemiology. Psychiatric Clinics of North America. https://www.clinicalkey.com. Accessed May 17, 2023.
  16. Sawchuk CN (expert opinion). Mayo Clinic. June 23, 2023.