
Obsessive-compulsive disorder (OCD) is a mental health condition involving unwanted, intrusive thoughts (obsessions) and repetitive behaviors or mental acts (compulsions) that a person feels driven to perform. Understanding what contributes to OCD can help you make sense of your own experience or a loved one's, and it can make it easier to seek effective treatment.
Key Takeaways
OCD is common and often runs in families: About 1.2% of American adults have OCD in a given year, and roughly 40% to 50% of the risk for OCD is explained by genetics.
There's no single OCD gene: The largest genetic study to date identified 30 regions of DNA linked to OCD. Moreover, thousands of small genetic differences likely work together with environmental factors to shape risk.
Family history isn't destiny: Having a relative with OCD raises your risk, but many people with a family history never develop it, and effective treatments like exposure and response prevention therapy and SSRIs are available.
What Is OCD?
OCD is more than being neat, organized, or particular about how things are done. It's a condition in which obsessions and compulsions consume significant time and cause real distress or difficulty in daily life.
Obsessions are unwanted thoughts, images, or urges that feel intrusive and upsetting, such as fears about contamination, harm, or things not being "just right." Compulsions are behaviors or mental rituals, like washing, checking, counting, or seeking reassurance, that people perform to ease the anxiety those obsessions cause. Because OCD and anxiety overlap in many ways, it can help to understand the differences between OCD and anxiety.
How Common Is OCD?
OCD is more common than many people realize. National survey data show that about 1.2% of American adults had OCD in the past year, and about 2.3% will have it at some point in their lives.
The condition can be serious. Among adults with OCD in the past year, about half experienced serious impairment in their daily lives. Past-year rates were also higher in women (1.8%) than in men (0.5%). OCD can begin in childhood or adulthood, and many people live with symptoms for years before getting a diagnosis.
Is OCD Genetic?
Yes, OCD has a genetic component, though genes don't fully determine whether someone develops it. Several types of research help explain how inherited factors contribute.
What Twin and Family Studies Show
Twin studies compare identical twins, who share nearly all of their DNA, with fraternal twins, who share about half. If identical twins are more likely to have a condition, it may point to a genetic influence. Moreover, there can be an association between OCD and related conditions, such as tic disorders, hoarding, and hair-pulling disorder.
Large population studies from Sweden have strengthened these findings. A study of clinically diagnosed OCD in twins describes the condition as moderately heritable, at around 40% to 50%.
What Gene Studies Have Found
Researchers have also searched the DNA of large groups of people to find specific genetic differences linked to OCD. In 2025, the largest genome-wide study of OCD to date compared more than 53,000 people with OCD to over 2 million people without it and identified 30 regions of DNA associated with the condition.
The study also found that OCD shares genetic risk with other conditions, including anxiety, depression, anorexia nervosa, and Tourette syndrome. This overlap may help explain why OCD often occurs alongside other mental health conditions.
Why There's No Single "OCD Gene"
OCD is what scientists call a polygenic condition, meaning many genes each contribute a very small amount of risk. It is estimated that roughly 11,500 genetic variants explain most of OCD's genetic heritability. Because each variant has such a small effect, no single gene causes OCD, and there's currently no genetic test that can diagnose OCD or predict who will develop it.
Other Causes of OCD
OCD may develop through a combination of biological, environmental, and psychological factors that interact with inherited risk.
Brain Circuits and Chemistry
Brain imaging research points to differences in a network called the cortico-striato-thalamo-cortical (CSTC) loop, which connects areas involved in decision-making, habits, and error detection. Brain chemicals such as serotonin, dopamine, and glutamate appear to play a role within these circuits. This is one reason medications that affect serotonin may help many people with OCD.
Environmental Factors
Life experiences may influence whether genetic risk turns into symptoms. Researchers have identified factors such as adverse events around birth, psychological trauma, and brain injury that may trigger OCD in people who are already vulnerable. Stressful life events can also make existing symptoms worse.
Infections in Children
In a small subset of children, OCD symptoms appear suddenly after a strep infection. This is known as pediatric autoimmune neuropsychiatric disorders associated with streptococcal infections, or PANDAS. Researchers first described a group of children whose OCD or tic symptoms began after strep infections in the late 1990s.
Learned Patterns and Beliefs
Psychological models suggest that the way people respond to intrusive thoughts can keep OCD going. For example, learning-based and cognitive models highlight how avoiding fears or performing rituals can bring short-term relief while reinforcing the cycle over time.
Risk Factors for OCD
Several factors may increase the likelihood of developing OCD, although having one or more doesn't mean you'll develop it. Common risk factors include:
Family history: Having a parent, sibling, or child with OCD or a related condition.
Other mental health conditions: Anxiety, depression, and tic disorders often occur alongside OCD.
Stressful or traumatic experiences: Major life stress or trauma may trigger or worsen symptoms.
Childhood infections: In rare cases, strep infections are linked to sudden-onset symptoms in children.
Sex and life stage: OCD is more common in women in adulthood, and some people may notice that symptoms first appear during pregnancy or after giving birth.
What It Means If OCD Runs in Your Family
Learning that OCD runs in your family can bring up worry, especially if you're a parent. Here's what this information can and can't tell you:
It raises risk but doesn't guarantee OCD: Many people with a family history never develop the condition.
Symptoms can look different between relatives: One person may have contamination fears while another has checking rituals or intrusive thoughts.
Early support helps: Noticing symptoms early and getting an evaluation can lead to treatment sooner.
Genetic testing isn't useful yet: No test can predict OCD, so a family history is best shared with a clinician as part of a full evaluation.
If you're unsure whether your own thoughts and behaviors fit the pattern of OCD, a self-assessment for OCD can be a helpful first step before talking with a professional.
How OCD Is Treated
Whether OCD is linked to genetics or not, it responds well to treatment for many people. The two main evidence-based approaches are therapy and medication, which are often used together.
Exposure and Response Prevention Therapy
Exposure and response prevention (ERP) is a type of cognitive behavioral therapy designed specifically for OCD. It involves gradually facing feared thoughts or situations while resisting the urge to perform compulsions. Over time, this can weaken the link between obsessions and anxiety. ERP is considered one of the most effective treatments for OCD.
Medication
Selective serotonin reuptake inhibitors (SSRIs) are the most common medications for OCD, and they're often prescribed at higher doses than those used for depression. SSRIs are widely used for anxiety-related conditions, and several are FDA-approved for OCD, including fluoxetine. You can see how one option works in Prozac for OCD, and another is reviewed in Lexapro for OCD.
When to Seek Medical Attention
It's worth talking with a mental health professional if obsessions or compulsions take up more than an hour a day, cause significant distress, or interfere with work, school, or relationships. Reach out sooner if:
Symptoms appear suddenly in a child, especially after an illness
You're avoiding places, people, or activities because of your fears
OCD symptoms come with depression, hopelessness, or changes in eating or sleep
You have thoughts of harming yourself. Call or text 988 to reach the 988 Suicide & Crisis Lifeline any time.
How Blossom Health Can Help
Whether OCD runs in your family or seems to have developed through other reasons, you do not have to manage it alone. Blossom Health connects you with board-certified psychiatric providers for virtual care, and every provider can evaluate your symptoms, make a diagnosis, and prescribe medication when appropriate as part of a personalized treatment plan.
Blossom works with many insurance plans, and many plans cover OCD treatment, so check your coverage and get started with Blossom Health.
Medical Disclaimer
This article is for informational purposes only and is not a substitute for professional medical advice. Always consult a qualified healthcare provider before starting, changing, or stopping any medication. If you are in crisis or thinking about harming yourself, call or text 988 or call 911.
Sources
National Institute of Mental Health. (Accessed October 6, 2026). Obsessive-compulsive disorder (OCD) statistics. https://www.nimh.nih.gov/health/statistics/obsessive-compulsive-disorder-ocd
StatPearls. (Accessed October 6, 2026). Obsessive-compulsive disorder. NCBI Bookshelf. https://www.ncbi.nlm.nih.gov/books/NBK553162/
Browne HA et al. (2014). Genetics of obsessive-compulsive disorder and related disorders. Psychiatr Clin North Am. https://pmc.ncbi.nlm.nih.gov/articles/PMC4143777/
Mataix-Cols D et al. (2024). Heritability of clinically diagnosed obsessive-compulsive disorder among twins. JAMA Psychiatry. https://pmc.ncbi.nlm.nih.gov/articles/PMC10993148/
Strom NI, Gerring ZF, Galimberti M, et al. (2025). Genome-wide analyses identify 30 loci associated with obsessive-compulsive disorder. Nature Genetics. https://pubmed.ncbi.nlm.nih.gov/40360802/
Pauls DL et al. (2014). Obsessive-compulsive disorder: An integrative genetic and neurobiological perspective. Nature Reviews Neuroscience. https://pubmed.ncbi.nlm.nih.gov/24840803/
Jalal B, Chamberlain SR, Sahakian BJ. (2023). Obsessive-compulsive disorder: Etiology, neuropathology, and cognitive dysfunction. Brain and Behavior. https://pmc.ncbi.nlm.nih.gov/articles/PMC10275553/
StatPearls. Pediatric autoimmune neuropsychiatric disorders associated with streptococcal infections (PANDAS). Streptococcus pyogenes: Basic Biology to Clinical Manifestations. NCBI Bookshelf. https://www.ncbi.nlm.nih.gov/books/NBK333433/
National Institute of Mental Health (NIMH). (Accessed October 6, 2026). PANDAS: Questions and answers. https://www.nimh.nih.gov/health/publications/pandas
National Institute of Mental Health (NIMH). (Accessed October 6, 2026). Mental health medications. https://www.nimh.nih.gov/health/topics/mental-health-medications































































































































































































































































































































































