OCD and Childhood Trauma: What Your OCD May Be Guarding
Can Childhood Trauma Cause OCD? What the Research Really Says About the Link, and How IFS Parts Work Can Help (Safely)
Your OCD may not be random noise. For some people, it's a guard standing outside a door they've never wanted to open.
OCD and childhood trauma are linked, but not in the simple way the internet often suggests. A meta-analysis of 24 studies and 4,557 people found that past trauma was associated with more severe OCD-spectrum symptoms (Miller & Brock, 2017). Yet the same field has found no environmental factor, trauma included, that has been convincingly shown to cause OCD (Brander et al., 2016). Trauma doesn't explain every case of OCD. But when it's part of your story, it can change what your OCD is protecting. As the author of The IFS Workbook for OCD, I've heard from many readers asking the same question: "Did my childhood do this to me?" Here's what the research actually says, where it stops, and how to work with the parts of you that are still on guard, gently and at your own pace.
What Does the Link Between OCD and Childhood Trauma Feel Like?
You're folding laundry on a quiet evening. Someone in the next room raises their voice, not even in anger, just loud.
Your shoulders lift. Your hands go still.
And then the urge arrives: Check the stove. Check it again. Count the plates. Put the knives back in the right order.
Nothing in the room is dangerous. But your body has decided it isn't safe, and OCD has handed you a job to do.
If that's familiar, you might have wondered whether your OCD is really about the stove at all. It's a fair question. Let's look at what science can and can't answer.
Is There a Link Between OCD and Childhood Trauma?
Yes. The association shows up again and again.
- Across 24 studies (4,557 people), past trauma was linked to more severe obsessive-compulsive spectrum symptoms, with an overall correlation of r = 0.20. Interpersonal trauma, meaning violence, emotional abuse, sexual abuse and neglect, each showed a link (r = 0.19 to 0.24). Interestingly, trauma was tied to more severe compulsions, but not obsessions (Miller & Brock, 2017).
- In 10 studies of 1,611 people with OCD, childhood maltreatment was linked to more severe OCD symptoms (r = 0.10) and to more depressive symptoms (r = 0.15). Childhood emotional abuse and sexual abuse stood out (Ou et al., 2021).
- A 2021 systematic review of 24 studies found support for a link between childhood trauma and OCD severity in clinical and community samples, and concluded that a range of trauma types, rather than one single type, was involved (Destrée et al., 2021).
- In 265 adults diagnosed with OCD, 54% reported at least one traumatic life event. Having one was linked to more severe OCD, even after accounting for age, age of onset, other diagnoses and depression (Cromer et al., 2007).
So the link is real. Now for the part most articles skip.
Can Trauma Cause OCD? Association vs. Cause
Here's the honest answer: we don't know that trauma causes OCD. What we know is that the two often travel together.
Look at the size of those numbers. A correlation of 0.20 means trauma accounts for roughly 4% of the differences in symptom severity between people. Meaningful, but a long way from "trauma causes OCD."
And not every study finds even that:
- In 382 people with OCD in the Netherlands, adverse childhood experiences were not related to OCD severity or how long it lasted. They were related to having other conditions alongside OCD, like depression, substance use and eating disorders (Visser et al., 2014).
- In 938 college students, there was a small link between childhood trauma and OC symptoms, but it was accounted for by co-occurring anxiety (Mathews et al., 2008).
- A systematic review of 128 studies on environmental risk factors concluded that, so far, no environmental risk factor has been convincingly associated with OCD, partly because most studies were of limited quality (Brander et al., 2016).
"Trauma can shape what OCD feels like and what it guards. That's different from saying trauma made you have OCD."
Why does this matter? Because two harmful stories sit at opposite ends:
- "My OCD has nothing to do with my history." For some people, that's simply not true.
- "My OCD proves something terrible happened to me." That isn't true either. In the Cromer study above, nearly half of the people with OCD reported no traumatic event at all.
Both stories can trap you. The research supports something in between.
Is OCD Caused by Trauma or Genetics?
Neither one alone.
A Swedish study of 24,768 people diagnosed with OCD and their relatives found that OCD runs in families mostly for genetic reasons. Twin analyses put the genetic contribution at about 47%, with no significant effect of the environment siblings share. But the researchers also found that non-shared environmental factors, the experiences unique to each person, are at least as important (Mataix-Cols et al., 2013).
In plain language: some people are more vulnerable to OCD, and life experiences may help decide whether and how that vulnerability shows up. Trauma may be one of them.
None of this is your fault. You didn't choose your genes, and you didn't choose your childhood.
Can Childhood Trauma Cause OCD in Adulthood?
Many people notice that their OCD started, or got much louder, years after the hard things happened.
One study of 957 people with OCD compared three groups: OCD that began after PTSD (106 people), OCD that began before PTSD (41 people) and OCD with no history of PTSD (810 people). The "post-traumatic OCD" group tended to have a later age of OCD onset and a different pattern of other difficulties (Fontenelle et al., 2012).
That's not proof of cause. But it suggests OCD that follows trauma may look a little different. The idea of a "post-traumatic subtype" is still being tested.
Trauma also tends to make things worse when it's already there. As Cromer and colleagues noted, the evidence fits a "pathoplastic" pattern: trauma may shape the severity and content of OCD rather than create it from nothing (Cromer et al., 2007).
Trauma and OCD Overlap: Is It OCD, PTSD or Both?
They can look alike from the outside. Both involve intrusive thoughts and avoidance. The difference is usually in what the intrusion is about:
- PTSD intrusions tend to be memories of something that did happen: flashbacks, nightmares, the body reacting as if it's happening again.
- OCD obsessions tend to be fears about something that might happen or might be true: What if I hurt someone? What if I'm contaminated? What if I'm a bad person?
They can also exist together. In a study of more than 3,000 people in intensive OCD treatment, those who also had PTSD improved along a similar path overall, but at one site needed nearly 11 more treatment days to reach the same improvement. They also responded less well on unacceptable thoughts and symmetry symptoms (Pinciotti et al., 2024). The authors suggested these symptoms might need a trauma-focused approach alongside OCD treatment.
Get Levi Wilder’s stories in your inbox
Join Medium for free to get updates from this writer.
If you see yourself in both lists, raise it with a professional. It doesn't mean you're "too complicated" to get better. It means your plan may need two tracks.
(If your OCD keeps replaying something that actually happened, my post on real event OCD explores that pattern.)
Exercise 1: The Two Timelines (10 minutes)
This is a reflection, not a diagnosis. You don't need to write about any painful memory in detail. Labels are enough.
- Draw two lines across a page, one above the other.
- On the top line, mark your OCD. When did you first notice rituals or "what ifs"? When did they get louder? When did they ease off?
- On the bottom line, mark big life seasons, using one or two words only: "moved house," "parents split," "new school," "hospital," "hard year."
- Look for overlaps, without forcing them. Did OCD flare during certain seasons? Did it stay steady through others?
- Write one sentence: "My OCD seems to get louder when ____."
Some people find a clear pattern. Others find none. Both answers are useful.
Stop rule: If you notice your heart racing, feeling numb, or feeling "far away," put the page down. Look around and name five things you can see. You can come back another day, or never.
An IFS View: Exiles Behind OCD Protectors
In Internal Family Systems (IFS), developed by Dr. Richard Schwartz, we see the mind as a family of parts.
- Protectors work hard to keep you safe. In OCD, they're often the checkers, cleaners and reassurance-seekers.
- Exiles are younger parts that carry old pain: fear, shame, helplessness, the feeling of being too much or not enough.
From an IFS view, many compulsions are protectors standing in front of exiles. The checking part isn't really worried about the stove. It's worried that if it stops, you'll feel the old feeling: Something terrible is about to happen, and it's my job to stop it.
And if trauma is tied more to compulsions than to obsessions (Miller & Brock, 2017), it makes sense to get curious about what those compulsions are for.
"Your compulsions may not be about the danger in front of you. They may be about a feeling behind you."
Here's my honest caveat: IFS hasn't been tested in clinical trials for OCD. The protector-exile idea is a compassionate way of relating to your symptoms, not a proven treatment for OCD or trauma. And not every protector is guarding trauma. Sometimes a checking part is just a checking part.
Exercise 2: Meet the Guard, Not the Vault (10 minutes)
The aim here is to get to know the protector only. You are not trying to reach the exile or the memory it guards. In IFS, protectors decide when it's safe to go further, and that pace matters.
- Ground first. Feet on the floor. Breathe out slowly, a little longer than you breathe in, three times.
- Notice one urge. Pick a small ritual, like checking the lock. Where do you feel the urge in your body?
- Get a little distance. Say inwardly: "A part of me really needs to check." Notice the difference between being the urge and having a part with an urge.
- Ask one question. "What are you afraid would happen if you didn't do this?" Wait. Accept whatever comes, even "I don't know."
- Thank it, and stop there. "You've worked hard for a long time. I see you."
If an old memory or strong feeling starts to rise, don't follow it. Tell that part, "Not today. We'll go slowly." Then open your eyes and ground. Going slowly isn't avoiding. It's how trust gets built.
Safety and Pacing: Go Slower Than You Think You Need To
When trauma is part of your story, how you do this work matters as much as what you do.
Think of it as the three Gs:
- Ground: Before any inner work, make sure you feel present in your body and your room. If you can't, that's the work for today.
- Greet: Get to know protectors before anything else. Their job is to protect; respect that.
- Go slow: Five calm minutes beats an hour that leaves you shaken. Stop before you're overwhelmed, not after.
Please work with a professional if any of these apply: you have flashbacks or nightmares, you lose time or feel unreal for long stretches, you're using alcohol or drugs to cope, you self-harm, or you're still in an unsafe situation. Self-help can support that work. It shouldn't replace it.
A Composite Example: How Noor Stopped Checking for the Fight
This is a composite case, built from patterns many readers describe. It isn't one real person.
Noor, 34, a pharmacist, checked the locks, windows and stove for up to 90 minutes every night.
Using the two timelines, she noticed her checking got much worse during one season: the year her parents' arguments got loud and frightening. It also flared whenever her partner raised their voice, even in fun.
When she asked her checking protector what it was afraid of, the answer surprised her: "If I don't check, I won't be ready." She didn't push. With an OCD-informed therapist, she combined reducing her checking step by step with gentle parts work and grounding.
Over about four months, her nightly checking dropped from 90 minutes to around 15, and on some nights she checked the lock once and went to bed.
"The checking part still shows up," she says. "But now I know it's trying to protect a scared kid, not the house."






