Quick answer
Opioid detection windows vary by person and by test. What urine, blood, saliva and hair cover, and why standard panels miss most opioids.
If this is an emergency
Call 911 if someone is unresponsive, having a seizure, breathing slowly or irregularly, or confused with a high fever. For a mental health or suicidal crisis, call or text 988 to reach the Suicide & Crisis Lifeline, available 24 hours a day. This website is not monitored in real time.
It depends, and the things it depends on are more useful to you than any single figure. For most short-acting opioids, a urine screen typically detects recent use for somewhere in the range of one to three days after the last dose, and commonly longer after heavy or sustained daily use. Blood clears fastest of the four common test types. Saliva sits close to urine, and hair looks back across a much longer period. Those are population ranges, not predictions about one person.
There's a second question sitting underneath the timing question, and it is the one that actually decides what a result means. Does the test look for the opioid in question at all? A basic five-panel opiate screen is built around morphine and codeine, and it frequently does not detect oxycodone, methadone, buprenorphine, fentanyl or tramadol. So a negative opioid screen can mean nothing was taken, or it can mean the panel was never designed to find what was taken. Families and patients routinely read the first meaning into a result that only supports the second.
What urine, blood, saliva and hair tests actually cover
Urine is the default for workplace, clinic and court testing because it's inexpensive and the window is practical. For most opioids it commonly reflects use over roughly the past one to three days, stretching further with higher doses, longer-acting drugs and regular use. Urine does not measure how much somebody took, or when. It measures whether a target compound sat above the laboratory's cut-off at the moment the sample was collected.
Blood has the shortest window, usually under about a day for most opioids. That's why hospitals and crash investigators use it and monitoring programs generally don't. Saliva falls between blood and urine, typically covering a day or two, and it's used more often now at the roadside and in some workplaces because collection is quick and observed.
Hair is the outlier. Drugs deposit into the growing shaft, so a standard collection commonly reflects a pattern of use across roughly the previous three months, while showing nothing from the last several days because the newest growth hasn't emerged from the scalp yet. Hair answers questions about patterns over time and is close to useless for a question about last weekend. Hair panels also target a different list of drugs than urine panels, so the two words are not interchangeable.
Why no number predicts your result
Every published window is a range assembled from groups of people, and any individual sits somewhere inside it or outside it. The variables that move it are not mysterious. Dose. How long and how often somebody has been taking the drug, since regular use builds tissue stores that release slowly. Body composition, because some opioids distribute into fat. Liver function, which handles most opioid metabolism, and kidney function, which clears the products. Hydration and urine concentration at the moment of collection. And the test itself, including its cut-off and whether it's a presumptive screen or a confirmatory assay.
- An immunoassay screen is fast and presumptive. It answers "probably something in this chemical family," not "this exact drug."
- Confirmatory testing by mass spectrometry names the actual compound and its metabolites.
- A screen and a confirmation on the same sample can disagree, and the confirmation is the result that counts.
- Two people who took the same amount on the same day can produce different results on the same panel.
None of this makes a window a countdown, and treating it as one leaves people badly informed about their own health. If you're being tested as part of treatment, pain management or monitoring, tell the person ordering the test what you take before the sample is collected rather than after the result lands.
Why standard panels miss most opioids
Opiate immunoassays were designed decades ago around the morphine molecule. Codeine converts to morphine in the body, so it lands in the same net. Heroin also breaks down to morphine, which is why it registers. Everything else in the opioid category is a chemical departure from that structure, and the further a drug sits from morphine, the less reliably the antibody recognizes it. Oxycodone and oxymorphone cross-react poorly. Methadone, buprenorphine and tramadol are structurally distinct enough that each needs its own dedicated assay. Fentanyl is not detected by an opiate screen at all and requires a test specifically for it.
The practical consequences are concrete. A parent who orders a home kit and gets a negative result may have tested for morphine while the pills in the house were oxycodone. A patient prescribed buprenorphine may look untested rather than compliant, because the panel had nothing to find. Someone in a monitoring program can be misread in both directions. If the question you care about is a specific drug, the test has to be ordered for that drug by name, and the person interpreting it needs to know which compounds the panel actually covered. Our opioid treatment program in Los Angeles works from that assumption rather than a single line on a result form.
If a result is disputed, or a prescription needs disclosing
Ask for the panel list first. Every laboratory can tell you which compounds were targeted and whether the result was a screen or a confirmation. If a screen is positive and you take a prescribed medication, request confirmatory testing and hand over the pharmacy label with the drug name, prescriber and date. If a screen is negative and you have real reasons for concern, ask whether the panel included the drug you're worried about. Withdrawal signs can also tell you something a panel won't, which we cover in our page on opioid withdrawal symptoms.
A test result is a starting point for a conversation, not a verdict on anybody. If the real question is whether someone needs help, the answer comes from behavior, health and honesty rather than a cut-off. Medication for opioid use disorder reduces the risk of dying, and it's available regardless of what a screen said; see our medication-assisted treatment page or check your insurance coverage. The Substance Abuse and Mental Health Services Administration also runs a free, confidential National Helpline at 1-800-662-HELP (4357).
Frequently asked questions
Can someone test negative for opioids even though they took one?
Yes, and it happens often enough that a negative result should never be treated as proof on its own. A basic five-panel opiate screen is built around morphine and codeine, so oxycodone, methadone, buprenorphine, fentanyl and tramadol can all be present while the screen reads negative. The panel simply had nothing to find, because it was never designed to look for those compounds. Timing matters too, since a sample taken outside the drug's window will also read negative. Ask the laboratory which compounds the test targeted before drawing any conclusion. If a specific drug is the concern, it has to be named on the order.
How long do opioids stay in urine?
For most short-acting opioids, urine testing typically detects use for roughly one to three days after the last dose, though heavier or longer-term use commonly extends that. Longer-acting opioids and those with active breakdown products can be detectable for longer than the class average. Urine tells you whether a target compound was above the laboratory's cut-off at collection, not how much was taken or when. No published range predicts an individual result, because dose, frequency, body composition, liver and kidney function, hydration and the specific assay all change the outcome. That's why a window is a rough guide for clinicians rather than a schedule for anyone. Treat any figure you read online, including this one, as an average across many people.
Which opioids does a standard five-panel drug test miss?
A standard five-panel opiate screen frequently misses oxycodone, methadone, buprenorphine, fentanyl and tramadol. The reason is chemical, not clerical: the antibodies in the assay were built around the morphine molecule, and the further a drug's structure sits from morphine, the less reliably it triggers a reaction. Fentanyl isn't detected by an opiate screen at all and needs a dedicated test. Methadone, buprenorphine and tramadol each require their own separate assay. Expanded panels add several of these, but "expanded" isn't a standard term, so the only way to know is to read the list. This is the single most useful thing to understand about opioid testing.
Does hair testing show opioid use from last week?
No, and that surprises most people who order one. Hair testing reflects drugs deposited into the growing shaft, so the newest growth hasn't yet emerged from the scalp and very recent use generally isn't captured. What a standard collection commonly shows is a pattern of use across roughly the previous three months. That makes hair useful for questions about repeated use over time and poor for questions about a single recent occasion. Hair panels also target a different list of compounds than urine panels do. If the question is about the last few days, urine or saliva is the relevant test.
Can a prescribed opioid cause a positive drug test?
Yes, and a genuine positive from a legitimate prescription is common and entirely expected. Prescribed oxycodone, hydrocodone, morphine, codeine, methadone or buprenorphine will register on a panel that includes them, because a test cannot tell why a drug is in the body. The way to handle it is disclosure before collection rather than explanation afterward. Give the collector or the medical review officer the drug name, the prescriber and the pharmacy label, and ask for confirmatory testing if the screen is questioned. Someone who has been taking a prescription for eight months has done nothing unusual and shouldn't be treated as if they had. Documentation, not apology, is what resolves it.
What should I do if I think an opioid result is wrong?
Ask for confirmatory testing on the same sample, because that is the result that carries weight. An immunoassay screen is presumptive and cross-reacts with unrelated compounds, while mass spectrometry names the specific drug and its metabolites. Request the panel list at the same time, so you know which compounds were targeted and which weren't. Bring documentation of every prescription and over-the-counter product you take, including anything started recently. If the dispute involves employment, a medical review officer is the person whose job it is to review the explanation. Don't stop a prescribed medication to make a future result look different; talk to the prescriber instead.
Does a negative opioid screen mean there's nothing to worry about?
No, and this is where a test result misleads people most often. A negative screen can reflect a panel that didn't include the relevant drug, a sample collected outside the detection window, or genuine non-use, and the result itself doesn't distinguish between them. Behavior tells you more than a panel does: missing money or pills, new secrecy, sleep and mood changes, or physical signs of withdrawal between doses. If you're worried about a specific opioid, ask for a test that names it. If you're worried about a person, the test was never going to answer that anyway. Start the conversation with what you've observed rather than with a result form.
Sources
- National Institute on Drug Abuse. Prescription Opioids DrugFacts. nida.nih.gov
- National Institute on Drug Abuse. Misuse of Prescription Drugs Research Report. nida.nih.gov
- National Institute on Drug Abuse. Medications to Treat Opioid Use Disorder. nida.nih.gov
- Substance Abuse and Mental Health Services Administration. National Helpline, 1-800-662-HELP (4357). samhsa.gov
Talk it through with somebody who can answer for your situation.
Verify your insurance