How Long Does Heroin Stay in Your System?

Heroin itself leaves your bloodstream within minutes, but the metabolites it produces can be detected for much longer, ranging from a few hours to 90 days depending on the type of test. The body breaks heroin down so quickly that most drug tests don’t look for heroin at all. Instead, they detect what heroin turns into.

How Your Body Breaks Down Heroin

Heroin has one of the shortest half-lives of any recreational drug. Enzymes in your blood convert it into an intermediate metabolite called 6-MAM in about 9 minutes. Your liver then converts 6-MAM into morphine, with a half-life of roughly 40 minutes. Morphine is eventually processed further and eliminated through your kidneys.

This rapid chain of breakdown is what makes heroin tricky to detect directly but also what gives drug tests their target. The presence of 6-MAM in any sample is considered conclusive proof of heroin use, because no other common substance produces it. Morphine, on the other hand, can come from prescription painkillers or even poppy seed consumption, so labs specifically test for 6-MAM when they need to confirm heroin rather than other opioids.

Detection Windows by Test Type

Urine

Urine testing is the most common method. The heroin-specific metabolite 6-MAM is only detectable in urine for about 8 hours after use because it’s converted to morphine so quickly. Morphine itself stays detectable longer, typically 1 to 3 days. Standard urine panels screen for opiates broadly and then use a confirmatory test with a cutoff of 10 ng/mL for 6-MAM to identify heroin specifically.

This short window means timing matters. If a urine test is administered more than a day after use, it may detect morphine but not necessarily link it to heroin unless 6-MAM is still present.

Blood

Blood tests have the shortest useful detection window. Because heroin’s half-life is about 9 minutes and 6-MAM’s is about 40 minutes, blood testing is only practical within a few hours of use. Blood draws are mostly used in emergency medical settings rather than routine screening.

Saliva

Oral fluid tests can detect heroin metabolites for roughly 24 to 48 hours. The confirmatory cutoff for 6-MAM in saliva is 2 ng/mL, which is lower than the urine threshold, making saliva tests slightly more sensitive. These tests are sometimes used in roadside or workplace settings because collection is straightforward and harder to tamper with.

Hair

Hair follicle testing offers the longest detection window: up to 90 days. Head hair grows at an average rate of half an inch per month, so a standard 1.5-inch sample cut at the scalp covers roughly three months of history. Labs collect about 90 to 120 strands. Hair testing can’t pinpoint when within that 90-day window use occurred, and it doesn’t detect very recent use (typically the most recent 7 to 10 days won’t show up, since the hair hasn’t grown above the scalp yet).

Factors That Shorten or Extend Detection

Detection windows are averages, and several individual factors push them shorter or longer. Urine drug concentrations don’t mirror blood levels. They reflect how quickly your body metabolizes and eliminates the drug plus how concentrated your urine is at the time of collection.

The main variables include:

  • Dose and frequency of use: A single small dose clears faster than heavy or repeated use. Chronic use leads to accumulation of metabolites in tissue, extending the window.
  • Body composition: People with lower body mass tend to eliminate drugs faster. Morphine is water-soluble, so body fat plays less of a role than it does with some other drugs, but overall metabolism still matters.
  • Hydration: Drinking large amounts of water dilutes urine, which can push metabolite concentrations below the test’s cutoff. Labs check for this by measuring creatinine levels and specific gravity in the sample. A result that’s too dilute is typically flagged and may require a retest.
  • Kidney and liver function: Since your liver converts the metabolites and your kidneys excrete them, impaired function in either organ slows clearance.
  • Age and metabolic rate: Younger people with faster metabolisms generally clear drugs more quickly.

How Labs Tell Heroin Apart From Other Opioids

A basic opiate screening test can’t distinguish heroin from morphine, codeine, or even poppy seeds. All of these produce morphine in the body. The key differentiator is 6-MAM. This metabolite only forms from heroin, not from prescription opioids or food containing poppy seeds.

Research has confirmed that poppy seed consumption produces detectable levels of morphine and a marker called thebaine, but never 6-MAM. So if a confirmatory test finds 6-MAM, the result points specifically to heroin. The challenge is that 6-MAM disappears from urine within about 8 hours, which means a test taken later might show morphine without the heroin-specific marker, making the source ambiguous.

What This Means in Practice

For a standard urine drug test, most people will test positive for opiates for 1 to 3 days after heroin use, with the heroin-specific marker only present in the first 8 hours or so. A hair test extends that window to 90 days. Blood and saliva tests fall somewhere in between, covering hours to a couple of days.

If you’re facing a workplace or legal drug test, the type of test determines how far back it can look. Urine panels are the default for most employment screenings. Hair tests are less common but used in some industries and legal proceedings specifically because of their longer detection window. The exact result for any individual depends on the dose, how often the drug was used, and the body’s own speed of metabolism and elimination.