How Long Do Opiates Stay in Your System?
Pick the opioid and the test, and see whether that test can actually detect it, and for how long. This is the question most people get wrong, because the standard "opiates" screen is aimed at morphine and misses a great many of the drugs people assume it catches.
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.
Can this test detect it?
A negative opiate screen does not mean no opioid was taken. The American College of Medical Toxicology states this plainly: because fentanyl and its analogues are now throughout the drug supply, a negative result on an immunoassay that is not specific for fentanyl cannot be used to rule out fentanyl or opioid exposure at all. If someone is unresponsive with slow breathing and pinpoint pupils, treat it as an opioid overdose and give naloxone regardless of what any test says.
Urine vs blood vs saliva vs hair, on the same scale
The solid bar is the shorter end of the range. The faded section shows how much further it can stretch. Blood, saliva, and hair figures assume a test capable of finding that drug was ordered.
"Opiate" and "opioid" are not the same word
An opiate is a drug that comes from the opium poppy: morphine, codeine, and heroin, which is made from morphine. An opioid is anything that acts on the opioid receptor, which includes all of those plus everything made in a laboratory. The drug panel is called an opiate screen because that is genuinely all it was designed to find.
The antibody in a standard opiate immunoassay is raised against morphine. It recognises codeine well, and 6-acetylmorphine, the marker unique to heroin, well. After that it gets steadily worse, and for the fully synthetic opioids it fails completely, because they do not look like morphine in any way an antibody can see. This single fact is behind most of the confusion, most of the wrongly accused patients, and a great many missed overdoses.
What the standard opiate screen actually finds
| Opioid | On a standard opiate screen | What it needs instead |
|---|---|---|
| Morphine | Detected. It is the target. | Nothing. This is what the test is for. |
| Codeine | Detected reliably. | Confirmation to separate it from morphine or poppy seeds. |
| Heroin | Detected, but only as morphine. | A 6-MAM test to prove it was heroin, within hours. |
| Hydrocodone | Usually detected, but a negative does not rule it out. | An expanded panel where it matters. |
| Hydromorphone | Frequently missed. | A dedicated assay or LC-MS. |
| Oxycodone | Frequently missed. Cross-reactivity is poor. | A dedicated oxycodone assay. |
| Oxymorphone | Frequently missed. | A dedicated assay or LC-MS. |
| Fentanyl | Not detected. At all. | A fentanyl-specific test, ordered on purpose. |
| Methadone | Not detected. | A methadone or EDDP assay. |
| Tramadol | Not detected. | A tramadol-specific test. |
| Buprenorphine | Not detected. | A buprenorphine assay. |
The number that should end the argument
Mayo Clinic Laboratories compared immunoassay results against definitive mass spectrometry in patients prescribed hydromorphone. Around 69 percent of the patients who were genuinely taking their medication, and who tested positive by LC-MS/MS, came back negative on the immunoassay. Not because they had not taken it, but because the antibody does not see hydromorphone well and the cutoff sits too high.
Read that from the patient's side. Seven out of ten people, taking the drug exactly as prescribed, produce a urine sample their pain clinic could interpret as evidence they are not taking it and are selling it instead. That is how people lose their prescriptions. If a screen result contradicts what you know to be true, the answer is to ask for definitive testing, not to accept the screen.
What affects how long any opioid stays in your system
- Which opioid it actually was. The spread here runs from hours to weeks.
- Whether the test was capable of detecting it in the first place, which is the whole point of this tool.
- How much was taken, and for how long. Regular and heavy use extends every window above.
- Liver and kidney function, and for codeine and tramadol, your CYP2D6 genetics.
- The cutoff the laboratory runs at.
If opioids have become a problem
It does not matter much which one it is. Opioid withdrawal is brutal and rarely fatal, while the collapse in tolerance that follows it is what kills people, and that is true whether the drug came from a dealer or a pharmacy. Medication-assisted treatment with buprenorphine or methadone roughly halves the risk of dying, and it is the most effective option available. If you are worried, speak to a doctor or a treatment service. It is a better use of your energy than working out when a test will be clear.
These windows are general estimates drawn from clinical and forensic toxicology references, including the American College of Medical Toxicology's practice statement on the interpretation of urine opiate and opioid tests, Mayo Clinic Laboratories documentation on opioid immunoassay cross-reactivity, and federal workplace drug testing guidance. They assume typical use; heavy or long-term use extends them. They are not a guarantee for any individual or test, and they are not medical or legal advice. If you are prescribed an opioid, disclose it to the testing program. If results matter for your health, employment, or a legal situation, talk with a qualified professional or the testing laboratory.
Detection Time Calculators
Every substance has its own window, its own metabolite, and its own way of slipping past a drug test. Pick one to see the detail.
- All substances
- Alcohol
- Cannabis
- Cocaine
- Codeine
- Crystal meth
- Fentanyl
- Gabapentin
- Heroin
- Hydrocodone
- Ketamine
- Klonopin
- Kratom
- LSD
- MDMA
- Methadone
- Opiates
- Ritalin
- Tramadol
- Valium
- Xanax
All windows are estimates. Detection times vary widely from person to person, and no calculator can tell you when a test will be clear.

