Heroin itself breaks down within minutes, but the substances it breaks down into can be found for much longer. Urine tests usually detect heroin use for up to about three days, saliva and blood tests for a day or two, and hair tests for roughly 90 days. The one marker that proves heroin specifically, a breakdown product called 6-MAM, disappears from urine in less than a day. How long heroin stays in your system depends on how much and how often someone uses. If you are asking because of someone you love, heroin addiction treatment can start before any test result comes back.
How Heroin Breaks Down in the Body

Heroin is a short-acting drug with a short half-life: Mayo Clinic Laboratories puts it at a few minutes [1]. In that short period, heroin breaks down into 6-monoacetylmorphine (6-MAM) and then into morphine, which drives much of the high heroin produces.
Those heroin metabolites are what tests actually look for. Mayo Clinic Laboratories describes the presence of 6-MAM as conclusive evidence of prior heroin use, because morphine alone can come from other sources. The effects themselves wear off within several hours, long before the metabolites do. How long does a heroin high last? Our chapter covers the drowsy period and what follows it.
Heroin Detection Times by Test Type
Each test type has its own detection windows. The ranges below come from a StatPearls review of drug testing. Detection time depends on both the specimen being tested and the specific drug or metabolite the laboratory is looking for. The strongest heroin-specific figures in the sources below are for urine testing. The blood, oral-fluid, and hair ranges describe how those specimen types behave in drug testing generally and should not be read as guaranteed heroin-specific windows [1][2].
| Test type | Typical window supported by the cited sources | What it can tell you |
|---|---|---|
| Urine | 6-MAM about 8 hours; morphine and other opiate findings may persist about 2 to 3 days [1] | Best-established heroin-specific window in these sources |
| Blood | Generally a short detection window that varies by drug and analyte [2] | Most useful for relatively recent exposure |
| Oral fluid (saliva) | Often up to about 48 hours across drugs, depending on the substance tested [2] | Primarily reflects relatively recent exposure |
| Hair | Scalp hair generally reflects roughly 3 months of drug-exposure history [2] | Can provide a longer-term history, but interpretation depends on the drug and test used |
Testing a person is also different from identifying a substance you found, which our chapter on what heroin looks like in powder and tar form covers.
Urine Testing
Urine testing is the sample used in many workplace, clinical, and court-ordered drug tests. The StatPearls review notes that many substances become detectable in urine about 2 hours after use [2]. For heroin, Mayo Clinic Laboratories reports that opiates can be found for up to about 3 days, while 6-MAM is detectable for only about 8 hours, so a positive urine test for morphine does not show exactly when the last dose was taken.
Standard urine drug screens have a known gap. The opiate screen is built to detect morphine, and the same review notes that it does not reliably detect synthetic opioids such as fentanyl. Because fentanyl is now common in the heroin supply, a standard opiate screen can pick up the morphine from heroin and still miss the fentanyl someone took.
Blood, Oral Fluid and Hair Testing
Blood testing and oral fluid testing both cover short windows, usually a day or two, which makes them useful for very recent use and less useful for anything older. Body fluids like blood and saliva reflect what is circulating at the time of collection, and a test looks for a specific drug or metabolite within that sample.
Hair drug testing looks back much further. As hair grows, traces of drugs are captured in the hair shaft from the hair follicles, and the StatPearls review puts scalp hair at roughly 3 months, or about 90 days, of history, with body hair reaching back up to 12 months [2]. Hair testing can show a pattern of repeated use over longer periods, though it may miss the most recent days, since that hair has not grown out yet.
What Changes How Long Heroin Stays

