How Long Does It Take to Get Heroin Out of Your System?

Heroin itself disappears from the bloodstream remarkably fast, often within 10 to 45 minutes of use, but that does not mean your body is truly clear of it. The drug breaks down into a chain of metabolites that linger far longer, and those metabolites are exactly what drug tests look for. Depending on the type of test, evidence of heroin use can be detected anywhere from a few hours to several months after the last dose.

How Heroin Breaks Down in the Body

After entering the bloodstream, heroin (diacetylmorphine) is dismantled in stages. Enzymes in the blood and liver strip off one of its acetyl groups almost immediately, converting it into a metabolite called 6-monoacetylmorphine (6-MAM). This first step happens so quickly that heroin’s half-life in the blood is only about three to four minutes after injection. Within roughly half an hour, heroin itself is essentially gone from circulation.

6-MAM sticks around a bit longer. Studies measuring its elimination half-life have reported figures ranging from about five minutes to around 22 minutes, depending on the route of use and the study population.

The next step is the conversion of 6-MAM into morphine, which is carried out primarily by an enzyme in the liver. Morphine has a substantially longer half-life, generally in the range of two to four hours. From there, morphine undergoes further processing into compounds called glucuronides (mainly morphine-3-glucuronide and morphine-6-glucuronide), which are eventually excreted by the kidneys.

This cascade matters because a drug test is not looking for heroin itself. It is looking for the trail of metabolites heroin leaves behind, and those metabolites persist in the body long after the parent drug has vanished.

Detection Windows by Test Type

The answer to “how long will it show up” depends entirely on what kind of sample is being tested. Each type of specimen catches a different window of the metabolic trail.

Blood

Blood tests have the shortest detection window. Heroin becomes undetectable in blood within about 10 to 45 minutes, and 6-MAM follows soon after. Morphine can be detected in blood for a few hours. Because of this narrow window, blood testing for heroin is mostly used in emergency or forensic settings where recent use is suspected, not in routine screening.

Urine

Urine testing is the most common method in workplace, clinical, and legal contexts. After heroin use, morphine and its glucuronide metabolites are excreted through the kidneys and remain detectable in urine for roughly one to three days for occasional users. Heavy or chronic users can test positive for longer, sometimes up to about a week, because the body accumulates more metabolite that needs to be cleared. The specific metabolite 6-MAM is heroin’s telltale signature in urine and typically remains detectable for only about two to eight hours after use, making its presence strong evidence of very recent heroin intake. Standard screening panels flag opiates generally; confirmation testing then distinguishes which opiate metabolites are present.

Saliva (Oral Fluid)

Oral fluid testing catches a window similar to blood testing but is less invasive. Heroin and 6-MAM can be found in saliva within minutes of use and generally remain detectable for roughly 24 to 48 hours. Acetylcodeine, a minor impurity in street heroin, has also been identified as a useful marker in oral fluid samples, helping confirm that the source was illicit heroin rather than a prescription opiate.

Hair

Hair testing has the longest detection window by far. As heroin metabolites circulate in the bloodstream, small amounts become incorporated into growing hair follicles. A standard hair test examines the most recent 1.5 inches of growth (representing roughly 90 days), but longer samples can theoretically reveal use going back many months. Research on hair from people who used heroin has found measurable concentrations of 6-MAM and morphine, with wide ranges reflecting different levels of use. In head hair samples, 6-MAM concentrations ranged from as low as 0.1 ng/mg in occasional users to over 150 ng/mg in heavy users, with corresponding morphine levels spanning a similar spread. Researchers have proposed that these concentration ranges can help estimate whether someone’s use was occasional, regular, or heavy.

Sweat

Sweat patches, worn on the skin for days at a time, offer a cumulative detection window. A study comparing sweat patches worn for a week against multiple urine collections found that sweat testing provided a detection window of a week or longer and confirmed heroin use in about 78% of positive cases by identifying heroin itself or 6-MAM in the patch. This method is sometimes used in drug treatment programs or criminal justice supervision because a patch worn continuously cannot be defeated by the timing tricks that sometimes work with urine tests.

Why the Timeline Varies from Person to Person

