In crisis? Call or text 988 any time. Overdose or emergency: call 911.
Diagnosis & Testing

How Long Does Heroin Stay in Your System?

Heroin breaks down quickly into other compounds, so tests look for its byproducts. Urine usually shows use for about one to three days, while hair can reflect months.

Soft sunrise light over a calm lake with mist on the water, suggesting a new day

Key takeaways

  • Heroin has no FDA label because it is not a legal medicine. The body rapidly turns it into 6-MAM and then morphine.
  • 6-MAM is a marker made only from heroin, which is how a lab can tell heroin apart from morphine or codeine.
  • Urine tests usually detect heroin use for about one to three days; hair tests can reflect up to about 90 days.
  • Most heroin in the U.S. now contains fentanyl, which standard opiate tests don't detect and which raises overdose risk.
  • Withdrawal usually starts within 12 hours of last use. Methadone and buprenorphine treat withdrawal and can be used long term.

If you use heroin, or you love someone who does, questions about drug tests often come wrapped up in bigger worries: about safety, about a job or a court date, about what comes next. So how long does heroin stay in your system? Heroin itself doesn’t last long. The body quickly turns it into other compounds, and urine tests usually find those for about one to three days after use. Hair tests can reflect a much longer history. This guide explains how heroin is broken down, what tests look for, and the safety facts that matter more than any test result.

How long heroin stays in your system: the short answer

Heroin is converted quickly, so tests look for what it becomes. In urine, ASAM’s 2017 summary lists heroin’s unique marker, 6-MAM, for about 1 to 3 days, and morphine, its later byproduct, for about 1 to 3 days. Hadland and Levy list heroin in urine for 2 to 3 days, and MedlinePlus gives 1 to 2 days. Hair tests can reflect up to about 90 days. Individual factors vary.

Heroin use is one part of the wider picture covered in our guide to addiction and recovery. For signs, effects and treatment, see our page on heroin addiction.

Why there is no label half-life for heroin

For prescription medicines, the FDA label lists a half-life measured in controlled studies. Heroin is an illegal drug made from morphine, so there is no FDA label and no official half-life to quote. Street heroin also varies widely in strength and in what it is mixed with, which makes any single number unreliable.

What the research does show is that heroin doesn’t stay heroin for long. ASAM explains that heroin is rapidly converted to 6-MAM (6-monoacetylmorphine) and then to morphine. Most of what a test finds, and most of the drug’s effect over time, comes from these byproducts.

6-MAM: the marker that points to heroin

Several drugs end up as morphine in the body. Codeine, a prescription cough and pain medicine, is one of them, and morphine is also a prescription drug. So a morphine result alone can’t say which drug someone took.

That is where 6-MAM comes in. It is made only when the body breaks down heroin. ASAM states that heroin or 6-MAM must be found to confirm heroin use specifically, rather than general opiate use. In general terms:

  • 6-MAM is short-lived in urine. ASAM notes that it breaks down quickly there.
  • Later byproducts last longer. ASAM says the compounds heroin turns into after 6-MAM stay detectable in urine longer than in saliva, so a urine test may still find morphine after 6-MAM has broken down.
  • Saliva behaves differently. ASAM says 6-MAM is present in oral fluid at high concentrations, which is one reason saliva tests can point to heroin more directly than urine.

A clinician or the lab’s medical review officer interprets these results in context. A result showing only morphine, for example, may have several explanations.

Heroin detection by test type

Test What it looks for Reported window Source
Urine 6-MAM About 1 to 3 days; 2 to 3 days in another study ASAM, 2017
Urine Morphine About 1 to 3 days ASAM, 2017
Urine Heroin (as an opiate) 2 to 3 days; 1 to 2 days in MedlinePlus’s general list Hadland and Levy, 2016; MedlinePlus
Blood Drugs themselves rather than byproducts Generally about 2 to 12 hours after use (a general figure for substances, not specific to heroin) Hadland and Levy, 2016
Saliva (oral fluid) Heroin and its byproducts About 1 to 36 hours Hadland and Levy, 2016
Sweat patch Opiates Covers the 7 to 14 days the patch is worn Hadland and Levy, 2016
Hair Opiates Up to about 90 days; traces appear about a week after use Hadland and Levy, 2016

Blood tests are less common. Hadland and Levy note that drug testing of blood is usually done only in emergencies and is rarely used in primary care, partly because it requires drawing blood.

Studies use different lab cutoffs, so these are typical ranges, not guarantees. Our guides to urine drug tests and hair follicle drug tests explain each method in more depth.

What changes how long heroin can be detected

  • How much and how often. Regular, heavy use generally extends detection compared with a single use.
  • What else is in the drug. Heroin mixed with fentanyl or other substances can leave traces of those drugs too, on their own timelines.
  • The test and its cutoff. ASAM explains that a negative result means the drug wasn’t found above the test’s cutoff within its window. It doesn’t prove no use.
  • The person’s body. Metabolism, liver and kidney health, and other medicines all play a part.

