“How long can a drug be detected?” is one of the most common questions about drug testing, and the honest answer is “it depends.” A detection time (also called a detection window) is the period after use during which a test can find a drug or its metabolite in a sample. That window is not fixed. It changes with the substance, the amount used, how often it was used, the sample type, the sensitivity of the test and the individual person. This page collects the typical ranges published by public health and clinical sources, explains why the numbers differ from source to source, and shows how to read them sensibly. It is general education to help people understand testing, not a calculator and not a way to time anything.
Adults only (18+). Follow your state’s law. Our products are not for defrauding any drug or alcohol test.
This page is general information, not medical or legal advice.
How to Read Detection Times
Treat every number below as an estimate. The U.S. Food and Drug Administration (FDA) describes its own ranges as “only guidelines” that “can vary significantly” based on how long a person has been taking a drug, the amount, and the person’s metabolism. Drugs.com says the same: detection times “should be considered estimates rather than exact time limits.” A few ideas explain most of the variation:
- Parent drug vs metabolite. Many urine tests look for a metabolite, the substance the body makes while breaking a drug down, and metabolites often last longer than the drug itself. Cocaine, for example, leaves the body very quickly, but its metabolite benzoylecgonine is what urine tests usually look for.
- Half-life. This is the time the body takes to reduce the amount of a drug by half. ARUP Laboratories notes that, in general, about five half-lives are needed for a drug to be eliminated.
- Cutoff level. A cutoff is the concentration at or above which a test reports positive. A test with a lower cutoff can detect a drug for longer than one with a higher cutoff.
- Detection is not impairment. A drug can be detectable long after its effects have worn off, as Drugs.com points out. A positive result does not show that someone was impaired at that moment.
Detection Windows by Sample Type
| Sample | Typical window | What it tends to show |
|---|---|---|
| Urine | Roughly 1–4 days for most drugs; longer after heavy or repeated use, and notably longer for marijuana metabolites | Use in the recent past; the most common type of test |
| Saliva (oral fluid) | Usually up to about 24–48 hours | More recent use; often detects the parent drug |
| Blood | Hours to about 1–2 days | Very recent use and the amount in the body at the time of collection |
| Hair (scalp) | About 3 months for a standard sample taken near the scalp | A longer history of use; not recent use |
| Hair (body) | Up to about 12 months, since body hair grows more slowly | A longer history of use |
| Sweat patch | Hours to weeks, depending on how long the patch is worn | Cumulative use over the wear period |
Sources: StatPearls, Cleveland Clinic, the Merck Manual and a PubMed Central review of objective drug testing. A few things to know about each sample:
- Urine needs time to show a drug. Texas DFPS, citing a national testing laboratory, notes that urine generally cannot detect very recent use because it takes roughly six to eight hours or more for a drug to be metabolised and excreted.
- Hair grows about half an inch a month and metabolites typically take about a week to appear in the part of the hair that is cut, so it does not reflect the last few days.
- Blood and saliva are better suited to recent-use questions than to history.
Typical Urine Detection Windows by Substance
The table below puts together ranges from several sources so you can see how much they overlap and where they differ. The “typical range reported” column is a summary of the published ranges, written in plain terms. Ranges for marijuana, benzodiazepines and other substances are wider because they depend heavily on how often and how much a person has used.
| Substance or class | Typical range reported in urine | Notes from the sources |
|---|---|---|
| Alcohol (ethanol) | About 12–24 hours | Blood and breath tests are more usual for alcohol |
| Amphetamine | About 1–7 days | ARUP gives 1–7 days, StatPearls 2–4 days and the FDA 2–3 days; elimination is pH dependent |
| Methamphetamine | About 1–4 days | ARUP and Drugs.com |
| MDMA (ecstasy) | About 1–5 days | StatPearls 1–5 days; the FDA 2–4 days |
| Cocaine (metabolite) | About 1–3 days | Longer after repeated or heavy use, with some sources reporting ten days or more |
| Marijuana (THC metabolites) | About 1–3 days for occasional use; longer with frequent use, up to several weeks | StatPearls: casual 1–3 days, daily 5–10 days, chronic 4–6 weeks; the FDA 1–7 days; Drugs.com 1–45 days |
| Codeine and morphine | About 1–3 days | Can appear after eating poppy seeds |
| Heroin (6-MAM metabolite) | Less than a day | The 6-MAM metabolite is short-lived; morphine, which is also made from heroin, lasts about 1–3 days |
| Oxycodone | About 1–3 days | Often requires a specific test, since it may not be picked up by a basic opiate screen |
| Fentanyl | About 1–7 days | StatPearls reports up to 30 days after chronic use |
| Methadone | About 1–14 days | Wide range; StatPearls 2–4 days, ARUP 1–14 days |
| Buprenorphine | About 1–10 days | ARUP; may not appear on a standard opiate screen |
| Benzodiazepines | About 3–7 days for therapeutic doses; up to about 30 days with chronic use | StatPearls; longer-acting drugs last longer |
| Barbiturates | About 1–4 days for short-acting types; 10–20 days for phenobarbital | StatPearls |
| PCP (phencyclidine) | About 2–7 days; up to about 30 days with chronic use | StatPearls |
| LSD | Hours to about a day | Texas DFPS laboratory chart; not included in many standard panels |
Sources include StatPearls Table 1, detection periods for frequently screened substances in urine, the FDA’s drugs of abuse home use test page, ARUP Consult’s drug half-lives and urine detection windows, Drugs.com and the Texas DFPS appendix on detection periods. All of these are estimates, and a specific laboratory’s cutoff can change the result.
Why the Numbers Differ Between Sources
If you compare charts, you will notice that they do not agree exactly. That is normal, and it is not a sign that one of them is wrong. Common reasons include:
- Different cutoffs. Clinical lab methods and workplace rapid tests use different thresholds.
- Different populations. Some charts reflect single-use studies, others heavy daily use.
- Different methods. Immunoassay screens and mass-spectrometry confirmations have different sensitivity.
- Different ways of reporting. Some sources report the earliest time a drug is detectable, some the last, and some include metabolites while others look at the parent drug only.
Factors That Affect Detection Time
| Factor | How it can affect the window |
|---|---|
| Dose and frequency of use | Higher doses and repeated use generally mean longer windows, and for some drugs the difference is large |
| Duration of use | Substances that build up in the body over time, such as marijuana metabolites or long-acting benzodiazepines, can stay detectable for longer after long-term use |
| Individual metabolism | Age, genetics, liver and kidney function and other medicines can speed up or slow down elimination |
| Type of drug | Drugs differ widely in half-life and in how long their metabolites persist |
| Route and formulation | Oral, injected or inhaled forms can change absorption and timing |
| Sample type | Blood and saliva show short windows; urine is longer; hair is longest |
| Test method and cutoff | More sensitive tests and lower cutoffs detect smaller amounts |
| Urine acidity | For some drugs, such as amphetamines, elimination depends on urine pH, as ARUP notes |
Because so many factors interact, no chart can tell an individual exactly when a particular test would read negative or positive. If you need a reliable answer for a medical or legal reason, ask a clinician, pharmacist or the program that is testing you.
Prescription and Over-the-Counter Medicines
Prescribed medicines can appear on tests, including opioids, benzodiazepines, stimulants used for attention-deficit disorder and buprenorphine or methadone used in treatment. A positive result for a prescribed medicine does not show misuse. If you take a medicine that could appear on a test, tell the Medical Review Officer or the person named in the testing policy through the proper process, and do not stop a prescribed medicine without talking to your prescriber. Some over-the-counter products can also cause a screen to read positive for another drug class, which is one reason a positive screen is normally confirmed in a laboratory before any action is taken.
Home Test Kits and Detection Windows
Home test cups look for a set of drugs above fixed cutoffs, so their windows follow the same general pattern as laboratory urine screens. The FDA’s home use test guide points out that a negative result is not proof a drug was never used, because the sample may have been collected too soon or too late, or the test may not cover the right drug. Personal and family testing should be treated as a first, preliminary step and not as a final answer. For example, the Twelve Panel PreScreen Plus Mini Drug Test is a single-use urine cup that, per its product page, screens for twelve drugs with results in as little as five minutes. Read our guide to the difference between a drug screen and a drug test to understand what happens after a preliminary positive.
Detection Times FAQ
How long does marijuana stay in urine?
It depends strongly on how often it was used. Sources commonly report about one to three days after occasional use, longer with regular use, and several weeks after long-term heavy use. Published ranges differ because tests and cutoffs differ.
Which sample has the longest detection window?
Hair. A standard scalp hair sample reflects about three months, and body hair can reflect up to about a year. Hair is not suited to detecting very recent use.
Why do different websites list different detection times?
They use different studies, cutoffs, methods and populations. Treat any chart as an estimate and look for sources that say how their numbers were produced.
Does detection mean someone is impaired?
No. Drug tests detect substances or metabolites, not impairment. A drug can be detectable after its effects have worn off.
Do prescription medicines show up on tests?
Some do. Disclose prescribed medicines through the process in the testing policy, so a Medical Review Officer or clinician can interpret the result.
Can I rely on a chart to know when a test will be negative?
No. Charts show typical ranges, not individual results, and cannot account for personal metabolism, dose history or test cutoffs. For a decision that matters, speak to a health professional.
Where can I read more?
Our drug testing information page explains the types of tests, who uses them and what rights you generally have, and the sources below give the original data.
Sources and Further Reading
- StatPearls (NCBI Bookshelf): Detection Periods for Frequently Screened Substances in Urine
- U.S. Food and Drug Administration: Drugs of Abuse Home Use Test
- ARUP Consult: Drug Half-Lives and Urine Detection Windows
- Drugs.com: Toxicology Tests, Types, Results and Detection Times
- Texas Department of Family and Protective Services: Detection Periods for Abused Substances
- National Institute on Drug Abuse (NIH): Drug Testing
- PubMed Central: Objective Testing, Urine and Other Drug Tests
Related reading on this site: drug testing information and resources and drug screen vs drug test.
This page is general information, not medical or legal advice.