Drug Addiction

How Long Does Heroin Stay in Your System?

Heroin clears the bloodstream in minutes, but the metabolites it leaves behind are what drug tests actually look for, and they linger far longer.

Published March 29, 2026 · Updated June 16, 2026 · Last medically reviewed June 16, 2026

A lab technician's gloved hands holding a labeled urine sample cup beside a test panel in a clinical lab

Key takeaways

  • Urine is the most common heroin test and detects metabolites for roughly 2-7 days after last use.
  • Blood has the shortest window (a few hours), while hair can show use up to about 90 days back.
  • Heroin clears the bloodstream in minutes, but its metabolites morphine and 6-MAM persist much longer.
  • 6-MAM is the one marker that points specifically to heroin rather than other opioids.
  • Detection time varies with dose, how often someone uses, metabolism, body weight, and organ function.

If you are facing a drug test, supporting a loved one, or simply trying to understand what heroin does once it is in the body, one question comes up again and again: how long does heroin actually stay in your system? The honest answer is that it depends, mostly on which test is used and on the person being tested.

What makes heroin unusual is how fast it disappears and how long its traces remain. The drug itself clears the bloodstream within minutes, but the substances your body breaks it down into stay detectable far longer. Those byproducts, not heroin itself, are what drug tests actually measure.

How long does heroin stay in your system by test type?

Different tests look in different places and catch different things. Here is the quick reference, with detail in the sections below.

Test typeTypical detection windowMost useful for
Urine2-7 daysStandard screening, clinical and workplace testing
BloodA few hoursConfirming very recent use (emergency or accident settings)
SalivaUp to about 1-2 daysRoadside or point-of-care testing
HairUp to about 90 daysDocumenting a longer history of use

These are general ranges, not guarantees. The same person can fall at different points in each window depending on how much and how often they used.

How long does heroin stay in your urine?

Urine testing is the most common way heroin is screened for, because it is non-invasive, affordable, and offers a reasonable window. Most labs can detect heroin metabolites (primarily morphine) in urine for about 2 to 7 days after the last use, according to the National Institute on Drug Abuse.

Occasional use tends to clear toward the shorter end of that range, while frequent or heavy use can push detection to a week or longer. A typical lab process starts with an immunoassay screen and, if that is positive, confirms the result with a more precise method such as gas chromatography-mass spectrometry.

How long is heroin detectable in blood?

Blood has the shortest window. Because heroin has a very short half-life, the drug leaves the bloodstream within minutes. Its metabolites can be measured in blood for only a few hours, which is why blood testing is usually reserved for situations where confirming very recent use matters, such as emergency medical care or accident investigations.

How long does heroin stay in saliva?

Saliva (oral fluid) testing can pick up recent heroin use quickly, but its window is short, generally up to about one to two days. That makes saliva most useful for point-of-care or roadside testing where the goal is to detect very recent use rather than a longer history.

Can hair testing detect heroin?

Yes, and it offers the longest window of any common test. As hair grows, traces of substances become incorporated into the strand, so a hair sample can reveal heroin use from up to about 90 days earlier. Hair testing is often chosen when a longer record is needed, for example in custody matters or long-term treatment monitoring. It is less useful for catching very recent use, because newly grown hair takes time to reach the sampled length.

Why does heroin leave so fast but stay detectable so long?

This is the part that confuses most people. The answer is in how the body breaks heroin down.

Heroin metabolites: morphine and 6-MAM

Once heroin enters the body, it is rapidly converted into other compounds. The two that matter most for drug testing are:

  • 6-acetylmorphine (6-MAM): a metabolite that is specific to heroin. When a test detects 6-MAM, it points to heroin use rather than other opioids or prescription opiates.
  • Morphine: the longer-lasting active metabolite. Morphine stays detectable for days, which is why urine tests can flag heroin use long after the original dose.

Because heroin itself is gone so quickly, tests are designed to look for these metabolites instead. As MedlinePlus notes, heroin reaches the brain very quickly, which is part of what makes it so addictive, but that fast onset also means the parent drug clears the blood almost as fast as it arrives.

What is the half-life of heroin?

A drug's half-life is the time it takes for its concentration in the blood to fall by half. Heroin's half-life is very short, on the order of minutes, so the drug is essentially eliminated quickly. Its metabolites have longer half-lives, which is exactly why the detectable trail outlasts the drug itself.

What affects how long heroin stays in your system?

