Home / Mental health / OCD / Causes of OCD

Mental health

What causes OCD

What we know about why OCD happens: brain circuits, genes, stress, the PANS and PANDAS debate, and why new OCD later in life needs a checkup.

Facts last checked October 2026 · 11 min read

No one knows exactly what causes obsessive-compulsive disorder (OCD). Experts agree there is no single cause. Most likely, several things add up: how certain brain circuits work, the genes a person is born with, and what happens in their life.1,2

Knowing this can lift a heavy weight. OCD is not a sign of weakness or bad character, and it is not something you chose. You also do not need to find the cause to get better. The main treatments, exposure and response prevention (ERP) and medicines, help many people either way.

Key points

  • OCD has no single cause. Brain circuits, genes and life events probably work together.1
  • OCD runs in families. Twin studies suggest genes explain about half of the risk.2 Still, most children of a parent with OCD never develop it.1
  • A loop of brain areas that spots danger and controls habits seems to be overactive in many people with OCD.1,2
  • Stressful events, such as a death in the family or having a baby, sometimes come just before OCD starts.6,7
  • PANS and PANDAS are rare conditions in which OCD starts suddenly in a child, maybe after an infection. Experts still debate them.8,9
  • OCD that starts after about age 50 is unusual. It calls for a careful medical checkup.10,11

Who gets OCD?

In the United States, about 1 in 80 adults (1.2%) has OCD in a given year. About 1 in 43 adults (2.3%) will have it at some point in life. In the national survey behind these numbers, women were more likely than men to have had OCD in the past year.5

OCD can start at any age. It most often begins between late childhood and young adulthood.4 Boys tend to show signs earlier, and nearly a quarter of males have symptoms before age 10. In girls, it more often starts in the teen years.2 To learn what OCD looks like, see Signs of OCD.

It is not your fault, and it is not your parents' fault

Many people with OCD, and many parents, blame themselves. The research does not support that blame.

There is no solid proof that OCD is learned or caused only by a person's surroundings.1 In one large twin study, the home that siblings shared did not make a real difference in who got OCD. Experiences unique to each person had only a small effect.1

Your surroundings do shape what OCD is about. Obsession themes differ across cultures and religions. They also change with the times. Fears about HIV rose in the 1980s, and fears about germs rose again during COVID-19.1 So the world around you can give OCD its topic, even if it is not the root cause.

Brain circuits: an alarm that will not switch off

Scientists think OCD involves a loop of brain areas that talk to each other. It is often called the CSTC loop, short for cortico-striato-thalamo-cortical. That simply means signals travel from the outer brain to deeper parts and back again.2

The main parts of this loop include:1

  • Orbitofrontal cortex: an area just above the eyes that judges whether something is important or dangerous.
  • Anterior cingulate cortex: an area deeper in the front of the brain that helps notice when something seems wrong.
  • Basal ganglia: deep structures that help start and stop habits and movements.
  • Thalamus: a relay station that passes signals between brain areas.

Brain scans have found more activity in these areas in many people with OCD.1 One idea is that the "go" side of this loop runs stronger than the "stop" side. That could keep intrusive thoughts and urges coming.2

Picture a smoke alarm that keeps beeping after the toast is done. The person may know there is no fire. But the alarm feels real, so they check, wash or repeat to quiet it.

Keep in mind that these brain differences are small and do not show up in everyone. Scientists also cannot yet tell whether they cause OCD or come from having it.1 There is no brain scan that can diagnose OCD.

Brain chemicals: more than a "chemical imbalance"

You may have heard that OCD comes from low serotonin, a brain messenger chemical. The story is more complicated.

Medicines that raise serotonin, called SSRIs, can ease OCD symptoms. But there is no clear proof that a serotonin problem alone causes OCD. Experts now see the "chemical imbalance" idea as too simple.1 Some serotonin-based medicines do not help OCD at all, which also points to a bigger picture.2

Other messenger chemicals may play a part too. These include dopamine, which is involved in reward and habits, and glutamate, which helps brain cells signal each other.1,2 Researchers are testing medicines that act on these. For what is available now, see Medicines for OCD. The page on what causes depression explains the chemical imbalance idea in more detail.

Genes: OCD runs in families, but it is not destiny

