How long do opioids stay in your system? (Oxycodone, hydrocodone, fentanyl and more)

Most opioids, including codeine, morphine, hydrocodone and oxycodone, are detectable in urine for about 1–3 days after the last dose. Heroin’s specific marker (6-AM) lasts less than a day, while methadone and buprenorphine can show for about a week or more. Fentanyl needs its own test because standard opiate screens do not detect it.
Urine detection by opioid
| Opioid | Typical urine window | On a standard 5-panel? |
|---|---|---|
| Codeine, morphine | 1–3 days | Yes |
| Heroin (6-AM marker) | Under 1 day; morphine 1–3 days | Yes |
| Hydrocodone, hydromorphone | 1–3 days | Yes (federal panel) |
| Oxycodone, oxymorphone | 1–3 days | Yes (federal panel) |
| Methadone | About 3–11 days | No, needs its own panel |
| Buprenorphine | Up to about a week or more | No, needs its own panel |
| Fentanyl | About 1–3 days, longer with heavy use | No, needs its own panel |
Detection times are typical ranges from clinical reviews. Dose, frequency, metabolism, hydration and the test cutoff all change the window, so individual results vary.
Opiates vs opioids on a test
Older “opiate” screens were designed for morphine and codeine and often miss synthetic opioids. Federal panels added hydrocodone, hydromorphone, oxycodone and oxymorphone in 2017. Fentanyl, methadone and buprenorphine need separate tests, which is why many 12-panel and treatment-program panels include them.
Prescriptions
A valid prescription is not a failed test. A Medical Review Officer contacts you after a confirmed positive and asks for it.
Poppy seeds
Poppy seeds can raise urine morphine and codeine. Federal cutoffs for morphine and codeine were set at 2000 ng/mL partly to reduce positives from food.
Home tests for this

Exploro 12-Panel Urine Test, 5 cards
Best for: Broader screens, including benzodiazepines
Twelve drug classes on one card for jobs and situations that test beyond the standard five.
Check price on Amazon
Exploro Fentanyl Test Strips for powders and pills, 5 strips
Best for: Checking a substance for fentanyl
Strips for testing powders and pills for fentanyl contamination. A negative strip does not make a drug safe.
Check price on AmazonCommon questions
Does a standard drug test detect fentanyl?
No. Fentanyl does not trigger standard opiate screens. It needs a specific fentanyl test.
Sources
Photo: freestocks / Unsplash
ClearDay tracks your clear date for you.
See how many days since last use, when you are likely to test clear, and log each home test to watch the T line come in.
- Estimates for 20, 50 and 100 ng/mL tests
- Morning test reminders
- Private: your data stays on your phone
Related guides

How long does cocaine stay in your system?
Cocaine shows up in urine for about 2–4 days after use, and longer after heavy use. Detection times for urine, saliva, blood and hair.

How long does alcohol stay in your system? (Breath, blood and EtG urine tests)
Breath and blood tests catch alcohol for hours. EtG urine tests can detect drinking for up to about 80 hours after heavy use.

How long do benzodiazepines (Xanax, Valium, Klonopin) stay in your system?
Short-acting benzos like Xanax show in urine for about 1–4 days; long-acting ones like Valium can last 10 days or weeks with daily use.
