You get rid of OCD by treating it with exposure and response prevention (ERP), the therapy with the strongest evidence base, often combined with an SSRI antidepressant when symptoms are moderate to severe. OCD is chronic but treatable: most people who complete a full course of ERP see meaningful symptom reduction, and many reach remission. Self-help alone rarely suffices for clinical OCD. The sections below explain the mechanism, the numbers, the exceptions, and the practical path.
The mechanism: why OCD persists and what treatment interrupts
OCD is not a habit of over-worrying. It is a loop maintained by negative reinforcement. An intrusive thought (a “what if I contaminated someone”) triggers distress. A compulsion (washing, checking, mental reviewing) briefly lowers that distress. That relief is the reward. Each repetition teaches the brain that the compulsion prevented harm, strengthening the loop. The parallel is a lever that pays out every time you pull it; the payout is small but immediate, so the behavior persists even when you know it is irrational.
The brain’s threat-detection circuitry is involved. Imaging studies consistently show overactivity in the cortico-striato-thalamo-cortical (CSTC) circuits, a set of loops connecting the orbitofrontal cortex, the striatum, and the thalamus. These loops flag “something is wrong” and drive checking and avoidance. They also fail to signal completion, which is why a person can check a stove ten times and still feel uncertain. Serotonin signaling modulates these loops, which is why serotonergic drugs have any effect at all.
ERP works by blocking the reward. You deliberately approach the trigger (exposure) and refuse the compulsion (response prevention). Distress rises, peaks, and falls on its own. Over repeated trials the brain learns two things: the feared outcome does not occur, and the distress is survivable without the ritual. This is inhibitory learning, not simple habituation. The goal is not to feel calm during exposure but to build a competing memory that competes with the fear memory. That distinction matters because it tells you what a good ERP session looks like: mildly uncomfortable, not overwhelming.
One plain-language version: ERP teaches your brain that the alarm is a false alarm by letting it ring without pulling the lever.
Quantified context: how common, how treatable, how long
OCD affects roughly 1 to 2 percent of the population over a lifetime, with onset typically in late adolescence or early adulthood. The average delay from symptom onset to first treatment is often cited as several years, which matters because longer untreated duration predicts worse response.
Treatment effect sizes are large. Meta-analyses of ERP typically report large reductions in symptom severity compared with waitlist or placebo conditions, and ERP outperforms relaxation training and generic supportive therapy. SSRIs also outperform placebo, with moderate effect sizes, but generally smaller than ERP. Combined treatment (ERP plus medication) tends to outperform either alone for more severe cases, though the advantage over ERP alone is modest in mild-to-moderate illness.
Dose matters. Standard ERP courses run roughly 12 to 20 weekly sessions, with homework between sessions being the active ingredient. SSRIs require 8 to 12 weeks at an adequate dose before judging response, and full benefit can take longer. Clomipramine, an older tricyclic, is also effective but has more side effects and is generally used after SSRIs fail.
Timeline: what the course of treatment typically looks like
| Phase | Typical duration | What happens | What to expect |
|---|---|---|---|
| Assessment and diagnosis | 1 to 3 sessions | Structured interview, symptom mapping, severity rating | A clear target list and baseline score |
| Early ERP | Weeks 1 to 4 | Psychoeducation, building a fear hierarchy, first exposures | Anxiety may briefly rise; rituals begin to be resisted |
| Mid ERP | Weeks 5 to 12 | Repeated exposures, dropping safety behaviors | Distress tolerance grows; intrusive thoughts lose grip |
| Late ERP and generalization | Weeks 13 to 20 | Applying skills to new triggers, planning relapse prevention | Confidence and flexibility increase |
| Medication trial (if used) | 8 to 12 weeks at adequate dose | SSRI started and titrated under supervision | Partial symptom reduction; judge response after the full trial |
| Maintenance and relapse planning | Ongoing | Continued practice, early-warning plan | Gains consolidate; setbacks are expected and manageable |
This timeline is approximate and varies with severity, access, and adherence. Do not treat it as a schedule to self-administer.
Edge cases and the counterintuitive caveat
The counterintuitive detail: more reassurance and more avoidance make OCD worse, including avoidance disguised as “being careful.” Safety behaviors, such as carrying hand sanitizer everywhere or mentally reviewing a decision, feel protective but function as compulsions. They prevent the learning that ERP depends on, which is why a good therapist will ask you to drop them.
Another caveat: ERP is not the same as “just facing your fears.” Flooding, or jumping straight to the most feared situation, is not standard ERP and can backfire. Good ERP is graded and collaborative, often starting at a moderate difficulty level (around a 5 or 6 out of 10 on a subjective distress scale) and building up. If a therapist’s plan sounds like “stop doing the compulsion immediately and endure the worst,” ask whether it is graded and whether it includes response prevention, not just exposure.
Comorbidity changes the picture. Depression, anxiety disorders, tics, and body-focused repetitive behaviors commonly co-occur. Severe depression can blunt ERP engagement, and tics may require additional or different treatment. In children, family accommodation (parents participating in rituals) predicts worse outcomes, so family involvement in treatment is often essential.
Misconceptions that keep people stuck
A common misconception is that OCD is about neatness or orderliness. In reality, ordering is one presentation among many; contamination, checking, harm-related obsessions, and “just right” sensations are at least as common. Another is that insight is required for treatment. Many people with OCD have good insight and still suffer, and ERP works even when insight is imperfect.
A third is that medication cures OCD. SSRIs reduce symptoms but rarely eliminate them, and relapse is common when medication is stopped without continued skills. A fourth is that ERP is cruel or harmful. The evidence does not support that; dropout rates in ERP trials are comparable to other psychotherapies, though discomfort during exposure is expected and is not the same as harm.
Red flags that warrant urgent professional attention: Suicidal thoughts, self-harm urges, or severe depression alongside OCD symptoms. Compulsions that consume hours daily or cause physical injury (skin damage, bleeding, malnutrition from restricted eating). Sudden onset in a child or adult with fever, confusion, or neurological signs, which can indicate a treatable autoimmune or neurological cause. Symptoms that began or worsened after a new medication or substance. A therapist offering ERP without a structured assessment, or promising a “cure” in a handful of sessions.
Practical actions: what to do next, in order
Get a proper assessment. Ask for a structured diagnostic interview and a severity rating (the Yale-Brown Obsessive Compulsive Scale is standard). Self-diagnosis via online quizzes is unreliable. Seek ERP specifically. Ask any therapist whether they use exposure and response prevention, how they build a hierarchy, and how they handle safety behaviors. If the answer is vague, look elsewhere. Set a realistic session cadence. Aim for weekly sessions with daily homework; homework is where most learning happens. Expect 12 to 20 sessions as a rough frame. If medication is considered, discuss SSRIs with a prescriber and allow 8 to 12 weeks at an adequate dose before judging response. Do not start or stop medication without supervision. Build a response-prevention plan. Identify your top three rituals and one small step to delay or drop each this week. Track distress on a 0-to-10 scale before and after. Involve family only as coached by the therapist. Family accommodation should be reduced gradually, not abruptly.
Thresholds worth reconciling explicitly: ERP response is usually judged within 12 to 20 sessions; SSRI response is judged after 8 to 12 weeks at adequate dose; combined treatment is generally reserved for moderate-to-severe cases or partial response to monotherapy. These are different clocks for different interventions and should not be compared directly. One is a therapy course; the other is a drug trial.
Limitations: what treatment cannot promise
OCD is typically chronic, and “getting rid of it” in the sense of permanent elimination is not a realistic promise for most people. Remission is achievable, but relapse rates after stopping treatment are meaningful, and setbacks are common under stress. Access is also a limitation: trained ERP therapists are scarce in many regions, and waitlists can run months. Digital ERP programs and guided self-help have some supporting evidence for milder cases, but they are not equivalent to therapist-delivered ERP for moderate-to-severe illness.
Finally, this article cannot tell you whether you have OCD or what treatment is right for you. That requires a clinician. What it can tell you is the mechanism, the evidence, and the practical path, so you can ask better questions and avoid treatments that feel productive but feed the loop.