Skip navigation

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

URL of this page: //medlineplus.gov/ency/article/000929.htm

Obsessive-compulsive disorder

Obsessive-compulsive disorder (OCD) is a mental disorder in which people have unwanted and repeated thoughts, feelings, ideas, sensations (obsessions), and behaviors that drive them to do something over and over (compulsions).

Often the person carries out the behaviors to get rid of the obsessive thoughts. But this only provides short-term relief. Not doing the obsessive rituals can cause great anxiety and distress.

Causes

Health care providers do not know the exact cause of OCD. Factors that may play a role include head injury, infections, and abnormal function in certain areas of the brain. Genes (family history) seems to play a strong role. A history of physical or sexual abuse also appears to increase the risk for OCD.

Parents and teachers often recognize OCD symptoms in children. Most people are diagnosed by age 19 or 20, but some do not show symptoms until age 30.

Symptoms

People with OCD have repeated thoughts, urges, or mental images that cause anxiety. These are called obsessions.

Examples are:

  • Excessive fear of germs
  • Forbidden thoughts related to sex, religion, or harm to others or self
  • Need for order

They also perform repeated behaviors in response to their thoughts or obsessions. Examples include:

  • Checking and rechecking actions (such as turning out the lights and locking the door)
  • Excessive counting
  • Ordering things in a certain way
  • Repeatedly washing the hands to ward off infection
  • Repeating words silently
  • Praying silently over and over

Not everyone who has habits or rituals they like to perform has OCD. But, the person with OCD:

  • Is not able to control their thoughts or behaviors, even when they understand that they are excessive.
  • Spends at least an hour a day on these thoughts or behaviors.
  • Does not get pleasure from performing a behavior or ritual, other than perhaps brief relief of anxiety.
  • Has major problems in daily life due to these thoughts and rituals.

People with OCD may also have a tic disorder, such as:

  • Eye blinking
  • Facial grimacing
  • Shoulder shrugging
  • Head jerking
  • Repeated clearing of the throat, sniffing, or grunting sounds

Exams and Tests

The diagnosis is made based on an interview of the person and family members. A physical exam can rule out physical causes. A mental health assessment can rule out other mental disorders.

Questionnaires can help diagnose OCD and track the progress of treatment.

Treatment

OCD is treated using a combination of medicine and behavioral therapy.

Medicines used include antidepressants, antipsychotics, and mood stabilizers.

Clomipramine has been shown to be effective for many with OCD. 

Talk therapy (cognitive behavioral therapy; CBT) has been shown to be effective for this disorder. During therapy, the person is exposed many times to a situation that triggers the obsessive thoughts and learns to gradually tolerate the anxiety and resist the urge to do the compulsion. Therapy can also be used to reduce stress and anxiety and resolve inner conflicts.

Support Groups

You can ease the stress of having OCD by joining a support group. Sharing with others who have common experiences and problems can help you not feel alone.

Support groups are usually not a good substitute for talk therapy or taking medicine, but can be a helpful addition.

Outlook (Prognosis)

OCD is a long-term (chronic) illness with periods of severe symptoms followed by times of improvement. A completely symptom-free period is unusual. Most people improve with treatment.

Possible Complications

Long-term complications of OCD have to do with the type of obsessions or compulsions. For example, constant handwashing can cause skin breakdown. OCD does not usually progress into another mental problem.

When to Contact a Medical Professional

Contact your provider for an appointment if your symptoms interfere with daily life, work, or relationships.

Alternative Names

Obsessive-compulsive neurosis; OCD

References

American Psychiatric Association. Obsessive-compulsive and related disorders. In: American Psychiatric Association, ed. Diagnostic and Statistical Manual of Mental Disorders. 5th ed. Arlington, VA: American Psychiatric Publishing; 2013:235-264.

Lyness JM. Psychiatric disorders in medical practice. In: Goldman L, Schafer AI, eds. Goldman-Cecil Medicine. 26th ed. Philadelphia, PA: Elsevier; 2020:chap 369.

Stewart SE, Lafleur D, Dougherty DD, Wilhelm S, Keuthen NJ, Jenike MA. Obsessive-compulsive disorder and obsessive-compulsive and related disorders. In: Stern TA, Fava M, Wilens TE, Rosenbaum JF, eds. Massachusetts General Hospital Comprehensive Clinical Psychiatry. 2nd ed. Philadelphia, PA: Elsevier; 2016:chap 33.

Review Date 4/30/2022

Updated by: Fred K. Berger, MD, addiction and forensic psychiatrist, Scripps Memorial Hospital, La Jolla, CA. Also reviewed by David C. Dugdale, MD, Medical Director, Brenda Conaway, Editorial Director, and the A.D.A.M. Editorial team.

Related MedlinePlus Health Topics