Most drugs clear from urine within 1 to 5 days, but the exact timeline depends on the substance, how often you’ve used it, and your body’s metabolism. Cannabis is the major outlier: a single use clears in 3 to 4 days, while heavy daily use can keep urine tests positive for a month or longer. Here’s a detailed breakdown by substance, plus the biological factors that push those timelines shorter or longer.
Cannabis (THC)
Cannabis has the widest detection range of any commonly tested drug because its active compounds dissolve in fat and release slowly over time. For a single use at the standard 50 ng/mL screening cutoff, you can expect a positive result for about 3 to 4 days. At a more sensitive 20 ng/mL cutoff, that stretches to around 7 days.
Regular users face much longer windows. Even at the standard 50 ng/mL cutoff, it would be unusual to test positive beyond 10 days after your last use. At the lower 20 ng/mL cutoff, detection can extend to 21 days. Heavy chronic users, those smoking multiple times daily for weeks or months, can test positive for 30 days or more, with some estimates reaching 45 to 90 days in extreme cases. The reason is simple: THC accumulates in fat tissue and trickles back into the bloodstream gradually as your body burns that fat.
Cocaine
Cocaine itself leaves the body quickly, but the metabolite that urine tests actually detect lingers longer. For most people, cocaine shows up on a urine screen for 2 to 3 days after use. Heavy or binge users can test positive for up to 2 weeks, since repeated doses cause the metabolite to build up faster than the body can clear it.
Opioids
Most prescription and illicit opioids share a similar detection window of about 3 days. This applies to morphine, codeine, oxycodone, hydrocodone, and their related compounds. Heroin is detectable through a unique marker that only lasts about 8 hours in urine, though heroin also converts to morphine in the body, which remains detectable for the standard 3-day window. Methadone, used in addiction treatment, stays detectable for 3 to 7 days in typical users and up to 14 days with chronic use. Fentanyl is now included on federal workplace drug panels at a very low cutoff of just 1 ng/mL, reflecting its extreme potency at small doses.
Amphetamines and MDMA
Amphetamine and methamphetamine are detectable in urine for roughly 1 to 5 days. MDMA (ecstasy) falls into the same range. The wide spread in that window comes down to dose size, how acidic or alkaline your urine is, and individual metabolism. Amphetamines are especially sensitive to urine pH: acidic urine speeds up excretion, while alkaline urine slows it down, potentially adding a day or more to the detection window.
Benzodiazepines
Benzodiazepines vary widely depending on the specific drug. Short-acting types may clear in a few days, while longer-acting ones can be detectable for a week or more. Chronic users who have taken benzodiazepines daily for months may test positive for several weeks after stopping, as these drugs accumulate in body tissues over time.
What Makes Your Timeline Shorter or Longer
The numbers above are averages. Several factors shift your personal window in either direction.
Body fat. Fat-soluble drugs like THC are stored in fat cells and released gradually. People with higher body fat percentages metabolize these drugs differently: the drug distributes into a larger volume of fat tissue, which extends the half-life and keeps metabolites trickling into urine for longer than expected. This effect is less significant for water-soluble drugs like amphetamines.
Frequency of use. A single dose clears predictably. Repeated doses cause metabolites to accumulate in tissues faster than the body eliminates them, building a reservoir that takes days or weeks to fully drain. This is why the gap between a one-time user and a daily user can be a matter of days versus months for cannabis.
Urine pH. Your urine’s acidity, which naturally ranges from about 4.5 to 8.0, directly affects how fast certain drugs are excreted. Acidic urine speeds up the elimination of weak bases like amphetamines and methamphetamine. Alkaline urine does the opposite, slowing excretion and extending detection. Diet, medications, and even the time of day influence urine pH.
Metabolism and age. Younger, more physically active people with healthy liver and kidney function generally clear drugs faster. Slower metabolism, whether from age, genetics, or organ function, extends detection windows across the board.
How Urine Tests Actually Work
Standard workplace drug tests don’t measure raw drug levels. They use a cutoff concentration: if the metabolite in your urine falls below that number, the result is negative, even if trace amounts are technically present. Federal workplace testing, which sets the standard most private employers follow, uses a 50 ng/mL cutoff for cannabis, 150 ng/mL for cocaine, and 500 ng/mL for amphetamines on the initial screen. If the initial screen is positive, a more precise confirmation test is run with lower cutoffs to reduce false positives.
This cutoff system is why the same drug can have different detection windows depending on the test. A more sensitive cutoff catches smaller amounts and extends the window. A standard cutoff misses low-level residual metabolites and effectively shortens it.
Why Drinking Extra Water Doesn’t Reliably Help
Overhydrating before a test dilutes the concentration of metabolites in your urine, which can push levels below the cutoff. But labs check for this. A urine sample with a creatinine level below 20 mg/dL combined with a specific gravity between 1.001 and 1.003 is flagged as dilute. Creatinine below 2 mg/dL is considered physiologically impossible for human urine and treated as a substituted or invalid specimen. A dilute result typically means you’ll be asked to retest, and some employers or programs treat a dilute sample as a positive. Drinking normal amounts of water has no meaningful impact on detection timelines.
Quick Reference by Substance
- Cannabis (single use): 3 to 4 days
- Cannabis (regular use): 10 to 21 days
- Cannabis (heavy chronic use): 30 to 90 days
- Cocaine: 2 to 3 days (up to 2 weeks for heavy use)
- Opioids (morphine, oxycodone, codeine, hydrocodone): 3 days
- Heroin-specific marker: less than 1 day
- Methadone: 3 to 7 days (up to 14 days chronic)
- Amphetamines/methamphetamine: 1 to 5 days
- MDMA: 1 to 5 days
- Benzodiazepines: days to several weeks depending on type and use pattern