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

Updated November 17, 20263 sourcesHow we write
Assorted prescription pills and capsules spread across a white surface
Short answer

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

OpioidTypical urine windowOn a standard 5-panel?
Codeine, morphine1–3 daysYes
Heroin (6-AM marker)Under 1 day; morphine 1–3 daysYes
Hydrocodone, hydromorphone1–3 daysYes (federal panel)
Oxycodone, oxymorphone1–3 daysYes (federal panel)
MethadoneAbout 3–11 daysNo, needs its own panel
BuprenorphineUp to about a week or moreNo, needs its own panel
FentanylAbout 1–3 days, longer with heavy useNo, 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

Multi-panel
Home drug test cassette with two clear lines at C and T: negative
Standard screening cutoffs5 cards

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.

4.6★ · 109 Amazon ratingsCheck price on Amazon
Fentanyl
Home drug test cassette with two clear lines at C and T: negative
20 ng/mL5 strips

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 Amazon

Common questions

Does a standard drug test detect fentanyl?

No. Fentanyl does not trigger standard opiate screens. It needs a specific fentanyl test.

Sources

  1. Moeller KE et al. Clinical interpretation of urine drug tests. Mayo Clinic Proceedings, 2017
  2. Verstraete AG. Detection times of drugs of abuse in blood, urine, and oral fluid. Ther Drug Monit, 2004
  3. U.S. DOT, 49 CFR Part 40 (eCFR)

Photo: freestocks / Unsplash

ClearDay · Coming soon to iPhone · Free

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