The windows above are typical ranges, not guarantees, and a test is only one of the signs of heroin use a family might weigh. Several factors can push a result one way or the other:
- How much heroin was used, and whether it was a single dose or repeated use over days
- Individual metabolism, which varies from person to person
- Liver and kidney function, since those organs clear the metabolites, and conditions like liver disease can slow that down
- How concentrated the urine sample is at the time of the test
- Which test and cutoff levels the lab uses
Long-term use also takes a toll on overall health, including the liver, kidneys, and lungs. Our chapter on what heroin does to the body over months and years covers those effects.
Detection Time Is Not the Same as Withdrawal
A negative test does not mean the body has recovered. The National Institute on Drug Abuse describes heroin withdrawal symptoms that begin within a few hours of the last dose, peak between 24 and 48 hours, and subside after about a week [3]. Someone can be past the urine window and still be in the middle of withdrawal, or past withdrawal and still struggling with cravings.
Short detection times also say nothing about risk. Heroin slows the central nervous system, and respiratory depression, or dangerously slowed breathing, is what makes an overdose deadly, especially when heroin is mixed with alcohol or other sedating drugs. The heroin withdrawal timeline goes through the withdrawal stages hour by hour.
Why a Test Can Show Opiates Without Heroin
A positive opiate result does not automatically mean heroin. Morphine and codeine show up after legitimate medication use, and codeine use can produce morphine as the body breaks it down. Poppy seeds can also affect results: Mayo Clinic Laboratories notes that eating large amounts of poppy seed baked goods can produce urine morphine levels of up to 2,000 ng/mL for 6 to 12 hours, without any drug effect [1]. That is why labs look for 6-MAM, and why confirmatory testing uses gas or liquid chromatography with mass spectrometry, which the StatPearls review describes as far more specific than a screening test.
A standard panel can also pick up other opioids, and each has its own window. Our post on how long opioids stay in your system compares them.
When a Clinical Assessment Comes Before a Test
For a family, a drug test answers a narrow question. A clinical assessment answers a bigger one: whether someone has heroin use disorder, and what kind of care fits. A primary care clinician or an addiction specialist can start that conversation without a positive result. Physical signs and behavior often tell a family more than a single test.
Opioid use disorder treatment can include medication, behavioral therapy, residential care, and structured outpatient care, and those treatment options can be combined. Depression and other mental health conditions can come up in that assessment and are treated alongside substance use. If you noticed an odor you could not place, our chapter on what does heroin smell like may help.
Frequently Asked Questions About Heroin Detection
Short answers to three questions that come up once a test is involved.
What Does 6-MAM Mean on a Drug Test?
6-MAM, short for 6-monoacetylmorphine, is a breakdown product made only when the body processes heroin. Finding it is strong evidence of heroin use rather than prescription morphine or codeine. It clears from urine in less than a day, so a test without 6-MAM does not rule heroin out if the sample was taken later.
Can Poppy Seeds Cause a Positive Test for Heroin?
Poppy seeds can raise morphine levels in urine for several hours after eating large amounts, which can lead to testing positive on an opiate screen. They do not produce 6-MAM, so a confirmatory test can separate poppy seeds from heroin. Anyone worried about a result can ask the lab or the ordering clinician about confirmatory testing.
Will a Urine Test Show Heroin Used Last Week?
Usually not. Urine tests generally detect opiates from heroin for up to about three days, and 6-MAM for less than one day, so use from a week ago is rarely detectable in urine. A hair test covers a much longer window and is more likely to show use from the past few months.
Getting Help for Heroin Use
A drug test can confirm a worry, but it cannot tell you what to do next. If you are concerned about someone’s heroin use, the admissions team at Bright Paths Recovery can talk through heroin treatment and medically supervised detox near Northridge and help you plan the next conversation. The Substance Abuse and Mental Health Services Administration National Helpline (1-800-662-4357) is free and confidential, and anyone in crisis can call or text 988.
This article is for informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. If someone is not breathing or cannot be woken, call 911 immediately.
Sources
- Mayo Clinic Laboratories. Opiates: Drug Testing. https://www.mayocliniclabs.com/test-catalog/drug-book/specific-drug-groups/opiates
- StatPearls. Drug Testing. National Library of Medicine. https://www.ncbi.nlm.nih.gov/books/NBK459334/
- National Institute on Drug Abuse. What are the long-term effects of heroin use? https://nida.nih.gov/publications/research-reports/heroin/what-are-long-term-effects-heroin-use