How Long Does MDMA Stay in Your System?

MDMA itself clears your body fast. Within 1–2 days, it's largely gone from your blood. But the story doesn't end there.

The metabolites it leaves behind stay detectable in urine for up to 4 days — longer if you're a heavy user. A hair follicle test will flag it for 90 days. And the serotonin damage? That can take weeks or months to fully repair, long after any test would come back clean.

So the short answer is: it depends on what you're measuring. The drug, the breakdown products, or the neurochemical aftermath. All three have different timelines.

Here's the full picture.


How Your Body Processes MDMA

When you take MDMA, your liver gets to work almost immediately. The primary enzyme involved is CYP2D6 — it converts MDMA into MDA (methylenedioxyamphetamine), which is also psychoactive. That's part of why the effects feel layered. MDA then breaks down further into two metabolites: HMA (4-hydroxy-3-methoxylamphetamine) and HMMA (4-hydroxy-3-methoxymethamphetamine). These are what drug tests are largely looking for.

The half-life of MDMA sits at roughly 6–9 hours. That means half of what you took is metabolised in that window. After about 24 hours, roughly 65% has been excreted through urine. After 48 hours, the parent compound is nearly undetectable in blood.

But here's a wrinkle: not everyone metabolises it at the same rate. CYP2D6 activity varies significantly by genetics. "Poor metabolisers" — people with less active versions of this enzyme — clear MDMA considerably more slowly. If that's you, your detection window stretches.

Redosing makes everything longer. Each additional dose resets the clock, stacking metabolites and extending how long everything stays detectable.


Detection Windows by Test Type

Test Detection Window
Blood 1–2 days
Urine 2–4 days (up to 5 days in heavy users)
Saliva 1–2 days
Hair follicle Up to 90 days

A few things worth knowing about these numbers.

Blood tests are the shortest window. They're accurate, but invasive and expensive, so they're not used for routine workplace testing. Most blood detection drops off sharply after 24 hours.

Urine tests are the most common. The 2–4 day window applies to typical use. If you've been using heavily or recently redosed, push that to 5 days. Urine pH matters too — more acidic urine speeds excretion. Alkaline urine slows it down and can extend detection.

Saliva tests are increasingly used in roadside testing in some countries. Detection window mirrors blood: 1–2 days. Convenient for law enforcement, less useful for longer-term screening.

Hair follicle tests are the outlier. Hair grows roughly 1 cm per month, and testing typically covers a 3 cm segment — that's 90 days of history. No amount of shampooing removes it. The caveat: hair tests have a detection lag of about 7–10 days from the time of use, because the hair shaft takes time to grow out from the follicle.

One important note on workplace panels: Standard 5-panel drug tests don't typically include MDMA. They test for cannabis, cocaine, opiates, amphetamines, and PCP. Extended 10-panel or 12-panel tests may include MDMA specifically. There's also a cross-reactivity issue — MDMA can trigger a false positive on amphetamine immunoassay screens. If that happens, a confirmatory GC-MS (gas chromatography–mass spectrometry) test will distinguish them.


What Affects Detection Time

Detection windows aren't fixed. Several factors push them in one direction or the other.

Dose. More MDMA means more to metabolise. Higher doses extend the window, sometimes significantly.

Frequency of use. Occasional use clears faster. Heavy or repeated use accumulates metabolites, and clearance slows.

Liver function. CYP2D6 genetic variation is the biggest wildcard here. Poor metabolisers process MDMA much more slowly than average. Liver health matters too — if your liver is under stress from other factors, clearance slows.

Hydration. Being well-hydrated generally speeds urinary excretion. Dehydration concentrates urine and can extend detection.

Body mass and composition. MDMA is lipophilic — it distributes into fatty tissue. Higher body fat can mean slightly longer clearance times as it's released back into circulation gradually.

Urine pH. Acidic urine (lower pH) increases MDMA excretion. Alkaline urine has the opposite effect. Certain foods and supplements shift urinary pH, though not dramatically enough to guarantee a clean test.

Redosing. This is the biggest practical factor. Every additional dose resets the half-life calculation and adds metabolite burden. Someone who redosed twice over a weekend is in a meaningfully different position than someone who took a single dose.


Serotonin Recovery Is a Different Timeline Entirely

The drug itself might be gone in 1–2 days. Your serotonin system takes much longer to catch up.

MDMA works by flooding synapses with serotonin — massively more than normal. It also temporarily impairs the neurons responsible for producing and recycling it. After that flood comes a deficit. The receptors downregulate in response to being overstimulated. Serotonin transporters take time to return to normal function.

For occasional users, serotonin function typically recovers within 2–4 weeks. For heavy or long-term users, that recovery can stretch to months. Some research suggests certain aspects of serotonergic function in heavy users take considerably longer to normalise — though the research here is still developing.

This matters because the drug being "out of your system" doesn't mean you feel normal. The fog, flat mood, poor sleep, and emotional blunting that follow heavy MDMA use aren't residual drug effect. They're the neurochemical aftermath — your brain working to rebalance after the disruption.

If you want to understand what happens in that recovery window, the MDMA withdrawal symptoms page covers it in detail. And if you're trying to work out whether what you're experiencing is a comedown or something longer-lasting, comedown vs withdrawal breaks down the difference.

You can also track your progress day by day — sometimes seeing time accumulate is useful when you can't yet feel the difference.


The Adulterant Problem

There's another layer to detection that's easy to overlook: street MDMA is frequently not pure MDMA.

Testing of street pills and powder consistently finds adulterants including methamphetamine, PMA (paramethoxyamphetamine), synthetic cathinones (so-called "bath salts"), caffeine, and various other compounds. Some of these are present in addition to MDMA. Some are present instead of it.

This matters for detection in a few ways. Methamphetamine has a longer half-life than MDMA and will extend your detection window — and show clearly on an amphetamine panel. PMA is more dangerous than MDMA at comparable doses and is metabolised differently. Synthetic cathinones may or may not appear on standard panels depending on which ones are used and which tests are being run.

Reagent testing kits (Marquis, Mecke, Simon's) can identify some common adulterants before use. They don't catch everything, and they don't give you a full picture of what's in a sample — but they're better than nothing if reducing unknown risk matters to you.

For people concerned specifically about what's detectable after mixed or unknown use: the honest answer is that you can't be certain what's in your system without knowing what you actually took.


FAQ

How long does MDMA show up on a urine test?

For most people, MDMA and its metabolites are detectable in urine for 2–4 days after use. Heavy or repeated use can push that to 5 days. The exact window depends on dose, frequency, metabolism, hydration, and urine pH.

Does MDMA show up on a standard drug test?

Not always. Standard 5-panel tests — the most common workplace screens — don't typically test for MDMA directly. Extended panels (10-panel or higher) may include it. MDMA can also cross-react with amphetamine immunoassay tests and produce a positive there, which would then require confirmatory GC-MS testing to identify specifically.

How long after taking MDMA does serotonin recover?

This depends heavily on how often and how much you've been using. Occasional users typically see serotonin function recovering within 2–4 weeks. Heavy or long-term users may take months. The drug being undetectable in your blood doesn't mean your brain chemistry has fully rebalanced — those are two separate processes on two different timelines.


Written by 180 - Benjy. 180 Habits builds tools for people quitting MDMA and other habits. Our content is reviewed for accuracy and updated regularly.