A worried parent finds a small pill in a jacket pocket after a festival weekend. A young professional faces a workplace drug screen on Monday and spends Sunday night anxious about what a test might pick up. Someone who took ecstasy on Saturday is still feeling flat and foggy by midweek and starts to wonder whether something is wrong. These are the moments when people start searching for how long MDMA stays in the body, and the honest answer is that it varies from one person to the next.
What follows is general health information, not a way to beat a drug test and not medical advice. If ecstasy use has become a pattern that’s hard to stop, the detection window matters far less than what the drug is doing to your health and your life. We’ll come back to that.
What MDMA actually is
MDMA, short for 3,4-methylenedioxymethamphetamine, is a synthetic drug that acts as both a stimulant and a mild psychedelic. Most people know it as ecstasy in pill or tablet form, or as molly when it’s sold as powder or in capsules. It was first synthesised in 1912, long before it became a fixture of club and festival culture.
The drug works by flooding the brain with three chemical messengers at once. According to the National Institute on Drug Abuse, MDMA boosts the release of serotonin, dopamine and noradrenaline, which is what produces the warmth, energy and emotional closeness users describe. That same surge is also why the days afterwards can feel so bleak, because the brain has temporarily run down its supply of these chemicals.
One thing worth being clear about: street ecstasy is rarely pure MDMA. Tablets are often cut with caffeine, amphetamines, ketamine or other substances, and some contain no MDMA at all. That matters for how the drug behaves in your body, and it’s a big part of why no two experiences, or two detection times, are quite the same.
How long MDMA stays in your system
The starting point is the drug’s half-life, which is the time your body takes to clear half of a dose. In a controlled study where volunteers were given measured oral doses, researchers found a mean plasma half-life of roughly seven to eight hours for MDMA, with its main breakdown products lingering longer than that. As a rough rule, a substance is mostly cleared after about five half-lives, which puts full elimination of MDMA itself somewhere around a day and a half to two days for many people.
That same research flagged something important. MDMA doesn’t clear in a tidy, predictable way. Because the drug interferes with the liver enzyme that breaks it down, doubling the dose can more than double how much ends up circulating in the blood. In plain terms, a bigger dose doesn’t just give a stronger effect, it can hang around disproportionately longer.
Detection windows by test type
Detection is a separate question from how long you feel the effects, because tests often pick up metabolites that outlast the drug itself. General ranges reported across clinical sources are:
- Urine: roughly two to four days after use, the most common screening method. A study of urinary MDMA excretion tracked the drug and its metabolites over several days following controlled dosing.
- Blood and saliva: generally one to two days, with the shortest windows of the common tests.
- Hair: potentially up to about 90 days, because traces become locked into the growing hair shaft.
These are ballpark figures, not guarantees. The window for any individual sits inside a range rather than on a fixed number.
What changes the timeline
Several factors push detection times up or down:
- Dose and frequency: larger and more regular use lengthens the window, partly because of the nonlinear clearance noted above.
- Your metabolism: age, body composition, sex and general health all shape how fast the liver and kidneys process the drug. Genetics matter too, as people carry different versions of the enzymes involved.
- Liver and kidney function: these organs do the work of breaking MDMA down and flushing it out, so anything that affects them affects the timeline.
- What was actually in the pill: adulterants have their own clearance rates, which can muddy both test results and the comedown.
You’ll see claims online that water, exercise, sweating or “detox” diets flush MDMA out faster. There’s no reliable evidence that any of this meaningfully speeds up elimination, and pushing fluids hard can be dangerous in its own right. Your liver and kidneys clear the drug at their own pace, and that pace can’t be rushed by home remedies.
The after-effects that outlast the drug
For a lot of people, the hardest part isn’t the night itself but the days that follow. Because MDMA empties the brain’s serotonin stores, the drop afterwards can bring low mood, irritability, anxiety and trouble sleeping. Many users call the midweek slump that follows a weekend the “Tuesday blues”, which captures how the worst of it can land a couple of days later, long after the drug has physically cleared.
The physical comedown is real too. NIDA notes that people who use MDMA regularly may experience poor sleep, low appetite, confusion, depression, anxiety, paranoia, and problems with memory and attention. During use itself, the drug can drive up body temperature to dangerous levels, especially in hot, crowded venues, alongside jaw clenching, nausea and a racing heart.
This is the heart of why detection windows can be a distraction. A clean urine test in four days says nothing about how your sleep, mood and concentration are holding up, and those are often the signals that something needs attention.
When it’s more than a one-off
Plenty of people use ecstasy occasionally and never develop a problem. For others, the pattern creeps. NIDA notes that research suggests MDMA can be addictive, with some users reporting tolerance, withdrawal-type symptoms and continued use despite the harm it’s causing. Tolerance is often the early warning, when the old dose stops delivering and it takes more to reach the same feeling.
It’s worth being honest with yourself about a few questions. Are weekends increasingly built around the drug? Is the comedown bleeding into work, studies or relationships? Have you tried to cut back and found it harder than expected? Is anxiety or low mood becoming a steady background rather than a passing dip? None of these on their own means addiction, but together they’re a reason to talk to someone.
Addiction is a treatable health condition, not a character flaw or a moral failing. Recovery is ongoing rather than a single fix, and reaching out early tends to make it far easier.
Frequently Asked Questions
How long does ecstasy stay in your urine?
For most people, MDMA is detectable in urine for roughly two to four days after use. Heavier or more frequent use can extend that, while a single low dose may clear sooner. The exact window depends on dose, metabolism and overall health.
Can you speed up how fast MDMA leaves your body?
Not in any reliable way. Drinking large amounts of water, exercising or using “detox” products won’t meaningfully shorten the timeline, and drinking too much water can be harmful. Your liver and kidneys clear the drug at their own pace.
How long do the after-effects last?
Physical comedown symptoms often ease within a few days, but low mood, poor sleep and difficulty concentrating can linger for several days to a couple of weeks, sometimes peaking midweek after weekend use. If low mood persists, it’s worth speaking to a professional.
Is MDMA addictive?
Research suggests it can be. Some people develop tolerance, experience withdrawal-type symptoms and keep using despite negative effects, which are recognised features of a substance use disorder. If that sounds familiar, professional support helps.
Does the type of ecstasy affect how long it stays in your system?
Yes. Street tablets are often mixed with other substances such as caffeine, amphetamines or ketamine, and each clears at its own rate. Purity and added ingredients can both change how the drug behaves and how long traces remain.
Getting support
If reading this has put a name to something you’ve been worrying about, whether for yourself or someone you love, that’s a good first step. Understanding how long MDMA stays in your system matters far less than what regular use is doing to your sleep, your mood and your health.
At Freeman House Recovery in Hartbeespoort, we treat drug and alcohol addiction with a holistic inpatient programme that includes medically supported detox, individual and group therapy, and care for the anxiety or depression that so often sits alongside substance use through dual diagnosis treatment. We also have a separate piece on how long crystal meth stays in your system if stimulants are part of the picture, and practical advice on how to help a loved one who is struggling with addiction.
There’s no pressure and no judgement in a phone call. If you’d like to talk through options, you can reach our team on +27 12 1111 739, and we’ll take it from there.
About the author
Alan Freeman
Alan Freeman is the founder and CEO of Freeman House Recovery, an upmarket drug and alcohol rehab in South Africa. Having been through addiction and recovery himself, he has spent years helping others do the same, and built Freeman House to give people a place to recover with dignity and proper care.