Poppy seeds, prescriptions and false positives

Standard opiate screens detect morphine, so heroin use usually triggers a positive opiate result. So can some legitimate things. ASAM notes that poppy seeds produce a small amount of morphine and can, rarely, cause a positive opiate screen. The federal workplace cutoff is designed to rule out poppy seed positives, but tests with lower cutoffs may still pick them up. Prescribed morphine or codeine will also show up.

If you get an unexpected result, ask for a confirmation test. Only a confirmation test that finds 6-MAM or heroin itself confirms heroin. The basic federal five-drug panel includes opiates, as our 5-panel drug test guide explains. This page does not give advice on passing or beating a test.

Fentanyl changes the picture

MedlinePlus reports that most heroin available in the United States is now combined with illegally made fentanyl. That matters for two reasons. First, ASAM notes that fentanyl is not detected by a standard opiate test and needs its own test. Second, and more important, fentanyl greatly raises the risk of overdose. Our page on how long fentanyl stays in your system explains why it can linger longer than heroin in people who use regularly, and fentanyl test strips explains a harm reduction tool some people use.

Overdose and safety

The effects of heroin wear off long before a test turns negative. MedlinePlus explains that after the first rush, people are usually drowsy for several hours and their breathing slows. In an overdose, breathing can slow so much that the brain doesn’t get enough oxygen.

  1. Call 911Do this first if someone can’t be woken, has blue or gray lips, or is breathing very slowly or not at all.
  2. Give naloxoneNaloxone (such as Narcan) is sold over the counter. Follow the package directions. More than one dose may be needed when fentanyl is involved.
  3. Stay with themThe CDC advises staying until help arrives or for at least 4 hours to make sure breathing returns to normal.

Our step-by-step Narcan guide walks through each step. MedlinePlus warns that most opioid overdose deaths occur in people who have just gone through withdrawal, because tolerance drops and a much smaller amount can cause an overdose. That applies after any break, including time in jail, the hospital or treatment. Never use alone, and keep naloxone nearby.

When to get help

MedlinePlus says withdrawal symptoms usually start within 12 hours of the last heroin use. Withdrawal is miserable but treatable, and our heroin withdrawal timeline explains what to expect. MedlinePlus explains that methadone and buprenorphine relieve withdrawal and can be used as long-term maintenance, and it recommends long-term maintenance for people who go through withdrawal over and over. See how long methadone stays in your system and medication-assisted treatment for how they work.

FindTreatment.gov and SAMHSA’s free, confidential National Helpline at 1-800-662-4357 can connect you with care. In an emergency, call 911. If you are in emotional crisis, call or text 988.

Frequently asked questions

What is the half-life of heroin?

There is no FDA label for heroin, so there is no official half-life. ASAM explains that the body rapidly turns heroin into 6-MAM and then morphine, so tests look for those byproducts rather than heroin itself.

How long does heroin stay in your urine?

Usually about one to three days. ASAM lists 6-MAM and morphine in urine for about 1 to 3 days, and Hadland and Levy list 2 to 3 days. Heavy, regular use and the lab’s cutoff can change the window.

What is 6-MAM on a drug test?

6-MAM (6-monoacetylmorphine) is a byproduct made only from heroin. Finding it confirms heroin use specifically. Morphine alone could come from heroin, codeine, prescribed morphine or, rarely, poppy seeds.

How long does heroin stay in your hair?

Hair tests can reflect up to about 90 days of use. Traces take about a week to appear in hair, so very recent use won’t show.

Will a heroin test also detect fentanyl?

Not usually. Standard opiate tests do not detect fentanyl, which needs its own test. Since most U.S. heroin now contains fentanyl, it is worth asking whether a panel includes a fentanyl test.

Sources

  1. Appropriate Use of Drug Testing in Clinical Addiction Medicine (ASAM, 2017)
  2. Objective Testing: Urine and Other Drug Tests (Hadland and Levy, 2016, PMC)
  3. Heroin (MedlinePlus)
  4. Toxicology Screen (MedlinePlus Medical Encyclopedia)
  5. Opiate and Opioid Withdrawal (MedlinePlus Medical Encyclopedia)
  6. Lifesaving Naloxone (CDC)

This article is for general information and is not medical advice. If you are worried about your health or someone else’s, talk to a doctor or call one of the free helplines below.

Written by

Web Admin

Every guide is researched, cited and reviewed under our editorial policy.

Related guides

More in Diagnosis & Testing

Ready to talk to someone?

Free and confidential. Calling is not a commitment to anything.

Call now 1-800-662-4357

This number is SAMHSA’s National Helpline, a free, confidential, 24/7 service of the U.S. government. Gratitude House is not affiliated with SAMHSA.

Call now 1-800-662-4357