Two people can use the same amount of heroin and clear it on very different timelines. Several factors drive that variation.

  • Dose and frequency. Larger doses and frequent or chronic use lead to more accumulation, so detection windows lengthen. Heavy users can test positive in urine for a week or more.
  • Metabolism. A faster metabolism processes and clears substances more quickly.
  • Body weight and composition. Some metabolites are fat-soluble and can be stored in tissue, then released slowly, which can extend detection in people with higher body fat.
  • Liver and kidney function. These organs do the work of clearing drugs from the body, so reduced function can slow elimination.
  • Hydration and the test itself. Hydration can affect the concentration in a urine sample, and different tests have different sensitivity thresholds.

It is worth stressing one point: a positive drug test shows that heroin was used within the detection window. It does not measure current impairment, and it cannot be reverse-engineered into an exact "last used" timestamp. Anyone reading these ranges as a way to "beat" a test should know the science does not support that, and the more important issue is usually the use itself.

When and why is heroin testing used?

Drug testing for heroin shows up in several settings, each with a different purpose. According to SAMHSA's clinical testing guidance, testing supports patient care rather than punishment when it is used well. Common scenarios include:

  • Emergency medical care, to identify substances and guide treatment safely.
  • Behavioral and mental health assessment, to understand whether substance use is contributing to symptoms.
  • Substance use treatment programs, to monitor progress and catch early signs of relapse.
  • Workplace safety, especially in safety-sensitive roles.
  • Legal and custody proceedings, where documented evidence of use or abstinence is needed.

In treatment, the goal of testing is supportive: it helps a care team adjust the plan, reinforce progress, and respond quickly if someone is struggling. Interpreting results correctly takes clinical judgment, which is one reason Clinical Interpretation of Urine Drug Tests exists as guidance for clinicians.

If heroin use is the real concern, treatment works

Questions about detection windows often surface a bigger one: is heroin use becoming a problem? If a drug test, a health scare, or the strain on daily life prompted this search, that is worth paying attention to. Heroin addiction is a treatable medical condition, and effective, evidence-based care exists.

At Clear Steps Recovery, our drug addiction treatment is built around the individual rather than a template. For opioids specifically, heroin rehab and opioid addiction treatment often pair medical care with counseling so the physical and psychological sides of recovery reinforce each other.

Because withdrawal and cravings can be intense and dangerous to manage alone, many people benefit from medication-assisted treatment, which combines approved medications with behavioral therapy. And because relapse risk is highest right after a program ends, structured aftercare helps protect the progress someone has worked for.

Our Medical Director, Dr. Richard Marasa, brings more than 40 years of clinical experience and 21 years of personal recovery to that work. If you want to talk it through, our admissions team is here, confidentially and without judgment, across New Hampshire and Massachusetts.

If you need help right now, the SAMHSA National Helpline (1-800-662-4357) offers free, confidential treatment referral and information 24/7, in English and Spanish.

Sources

  1. Heroin DrugFacts (2024). National Institute on Drug Abuse (NIDA). View source
  2. Heroin (2024). MedlinePlus, U.S. National Library of Medicine. View source
  3. Clinical Drug Testing in Primary Care (TAP 32) (2012). Substance Abuse and Mental Health Services Administration (SAMHSA). View source
  4. Clinical Interpretation of Urine Drug Tests: What Clinicians Need to Know About Urine Drug Screens (2017). Mayo Clinic Proceedings. View source

Frequently asked questions

How long does heroin stay in your urine?

For most people, heroin and its metabolites are detectable in urine for about 2-7 days after last use. Heavier or chronic use can extend that window, while occasional use may clear in 2-4 days.

How long is heroin detectable in blood?

Heroin has a very short half-life, so the drug itself leaves the blood within minutes. Its metabolites can be detected in blood for only a few hours, which is why blood testing is mostly used to confirm very recent use.

Can a hair test detect heroin?

Yes. Hair follicle testing has the longest window and can reveal heroin use from up to about 90 days earlier, depending on hair growth. It is often used when a longer history of use needs to be documented.

What makes heroin stay in your system longer?

Higher doses, frequent or chronic use, slower metabolism, higher body fat, and reduced liver or kidney function can all lengthen how long metabolites stay detectable. No two people clear heroin at exactly the same rate.

Does a positive drug test mean someone is impaired?

No. A positive result means heroin was used within the test's detection window. It does not measure current impairment, because metabolites can stay detectable long after the drug's effects have worn off.

Keep reading

This content is for informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. If you or someone you know is in crisis, call or text 988. In an emergency, call 911.

Call admissions (603) 769-8981 Call admissions: (603) 769-8981