How Long Is MDMA Detectable in a Drug Test?

MDMA detection windows range from about one to three days in blood, up to roughly two days in saliva, and as long as four to seven days in urine, depending on the dose and which compounds the lab looks for. Hair testing extends that window to months. The exact timeframe hinges on which specimen type is collected, whether the test targets MDMA itself or its longer-lived metabolites, and individual differences in how your body processes the drug.

Urine Testing Has the Widest Practical Window

Urine is the specimen most workplace, probation, and emergency-room drug screens rely on for MDMA. Standard immunoassay panels look for the parent drug and its close relative MDA (a metabolite the body produces as it breaks MDMA down). Under those conditions, MDMA typically turns up positive for roughly two to four days after a single use. But some labs now also test for HMMA, a metabolite that lingers in urine considerably longer than MDMA itself.

In a controlled dosing study, HMMA was detectable for as long as about 158 hours, or nearly seven days, after a higher dose. The median last-detection time for HMMA was around 131 hours. By comparison, MDMA’s own last-detection time ran about 34 to 36 hours shorter than HMMA’s across participants who received the same doses.1PubMed Central. Urinary MDMA, MDA, HMMA, and HMA Excretion Following Controlled MDMA Administration to Humans – Section: Results That difference matters in practice: a test that only screens for MDMA and MDA might come back negative on day four, while one that also picks up HMMA could still flag you on day six or even day seven.

Whether a given urine test looks for metabolites like HMMA depends on the lab and the testing protocol. Most standard workplace immunoassay kits are designed to detect MDMA and MDA, and they use relatively high cutoff concentrations to reduce false positives. Confirmation testing with more sensitive instruments can pick up lower levels and a broader range of metabolites, which extends the effective detection window.

Blood and Plasma Detection

Blood tests catch MDMA for a shorter period than urine. MDMA concentrations in blood rise quickly after ingestion and peak within a few hours. In a study of 50 healthy adults who took controlled recreational-range doses, researchers tracked MDMA and its metabolites in both whole blood and plasma during the first three hours after dosing and found that blood MDMA and MDA concentrations were significantly higher than in plasma, while the metabolite HMMA was significantly lower in blood than in plasma.2PubMed Central. 3,4-Methylenedioxymethamphetamine (MDMA) and metabolites disposition in blood and plasma following controlled oral administration Plasma pharmacokinetic studies have followed MDMA levels out to about 143 hours (roughly six days), though concentrations drop below most practical detection thresholds well before that.3PubMed Central. Plasma pharmacokinetics of 3,4-methylenedioxymethamphetamine after controlled oral administration to young adults

For most real-world blood draws, expect MDMA to be detectable for roughly one to two days after a single dose. Blood testing is more commonly used in hospital emergency departments, law-enforcement contexts, and forensic investigations than in routine workplace screening. Its advantage is that it gives a better snapshot of recent impairment because blood concentrations track more closely with what is actually circulating in the body at the moment of the draw.

Saliva (Oral Fluid) Testing

Oral fluid tests are increasingly popular for roadside law-enforcement checks and some workplace programs because collecting a saliva sample is quick and hard to tamper with. MDMA shows up fast in saliva: it has been observed as early as 15 minutes after ingestion.4PubMed Central. MDMA and Metabolite Disposition in Expectorated Oral Fluid Following Controlled Oral MDMA Administration – Section: Results The general window of detection for MDMA in oral fluid was about 47 hours, while MDA was detectable for about 29 hours. A few participants still had positive specimens as late as 71 hours for MDMA and 47 hours for MDA.4PubMed Central. MDMA and Metabolite Disposition in Expectorated Oral Fluid Following Controlled Oral MDMA Administration – Section: Results

In practical terms, if you took MDMA on a Saturday night, a saliva test on Monday morning would very likely come back positive. By Wednesday, most people would test negative through saliva, though outliers exist. One thing that makes oral fluid concentrations somewhat unpredictable is that MDMA is a basic (alkaline) compound, so it tends to concentrate in saliva at levels higher than in plasma. This ion-trapping effect means saliva concentrations can be quite variable from person to person and are influenced by things like how much saliva you are producing and the pH of your mouth at the time of collection.

Hair Testing

Hair testing operates on a completely different timescale. Rather than looking for what is circulating in your body right now, hair tests detect drug molecules that were deposited into the growing hair shaft via the bloodstream weeks or months ago. A standard hair test analyzes the most recent 1.5 inches of growth (closest to the scalp), which at a typical growth rate covers roughly the last 90 days.

