Most common drugs are detectable in urine for one to four days after last use, though cannabis is a major exception, potentially showing up for two weeks or longer in regular users. The exact window depends on the substance, how often you use it, your metabolism, and how much water you’ve been drinking. Here’s what the evidence shows for each major drug class.
Cannabis (THC)
Cannabis stands out because its active compounds are fat-soluble, meaning they get stored in body tissue and release slowly over time. A single use is typically detectable for several days. Occasional users can expect a positive result for up to two weeks, while chronic, daily users may test positive for 30 days or more after stopping. Body fat percentage plays a bigger role here than with other drugs: the more fat tissue you have, the more THC your body stores and the longer it takes to clear.
Federal workplace drug tests screen for the THC metabolite at a cutoff of 50 ng/mL on the initial test and 15 ng/mL on confirmation. That lower confirmation threshold means even trace amounts can trigger a verified positive if the initial screen flags your sample.
Cocaine
Cocaine itself clears the body quickly, with a half-life of about six hours, making it detectable in urine for roughly one day. But labs don’t just look for cocaine. They primarily test for its main breakdown product, benzoylecgonine, which has a 12-hour half-life and stays detectable for up to three to four days after last use. Heavy or binge use can extend that window slightly, but cocaine is generally one of the faster substances to clear.
Opioids
Detection times for opioids vary significantly depending on which one you’re talking about. Most prescription opioids fall in a similar range, but a few are outliers.
- Heroin: Less than 1 day. Heroin converts rapidly to morphine in the body, so labs also test for a unique heroin marker (6-acetylmorphine) that disappears within hours.
- Fentanyl: 1 to 3 days.
- Oxycodone: 1 to 3 days.
- Hydrocodone: 1 to 3 days.
- Codeine: 1 to 3 days.
- Morphine: 1 to 3 days.
- Tramadol: 1 to 4 days.
- Methadone: 1 to 14 days. Methadone’s long half-life makes it one of the longest-lasting opioids to detect.
- Buprenorphine: 1 to 7 days for the parent drug, with metabolites persisting up to 14 days.
Standard workplace panels now include fentanyl testing at an extremely low cutoff of just 1 ng/mL, reflecting how potent the drug is and how little is needed to produce a positive result.
Amphetamines and Methamphetamine
Amphetamine and methamphetamine are detectable for one to three days after a single use. If you take amphetamines regularly, that window can stretch to about a week. MDMA (ecstasy) falls in the same general range of one to three days.
This drug class has one of the highest rates of false positives on initial screening tests. Common medications that can trigger a positive include pseudoephedrine and phenylephrine (found in many cold medicines), bupropion (an antidepressant and smoking cessation drug), and the nasal decongestant inhaler ingredient levomethamphetamine. If you test positive and take any of these, a confirmatory test using a more precise method can distinguish them from actual amphetamine or methamphetamine use.
Benzodiazepines
Detection windows for benzodiazepines depend heavily on whether you’re taking a short-acting or long-acting formulation. Short-acting types like alprazolam and lorazepam clear faster, while long-acting types like diazepam have half-lives exceeding 24 hours. Since it takes five to seven half-lives to eliminate 98% of a drug, a long-acting benzodiazepine can be detectable for 5 to 20 days after your last dose. Short-acting versions typically fall in the two-to-five day range for most people.
Alcohol
Alcohol itself disappears from urine within 12 to 24 hours, but many tests now look for a metabolite called EtG (ethyl glucuronide), which sticks around much longer. After a few drinks, EtG can be detected for up to 48 hours. Heavier drinking pushes that to 72 hours or sometimes longer. EtG testing is common in court-ordered monitoring and professional licensing programs because of its ability to catch drinking well after alcohol itself has been metabolized.
What Affects Your Detection Window
The ranges above are estimates, and several factors shift them in either direction. Hydration is the most immediate one: drinking large amounts of water dilutes your urine and can push metabolite concentrations below the test’s cutoff threshold. Labs check for this by measuring creatinine levels and specific gravity in every sample. If your urine is too dilute, the result is typically reported as invalid and you’ll need to retest.
Body composition matters most for fat-soluble drugs like THC. People with higher body fat percentages store more THC metabolites and release them more slowly. Age and metabolism play smaller but real roles across all drug classes, with older adults and people with slower metabolisms tending to clear drugs more gradually. Kidney and liver function also affect how quickly your body processes and excretes drug metabolites.
Dose and frequency of use are the biggest variables overall. A single exposure to almost any drug will clear faster than repeated use, because chronic use allows metabolites to accumulate in tissues faster than the body can eliminate them.
False Positives and Confirmatory Testing
Initial urine drug screens use a technology called immunoassay, which is fast and inexpensive but prone to cross-reactivity with unrelated substances. Several common medications and even some foods can trigger false positives:
- Cannabinoids: Ibuprofen, naproxen, proton pump inhibitors (heartburn medications like omeprazole), and hemp-containing foods.
- Opioids: Dextromethorphan (a cough suppressant found in many over-the-counter cold medicines), quinolone antibiotics, and verapamil (a blood pressure medication).
- PCP: Diphenhydramine (Benadryl), dextromethorphan, ibuprofen, ketamine, and venlafaxine (an antidepressant).
- Benzodiazepines: Oxaprozin (an anti-inflammatory) and sertraline (Zoloft).
When an initial screen comes back positive, a second confirmatory test using a more precise method (gas chromatography-mass spectrometry) is run to verify the result. This confirmation step identifies the exact molecule present and eliminates virtually all false positives. In regulated testing programs like federal workplace testing, no result is reported as positive until it passes both the initial screen and the confirmatory test.