OCD often runs in families. If a parent has OCD, about 10% to 20% of their children develop it. That means about 80% to 90% do not.1

Twin studies help separate genes from family life. They estimate that genes account for about half (about 48%) of the risk of OCD. When researchers also count conditions during pregnancy, such as the mother's stress or an infection, the share from genes drops to about 35%.2

In 2025, the largest gene study of OCD to date was published. It compared about 53,660 people with OCD to more than 2 million people without it.3 Here is what it found:

  • 30 regions of our DNA were linked to OCD.
  • Thousands of small gene differences each add a tiny amount of risk. No single "OCD gene" exists.
  • The genetic risk for OCD overlaps with risk for anxiety, depression, the eating disorder anorexia nervosa, and Tourette syndrome (a condition with tics).
  • The risk genes are active in brain cells in the outer brain, in a memory area called the hippocampus, and in cells of the striatum, part of the basal ganglia. That fits the brain-circuit picture above.

There is no gene test that can tell you whether you or your child will get OCD.2,3 Genes raise or lower the odds. They do not decide what will happen.

If OCD runs in your family, you cannot change your genes. You can learn the early signs, keep reassurance and rituals from growing at home, and get help early. See Helping a family member with OCD.

Stress and life events: a trigger, not the whole story

Some people can name the moment their OCD began. It might have been after a move, an illness, a loss or a new baby.

OCD can start after big life events such as childbirth or the death of a loved one. It may also be more common in people who were bullied, abused or neglected.7 New cases of OCD are more common during pregnancy and after birth than in women who are not pregnant.2 If you are a new parent troubled by scary, unwanted thoughts, tell your doctor. Help works. See types of depression for more on mood changes around birth.

A 2024 research review looked at OCD that starts after a stressful event. It found this pattern was more common in women. It was also tied to starting OCD at an older age and to having depression or other mood problems too.6 The review was small, with only five studies, so the authors urged caution.6

Experts think stress works more like a spark than the fuel. It may bring out OCD in a person whose brain and genes already make them prone to it.1 Personality may matter too. People who are neat and orderly with high standards, generally anxious, or who feel a strong sense of responsibility may be somewhat more likely to develop OCD.7

To learn how stress affects the brain and body, see What stress does to the body. For a similar look at anxiety, see What causes anxiety.

PANS and PANDAS: sudden OCD in children

In a few children, OCD seems to appear almost overnight. Doctors have names for this.8

  • PANS (pediatric acute-onset neuropsychiatric syndrome) is a sudden, severe start of OCD or of extreme food restriction in a child. It comes with at least two other new problems. These can include anxiety, mood swings, irritability, losing skills, trouble at school, sleep or bladder problems, or odd movements.8
  • PANDAS (pediatric autoimmune neuropsychiatric disorders associated with strep) is a type of PANS. It is linked to a strep infection, the germ behind strep throat. It involves OCD, tics or both, starting between age 3 and puberty. Symptoms come on suddenly and go up and down over time.8

The idea is that the body's defense system, while fighting an infection, may mistakenly affect the brain.2 But researchers have not found the exact antibody behind PANDAS, and no lab test can confirm either condition.8 Both are thought to be rare.8

These conditions are still debated. In December 2024, the American Academy of Pediatrics (AAP) issued guidance. It said the symptoms are real and serious, but evidence about the cause and treatment is thin.9 Key points:

  • Most OCD, tics and anxiety in children are regular mental health conditions, not PANS.9
  • Antibiotics are advised only when a child has symptoms and a positive strep test. The AAP does not advise long-term antibiotics.9
  • Talk therapy such as cognitive behavioral therapy is a first choice for many symptoms.9
  • NIMH notes that IVIG (an infusion of antibodies from donated blood) may help some children. Because of its risks, it is considered only for severe cases.8

PANS and PANDAS are childhood conditions. Starting in adulthood is unlikely but possible, and adult cases have not been well studied.8

If you are a grandparent or caregiver and a child's behavior changes suddenly and severely, call the child's doctor soon. Write down when it started, any recent sore throat or illness, and what changed.

When OCD starts later in life

New OCD in older adults is uncommon. Almost all OCD begins before age 35. In one group of 1,000 people with OCD, only 5 had it start after age 50.11

