For most opioids taken once, a urine test can pick them up for roughly one to four days afterward.1Boulder Care Blog. How Long Do Opioids Stay in Your System? How often you use matters as much as what you took, because the body holds on to more drug with daily use. Fentanyl has also rewritten the usual rule of thumb: it stays in urine far longer than the 1-to-3-day guidance many programs still rely on.2PubMed. Prolonged Fentanyl Detection on Urine Drug Testing: A Case for Revising Interpretation Frameworks in the Setting of Chronic Use
Typical Urine Detection Times for Common Opioids
- Heroin: about 2 to 3 days.1Boulder Care Blog. How Long Do Opioids Stay in Your System?
- Codeine: about 2 to 4 days.1Boulder Care Blog. How Long Do Opioids Stay in Your System?
- Morphine: about 2 to 5 days.1Boulder Care Blog. How Long Do Opioids Stay in Your System?
- Fentanyl: up to about 3 days after a single use, much longer with regular use (see below).1Boulder Care Blog. How Long Do Opioids Stay in Your System?
- Oxycodone and hydrocodone: generally about 1 to 3 days, similar to most short-acting opioids.3Touchstone Recovery Center – Dev Site. How Long Do Opioids Stay in Urine: A Detailed Guide for Timing and Testing
These are starting estimates. They come from people who used once or occasionally, and the actual time also depends on how long you have been using, your body size, your urine acidity, and the drug’s own chemistry.4Mayo Clinic Proceedings. Interpretation of Opiate Urine Drug Screens
To count the days for your own test, start from your last dose, not your first. A dose taken the night before is likely still detectable the next morning. Long-acting or extended-release pills tend to last longer than the figures above.
A legitimate prescription can explain a positive result for the prescribed drug, and in workplace testing a review doctor checks prescriptions before a result is reported. Keep the bottle or a pharmacy record handy, and tell the collector or doctor beforehand.
A positive urine test shows that a drug or its breakdown product passed through your body. It doesn’t show how much you took or whether you were impaired. Someone who took a prescribed dose two days ago can test positive while feeling completely normal.
How the Test Tells Heroin From Codeine or Morphine
The body turns a drug into other substances. Tests often look for these breakdown products because they last longer than the drug itself. Codeine partly becomes morphine, so a codeine user can show morphine, and a lab report may list drugs you never took directly.
Heroin leaves a short-lived fingerprint. It breaks down into a substance called 6-acetylmorphine, or 6-AM, which only heroin produces.5PubMed. Forensic drug testing for opiates: I. Detection of 6-acetylmorphine in urine as an indicator of recent heroin exposure; drug and assay considerations and detection times But 6-AM leaves urine quickly, usually within about 2 to 8 hours. After that, heroin shows up only as morphine, which lasts about a day after a small dose.5PubMed. Forensic drug testing for opiates: I. Detection of 6-acetylmorphine in urine as an indicator of recent heroin exposure; drug and assay considerations and detection times So the heroin marker in urine points to heroin use within the last 24 hours, and taking morphine or codeine does not create it.5PubMed. Forensic drug testing for opiates: I. Detection of 6-acetylmorphine in urine as an indicator of recent heroin exposure; drug and assay considerations and detection times
Morphine on its own is ambiguous. It can come from morphine itself, from codeine breaking down, or from heroin breaking down. Labs look at the full pattern: codeine alongside morphine points toward codeine, while the heroin marker points to heroin. If morphine is the only finding, the reviewer has to rely on your prescription history and any other clues.
A first screen uses a fast, cheap test that reacts to a family of drugs.6UC Davis Health. Laboratory Best Practice: Safety and Compliance Monitoring of Patients Receiving Chronic Opioid Therapy A positive screen is presumptive: it suggests an opioid is present but doesn’t prove which one. Positive screens go to a lab confirmation that identifies the exact drug.7PubMed. LC-MS/MS methods for synthetic opioids in urine: analytical and clinical evaluation The sample is run through a more specific method that separates individual drugs by their chemical makeup and measures each. Confirmation methods agree with each other about 99% of the time on which drugs are present.8PubMed. Validation of direct injection electrospray LC-MS/MS for confirmation of opiates in urine drug testing Programs generally act on the confirmed result, so a positive screen alone shouldn’t be the end of the story.
Why Fentanyl Stays in Urine So Much Longer
After regular use, fentanyl took about 7 days on average to clear from urine.9Drug and Alcohol Dependence. Fentanyl and Norfentanyl Detected in Urine for 7 or More Days After Regular Use Its breakdown product, called norfentanyl, took about 13 days on average.9Drug and Alcohol Dependence. Fentanyl and Norfentanyl Detected in Urine for 7 or More Days After Regular Use Those are group averages, though. One person still tested positive for fentanyl 19 days and norfentanyl 26 days after last use.9Drug and Alcohol Dependence. Fentanyl and Norfentanyl Detected in Urine for 7 or More Days After Regular Use In a separate group of regular users, predicted windows ranged from half a day to about 5.5 days for fentanyl and up to about 11 days for fentanyl’s breakdown product.10PubMed. Case Series: Magnitude and duration of fentanyl and xylazine detection in the urine of persons with opioid use disorder Because the spread is so wide, a week after stopping is not a safe assumption for someone who used regularly.
In heavy long-term users, the window can stretch to months. Two people with long-term fentanyl use kept testing positive for 170 and 210 days after their last reported use.2PubMed. Prolonged Fentanyl Detection on Urine Drug Testing: A Case for Revising Interpretation Frameworks in the Setting of Chronic Use In pregnant and postpartum patients in treatment, low levels of fentanyl’s breakdown product showed up 126 to 294 days after last use.11PubMed Central. Prolonged detection of urine norfentanyl in individuals enrolled in a medication for opioid use disorder in pregnancy and postpartum program: a case series The reason is that fentanyl dissolves in fat and slowly leaks back out of body stores. People with more body fat stayed fentanyl-positive for more days during treatment.12PubMed Central. Fentanyl withdrawal: Understanding symptom severity and exploring the role of body mass index on withdrawal symptoms and clearance
Heroin is different. It is cleared within days even after regular use, while fentanyl’s fat storage acts like a slow reservoir. Street opioids are often contaminated with fentanyl, so people who use heroin may also test fentanyl-positive for longer than they expect.
If you keep testing positive after stopping, ask that results be read as levels over time, not as yes or no. As fentanyl leaves slowly, successive tests usually show lower and lower concentrations rather than a sudden drop to zero. A steady downward trend over days or weeks fits with someone who has stopped, while a sudden jump upward suggests new use. Your treatment provider can also write a letter explaining prolonged fentanyl detection, which can matter for custody, probation, and treatment decisions.
Buprenorphine and Methadone Detection
Buprenorphine depends heavily on the test used. After one small dose, a common quick screen picked up buprenorphine for only about 9 hours on average.13PubMed. Urinary detection times and metabolite/parent compound ratios after a single dose of buprenorphine A sensitive lab test detected it for about 3 days, and its breakdown product was still present at 4 days in everyone.13PubMed. Urinary detection times and metabolite/parent compound ratios after a single dose of buprenorphine
Regular opioid screens often don’t detect buprenorphine at all. It is chemically different from morphine, so a standard panel isn’t designed to detect it. Programs that prescribe it use a dedicated test, often along with its breakdown product, norbuprenorphine. If you take it, a negative result on a basic opioid panel is expected and doesn’t mean anything is wrong. Treatment programs also test to confirm that you are taking your dose, so a missing buprenorphine breakdown product can raise questions.
Methadone is partly a matter of urine acidity. More methadone passes into urine when urine is acidic.14Pain Physician. Urine Drug Testing in Chronic Pain Its breakdown product, which labs also test for, is not affected by acidity.14Pain Physician. Urine Drug Testing in Chronic Pain
What Changes How Long Opioids Show Up for You
Two people can take the same dose and get different results. Kidneys clear most opioids, so kidney disease slows their removal.15PubMed. Opioids and renal function In kidney failure, morphine’s breakdown products build up even though morphine itself does not.16PubMed. Pharmacokinetics of opioids in renal dysfunction In older adults or people with chronic kidney disease, a prescribed dose may stay detectable beyond the usual range. Anyone with known kidney trouble should tell the reviewer, since it is a legitimate reason for a longer window.
Urine acidity shifts how much drug appears. High-protein diets and diabetes make urine more acidic, and vegetarian diets make it more alkaline.14Pain Physician. Urine Drug Testing in Chronic Pain Genes affect how fast codeine, oxycodone, hydrocodone, and tramadol are converted in the liver.17US Pharmacist. Pharmacogenomic Considerations in Opioid Therapy
Frequency of use matters too. With daily use, the body doesn’t finish clearing one dose before the next arrives, so the drug builds up. The clearing process then starts from a higher level and takes longer to fall below the detection line. Occasional-use numbers understate what to expect if you use often or take a pill on a schedule.
That detection line is the cutoff, the level a lab must find before calling a sample positive. Opioid screens may use cutoffs of 300 or 2,000 ng/mL depending on the program.6UC Davis Health. Laboratory Best Practice: Safety and Compliance Monitoring of Patients Receiving Chronic Opioid Therapy Federal workplace programs use 2,000 for morphine and codeine, while many clinics and labs use the lower 300. A lower cutoff means a longer detection window, so ask the program which panel it uses.
Drinking a lot of water dilutes urine and can drop a level below the cutoff.4Mayo Clinic Proceedings. Interpretation of Opiate Urine Drug Screens This works less well for fentanyl, since federal workplace testing for it uses a very low 1 ng/mL cutoff.18Federal Register. Mandatory Guidelines for Federal Workplace Drug Testing Programs-Authorized Testing Panels
Poppy Seeds and Medicines That Can Cause a Positive
Poppy seeds come from the same plant as opium and carry trace morphine and codeine on their surface. Poppy seeds sold as food can push urine morphine over even the 2,000 ng/mL federal cutoff.19PubMed Central. Morphine and Codeine Concentrations in Human Urine following Controlled Poppy Seeds Administration of Known Opiate Content Bagels, muffins, and curry can all put enough morphine in urine to cross a cutoff, especially the lower 300 one. In a curry study, small amounts of seed stayed negative, but most people eating large amounts over several meals tested positive at the 300 cutoff.20PubMed. Profiling of morphine and codeine in urine after the ingestion of curry containing poppy seed as an evidence for opiates defence in Malaysia Drinking water after the meal lowered levels.20PubMed. Profiling of morphine and codeine in urine after the ingestion of curry containing poppy seed as an evidence for opiates defence in Malaysia The amount depends on how much was eaten and how the seeds were prepared, which is why results vary. If you have a test coming, avoid poppy-seed foods for a few days beforehand.
A lab can tell seeds from heroin. Heroin use produces the heroin marker, which poppy seeds never do. Seeds leave morphine, and sometimes codeine, without it. A morphine-only result can therefore be explained by seeds but can’t prove or rule out heroin on its own.
Some common medicines have caused false opioid screens, including antibiotics like ofloxacin and gatifloxacin.21PubMed. Commonly prescribed medications and potential false-positive urine drug screens Diphenhydramine, quetiapine, and dextromethorphan have caused false screens for various drug classes.21PubMed. Commonly prescribed medications and potential false-positive urine drug screens Lab confirmation identifies the actual drug, so these rarely end in a final positive.
Before a test, list every prescription and over-the-counter drug you take, and mention recent antibiotics and sleep aids. If a quick screen comes back positive, request lab confirmation.
Why Cleanses and Tampering Usually Fail
Labs routinely check a sample’s temperature, acidity, concentration, and a natural waste product called creatinine.22PubMed. The effects of adulterants and selected ingested compounds on drugs-of-abuse testing in urine Bleach, salt, vinegar, and similar additives are usually caught this way.22PubMed. The effects of adulterants and selected ingested compounds on drugs-of-abuse testing in urine Some commercial products evade basic checks, but labs have specific tests for them.22PubMed. The effects of adulterants and selected ingested compounds on drugs-of-abuse testing in urine Programs are also advised to watch for tampering.23PubMed. Is this urine really negative? A systematic review of tampering methods in urine drug screening and testing
Heavy dilution lowers creatinine, which signals a watered-down sample. A diluted sample may be reported as dilute and require a retest, and some programs treat it as a refusal. Drinking normally is fine. Excessive water is the risky part.
Urine Versus Saliva, Blood, and Hair
Saliva shows most opioids for about 1 to 36 hours, and fentanyl up to 48.1Boulder Care Blog. How Long Do Opioids Stay in Your System? Blood shows heroin up to about 6 hours and morphine up to 12.1Boulder Care Blog. How Long Do Opioids Stay in Your System? Urine lasts longer than blood, which is why it’s the common choice.24Journal of High School Science. A comparative analysis of urine, blood, and hair testing in forensic toxicology Hair can show opioid use for up to about 90 days, although drugs take about a week to appear in hair.1Boulder Care Blog. How Long Do Opioids Stay in Your System?25PubMed. Testing human hair for drugs of abuse. I. Individual dose and time profiles of morphine and codeine in plasma, saliva, urine, and beard compared to drug-induced effects on pupils and behavior
Most workplace and probation testing uses urine. Roadside or same-day checks may use saliva, and hair tests appear in some pre-employment programs and custody cases.