A study that gave participants two controlled doses of MDMA and then analyzed hair segments found that the highest MDMA concentrations showed up in the segments corresponding to the time of intake, confirming that a single use can be picked up months later. Concentrations ranged widely between individuals, from about 100 to 3,200 picograms per milligram for one form of MDMA, and from roughly 3 to 116 picograms per milligram for MDA.5PubMed. Evaluation of drug incorporation into hair segments and nails by enantiomeric analysis following controlled single MDMA intakes That 30-fold-plus range illustrates a major limitation of hair testing: people with darker, thicker hair tend to incorporate more drug into the shaft, and external contamination (from handling or environmental exposure) can sometimes produce misleading results.

Hair testing is most common in pre-employment screening for high-security positions, child-custody cases, and forensic investigations. It is not useful for detecting very recent use because it takes about one to two weeks after ingestion for the drug-containing portion of the hair to grow above the scalp where it can be sampled.

Sweat Testing

Sweat patches are a less common but sometimes court-ordered form of drug monitoring. A patch is worn on the skin continuously, often for one to two weeks, and then collected and analyzed. In a controlled study following a single MDMA dose, the drug appeared in sweat patches as early as 1.5 hours after ingestion and peaked around 24 hours. Concentrations varied enormously between individuals: peak MDMA levels for the same dose differed by as much as 30-fold, ranging from about 3 to over 1,300 nanograms per patch. Only trace amounts of MDA were detected in sweat.6PubMed. Usefulness of sweat testing for the detection of MDMA after a single-dose administration

Sweat testing captures cumulative exposure over the wearing period rather than providing a snapshot, which is why it appeals to probation and drug-court programs. The tradeoff is that huge variability in sweat production and drug excretion rates between people makes quantitative interpretation tricky. A heavy sweater might yield a positive patch at a dose that barely registers on someone who sweats less.

What Affects How Long MDMA Stays Detectable

Several factors push the detection window longer or shorter for any given person. Dose is the most straightforward: higher doses produce higher peak concentrations, and it simply takes more time for the body to clear a larger load. Research has shown that MDMA’s clearance from the body is not proportional to dose. Specifically, the nonrenal component of clearance (the liver’s contribution) is dose-dependent, meaning the liver gets less efficient at processing MDMA as the dose increases.7PubMed Central. Non-linear pharmacokinetics of MDMA (‘ecstasy’) in humans – Section: Results This nonlinear behavior means that doubling the dose more than doubles the time the drug stays in your system.

Genetics also play a role, though perhaps a smaller one than you might expect. MDMA is broken down in part by an enzyme called CYP2D6, and people carry different genetic versions of this enzyme. Some people are naturally “poor metabolizers” who produce a sluggish version, while others are “extensive metabolizers” with a more active version. In a controlled study, poor metabolizers had peak MDMA concentrations about 15% higher and peak MDA concentrations about 50% higher than extensive metabolizers.8PubMed Central. CYP2D6 function moderates the pharmacokinetics and pharmacodynamics of 3,4-methylene-dioxymethamphetamine in a controlled study in healthy individuals However, the practical impact of these genetic differences is blunted by the fact that MDMA itself inactivates CYP2D6 during the course of a session. Essentially, after the first dose, everyone becomes a poor metabolizer regardless of their genetics.9PubMed Central. MDMA, methamphetamine, and CYP2D6 pharmacogenetics: what is clinically relevant? Other enzymes and kidney excretion pick up the slack, further reducing the influence of CYP2D6 genetics on overall clearance time.

Beyond dose and genetics, body mass, hydration, kidney function, urine pH, and age all influence excretion rates to varying degrees. Acidic urine speeds MDMA excretion because the drug is a weak base and becomes more water-soluble (and thus easier for the kidneys to flush) when the urine is acidic. This is well-established pharmacology for amphetamine-type compounds, though deliberately acidifying your urine is not a reliable strategy for beating a drug test.

False Positives and What Can Trigger Them

Standard drug screens for MDMA use immunoassay technology, which works by recognizing the general shape of a molecule rather than identifying it with chemical certainty. This approach is fast and cheap but comes with a known downside: structurally similar compounds can fool the test. The beta-blocker metoprolol, a common blood-pressure medication, has been documented to cause false positives on both amphetamine and MDMA immunoassay panels. In two reported clinical cases, patients with metoprolol poisoning triggered positive screens despite no history of illicit drug use. Lab follow-up with more precise methods found no actual amphetamines present. Further testing showed that metoprolol produced positive results for the MDMA assay at concentrations as low as 150 micrograms per milliliter.10Journal of Analytical Toxicology. False positive amphetamines and 3,4-methylenedioxymethamphetamine immunoassays in the presence of metoprolol—two cases reported in clinical toxicology

