How Long Does MDMA Stay in Your System?

MDMA (commonly called ecstasy or molly) is typically detectable in urine for 1 to 3 days after use. The exact window depends on the type of test, how much you took, and individual differences in how your body processes the drug. Blood, saliva, and hair tests each have their own detection ranges, and understanding the differences can help you know what to expect.

Detection Windows by Test Type

Different drug tests pick up MDMA over very different time frames. Here’s what the major testing methods look like:

  • Urine: 1 to 3 days after use. This is the most common test for employment and legal screening.
  • Blood: 1 to 2 days, though in rare cases slightly longer.
  • Saliva: A few hours to a few days, depending on dose.
  • Hair: Up to 90 days. A 1.5-inch sample of hair cut at the scalp covers roughly three months of use, since head hair grows about half an inch per month.

Urine testing is by far the most widely used method. Hair testing has the longest reach but is less common for routine screening because it’s more expensive and doesn’t detect very recent use well (it typically takes about a week for drug metabolites to grow into the hair shaft enough to be detected). Blood and saliva tests are mostly used in situations where recent impairment matters, such as roadside testing or emergency medical evaluations.

How Your Body Breaks Down MDMA

After you take MDMA, your liver does most of the work breaking it down. The drug follows two main pathways: one converts it into a compound called HHMA, and another converts it into MDA, which is itself an active stimulant. Both of these metabolites eventually get processed further and cleared through your kidneys into urine. Drug tests look for MDMA itself and for MDA as a metabolite.

One important detail is that MDMA doesn’t follow a simple, predictable elimination curve. Its metabolism is nonlinear, meaning that taking a larger dose doesn’t just produce proportionally more of the drug in your system. Instead, higher doses can overwhelm your liver’s capacity to process it, causing blood levels to spike disproportionately and extending the time it takes to clear everything out. This is one reason why people who take larger amounts or redose during a session may test positive for longer than someone who took a smaller single dose.

Why Elimination Speed Varies Between People

Your genetics play a surprisingly large role in how quickly you clear MDMA. The liver enzyme most responsible for breaking it down, CYP2D6, is one of the most genetically variable enzymes in the human body. Over 170 genetic variants have been identified, and they fall along a spectrum from “poor metabolizer” to “ultra-rapid metabolizer.” Someone who is a poor metabolizer processes the drug much more slowly, meaning it stays in their system longer and produces stronger effects at the same dose. The frequency of these variants differs across ethnic populations, so there’s no single “normal” speed for everyone.

Other enzymes involved in MDMA metabolism, including CYP2C19 and CYP2B6, also have genetic variants that affect clearance. People with lower-activity versions of CYP2C19, for instance, tend to experience stronger cardiovascular effects from the same dose. Even smoking status matters: tobacco smokers with certain genetic profiles produce higher blood levels of MDA, one of MDMA’s active metabolites, compared to nonsmokers.

Beyond genetics, several practical factors influence how long MDMA stays detectable:

  • Dose: Higher doses take longer to clear because of the nonlinear metabolism described above.
  • Body composition: MDMA is moderately fat-soluble, so body fat percentage and overall body mass affect distribution and elimination.
  • Hydration and kidney function: Since metabolites are excreted in urine, how well your kidneys are working and how hydrated you are can shift the timeline modestly.
  • Age: Liver and kidney function decline with age, generally slowing drug clearance.
  • Frequency of use: Repeated use can lead to accumulation, potentially extending the detection window beyond what a single-dose estimate would suggest.

Drug Test Thresholds and What Counts as Positive

Drug tests don’t simply detect “any amount” of a substance. They use cutoff levels, measured in nanograms per milliliter (ng/mL), to distinguish a positive result from trace amounts that could be meaningless. For federally regulated urine testing in the United States, the initial screening cutoff for MDMA and MDA combined is 500 ng/mL. If that screen comes back positive, a confirmatory test is run with a lower threshold of 250 ng/mL for each substance individually.

This two-step process matters because it means very low residual levels of MDMA in your urine won’t necessarily trigger a positive result. The 1-to-3-day detection window assumes standard cutoff levels. If a test uses a lower threshold (some clinical or forensic tests do), the window could stretch slightly longer. Conversely, a very small dose might drop below the cutoff sooner than expected.

MDMA Versus MDA on Test Results

Standard drug panels test for both MDMA and its metabolite MDA. This is worth knowing because MDA is also sold as a standalone drug (sometimes called “sass” or “sally”). Whether you took MDMA or MDA, both will show up on the same panel. Confirmatory testing can distinguish between the two, but an initial positive screen won’t tell them apart. If you took MDMA, your body naturally produces some MDA as a byproduct, so both will appear in your results regardless.

Hair tests also group MDMA under the broader amphetamine/methamphetamine/ecstasy category. A positive hair result will typically be confirmed with more specific testing to identify exactly which substance was used.

How Long Effects Last Versus How Long It’s Detectable

The subjective effects of MDMA, the euphoria, energy, and emotional openness, typically last 3 to 5 hours. But the drug remains in your body well after you stop feeling it. You might feel completely back to normal the next day while still carrying detectable levels in your urine or blood. The “comedown” period, which can include fatigue, low mood, and difficulty concentrating, can last a day or two and roughly overlaps with the window when the drug is still being metabolized and excreted. By the time your body has fully cleared MDMA, you’re usually past the worst of any after-effects as well.