The detection windows above are rough guides, not guarantees. Several factors push the timeline earlier or later for a given individual.

Liver function is probably the biggest variable. Since the liver handles most of the heavy lifting in converting heroin’s metabolites into forms the kidneys can excrete, any impairment to liver function slows the whole process down. When liver metabolic pathways are disrupted, drug metabolites accumulate in the blood, the effective half-life increases, and clearance takes longer. Kidney disease similarly impairs excretion of the end-stage metabolites, keeping them detectable for an extended period.

Genetic variation also plays a role. The enzymes responsible for heroin metabolism, including the carboxylesterases that convert 6-MAM to morphine and the glucuronidation enzymes that process morphine, vary in activity from person to person. The rate and specific pathways of opioid metabolism can be influenced by genetic factors and race. Someone whose enzymes work efficiently will clear the drug chain faster than someone whose enzymes are sluggish.

Body composition, hydration, age, and the dose used all contribute as well. A larger dose produces more metabolite that needs to be processed, and chronic use can lead to accumulation in tissues. Heavily hydrated urine is more dilute, which can push metabolite concentrations below the cutoff threshold of a screening test, though laboratories have methods to flag and adjust for dilute specimens.

How Route of Administration Changes the Picture

How heroin enters the body affects not just how quickly it hits the brain but also how quickly its metabolites appear and peak. Intravenous injection produces the most abrupt spike: heroin peaks in the arterial blood within about 30 seconds and in venous blood within roughly two minutes, then drops off with that very short three-to-four-minute half-life. Smoking produces a similarly rapid onset, with heroin’s half-life measured at about 3.3 minutes in one study of smoked heroin, and 6-MAM and morphine half-lives of about 5.4 and 18.8 minutes, respectively.

Intranasal use (snorting) is different. The peak blood concentration is substantially lower and takes longer to reach, roughly four to five minutes compared to the near-instant peak from injection. The half-life is also slightly longer, around five to six minutes. This slower absorption and lower peak explains why snorting produces less intense euphoria than injection or smoking, but it also means the metabolic trail may spread out over a somewhat longer period rather than spiking and crashing.

For practical purposes, though, the route of administration makes less difference to detection windows than people tend to assume. Regardless of how heroin enters the body, it funnels through the same metabolic chain, and the downstream metabolites (morphine and its glucuronides) are what most tests detect. The route primarily affects the intensity and timing of the high, not whether a urine test three days later will catch it.

How Labs Tell Heroin Apart from Other Opiates

A common concern, and a real complication in toxicology, is distinguishing heroin use from the use of prescription opiates like codeine or pharmaceutical morphine. Standard immunoassay screening tests flag “opiates” as a class. They do not specify which one. That is where confirmation testing and specific biomarkers come in.

The most direct marker for heroin is 6-MAM. Since 6-MAM is produced from heroin and not from codeine, morphine, or other prescription opioids, finding it in a sample is considered strong evidence of heroin use specifically. The catch is that 6-MAM has a very short detection window. In urine, it is often gone within hours. So if a sample is collected too late, the lab may find morphine and codeine (a minor metabolite of heroin) but no 6-MAM, making the picture ambiguous.

When 6-MAM is not detected, labs sometimes look at the ratio of morphine to codeine in the sample. A study of over 2,400 forensic autopsy cases found that when 6-MAM was present, the morphine-to-codeine ratio was greater than one in 98% of blood samples and 96% of urine samples. A morphine-to-codeine ratio above one is therefore considered a good indicator of heroin use in post-mortem cases.

Another approach involves looking for acetylcodeine, a trace impurity found in illicitly manufactured heroin but not in pharmaceutical-grade opiates. Acetylcodeine has been detected in both urine and oral fluid samples and can serve as an additional flag for illicit heroin as opposed to prescription drugs. However, its concentrations in hair are often very low, making it less reliable as a standalone marker in hair testing. In one study, acetylcodeine was absent in about half of the hair specimens that tested positive for 6-MAM, and it was completely absent in hair from people receiving pharmaceutical-grade heroin in a maintenance program.

The Poppy Seed Problem