This is why a positive immunoassay screen is always supposed to be confirmed with a more definitive method, typically gas chromatography-mass spectrometry (GC-MS) or liquid chromatography-tandem mass spectrometry (LC-MS/MS). These confirmatory tests identify the exact molecular structure of what is in the sample and are extremely unlikely to confuse metoprolol or other innocent compounds with MDMA. Evaluated rapid oral-fluid screening devices have shown sensitivity and specificity around 97% when paired with appropriate confirmation cutoffs.11PubMed. Evaluation of a rapid oral fluid point-of-care test for MDMA Lab-based ELISA kits used for plasma screening have demonstrated even higher performance, with sensitivity above 98% and specificity at 100% in one validation study.12Forensic Science International. Validation of an ELISA-based screening assay for the detection of amphetamine, MDMA and MDA in blood and oral fluid

If you take a prescription medication and are facing a drug test, mentioning your medications to the testing authority beforehand is usually the simplest way to head off confusion. A confirmed positive (one that passes both the screen and the confirmatory test) for MDMA in someone who has not used MDMA is extremely rare.

Can You Speed Up Clearance?

The internet is full of suggestions: drink lots of water, take B vitamins, exercise heavily, use detox kits. None of these reliably shorten MDMA’s detection window to a meaningful degree. The body eliminates MDMA through a combination of liver metabolism and kidney excretion, and while kidney excretion of MDMA does respond to urine pH (more acidic urine means faster excretion of unchanged drug), the metabolites that modern tests look for, particularly HMMA, follow their own elimination timeline. In the controlled study discussed earlier, HMMA remained detectable in urine for a median of over five days after a higher dose, regardless of how quickly the parent drug cleared.1PubMed Central. Urinary MDMA, MDA, HMMA, and HMA Excretion Following Controlled MDMA Administration to Humans – Section: Results Even if you flushed MDMA out of your kidneys slightly faster, the metabolite would still be sitting there days later.

Drinking excessive water before a urine test can dilute the specimen enough to push concentrations below the cutoff, but labs routinely check for dilution by measuring creatinine levels and specific gravity. A specimen flagged as dilute is typically treated as an invalid result and you will be asked to retest, sometimes under direct observation. In some testing programs, a dilute specimen is treated the same as a positive.

How Long Collected Samples Stay Testable

A related question that matters in forensic and legal settings is whether MDMA degrades in a stored sample before the lab gets around to testing it. The answer is reassuring for investigators and somewhat sobering for anyone hoping time might erase the evidence. A stability study found that MDMA, MDA, and MDEA showed no significant loss in water or urine at any tested temperature for 21 weeks. In serum, the drugs remained stable for up to 17 weeks, and in whole blood for up to 5 weeks. When stored frozen at minus 20 degrees Celsius, all three compounds stayed stable for 21 weeks even in degraded (hemolyzed) blood.13PubMed. Stability study of the designer drugs “MDA, MDMA and MDEA” in water, serum, whole blood, and urine under various storage temperatures

In practice, most forensic and workplace-testing labs refrigerate or freeze samples immediately after collection, so MDMA in a properly stored specimen will remain chemically intact for months. Sample degradation only becomes a concern when specimens sit at room temperature for extended periods, particularly low-concentration blood samples.

Quick-Reference Detection Windows

Because the numbers are spread across different specimen types and studies, here is a consolidated view. These ranges assume a single recreational-range dose in a healthy adult and include the possibility that labs test for metabolites as well as parent MDMA:

  • Urine: roughly 2 to 4 days for MDMA itself, potentially up to 6 to 7 days if the lab tests for the HMMA metabolite
  • Blood/plasma: roughly 1 to 2 days
  • Saliva: roughly 2 days on average, with outliers positive up to about 3 days
  • Hair: up to 90 days (standard test window), potentially longer with extended-length sampling
  • Sweat patch: cumulative detection over the wearing period, typically 1 to 2 weeks; MDMA appears within hours and peaks around 24 hours

Higher doses, repeated dosing, slower individual metabolism, and more sensitive lab methods all push these windows toward the longer end. The nonlinear way MDMA is processed means that someone who takes a second dose during the same session can extend their detection window disproportionately compared to what doubling a single dose would predict.

MDMA Versus Other Amphetamines on Standard Panels

Most workplace drug screens use a panel that groups amphetamines together. The standard federally regulated five-panel test (used for Department of Transportation employees, for instance) includes an “amphetamines” category that covers amphetamine, methamphetamine, MDMA, and MDA. Some older immunoassay kits were designed primarily to detect amphetamine and methamphetamine, and they picked up MDMA only incidentally because of structural similarity. Newer assays include MDMA-specific antibodies and dedicated cutoffs to catch ecstasy use more reliably, even when classic amphetamine concentrations are low.

If you are wondering whether a “standard” drug test will catch MDMA specifically: almost certainly yes, if the test was administered within the detection window. The federal workplace testing guidelines were updated to include MDMA, MDA, and MDEA as separate confirmatory targets under the amphetamines category. Even tests that are not federally regulated increasingly include MDMA-specific confirmation, because ecstasy use is common enough that employers and courts want clear answers about it rather than relying on cross-reactivity with a generic amphetamine antibody.