How Long Does a Substance Stay in Your System?
See approximate detection windows for common substances across urine, blood, saliva, and hair tests, and the factors that change them.
Need support now? Call or text 988 for the Suicide & Crisis Lifeline, or call 1-800-662-HELP for the SAMHSA National Helpline. Free and confidential, 24/7.
Choose a substance above to see its detection windows across all four test types.
Do not stop suddenly on your own. Talk to a doctor, or start with medically supervised detox.
Tolerance drops fast. Carrying naloxone and never using alone are the two things most likely to prevent a fatal overdose.
Urine
Blood
Saliva
Hair
All four windows on the same scale
The solid bar is the shorter end of the range. The faded section shows how much further it can stretch.
What changes these windows
- How much was taken, and how potent it was
- How often and how long it has been used
- Your metabolism, age, and liver and kidney health
- Body fat, for fat-soluble drugs like THC and PCP
- Hydration and the route it was taken
- The specific lab cutoff and the sensitivity of the test
If you are trying to stop
Wanting a substance out of your system is often a sign you are ready for change, and you do not have to do it alone. See what to expect with our withdrawal timeline generator, learn about medically supervised detox and treatment programs, or take a private self-assessment.
These windows are general estimates drawn from clinical and forensic toxicology references, including ARUP Laboratories’ plasma half-life and urine detection window tables, Labcorp and Quest Diagnostics test documentation, and peer-reviewed toxicology literature. They are not a guarantee for any individual or test, and they are not medical or legal advice. If results matter for your health, employment, or a legal situation, talk with a qualified professional or the testing laboratory.
How long substances stay in your system, and why it varies so much
When people ask how long a substance stays in their system, they are really asking about two different things: how long the effects last, and how long a test can detect it. Those are not the same. Long after a drug stops affecting you, your body is still clearing it and the byproducts it leaves behind. Tests look for those byproducts, called metabolites, which is why a substance can be detectable for days after the high is gone. This guide explains how testing works, gives detection windows for the most common substances, and is honest about the wide ranges involved.
The short version
Tests detect metabolites, not the drug itself. The window depends on the substance, the test type, and your body. As a rule, blood and saliva catch only recent use, urine reaches back days, and hair can reach back about three months. There is no single number that fits everyone.
Struggling with use? Call or text 988 for the Suicide & Crisis Lifeline, or call 1-800-662-HELP for the SAMHSA National Helpline. Free, confidential, and open 24/7.
The four test types and what each one detects
Different tests look at different body fluids or tissue, and each has its own reach. The right test for a situation depends on whether someone wants to catch recent use or a longer pattern.
| Test type | Typical window | Often used for |
|---|---|---|
| Urine | 1 to 30 days, by substance | The most common workplace and clinical test |
| Blood | Hours to about 2 days | Recent use; emergency and impairment settings |
| Saliva | A few hours to a few days | Recent use; quick on-site or roadside screening |
| Hair | Up to about 90 days | Longer-term patterns of use |
Hair has the longest reach because, as it grows at roughly half an inch per month, it traps metabolites along its length. A standard inch-and-a-half sample covers about three months. Our detection time calculator lets you check any substance across all four of these tests at once.
Detection windows at a glance
The table below shows approximate urine and hair windows for commonly tested substances. Urine windows assume regular use; one-time use is usually shorter and heavy long-term use can be longer. These are estimates, not guarantees.
| Substance | Typical urine window | Hair |
|---|---|---|
| Cannabis (frequent use) | Up to 30 days or more | Up to 90 days |
| Cocaine | 2 to 4 days | Up to 90 days |
| Methamphetamine | 3 to 5 days | Up to 90 days |
| MDMA | 2 to 4 days | Up to 90 days |
| Heroin and opiates | 1 to 3 days | Up to 90 days |
| Benzodiazepines | 3 days to several weeks | Up to 90 days |
| Alcohol (EtG marker) | Up to 3 to 4 days | Up to 90 days |
The contrast is striking when you place urine windows side by side. Cannabis sits in a class of its own because its active compound is stored in fat and released slowly.
Typical urine detection windows, in days (approximate)
Approximate values for illustration. Real windows depend on dose, frequency, the person, and the lab cutoff.
Detection windows by drug class
Open any section below for substance-by-substance detail across urine, blood, saliva, and hair.
Stimulants (cocaine, meth, amphetamines, MDMA)
Cocaine is detected as the metabolite benzoylecgonine for about 2 to 4 days in urine, 1 to 2 days in blood and saliva, and up to 90 days in hair; heavy use runs longer. Methamphetamine lasts roughly 3 to 5 days in urine. Amphetamines, including prescription stimulants such as Adderall, run about 2 to 4 days in urine. MDMA (ecstasy) is similar at 2 to 4 days. All can appear in hair for up to 90 days.
Opioids (heroin, oxycodone, fentanyl, methadone, buprenorphine)
Heroin and short-acting opiates clear urine in 1 to 3 days, with only hours in blood and saliva. Oxycodone runs about 1 to 4 days. One point matters for safety: fentanyl is usually not detected by standard opiate panels and needs a specific test, and its urine window is relatively short. Methadone and buprenorphine are long-acting and can be detected for up to a week or more, but also need their own tests. Learn about medication-assisted detox if opioids are part of your story.
Depressants (benzodiazepines, barbiturates)
Benzodiazepines vary the most of any class because of how differently they break down. Short-acting types such as alprazolam (Xanax) clear in a few days, while long-acting ones such as diazepam (Valium) can stay detectable in urine for weeks. Barbiturates range from a few days for short-acting types to two or three weeks for long-acting ones like phenobarbital. Stopping these suddenly can be dangerous, so a supervised detox is important.
Cannabis (THC)
Cannabis is the most variable substance of all. Because THC is fat-soluble, it is stored in body tissue and released slowly. A single use may clear urine in 1 to 3 days, but daily use can show up for 30 days or longer after stopping. Blood and saliva windows are short, while hair reaches back up to 90 days.
Dissociatives and hallucinogens (ketamine, PCP, LSD)
Ketamine runs about 2 to 4 days in urine and needs a specific test. PCP is fat-soluble and can show up for a week or longer with heavy use. LSD clears the body very quickly, often within a day or two, and is not part of standard panels, so a special test is required to detect it.
Alcohol
Standard tests detect alcohol itself for only a few hours, and breath tests reflect only recent drinking. A byproduct called EtG extends the urine window to roughly 24 to 80 hours, and longer after heavy drinking. Hair EtG testing can reach back up to 90 days.
What changes how long a substance is detectable
Two people who use the same amount of the same drug can clear it at very different rates. The biggest factors are below, and they are exactly why no calculator can give an exact answer.
About the substance
Its half-life, how it is processed into metabolites, and whether it is stored in fat. Dose, potency, and how it was taken all shift the timeline.
About the person
Metabolism, age, body fat, hydration, and liver and kidney health, plus how often and how long the substance has been used.
What drug test panels include
Most testing uses a standard panel. Knowing what a panel screens for helps explain why some substances are caught and others are missed.
| Panel | What it typically screens for |
|---|---|
| 5-panel | Cannabis, cocaine, amphetamines, opiates, and PCP |
| 10-panel | The 5-panel drugs plus benzodiazepines, barbiturates, methadone, methamphetamine, and others (exact list varies) |
Because panels differ, substances like fentanyl, buprenorphine, ketamine, and LSD often require a specific test rather than a standard screen.
Detection times, and what they really signal
Many people land on a page like this during a stressful moment. It is worth being honest: this information will not help anyone pass or beat a test, and tampering with a sample is itself detectable. But the question often points to something deeper. Wanting a substance out of your system is frequently the first quiet sign that you are ready for something to change, and that is worth paying attention to.
The gap worth closing
In 2024, about 48.4 million Americans aged 12 and older met the criteria for a substance use disorder, yet only around 10.2 million received any substance use treatment that year. If detection times are on your mind, support is closer than it feels.
Know what to expect
Our withdrawal timeline generator shows how symptoms unfold by substance.
Detox safely
Learn about medically supervised detox and full treatment programs.
Check in privately
Take a quick addiction self-assessment to see where you stand.
Because mental health and substance use so often travel together, integrated dual diagnosis care can address both at once, supported by CBT, motivational interviewing, and other evidence-based therapies. Care ranges from outpatient and intensive outpatient to residential treatment.
Common questions about detection times
Can I make a substance clear faster?
Only time, healthy metabolism, and your body’s own processing clear a substance. Staying hydrated and well is good for you, but no product, drink, or trick reliably speeds elimination, and so-called detox products do not change the underlying chemistry. The reliable path is time and, when use is a problem, support.
Why do the windows vary so much?
Because detection depends on the substance’s chemistry, how much and how often it was used, your individual body, and the sensitivity of the specific test and lab cutoff. Published ranges reflect that real-world variation.
Does body fat affect detection?
For fat-soluble substances like THC and PCP, yes. They are stored in fatty tissue and released over time, which can extend the window for people with higher body fat or after frequent use.
What is EtG, and why does it matter for alcohol?
EtG (ethyl glucuronide) is a byproduct of alcohol. While alcohol itself leaves the blood within hours, EtG lingers, so an EtG urine test can detect drinking for up to several days afterward, which is why it is used in abstinence monitoring.
Will my prescription show up?
It can. Legitimate prescriptions for stimulants, opioids, or benzodiazepines may trigger a positive result. Disclosing a valid prescription to the testing program is the right step, and confirmatory testing distinguishes prescribed use.
Find treatment and recovery support near you
Help is more reachable than most people expect, and it is easier to follow through on when it is local. Our directory is expanding across the country, so you can start with your city or neighborhood. Below is a sample, with more added regularly.
West
Arizona: Phoenix, Old Town Scottsdale, Mesa, and Tucson’s University District.
Midwest
Chicago: West Loop, Lakeview, Hyde Park. Columbus: German Village, Upper Arlington.
South
Atlanta: Midtown, Virginia-Highland. Louisville: Old Louisville, St. Matthews.
Northeast
Philadelphia: University City, Center City, Manayunk.
Or browse care by state, including Texas, Florida, New York, New Jersey, Virginia, North Carolina, Washington, Colorado, Michigan, Massachusetts, Tennessee, Ohio, Illinois, Georgia, Arizona, and California. Specialized care is available for veterans, professionals, young adults, and teens.
Related tools
Withdrawal timeline generator
How symptoms unfold, by substance.
Mental health check-in
Private screening across nine areas.
Rehab coverage checker
See what your insurance may cover.
How this resource is built
The detection windows here are drawn from clinical and forensic toxicology references, including peer-reviewed work and major testing laboratories, and the national figures come from SAMHSA. We present detection science for education and recovery only; we do not provide ways to evade testing. Every window is an approximate range, never a guarantee, and we update this page as the evidence evolves.
References and citations
Verstraete AG. Detection times of drugs of abuse in blood, urine, and oral fluid. Ther Drug Monit. 2004. pubmed.ncbi.nlm.nih.gov
Drug Testing. StatPearls, National Center for Biotechnology Information (NIH). ncbi.nlm.nih.gov
Labcorp. Workplace Drug Testing FAQs (detection windows). labcorp.com
Quest Diagnostics. Oral fluid drug testing detection windows. questdiagnostics.com
SAMHSA. Results from the 2024 National Survey on Drug Use and Health. samhsa.gov
SAMHSA National Helpline (1-800-662-HELP). samhsa.gov
988 Suicide & Crisis Lifeline. 988lifeline.org
Detection Time Calculators
Every substance has its own window, its own metabolite, and its own way of slipping past a drug test. Pick one to see the detail.
- All substances
- Alcohol
- Cannabis
- Cocaine
- Codeine
- Crystal meth
- Fentanyl
- Gabapentin
- Heroin
- Hydrocodone
- Ketamine
- Klonopin
- Kratom
- LSD
- MDMA
- Methadone
- Opiates
- Ritalin
- Tramadol
- Valium
- Xanax
All windows are estimates. Detection times vary widely from person to person, and no calculator can tell you when a test will be clear.

