How Long Do Opioids Stay in Your System?
"Opioid" covers everything from prescription oxycodone to heroin and fentanyl — and how long each stays ranges from hours to days. The bigger picture matters more than any single number: opioids carry serious overdose and withdrawal risk, and detection is only part of the story. Here's the breakdown by drug and by test type.
Opioids are a class of drugs that act on the body's opioid receptors to relieve pain — including prescription medications like oxycodone, hydrocodone, and morphine, the illegal drug heroin, and the extremely potent synthetic fentanyl. Because they vary widely in strength and how long they act, there's no single answer to how long opioids stay in your system: it depends on which opioid, the dose, how long it's been used, and your metabolism.
Most short-acting opioids clear the bloodstream within a day, but remain detectable in urine for about 1 to 3 days. Longer-acting or extended-release formulations, and heavy or long-term use, extend that window. Hair testing can detect opioid use for up to 90 days.
Opioid Detection Timelines by Drug
These are approximate urine detection windows for common opioids. Half-life — how long half a dose takes to leave the bloodstream — drives how long each lasts:
| Opioid | Approx. half-life | Urine detection (approx.) |
|---|---|---|
| Heroin | ~2 to 6 minutes (metabolizes to morphine) | ~1 to 3 days |
| Oxycodone (OxyContin, Percocet) | ~3 to 5 hours | ~1 to 4 days |
| Hydrocodone (Norco, Vicodin) | ~4 hours | ~2 to 4 days |
| Morphine | ~2 to 4 hours | ~2 to 3 days |
| Fentanyl | ~3 to 7 hours (longer if injected/patch) | ~1 to 3 days (specialized testing) |
| Suboxone (buprenorphine) | ~24 to 42 hours | ~up to ~2 weeks |
For drug-specific detail, see our guides on Suboxone, oxycodone, Percocet, and heroin.
Opioid Detection by Test Type
| Test type | General detection window |
|---|---|
| Urine | ~1 to 4 days for most; up to ~2 weeks for buprenorphine |
| Blood | ~a few hours to ~1 day; short window |
| Saliva | ~1 to 4 days |
| Hair | Up to ~90 days |
These are general estimates across a diverse drug class. The specific opioid, dose, formulation, and duration of use shift them significantly — treat them as approximate. Note that standard panels don't always detect synthetic opioids like fentanyl or buprenorphine without specialized testing. Fentanyl is the exception that catches people off guard, since it turns up in drugs that were never supposed to contain it. If opioid use has become hard to control, fentanyl rehab with medical detox is the safest way to stop.
What Affects How Long Opioids Stay in Your System
- Which opioid and formulation — extended-release versions (like OxyContin) last longer than immediate-release
- Dose and duration of use — higher, longer use extends both clearance and detection
- Liver and kidney function — most opioids are metabolized by the liver and cleared renally
- Metabolism, age, and body composition — individual physiology shifts the timeline
Opioid overdose is a medical emergency. Signs include slow or stopped breathing, blue-tinged lips or fingertips, pinpoint pupils, and unresponsiveness. Call 911 immediately and administer naloxone (Narcan) if available. With fentanyl now contaminating much of the illicit drug supply, overdose risk is higher than ever — even a very small amount can be fatal.
Opioid Withdrawal and Why Detox Matters
Unlike benzodiazepines or alcohol, opioid withdrawal is rarely life-threatening on its own — but it is intensely uncomfortable, and that misery is a major reason people relapse. Symptoms include muscle aches, nausea, vomiting, diarrhea, sweating, chills, agitation, and severe cravings. A medically supervised detox manages these symptoms with appropriate medications and monitoring, making it far more likely someone gets through withdrawal and into ongoing treatment. Medication-assisted treatment with buprenorphine (Suboxone) or methadone can also ease the process and support long-term recovery.
Getting Help With Opioid Dependence
Opioid dependence can develop quickly — sometimes even with legitimate prescribed use — and it's one of the most treatable substance use disorders when the right care is in place. At West Georgia Wellness Center in Hiram, GA (serving metro Atlanta), our medical detox and residential treatment programs provide medically supervised opioid withdrawal management, and our dual diagnosis program treats the depression, anxiety, or trauma that so often underlies opioid use.
Opioid withdrawal is hard to get through alone — but you don't have to. Our team can help, free and confidential, 24 hours a day.
Call 470-625-2466 — Confidential AssessmentFrequently Asked Questions
This page is educational and isn't medical advice. Detection windows are estimates that vary by drug, individual, and testing method. If you or someone else may be overdosing, call 911 immediately.
Dr. McQuirt co-leads West Georgia Wellness Center's clinical team, supporting holistic, evidence-based mental health, trauma, and addiction care. For clinical questions call 470-625-2466.