Most drugs clear your system within a few days, but the exact timeline depends on what you took, how often you used it, and which type of test you’re facing. A single use of marijuana might be undetectable in urine after 3 to 4 days, while heavy daily use can show up for three weeks or more. Cocaine typically clears in about 4 days, and most opioids fall in the 1 to 4 day range. The substance, the test type, and your own body all shift those numbers.
Urine Detection Windows by Drug
Urine testing is by far the most common method, and it’s what most workplace and court-ordered screens use. The test doesn’t look for the drug itself in most cases. It looks for metabolites, the byproducts your body creates as it breaks a substance down. That’s why detection windows in urine tend to be longer than in blood or saliva.
Here are the approximate windows for the most commonly tested substances:
- Marijuana (THC): 1 to 3 days for a single or occasional use; up to 3 weeks or more for daily, heavy use
- Cocaine: 1 to 4 days
- Amphetamines and methamphetamine: 1 to 5 days
- MDMA (ecstasy): 1 to 3 days
- Heroin: less than 1 day for heroin itself, but related opioid metabolites may show for 2 to 4 days
- Fentanyl: 1 to 3 days for short-term use; up to 4 weeks with chronic use
- Oxycodone and hydrocodone: 1 to 4 days
- Morphine and codeine: 2 to 5 days
- Methadone: 1 to 14 days
- Benzodiazepines (short-acting): 1 to 4 days
- Benzodiazepines (long-acting, regular use): up to 30 days
- Alcohol: 6 to 8 hours with a standard ethanol test
- Nicotine: 1 to 7 days
- Kratom: 1 to 7 days
- Synthetic cannabinoids (K2/Spice): 1 to 3 days
These are general ranges. The low end reflects a one-time or light use at standard testing cutoffs. The high end reflects heavier, more frequent use or lower cutoff thresholds.
Why Marijuana Has the Widest Range
THC is the substance that causes the most confusion, because its detection window varies enormously depending on how often you use it. THC’s main metabolite is fat-soluble, meaning your body stores it in fat tissue and releases it slowly over time. Someone who smokes once at a party will typically test clean within 3 to 4 days at the standard 50 ng/mL cutoff used in federal workplace testing. At a more sensitive 20 ng/mL cutoff, that single use could show for up to 7 days.
For chronic daily users, the picture is very different. Research published in the Drug Court Review found that even heavy users would not be expected to remain positive for longer than 21 days after their last use, even at the lower 20 ng/mL cutoff. The widely cited “30 days” figure applies mostly to the heaviest users tested at the most sensitive thresholds. At the standard 50 ng/mL cutoff, chronic users generally clear within about 10 days of stopping.
Alcohol Has a Hidden Long Test
Alcohol itself leaves your blood and urine quickly, typically within 6 to 8 hours of your last drink. But there’s a separate test that many people don’t know about. Some programs use a test that detects a specific byproduct your liver produces when processing alcohol. This byproduct can be found in urine up to 48 hours after a few drinks, and sometimes 72 hours or longer after heavier drinking. If you’re being monitored through a court program or treatment center, this is often the test they’ll use.
Hair Testing Goes Back 90 Days
Hair follicle tests work on a completely different timeline. Your hair grows about half an inch per month, and the standard test takes a 1.5-inch sample from near the root. That gives a 90-day window. Unlike urine tests, which capture recent use, hair tests reveal a pattern of use over months.
If scalp hair isn’t available, labs can use body hair from the arms or chest. Body hair grows more slowly, which can widen the detection window to as long as one year. Hair tests are generally better at detecting repeated or heavy use than a single isolated exposure.
Blood and Oral Fluid Tests
Blood tests have the shortest detection windows because they measure active drug levels in your bloodstream rather than stored metabolites. Most substances are detectable in blood for only hours to a couple of days. Blood draws are less common for routine screening because they’re invasive and expensive, but they’re sometimes used in medical settings or accident investigations.
Oral fluid (saliva) tests are becoming more common, especially in workplace settings. The federal government finalized updated guidelines in 2025 that authorize oral fluid as an alternative to urine for federal workplace testing. Saliva tests generally detect drugs for a shorter period than urine, roughly 24 to 48 hours for most substances, making them better at identifying very recent use. The tradeoff is they’ll miss something you used four or five days ago that a urine test would still catch.
What Affects How Fast You Clear a Drug
The detection windows above are averages, and your personal clearance rate can land on either side. Several factors push the timeline shorter or longer:
- Frequency and duration of use: This is the single biggest factor. A one-time dose clears much faster than weeks of daily use, because repeated dosing lets the drug and its metabolites accumulate in your tissues.
- Body fat percentage: Fat-soluble substances like THC are stored in fat cells and released gradually. People with higher body fat may test positive for longer.
- Metabolism and liver function: Your liver does most of the work breaking drugs down. Younger, healthier livers clear substances faster. Liver disease, certain genetic variations, and even being older can slow the process. Blood flow to the liver and the activity of specific enzymes both affect how efficiently your body processes a substance.
- Hydration: Drinking more water dilutes your urine, which can lower the concentration of metabolites in any given sample. This doesn’t speed up actual elimination, but it can affect whether a sample crosses the test’s cutoff threshold. Extremely dilute samples are often flagged and may require a retest.
- Other medications: Some drugs compete for the same liver enzymes. Taking multiple substances at once can slow the breakdown of one or both.
- Kidney function: Many metabolites are filtered out through your kidneys. Reduced kidney function means slower excretion.
How Drug Tests Actually Work
Most initial drug screens are immunoassay tests, a rapid method that uses antibodies to detect drug metabolites above a set concentration threshold. If the metabolite level in your sample is below the cutoff, the result comes back negative, even if trace amounts are technically present. Federal workplace tests, for example, use a 50 ng/mL cutoff for marijuana metabolites and a 150 ng/mL cutoff for cocaine metabolites.
If the initial screen comes back positive, a second, more precise test is run to confirm the result and rule out errors. This confirmatory test uses a lower cutoff. For marijuana, it drops to 15 ng/mL. For cocaine, it’s 100 ng/mL. That two-step process is why confirmed positive results are considered highly reliable.
False Positives From Legal Medications
Immunoassay screens are fast but imperfect. They can cross-react with substances that are structurally similar to the target drug, producing a positive result even though you haven’t taken anything illegal. Some common examples: certain cold medications containing pseudoephedrine can trigger a positive for amphetamines, and some antihistamines or sleep aids can flag for other drug classes.
This is exactly why the confirmatory test exists. It can distinguish between the actual drug metabolite and a lookalike compound. If you’re taking a prescription medication or over-the-counter product and you’re asked to take a drug test, disclosing your medications beforehand helps the reviewing officer interpret results correctly. A false positive on the initial screen will almost always be cleared by the confirmation step.
Why Tests Target Metabolites, Not the Drug
Your body starts breaking down most drugs within minutes of ingestion. Cocaine, for instance, has a very short active life in your blood, but your liver converts it into a metabolite called benzoylecgonine that lingers in your system for days and is easily detected in urine. Heroin is broken down so rapidly that the drug itself is almost never found. Instead, tests look for a specific byproduct that confirms heroin was the source rather than prescription painkillers.
THC follows a similar pattern. The psychoactive compound leaves your blood relatively quickly, but its metabolite is absorbed into fat tissue and slowly released over days or weeks. This is why you can feel completely sober and still test positive: the test isn’t measuring impairment, it’s measuring whether your body is still processing remnants of the drug.

