How Long Do Opiates Stay in a Person's System? Drug-by-Drug Windows for Urine, Saliva, Blood and Hair

"Opiates" covers a whole family of drugs, and they don't all behave the same on a drug test. Heroin can be gone from urine in a day or two while methadone may linger for more than a week. And many standard "opiate" screens don't even catch oxycodone or fentanyl. Here's the drug-by-drug breakdown, plus what actually shows up on which test.
This is general information. If you or someone you love uses opioids, carry naloxone (Narcan, now sold over the counter) and know the signs of overdose: pinpoint pupils, slow or stopped breathing, blue lips, unresponsiveness. Call 911.
Ad: we may earn a commission if you buy through this link. Information only, not medical or legal advice. Tampering with a drug test can be illegal and usually counts as a refusal. The only sure way to pass is to not use.

Opiates vs opioids: why the word matters on a test
Opiates technically means natural compounds from the opium poppy, like morphine and codeine. Heroin is made from morphine. Opioids is the broader term including semi-synthetic drugs (oxycodone, hydrocodone, hydromorphone) and fully synthetic ones (fentanyl, methadone, tramadol). A classic "opiates" immunoassay is designed around morphine and codeine. It reacts well to heroin, morphine and codeine, moderately to hydrocodone and hydromorphone, poorly to oxycodone and not at all to fentanyl, methadone or tramadol. That's why many employers now order separate tests for those.
Urine detection windows by drug
| Drug | Typical urine window | Caught by basic opiate screen? |
|---|---|---|
| Heroin (6-AM marker) | Hours to about 1 day; morphine metabolite 1-3 days | Yes (as morphine) |
| Morphine | 1-3 days | Yes |
| Codeine | 1-3 days | Yes |
| Hydrocodone | About 1-3 days | Often, at high levels |
| Hydromorphone | About 1-3 days | Often |
| Oxycodone | 1-3 days | Poorly; needs oxycodone test |
| Fentanyl | About 1-3 days (norfentanyl longer in heavy use) | No; needs fentanyl test |
| Methadone | 3-11 days | No; needs methadone test |
| Buprenorphine | Up to about 11 days | No; needs buprenorphine test |
| Tramadol | About 1-3 days | No; needs tramadol test |
Sources: Moeller et al., Mayo Clinic Proceedings 2017; SAMHSA TAP 32. See our sourced detection table.
Other specimen types
- Saliva: most opioids are detectable for about 1-2 days. Federal oral fluid cutoffs are 30 ng/mL for codeine/morphine and oxycodone screens.
- Blood: usually hours to about a day; used mainly in hospitals and after accidents.
- Hair: up to about 90 days for repeated use. Opioids bind well into hair.
Why heroin is tricky to prove
Heroin breaks down within minutes to 6-acetylmorphine (6-AM), then to morphine. 6-AM is unique to heroin, but it only lasts a few hours to about a day in urine. After that, a test sees only morphine, which could also come from prescription morphine, codeine or poppy seeds. That's one reason federal programs set the morphine/codeine cutoff high (2,000 ng/mL) and test for 6-AM separately at 10 ng/mL.
Poppy seeds: the classic false alarm
Poppy seeds contain real morphine and codeine. Eating poppy seed bagels, muffins or desserts can produce urine morphine levels high enough to exceed older 300 ng/mL cutoffs, and occasionally even the federal 2,000 ng/mL cutoff with large amounts of unwashed seeds. In 2023, federal agencies and research warned about some unwashed poppy seed products with very high morphine content. If you have a test coming, skip poppy seeds for a few days. The MRO may consider poppy seed consumption, but it won't explain 6-AM.
Factors that change opioid windows
- Dose and frequency: chronic use and high doses stretch windows, especially for long-acting drugs.
- Half-life: methadone (roughly 8-59 hours) and buprenorphine (roughly 24-42 hours) last much longer than morphine (2-4 hours).
- Extended-release formulations: OxyContin and similar products release over 12 hours, extending detection somewhat.
- Liver and kidney function: impaired function slows clearance.
- Genetics: CYP2D6 variants change how codeine and tramadol are converted, affecting levels and effects.
- Body fat: fentanyl is fat-soluble, and in heavy users norfentanyl can be detected for longer.
Prescription opioids and workplace tests
If you take a prescribed opioid after surgery or for chronic pain, a confirmed positive will usually go to a Medical Review Officer, who verifies your prescription. Keep the pharmacy details handy. The MRO might flag a safety concern if your job is safety-sensitive and the medication could impair you; that's a separate fitness-for-duty question, not a "failed test." Don't stop opioids abruptly before a test if you take them regularly; withdrawal can be severe. Talk to your prescriber.
Medication for opioid use disorder (MOUD)
People treated with methadone or buprenorphine (Suboxone and similar) will test positive for those drugs, and that's expected. Federal law, including the Americans with Disabilities Act, offers protections to people in treatment who aren't currently using illegal drugs, though safety-sensitive roles have special rules. The Department of Justice has issued guidance on ADA protection for people taking MOUD. Treatment programs can help you communicate with employers.
Ad: we may earn a commission if you buy through this link. Information only, not medical or legal advice. Tampering with a drug test can be illegal and usually counts as a refusal. The only sure way to pass is to not use.
Fentanyl: what to know
Illicit fentanyl now contaminates much of the street drug supply, including fake pills pressed to look like oxycodone or Xanax. Many people who test positive for fentanyl didn't know they took it. Fentanyl test strips, naloxone and never using alone save lives. If you use, the national Never Use Alone hotline (1-800-484-3731) sends help if you stop responding.
Checking where you stand
A home opiate test strip is useful for morphine, codeine and heroin. For oxycodone, fentanyl, buprenorphine or methadone, you need a test that specifically includes them; check the box. Use our detection window calculator for typical ranges.
Getting help
Opioid use disorder is treatable, and medications like buprenorphine and methadone cut the risk of death roughly in half. The SAMHSA National Helpline (1-800-662-4357) is free, confidential and open 24/7, and FindTreatment.gov lists local options, including ones that take Medicaid or no insurance.
Drug-by-drug notes
Morphine
Morphine has a short half-life of about 2 to 4 hours. Most of a dose leaves in urine as morphine-3-glucuronide within a day, and typical detection runs 1 to 3 days. Extended-release morphine tablets stretch that slightly.
Codeine
Codeine is partly converted to morphine by the liver enzyme CYP2D6, so a codeine user's urine contains both. Labs look at the ratio to tell codeine use from morphine use. Prescription cough syrups with codeine produce positives for 1 to 3 days.
Hydrocodone
Common in combination pain pills (with acetaminophen). It's partly converted to hydromorphone, which may also appear on a report. Typical window 1 to 3 days, sometimes up to 4 with heavy use.
Oxycodone
Partly metabolized to oxymorphone. Detectable for about 1 to 3 days with a dedicated oxycodone assay at 100 ng/mL (federal cutoff). Extended-release forms can extend it a little.
Fentanyl
Fentanyl itself clears quickly, but its metabolite norfentanyl is the main urine target. Occasional exposure is typically detectable for about 1 to 3 days. Studies of people with ongoing heavy fentanyl use have found norfentanyl in urine for a week or longer after stopping, likely because fentanyl is stored in fat.
Methadone
Methadone has a long, variable half-life, so detection can run from 3 days to more than a week. Tests usually look for EDDP, methadone's main metabolite, which confirms the person actually took it rather than adding it to a sample.
Buprenorphine
Buprenorphine and its metabolite norbuprenorphine can be detected for up to about 11 days in some people. Treatment programs often test for both.
Tramadol
Tramadol is a weak opioid with additional effects on serotonin and norepinephrine. It doesn't trigger standard opiate screens. Dedicated tests detect it for about 1 to 3 days.
Kratom
Kratom isn't an opioid drug but acts on opioid receptors. It doesn't show on opiate screens; specialized tests for mitragynine can detect it for about a week, though data are limited.
Understanding a lab report
An opioid lab report often lists several compounds and their levels, for example "morphine 3,500 ng/mL; codeine 400 ng/mL; 6-AM negative." Reading a report like that is a job for the MRO, who considers prescriptions, ratios and timing. If you're shown a report, don't try to self-interpret it from the internet; ask the MRO to explain it.
Withdrawal timelines (and why they matter for testing)
People who are physically dependent on opioids and stop suddenly get withdrawal: for short-acting opioids like heroin or oxycodone, symptoms often start within 6 to 12 hours and peak around days 2 to 3. For methadone, they start later and last longer. Trying to "detox" quickly at home before a drug test can be miserable and, combined with reduced tolerance, raises overdose risk if someone uses again. Medical detox or starting buprenorphine is much safer.
Overdose risk after a break
Tolerance drops fast, within days. People who stop using for a test, a jail stay or a hospital admission and then go back to their old dose are at very high risk of overdose. If that's you or someone you know, carry naloxone and don't use alone.
Federal opioid cutoffs at a glance
| Analyte | Urine screen (ng/mL) | Urine confirm (ng/mL) | Oral fluid screen (ng/mL) |
|---|---|---|---|
| Codeine / morphine | 2,000 | 2,000 | 30 |
| Hydrocodone / hydromorphone | 300 | 100 | 30 |
| Oxycodone / oxymorphone | 100 | 100 | 30 |
| 6-acetylmorphine | 10 | 10 | 4 |
Source: HHS Mandatory Guidelines (urine 2017, oral fluid 2019). Non-federal labs often use lower opiate cutoffs, such as 300 ng/mL, which catch use longer. See our full cutoff table.
Scenarios people ask about
"I took two of my wife's hydrocodone for my back"
Hydrocodone may show on an opiate screen for 1 to 3 days and will be confirmed by GC-MS. Without your own prescription, the MRO will report it as positive. Taking someone else's controlled medication is also illegal. If you have pain, see a doctor.
"I had Tylenol 3 for a toothache"
Tylenol with codeine produces codeine and morphine in urine for about 1 to 3 days. With your prescription, the MRO should verify it as negative.
"I'm on Suboxone and starting a new job"
Expect buprenorphine to be detected if they test for it. Keep taking your medication and be ready to share prescription details with the MRO. Talk to your prescriber about workplace rights.
"I ate a lemon poppy seed muffin yesterday"
One muffin usually doesn't push morphine over a 2,000 ng/mL cutoff, but at lower non-federal cutoffs, a positive is possible. Mention it to the MRO if called.
Questions people ask
Can a home test detect fentanyl?
Only if it includes a fentanyl strip. Basic opiate tests do not react to fentanyl.
How long do opioids stay in hair?
Up to about 90 days for a standard 1.5-inch head-hair sample after repeated use.
Does drinking water flush opiates faster?
No. It only dilutes urine temporarily, and labs flag dilute samples.
Will one Percocet show up on a drug test?
Percocet contains oxycodone. It can show for about 1-3 days on a test that includes oxycodone, but often not on a basic opiate screen.
How long does heroin stay in your system?
The heroin-specific marker 6-AM lasts hours to about a day in urine, while morphine from heroin is detectable for about 1-3 days.
Do methadone and Suboxone show on a standard drug test?
Not on a basic opiate screen. They need specific tests, which treatment programs and many employers order.
How long do opiates stay in urine?
Most short-acting opiates are detectable for about 1-3 days. Methadone and buprenorphine can last a week or more.
Does oxycodone show up as opiates?
Often not on a basic opiate screen. Employers usually add a separate oxycodone test.
Can poppy seeds make you fail an opiate test?
They can raise morphine levels, especially at lower cutoffs. Avoid them for a few days before a test.
Does fentanyl show up on a standard drug test?
No. It needs a specific fentanyl test, which many employers now add.
Ad: we may earn a commission if you buy through this link. Information only, not medical or legal advice. Tampering with a drug test can be illegal and usually counts as a refusal. The only sure way to pass is to not use.
No product can promise you a pass, and the only certain way is to not use. Tampering with a drug test can be illegal and is usually treated as a refusal. We never help anyone beat DOT, federal, safety-sensitive, or court-ordered tests. If substance use is getting on top of you, call the free, confidential SAMHSA National Helpline on 1-800-662-4357 (24/7, English and Spanish), or call or text 988 in a crisis. Source: samhsa.gov.