One of the more frustrating realities of opiate testing is that eating poppy seed-containing foods can genuinely trigger a positive result. Poppy seeds come from the same plant that produces opium, and they carry trace amounts of morphine and codeine on their surfaces. Depending on the batch and how the seeds were processed, those amounts can be enough to push urine concentrations above standard cutoff levels.

Research has documented urine morphine concentrations exceeding 1 microgram per milliliter after eating cakes made with commercially available poppy seeds, with peak values reaching approximately 10 micrograms per milliliter in some cases. That is well above the cutoff levels used in both workplace and athletic drug testing.

Efforts to find a reliable way to distinguish poppy seed ingestion from actual opiate use have had limited success. One approach used in forensic settings has been to look at the morphine-to-codeine ratio: the thinking was that codeine concentrations above 300 ng/mL with a morphine-to-codeine ratio below two would point to codeine use rather than poppy seeds. But a study testing this approach found that roughly 18% of urine samples collected after poppy seed consumption produced results that looked indistinguishable from codeine use by those criteria. The honest assessment from the research is that no unambiguous markers currently exist to reliably tell poppy seed ingestion apart from heroin or pharmaceutical morphine use.

In 2010, the federal workplace testing cutoff for opiates was raised from 300 to 2,000 ng/mL specifically to reduce poppy seed false positives. That higher threshold has helped, but it has not eliminated the problem entirely, and many non-federal testing programs still use lower thresholds.

What “Out of Your System” Actually Means

People asking this question usually mean one of two things: when will I pass a drug test, or when will the drug stop affecting me? These are different timelines.

For drug testing, the practical answer depends on the test type and your usage pattern. A one-time user facing a standard urine test is generally in the clear within two to three days. A chronic, heavy user might need a week or more. Someone facing a hair test has a much bigger problem, since evidence can persist for 90 days or longer. Blood and saliva tests have such short windows that they mainly catch very recent use.

For the drug’s subjective effects, heroin’s “high” typically lasts four to six hours, fading as the active metabolites are cleared. But the body’s return to normal functioning takes much longer than metabolic clearance. Withdrawal symptoms, which generally begin six to twelve hours after the last dose for short-acting opioids like heroin and peak around one to three days, represent the nervous system recalibrating after repeated exposure. This is a separate process from the metabolic elimination that drug tests measure. Animal research has shown that chronic heroin administration reduces the sensitivity of opioid receptors in certain brain regions, and that kind of neuroadaptation takes weeks to months to reverse, far beyond the time it takes for metabolites to leave the body.

Dilute Specimens and Testing Cutoffs

A question that comes up frequently is whether drinking large amounts of water can help you pass a urine test faster. Aggressive hydration does dilute the urine, which can push metabolite concentrations below the screening cutoff. But labs are aware of this tactic. They routinely measure creatinine concentration and specific gravity to flag dilute specimens. When a sample is flagged as dilute, testing programs may require a retest, apply lower cutoff thresholds, or treat the result as a refusal to test.

Research has shown that lowering the screening and confirmation cutoff values for dilute specimens reduces the false-negative rate for drugs of abuse. In other words, the gap between what dilution can accomplish and what labs can catch has narrowed. Relying on water loading as a strategy is unreliable and, in many supervised testing contexts, counterproductive, since a flagged dilute sample draws more scrutiny rather than less.

Sweat Patches and Continuous Monitoring

For people in treatment programs or under court-ordered supervision, sweat patches represent a growing alternative to repeated urine collections. A patch is applied to the skin and worn continuously for up to two weeks. During that time, drugs and metabolites excreted through sweat are absorbed into the patch and can be analyzed after removal.

Compared to urine testing, which captures only a snapshot of what is in the body at the moment of collection, a sweat patch works like a rolling log. One study comparing weekly sweat patches against three-to-five urine collections per week found that the sweat patches confirmed heroin use by identifying heroin itself or 6-MAM in about 78% of positive cases. Because the patch accumulates evidence over days, it sidesteps the timing vulnerability of urine testing, where someone could use heroin shortly after one collection and clear the metabolites before the next.

The tradeoff is that sweat patches cannot pinpoint exactly when during the wearing period the drug was used, only that it was used at some point. They also need to remain properly adhered to the skin for the full collection period, and removal or tampering can invalidate the result.