Skip to main content

Heroin Detection Time Calculator

title-details-01 (Demo)
title-details-02 (Demo)

How Long Does Heroin Stay in Your System?

See approximate detection windows for heroin across urine, blood, saliva, and hair tests, and the factors that change them. Heroin itself is gone within minutes. What a test finds is what it turns into, and only one of those things proves heroin at all.

Need support now? Call or text 988 for the Suicide & Crisis Lifeline, or call 1-800-662-HELP for the SAMHSA National Helpline. Free and confidential, 24/7.

Estimates only. Detection times vary widely from person to person. This tool is for education and recovery support; it cannot tell you exactly when a test will be clear, and it will not help anyone pass or beat a test. Your answers are private and never saved or sent.
How often is heroin used?

Frequency barely moves the 6-MAM window, but it stretches the morphine window considerably.

What is the test looking for?

The most important distinction in opioid testing. One of these proves heroin. The other proves nothing.

The heroin supply is now a fentanyl supply. Most street heroin in the United States contains fentanyl, often with xylazine alongside it, and an opiate test will not detect either. The bag is not what it says it is, and the strength changes from one batch to the next. Never use alone, use fentanyl test strips where you can, and carry naloxone. Naloxone will not reverse xylazine, but give it anyway, because fentanyl is almost always there too.

The most dangerous day is the day you go back. Tolerance collapses within days of stopping, and the dose that was normal a fortnight ago can kill you now. This is why overdose deaths cluster immediately after release from prison, after detox, and after any break in use. If you are returning to use after time away, use far less than you think you need, never alone, with naloxone in the room.

Urine vs blood vs saliva vs hair, on the same scale

030 days60 days90 days

The solid bar is the shorter end of the range. The faded section shows how much further it can stretch.

6-MAM: the only proof of heroin, and it is gone in hours

Heroin is diacetylmorphine. Your body strips off one acetyl group within minutes, producing 6-monoacetylmorphine, or 6-MAM, then strips off the second, producing morphine. Heroin's own half-life is two to six minutes, which is why heroin is almost never found in urine at all.

6-MAM is the crucial molecule, because nothing except heroin produces it. Not a morphine prescription, not codeine, not poppy seeds. In federal workplace testing, a 6-MAM result at or above 10 ng/mL is so definitive that a Medical Review Officer is expressly prohibited from accepting any medical explanation for it. There is no defence.

The catch is time. 6-MAM has a half-life of six to twenty-five minutes, and classic research by Cone found it detectable in urine for only two to eight hours after use, stretching to around twenty-four at the outer edge. Miss that window and the proof is simply gone. Critically, the reverse is not true: the absence of 6-MAM does not rule out heroin use. It usually just means somebody tested too late.

Why a morphine positive proves nothing on its own

Once 6-MAM converts to morphine, a heroin user's urine looks exactly like the urine of someone taking prescribed morphine, someone taking codeine, or someone who ate a poppy seed roll. The standard 5-panel opiate screen cannot tell them apart, because they are chemically the same thing by that point.

This is why a positive opiate screen is a question, not an answer, and why Medical Review Officers exist. Forensic laboratories sometimes lean on secondary clues, such as the ratio of morphine to codeine, since codeine appears in street heroin as a manufacturing impurity rather than as a metabolite. But those are inferences. Only 6-MAM is proof.

What affects how long heroin stays in your system

  • How soon after use the sample was taken. For 6-MAM this is the only thing that really matters.
  • How often and how heavily it is used, which extends the morphine window.
  • The purity and contents of the bag, which nobody buying it actually knows.
  • Liver and kidney function.
  • The cutoff the laboratory runs at, which for opiates can shift the answer by a day.

If you are trying to stop using heroin

Heroin withdrawal is savage, but it is not usually what kills people. What kills people is what comes after: the lost tolerance, the unknown bag, the moment alone in a locked bathroom. Medication-assisted treatment with buprenorphine or methadone roughly halves the risk of dying, and it is the single most effective thing available. See what to expect with our withdrawal timeline generator, read about heroin addiction and medication-assisted detox, or take a private self-assessment.

Checking a different substance? Compare detection windows for 34 substances with our full substance detection time calculator.

These windows are general estimates drawn from clinical and forensic toxicology references, including Cone and colleagues' research on 6-acetylmorphine detection times published in the Journal of Analytical Toxicology, Mayo Clinic Laboratories test documentation, and federal workplace drug testing guidance. They are not a guarantee for any individual or test, and they are not medical or legal advice. If results matter for your health, employment, or a legal situation, talk with a qualified professional or the testing laboratory.