What Causes OCD in Children? Genetics, Brain & Infections

Childhood OCD doesn’t have a single cause. It develops from a combination of genetic vulnerability, brain wiring differences, and sometimes environmental triggers like infections or stress. About 1% to 4% of children and adolescents worldwide have OCD, and roughly 8 in 10 people who develop OCD show their first symptoms before age 18. Understanding what drives the condition can help parents recognize it early and pursue the right kind of help.

Genetics Play a Larger Role in Children Than Adults

OCD runs in families, but the genetic influence is especially strong when symptoms start in childhood. Heritability estimates for childhood-onset OCD reach about 65%, compared to 27% to 45% for cases that begin in adulthood. That means genetics account for roughly two-thirds of the risk when a child develops OCD early. If a parent, sibling, or close relative has OCD or a tic disorder, a child’s risk goes up meaningfully.

No single “OCD gene” has been identified. Instead, many genes each contribute a small amount of risk. Some of these genes are involved in how the brain produces and uses chemical messengers, particularly serotonin and glutamate. Researchers have also found genetic overlap between OCD and autism spectrum disorder, suggesting some shared biological roots.

Brain Circuit Differences

In children with OCD, a specific loop of brain regions doesn’t function the way it typically should. This loop connects the front of the brain (responsible for decision-making and error detection) to deeper structures that help filter thoughts and control habits, and then to a relay station that sends signals back to the surface. In a healthy brain, this circuit helps you notice something important, respond to it, and then move on. In OCD, the circuit gets stuck in a hyperactive loop: the brain keeps sending “something is wrong” signals even after you’ve already responded.

Brain imaging studies show that people with OCD have stronger-than-normal connections between certain parts of this deep filtering system. Think of it like a feedback loop with the volume turned up too high. The brain detects a potential threat (germs on your hands, the door being unlocked), sends an alarm, and then fails to turn that alarm off after you’ve washed your hands or checked the lock. This isn’t a problem with willpower or parenting. It’s a measurable difference in how the brain’s wiring operates.

Chemical Messengers in the Brain

For decades, serotonin was considered the primary chemical involved in OCD, largely because medications that increase serotonin levels often reduce symptoms. But many children don’t fully respond to those medications, which pushed researchers to look further. Glutamate, the brain’s main excitatory chemical messenger, has emerged as another key player. Multiple studies have found elevated glutamate levels in the spinal fluid of people with OCD, and several glutamate-related genes show associations with the disorder.

The picture is still incomplete. One large study of mostly treatment-naive children with OCD did not confirm higher glutamate levels in the specific brain regions tested compared to children without OCD. What’s clear is that OCD involves disruption in more than one chemical system, and no single neurotransmitter tells the whole story.

Infections That Trigger Sudden Onset

Some children develop OCD symptoms practically overnight, going from no noticeable issues to severe obsessions and compulsions within days. When this happens after a strep throat infection, it’s called PANDAS (Pediatric Autoimmune Neuropsychiatric Disorders Associated with Streptococcal Infections). A broader category called PANS (Pediatric Acute-onset Neuropsychiatric Syndrome) covers cases triggered by other infections, immune system disruptions, or environmental factors.

In these cases, the immune system fights off the infection but mistakenly attacks part of the brain in the process. The child may also show sudden changes in handwriting, new anxiety about separating from parents, difficulty with math or memory, or unusual movements alongside the OCD symptoms. PANDAS and PANS are distinct from typical OCD because they start abruptly and may improve with treatment that targets the underlying immune response. If your child’s OCD symptoms appeared seemingly out of nowhere, especially after an illness, this is worth discussing with their doctor.

Prenatal and Early Life Risk Factors

Conditions during pregnancy and birth can nudge a child’s risk higher. Research has linked several maternal factors to increased OCD risk in offspring: smoking during pregnancy, a maternal history of autoimmune disease, preterm birth (before 37 weeks), and low birth weight. Parental age and parental psychiatric history also show associations. None of these factors alone cause OCD, but they may interact with genetic predisposition to raise the likelihood that symptoms eventually develop.

How Children Think About Their Thoughts

Biology sets the stage, but certain thinking patterns can amplify OCD symptoms once they begin. Two patterns stand out in children. The first is inflated responsibility: the belief that they are personally responsible for preventing bad things from happening. A child who believes that forgetting to check the stove could cause a house fire, and that it would be their fault, experiences far more distress than a child who can let that thought pass. Studies have found that higher levels of inflated responsibility are associated with more severe OCD symptoms in kids.

The second pattern is called thought-action fusion, the belief that thinking something is almost the same as doing it. A child might think “what if I hurt my little sister” and interpret having that thought as evidence that they’re dangerous or that the event is now more likely to happen. This misinterpretation fuels the cycle of obsessing and performing rituals to “undo” the thought. Both of these thinking patterns are directly targeted in cognitive behavioral therapy, which is the most effective non-medication treatment for childhood OCD.

When Symptoms Typically Appear

The average age of OCD onset in children is around 10 years old, with a range from about 6 to 14. However, some children develop full OCD as young as age 4 or 5. In one study of very early-onset cases (before age 8), the average age symptoms started was close to 5, though families typically didn’t seek help until the child was 6 or 7.

Younger children are more likely to show compulsions without being able to explain the obsessive thought behind them. They may have unusual rituals like blinking or breathing patterns, and they’re more likely to have aggressive obsessions or hoarding behaviors. Boys outnumber girls in childhood-onset OCD, though this gap narrows when the disorder starts later in adolescence.

Conditions That Often Appear Alongside OCD

Childhood OCD rarely shows up alone. In one study, nearly 40% of children with OCD also had ADHD. That combination tends to be more challenging: children with both conditions are more likely to be male, have longer symptom duration before treatment, and respond less well to first-line therapies. They also have higher rates of conduct problems, tic disorders, and learning disabilities like dyslexia.

Other common co-occurring conditions include generalized anxiety disorder, specific phobias, separation anxiety, and tic disorders. Younger age of onset specifically predicts higher rates of ADHD and non-OCD anxiety disorders. Depression is common in older adolescents with OCD but is actually less frequent in very young children with the condition, possibly because they haven’t yet experienced the years of functional impairment that contribute to low mood.