How Long Do Opioids Stay in Your System? (2026 Guide)
Detection times for heroin, fentanyl, oxycodone, hydrocodone, codeine, and morphine. Urine, hair, blood, and saliva testing windows. Standard panels vs. expanded opioid testing.
Last updated:
Quick Answer
Most opioids are detectable in urine for 1 to 4 days after last use. Heroin and morphine are detectable for 1-3 days. Oxycodone (OxyContin, Percocet) and hydrocodone (Vicodin) last 2-4 days. Codeine clears in 1-3 days. Methadone stays detectable for 3-7 days (up to 14 days with chronic use). Fentanyl is detectable for 1-3 days but may NOT appear on a standard 5-panel test — it requires specific fentanyl testing.
Hair follicle tests detect opioids for up to 90 days. Saliva tests detect most opioids for 24-48 hours. Blood tests have the shortest window at 6-24 hours. A critical distinction: the standard DOT 5-panel test screens for morphine, codeine, and heroin (6-MAM), but NOT for oxycodone, hydrocodone, or fentanyl. These require expanded panels (10-panel or 12-panel) or specific add-on tests.
Substances Tested — Detection Windows
| Substance | Common Names | Detection Window | Notes |
|---|---|---|---|
| Heroin / 6-MAM | Heroin, smack, dope, H — metabolizes to 6-MAM then morphine | Urine: 1-3 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 6-12 hrs | Heroin is rapidly metabolized to 6-MAM (6-monoacetylmorphine), a unique heroin marker, then to morphine. The 6-MAM marker is detectable for only 2-8 hours in urine. After that, heroin use appears as morphine on a standard test. |
| Morphine | MS Contin, Kadian, Avinza, Roxanol | Urine: 1-3 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 6-12 hrs | Morphine is on the standard DOT 5-panel test at 2000 ng/mL (initial) / 2000 ng/mL (confirmation). Poppy seed consumption can cause a positive morphine result — SAMHSA raised the cutoff to 2000 ng/mL specifically to reduce poppy seed false positives. |
| Codeine | Tylenol with codeine, cough syrups with codeine | Urine: 1-3 days | Hair: up to 90 days | Saliva: 24-36 hrs | Blood: 12-24 hrs | Codeine is metabolized to morphine in the body, so a codeine user may test positive for both codeine and morphine. Included on the standard DOT 5-panel test under the opiates category. |
| Oxycodone | OxyContin, Percocet, Roxicodone, Xtampza | Urine: 2-4 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 12-24 hrs | NOT detected on the standard DOT 5-panel test — requires expanded opioid panel (10-panel or 12-panel). Extended-release formulations (OxyContin) may result in slightly longer detection due to gradual release. |
| Hydrocodone | Vicodin, Norco, Lortab, Zohydro | Urine: 2-4 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 12-24 hrs | Like oxycodone, NOT detected on the standard DOT 5-panel — requires expanded opioid panel. Hydrocodone is metabolized to hydromorphone, so both may appear on confirmation testing. |
| Fentanyl | Duragesic (patch), Subsys, Actiq — also illicit fentanyl | Urine: 1-3 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 5-48 hrs | NOT detected on the standard 5-panel, 10-panel, or even most 12-panel tests. Requires a specific fentanyl immunoassay or LC-MS/MS test. Many employers and probation programs now add specific fentanyl testing due to the ongoing crisis. |
| Methadone | Dolophine, Methadose — used for opioid maintenance treatment | Urine: 3-7 days (up to 14 days chronic) | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 24-72 hrs | Has a very long half-life (24-36 hours), resulting in one of the longest urine detection windows among opioids. Requires specific methadone testing — NOT detected on the standard opiates assay. Included on 10-panel and expanded panels. |
| Tramadol | Ultram, ConZip | Urine: 2-4 days | Hair: up to 90 days | Saliva: 24-48 hrs | Blood: 12-24 hrs | NOT detected on standard drug test panels. Requires specific tramadol testing. Some expanded panels include it. Tramadol is a synthetic opioid that does not cross-react with standard opiate immunoassays. |
How Opioids Are Metabolized
Opioids are metabolized primarily by the liver through various enzymatic pathways. The specific metabolic pathway depends on the opioid:
Heroin is rapidly metabolized to 6-MAM (6-monoacetylmorphine) within minutes, then to morphine. The 6-MAM metabolite is the definitive marker for heroin use (as opposed to morphine from other sources), but it has a very short detection window of only 2-8 hours in urine.
Morphine and codeine are metabolized through glucuronidation. Codeine is partially converted to morphine (about 10% of a codeine dose), which is why codeine users may test positive for both codeine and morphine.
Oxycodone is metabolized by the liver enzyme CYP3A4 to noroxycodone and by CYP2D6 to oxymorphone. These metabolites are what expanded drug tests detect.
Hydrocodone is metabolized to hydromorphone and norhydrocodone. Some individuals who are ultra-rapid CYP2D6 metabolizers may convert more hydrocodone to hydromorphone.
Fentanyl is metabolized primarily to norfentanyl by CYP3A4. Norfentanyl is the metabolite detected by specific fentanyl immunoassays.
Methadone has the longest half-life (24-36 hours), which is why it is used for maintenance therapy — steady blood levels can be maintained with once-daily dosing. This long half-life also means methadone has the longest urine detection window among commonly tested opioids.
Which Drug Tests Detect Opioids — Critical Panel Differences
This is one of the most important distinctions in drug testing: NOT all opioids are detected on all drug test panels.
Standard DOT 5-panel test: Tests for 'opiates' — specifically morphine, codeine, and heroin (6-MAM) at 2000 ng/mL initial / 2000 ng/mL confirmation. This panel does NOT detect oxycodone, hydrocodone, fentanyl, methadone, tramadol, or buprenorphine.
10-panel test: Adds methadone to the opioid testing. Some 10-panel tests also add expanded opioid testing (oxycodone, hydrocodone), but this varies by laboratory.
12-panel test: Typically includes expanded opioid testing — oxycodone and hydrocodone (sometimes listed as 'extended opioids'). Also includes MDMA and typically methadone.
Fentanyl: Requires a SPECIFIC fentanyl immunoassay or LC-MS/MS test. It is NOT included on 5-panel, standard 10-panel, or even most 12-panel tests. However, due to the fentanyl crisis, many employers and testing programs now add specific fentanyl testing.
Tramadol: Requires specific testing. Not on standard panels.
Buprenorphine (Suboxone/Subutex): Requires specific testing. Not on standard panels, but commonly tested for in addiction treatment monitoring.
Why this matters: If you are taking prescribed oxycodone and your employer only uses a 5-panel test, the oxycodone will NOT be detected. However, if they use a 10-panel or expanded panel, it will be detected — and you should inform the MRO of your prescription.
False Positives and Cross-Reactivity
Opiate immunoassay tests (standard 5-panel) are known to have several cross-reactivity issues:
Poppy seeds: This is the most well-known cause of opiate false positives. Poppy seeds contain trace amounts of morphine and codeine. Eating a poppy seed bagel or poppy seed cake can produce morphine levels above the old 300 ng/mL cutoff. In 2010, SAMHSA raised the federal cutoff to 2000 ng/mL specifically to reduce poppy seed false positives. However, at the 2000 ng/mL cutoff, consuming large amounts of poppy seeds can still occasionally cause a positive result.
Quinolone antibiotics: Levofloxacin (Levaquin) and ofloxacin have been reported to cause false positives on some opiate immunoassays.
Dextromethorphan (DXM): Found in many over-the-counter cough medications (Robitussin DM, Delsym). Can occasionally cross-react with opiate assays at high doses.
Rifampin: An antibiotic used for tuberculosis treatment. Has been reported to cause false positives.
Diphenhydramine (Benadryl): At very high doses, has been reported to occasionally trigger false positives on some opiate assays.
GC-MS/LC-MS/MS confirmation testing is highly specific and can distinguish between different opioids and eliminate false positive concerns. Always request confirmation testing if you believe you have a false positive. Inform the MRO about any prescription or OTC medications you take.
Tips for Faster Elimination
Most opioids are relatively short-acting and are cleared from the body within a few days. Here are evidence-based approaches to support natural elimination:
Stop using completely: This is critical. Opioids have varying half-lives — heroin/morphine clear relatively quickly (2-4 hours half-life), while methadone takes much longer (24-36 hours).
Stay hydrated: Opioids and their metabolites are excreted primarily through urine. Adequate hydration supports kidney function and helps clear metabolites. Do not overhydrate before a test.
Maintain normal activity: Light to moderate activity supports overall metabolism. Opioids are not stored in fat the way THC is, so exercise does not have the same 'release' effect.
Be aware of extended-release formulations: If you take extended-release opioids (OxyContin, MS Contin, Methadose), the drug is released slowly over 12-24 hours. Detection windows may be slightly longer compared to immediate-release formulations.
For prescribed users: If you take prescribed opioids and have an upcoming drug test, do NOT stop taking your medication without medical guidance. Continue your prescribed regimen and inform the MRO of your prescription if the test comes back positive.
IMPORTANT: If you are dependent on opioids, do NOT stop abruptly without medical supervision. Opioid withdrawal, while rarely life-threatening, can be extremely uncomfortable and may lead to relapse. Seek medical help for a supervised taper or medication-assisted treatment (MAT) with buprenorphine or methadone. Call SAMHSA at 1-800-662-4357 for treatment referrals.
Opioids and Employment Drug Testing
Opioid testing in employment has become more complex as the opioid crisis has evolved. Key points for job seekers:
Prescribed opioids: If you take prescribed opioid medication (oxycodone, hydrocodone, etc.) and test positive, the MRO will verify your prescription before reporting the result. A verified prescription means the result is reported as negative (for non-DOT tests) or may require further evaluation (for DOT tests).
DOT-regulated positions: This is a critical distinction. Even with a valid prescription, opioid use may disqualify you from DOT safety-sensitive duties. CDL drivers, pilots, and other DOT-regulated employees cannot perform safety-sensitive functions while taking Schedule II opioids in most cases. The MRO must determine whether your medication is consistent with safe performance.
Medication-Assisted Treatment (MAT): Employees on methadone or buprenorphine (Suboxone) for opioid use disorder face additional considerations. Non-DOT employers generally cannot discriminate against employees in MAT programs (this may be protected under the ADA as treatment for a disability). For DOT-regulated positions, methadone is generally prohibited, while buprenorphine may be allowed with MRO clearance on a case-by-case basis.
Fentanyl testing expansion: Many employers are adding specific fentanyl testing to their panels due to the ongoing crisis. If your employer uses an expanded panel, fentanyl will be detected even though it is not on the standard 5-panel.
Legal Status in 2026
Opioid legal status varies by substance:
Heroin: Schedule I (no recognized medical use, high abuse potential). Possession is a serious felony in all 50 states.
Morphine, oxycodone, hydrocodone, fentanyl, methadone: Schedule II (recognized medical use, high abuse potential). Legal with a valid prescription. Illegal to possess without a prescription.
Codeine (in certain formulations): Schedule III-V depending on formulation. Combination products with codeine (Tylenol with codeine) are Schedule III.
Tramadol: Schedule IV (lower abuse potential). Legal with a prescription.
Buprenorphine (Suboxone/Subutex): Schedule III. Used for opioid use disorder treatment. As of 2023, the X-waiver requirement was eliminated — any DEA-registered prescriber can now prescribe buprenorphine for opioid use disorder.
Opioid-related criminal justice reform is an active area of legislation. Many states have enacted or are considering: drug court and diversion programs for opioid possession, Good Samaritan laws (protecting people who call 911 for overdose), expanded access to naloxone (Narcan) for overdose reversal, and sentencing reform for low-level possession offenses.
For people with prior opioid convictions: Check your state's expungement and record-clearing laws at secondchanceinfo.com/expungement. Many states have created specific provisions for drug possession convictions. Drug court completion may also qualify you for record clearing.
Frequently Asked Questions
- How long do opioids stay in urine?
- Most opioids are detectable in urine for 1-4 days. Heroin/morphine: 1-3 days. Codeine: 1-3 days. Oxycodone: 2-4 days. Hydrocodone: 2-4 days. Fentanyl: 1-3 days. Methadone: 3-7 days (up to 14 days chronic use). Detection depends on the specific opioid, dose, frequency of use, and individual metabolism.
- Does fentanyl show up on a standard drug test?
- No. Fentanyl does NOT appear on a standard 5-panel, 10-panel, or even most 12-panel drug tests. It requires a specific fentanyl immunoassay or LC-MS/MS test. However, many employers and probation programs now add specific fentanyl testing due to the ongoing crisis. Always ask which panel is being used if you are concerned.
- Can poppy seeds cause a positive opiate drug test?
- Yes, though it is less likely since SAMHSA raised the cutoff to 2000 ng/mL in 2010 (specifically to reduce poppy seed false positives). Consuming large amounts of poppy seeds can still occasionally cause morphine levels above the cutoff. The DOD and DOT have advised against eating poppy seeds before drug tests. If you believe a positive is from poppy seeds, request confirmation testing and inform the MRO.
- Will my prescription opioid cause me to fail a drug test?
- If you have a valid prescription and your drug test detects the opioid, the Medical Review Officer (MRO) will contact you to verify your prescription. Once verified, the result is typically reported as negative. You do NOT need to disclose your prescription before the test. However, for DOT-regulated positions, taking Schedule II opioids may disqualify you from safety-sensitive duties even with a prescription.
- What is the difference between the 5-panel and 12-panel for opioids?
- The standard 5-panel tests only for 'opiates' — morphine, codeine, and heroin (6-MAM). It does NOT detect oxycodone, hydrocodone, fentanyl, methadone, or tramadol. A 12-panel test typically adds expanded opioid testing (oxycodone, hydrocodone) and methadone. Fentanyl and tramadol still require separate specific tests even on a 12-panel.
- How long does heroin stay in your system?
- Heroin is detectable in urine for 1-3 days. It is rapidly metabolized to 6-MAM (a heroin-specific marker detectable for only 2-8 hours) and then to morphine. After the 6-MAM window passes, heroin use appears as morphine on drug tests. Hair tests detect heroin metabolites for up to 90 days. Saliva detects it for 24-48 hours. Blood tests detect it for 6-12 hours.
- Is Suboxone detected on a standard drug test?
- No. Buprenorphine (the active ingredient in Suboxone and Subutex) is NOT detected on standard 5-panel, 10-panel, or 12-panel drug tests. It requires a specific buprenorphine immunoassay. Buprenorphine testing is commonly used in addiction treatment monitoring programs but is not part of standard employment or DOT drug testing.
- Can I be on methadone maintenance and pass a drug test?
- Methadone requires specific testing and is NOT detected on the standard 5-panel opiate assay. It IS included on 10-panel and expanded panels. If you are in a methadone maintenance program and test positive on an expanded panel, the MRO will verify your treatment. For non-DOT employers, MAT status may be protected under the ADA. For DOT-regulated positions, methadone is generally prohibited for safety-sensitive duties.
Take Action — Direct Links
- Drug test detection times — full guide with calculator
Comprehensive detection window chart for all substances with a free personalized calculator
- Types of drug tests — complete guide
All drug test types explained: urine, hair, saliva, blood, and more
- 12-panel drug test guide
What is on a 12-panel drug test — important for expanded opioid testing
- SAMHSA National Helpline — 1-800-662-4357
Free, confidential, 24/7 treatment referral and information (English & Spanish)
- SAMHSA Opioid Treatment Program Directory
Find methadone and buprenorphine treatment programs near you
Related Resources on This Site
Helpful guides
- Safety & ProtectionFinancial independence for DV survivors
- Free Legal AidFree legal aid by state
- ProbationFederal probation & supervised release
- TransportationBuy here pay here car lots
Sources
- SAMHSA — Mandatory Guidelines for Federal Workplace Drug Testing Programs
- American Addiction Centers — How Long Do Opioids Stay in Your System?
- Mayo Clinic — Opioid Drug Testing: Clinical Utility and Pitfalls
- NIH PMC — Drug Testing for Opioids
- Quest Diagnostics — Drug Testing Index
- SAMHSA — Revision of Mandatory Guidelines: Opioid Cutoff Changes