When OCD first appears late in life, it is often linked to a brain condition. Reports have tied late-onset OCD to frontotemporal dementia, Huntington's disease, a movement disorder called progressive supranuclear palsy, and small areas of brain damage.11 In two reported cases, obsessions began after age 60 and the person was later diagnosed with Lewy body dementia.11

Damage to the brain circuits described above can also bring OCD back. One report described three older adults whose OCD had faded decades earlier. It returned after small strokes, a bleed in the brain, or a lack of oxygen during heart surgery.10 See vascular dementia for more on strokes and the brain.

These reports involve only a few people each, so they do not prove a cause.10,11 Still, the message for families is clear. If obsessions or rituals start for the first time after about age 50, or old OCD returns along with memory or personality changes, ask for a full medical and brain checkup. This is even more important if the usual treatments are not working.11 For repeated saving and clutter, see Hoarding disorder.

Common questions

Did my parenting cause my child's OCD?

No. There is no solid proof that OCD is caused by how a child was raised.1 Parents can, without meaning to, make OCD stronger by giving constant reassurance or joining in rituals. That can be changed, and Helping a family member with OCD shows how.

If I have OCD, will my children get it?

Most will not. About 10% to 20% of children with a parent who has OCD develop it themselves.1 Knowing the signs means you can get help early if it does happen.

Can a strep infection cause OCD in adults?

This has not been well studied. PANS and PANDAS are mainly childhood conditions, and adult cases are thought to be unlikely.8 Adults with new OCD should see a doctor to look for other causes.

When to get help

You do not need to know the cause of OCD to start treatment. Reach out for help if:

  • Unwanted thoughts or rituals take up a lot of your time, upset you, or get in the way of work, family or sleep.
  • A child's behavior changes suddenly and severely, with new fears, rituals, tics or refusal to eat. Call their doctor soon.8,9
  • OCD starts for the first time after about age 50, or comes with memory, movement or personality changes. Ask for a full medical checkup.11
  • You also feel deeply hopeless or down. Depression can come along with OCD.6

A good first step is your primary care doctor or a therapist trained in ERP. See Exposure and response prevention and How to find a therapist. You can also try ideas from Self-help for OCD while you wait. For the big picture, return to the OCD overview.

If you are having thoughts of suicide, call or text 988 to reach the 988 Suicide and Crisis Lifeline. If someone is in immediate danger, call 911.4 More options are on our Get help now page.

Sources

  1. International OCD Foundation. What causes OCD? IOCDF, 2025. iocdf.org
  2. Brock H, Rizvi A, Hany M. Obsessive-compulsive disorder. StatPearls, NCBI Bookshelf, 2024. NCBI Bookshelf
  3. Strom NI, et al. Genome-wide analyses identify 30 loci associated with obsessive-compulsive disorder. Nat Genet, 2025. Nature Genetics
  4. National Institute of Mental Health. Obsessive-compulsive disorder. NIMH, 2024. NIMH
  5. National Institute of Mental Health. Obsessive-compulsive disorder (OCD) statistics. NIMH. NIMH
  6. Hühne V, et al. Towards the correlates of stressful life events as precipitants of obsessive-compulsive disorder: a systematic review and metanalysis. CNS Spectr, 2024. Cambridge
  7. National Health Service (UK). Obsessive compulsive disorder (OCD): overview. NHS, 2023. NHS
  8. National Institute of Mental Health. PANDAS and PANS. NIMH, 2025. NIMH
  9. American Academy of Pediatrics. American Academy of Pediatrics offers guidance on pediatric acute-onset neuropsychiatric syndrome (PANS). AAP, 2024. AAP
  10. Salinas C, Dávila G, Berthier ML, Lara JP. Late-life reactivation of obsessive-compulsive disorder associated with lesions in prefrontal-subcortical circuits. J Neuropsychiatry Clin Neurosci, 2009. Psychiatry Online
  11. Frileux S, Millet B, Fossati P. Late-onset OCD as a potential harbinger of dementia with Lewy bodies: a report of two cases. Front Psychiatry, 2020. Frontiers

Education only. This page is general information written from the sources listed. It is not medical, legal or financial advice and does not replace a doctor, therapist or lawyer who knows your situation. How we write and check pages.