TL;DR
If you’re asking how long do opioids stay in your system — the short answer depends on the specific drug, the type of test, and individual factors like your metabolism and liver function. Generally, opioids clear from urine within 1–4 days, from blood within 6–24 hours, from saliva within 1–4 days, and from hair follicles for up to 90 days. Each opioid has its own half-life and detection window, and understanding these differences matters whether you’re preparing for a drug test, managing a prescription, or recognizing the signs of dependence.
Introduction
There’s a question that crosses the minds of far more people than you’d expect: how long do opioids stay in your system? Whether you’ve been prescribed pain medication after surgery, are navigating recovery from addiction, or are simply seeking clarity, the answer is more nuanced than a quick Google search tends to let on. Opioids interact with your body in complex ways, and the timeline for clearance varies significantly from person to person and drug to drug.

What are Opioids?
Opioids are a class of drugs that bind to opioid receptors in the brain and body, effectively dulling pain signals and producing feelings of relief — or, in many cases, euphoria. They range from legally prescribed medications like oxycodone, hydrocodone, and morphine to illicit substances like heroin and illegally manufactured fentanyl. Even when used as directed, opioids carry a significant risk of dependence and addiction.
According to the National Institute on Drug Abuse (NIDA), opioids affect the brain’s reward circuitry, which is why repeated use can quickly escalate from therapeutic relief into a pattern of compulsive drug-seeking behavior. Furthermore, the opioid crisis has claimed hundreds of thousands of American lives over the past two decades, making awareness around how these drugs work — and how long they linger in the body — a genuine public health priority.
Common opioids include:
- Prescription pain relievers: hydrocodone (Vicodin), oxycodone (OxyContin, Percocet), morphine, codeine
- Synthetic opioids: fentanyl, tramadol
- Illegal opioids: heroin
Factors That Affect Drug Processing
Before diving into specific drugs, it’s essential to understand that how long do opioids stay in your system isn’t a fixed number. Several variables directly influence the pace at which your body metabolizes and eliminates these substances.
Key factors include:
- Metabolism rate: Individuals with faster metabolisms clear drugs more quickly.
- Age: Older adults tend to process medications more slowly due to decreased liver and kidney efficiency.
- Body mass and fat percentage: Some opioids, especially fentanyl, are fat-soluble and accumulate in fatty tissue, extending their presence.
- Liver and kidney function: Since most opioids are metabolized by the liver and excreted by the kidneys, organ health plays a major role.
- Frequency and duration of use: Chronic, heavy use leads to drug accumulation, significantly lengthening detection windows.
- Hydration and urine pH: Acidic urine tends to excrete opioids faster; alkaline urine slows elimination.
- Genetics: Certain genetic variants affect how efficiently the body processes opioids.
Additionally, research from the University of Minnesota College of Pharmacy highlights that individual pharmacokinetic variability — how a person absorbs, distributes, metabolizes, and excretes a drug — is one of the most underappreciated factors in opioid testing outcomes.
How Long Do Opioids Stay In Your System?
The detection window for how long do opioids stay in your system depends heavily on the type of test being administered. Urine tests are by far the most common, though blood, saliva, and hair follicle tests each offer different detection windows.
Here’s a comprehensive overview:
| Opioid | Urine | Blood | Saliva | Hair |
|---|---|---|---|---|
| Heroin | Up to 3 days | Up to 6 hours | Up to 1 hour | Up to 90 days |
| Hydrocodone | Up to 4 days | Up to 24 hours | Up to 36 hours | Up to 90 days |
| Morphine | Up to 3 days | Up to 12 hours | Up to 4 days | Up to 90 days |
| Codeine | Up to 3 days | Up to 12 hours | Up to 4 days | Up to 90 days |
| Oxycodone | Up to 4 days | Up to 24 hours | Up to 4 days | Up to 90 days |
| Fentanyl | Up to 3 days | Up to 12 hours | Up to 1–3 days | Up to 90 days |
As you can see, hair follicle tests provide the longest detection window regardless of opioid type, making them the most useful for identifying chronic use. Conversely, blood tests offer the shortest window but are highly accurate for detecting very recent use. Understanding how long do opioids stay in your system across different test types is crucial for anyone managing a prescription, preparing for employment screening, or assessing their own physical health.

How Long Does Heroin Stay in Your System?
Heroin is a fast-acting, highly addictive illicit opioid that metabolizes almost immediately after use. Once heroin enters the bloodstream, it converts to morphine and 6-acetylmorphine (6-MAM). The half-life of heroin itself is remarkably short — between 2 and 6 minutes — but its metabolites persist far longer.
Detection windows for heroin:
- Urine: Heroin metabolites are detectable for up to 2–3 days after last use. In cases of how long does heroin stay in urine for heavy users, that window can extend slightly.
- Blood: How long is heroin in your system when testing blood? Typically up to 6 hours.
- Saliva: Up to 1 hour for heroin, though 6-MAM can persist slightly longer.
- Hair: Up to 90 days, making it the most telling test for patterns of heroin use.
Consequently, someone asking how long does heroin stay in your system needs to account for both the heroin itself and its active metabolites. Because heroin produces an intense but short-lived high, it’s particularly prone to patterns of escalating use — a hallmark of opioid use disorder.
How Long Does Hydrocodone Stay in Your System?
Hydrocodone is one of the most commonly prescribed pain medications in the United States, often sold under brand names like Vicodin or Norco. It’s a semi-synthetic opioid with a half-life of approximately 4 hours, though extended-release formulations can have a longer half-life.
Detection windows for hydrocodone:
- Urine: How long does hydrocodone stay in urine? Typically 2–4 days, making it detectable for most standard drug panels.
- Blood: How long does hydrocodone stay in the body via bloodstream? Up to 24 hours after use.
- Saliva: How long is hydrocodone in your system via oral fluid? Up to 36 hours.
- Hair: Up to 90 days.
For those wondering how long does it take for hydrocodone to get out of your system, the answer is roughly 5 half-lives — around 20 hours for immediate-release formulations. However, regular use means the drug accumulates, meaning how long does hydrocodone last in your system stretches considerably for chronic users. Moreover, individuals with impaired liver function will find hydrocodone clearance substantially slowed.
How Long Does Morphine Stay in Your System?
Morphine is the benchmark opioid — in many ways, the drug that all others are measured against. It’s a naturally occurring opioid derived from the opium poppy and is frequently used in hospital settings for acute pain management. Its half-life typically ranges from 2 to 4 hours, though how long does morphine last in your system varies based on the dosage form.
Detection windows for morphine:
- Urine: How long does morphine stay in your system via urine? Typically 2–3 days. In cases of extended use, how long morphine stays in your system can approach 4 days.
- Blood: How long is morphine in your system when testing blood? Up to 12 hours.
- Saliva: Up to 4 days.
- Hair: Up to 90 days.
How long does morphine stay in your system is also tied to how it’s administered. Intravenous use accelerates absorption, while oral extended-release formulations prolong it. Meanwhile, poppy seeds — which contain trace morphine alkaloids — can occasionally trigger a positive opiate screen, which is why how long do poppy seeds stay in your system is actually a legitimate clinical question, typically with a short answer of 24–48 hours.
How Long Does Codeine Stay in Your System?
Codeine is a naturally occurring opioid used primarily for mild-to-moderate pain and cough suppression. It’s metabolized in the liver into morphine, which is actually responsible for much of its analgesic effect. Its half-life is roughly 2.5 to 3 hours.
Detection windows for codeine:
- Urine: How long does codeine stay in your system via urine? Typically 24–48 hours, occasionally up to 3 days for regular users.
- Blood: Up to 12 hours.
- Saliva: Up to 4 days.
- Hair: Up to 90 days.
Additionally, because codeine converts to morphine, standard opiate panels will detect both. Therefore, a positive morphine result doesn’t always confirm morphine use — it could indicate codeine metabolism. This distinction matters both clinically and in legal contexts, as referenced in Alaska legislative documents on prescription drug testing protocols.
How Long Does Oxycodone (OxyContin) Stay in Your System?
Oxycodone — known by brand names OxyContin and Percocet — is one of the most widely prescribed and widely misused pain medications in the country. How long do opioids stay in your system is perhaps most complex with oxycodone, given that it comes in both immediate-release (IR) and extended-release (ER) formulations. The IR form has a half-life of 3–5 hours; extended-release OxyContin has a half-life of up to 12 hours.
Detection windows for oxycodone:
- Urine: How long does oxycodone stay in your system? Up to 3–4 days for standard doses, longer for chronic or high-dose use.
- Blood: Up to 24 hours.
- Saliva: Up to 4 days.
- Hair: Up to 90 days.
Because oxycodone doesn’t cross-react strongly with standard opiate immunoassay tests, many labs require a specific oxycodone screen. This means a standard pain medicine drug test might miss oxycodone even when it’s present — a critical consideration for both clinical monitoring and workplace screening. How long does oxycodone stay in your system also correlates with how long opioids stay in urine when looking at pain killer detection in occupational drug panels.

How Long Does Fentanyl Stay in Your System?
Fentanyl is, by now, one of the most discussed — and feared — drugs in America. A synthetic opioid that is estimated to be 50 to 100 times more potent than morphine, fentanyl has driven an extraordinary surge in overdose deaths. How long do opioids stay in your system is perhaps most unpredictable with fentanyl, because it accumulates in fatty tissue and its detection window is highly dose-dependent.
Detection windows for fentanyl:
- Urine: Typically 1–3 days for occasional users, potentially longer for chronic users due to tissue accumulation. Many standard opiate panels do not test for fentanyl, requiring a specific add-on panel.
- Blood: Up to 12 hours.
- Saliva: 1–3 days.
- Hair: Up to 90 days.
Furthermore, illicitly manufactured fentanyl is often mixed into other drug supplies — including heroin, counterfeit pills, and cocaine — making exposure possible even when users believe they’re taking something else. This is precisely why understanding how long do opioids stay in your system, especially fentanyl analogs, has become a matter of life and death. As data from PMC research on opioid pharmacokinetics underscores, the pharmacokinetic profile of fentanyl differs substantially from other opioids, particularly in lipid solubility and tissue distribution.
Frequently Asked Questions
Most opioids are detectable in urine for 1–4 days after last use. Short-acting opioids like heroin and codeine clear faster, while oxycodone and fentanyl may linger slightly longer in chronic users. How long do opioids stay in urine is the most common question we hear, and the answer is almost always tied to frequency of use.
Yes. A faster metabolism — influenced by age, genetics, and overall health — can meaningfully reduce how long opioids stay in your system. However, even the fastest metabolism cannot clear opioids from hair follicles, where traces can remain for up to 90 days. Additionally, how long opiates stay in urine is influenced by urine pH and hydration levels.
Not always. Standard opioid panels typically screen for morphine and codeine. Oxycodone, fentanyl, and some synthetic opioids may require separate specific tests. So when asking how long do opioids stay in your system, you also need to ask whether the particular test being used is designed to detect that opioid.
Hydration supports kidney function and can mildly accelerate the renal excretion of some opioids in urine. However, drinking large amounts of water to dilute a urine sample is unreliable and may result in a flagged inconclusive result. There is no reliable method to significantly speed up how long it takes opioids to get out of your system beyond allowing natural clearance.
For a single low-dose use, most opioids will clear from urine within 24–72 hours. How long opiates stay in urine for a one-time use is generally on the shorter end of the detection window. Repeated or heavy use, however, dramatically extends how long do opioids stay in your system across all testing methods.
Find Lasting Opioid Recovery with Bright Mission Recovery
Understanding how long do opioids stay in your system is valuable knowledge — but it means nothing if opioid use is taking over your life. The real question isn’t just about detection windows; it’s about whether you or someone you love needs help before the next use becomes the last one.
At Bright Mission Recovery, we specialize in comprehensive, evidence-based opioid treatment in a luxury setting nestled in Acton, California. Our programs include medically supervised detox, residential treatment, medication-assisted treatment (MAT), dual diagnosis care for co-occurring mental health disorders, and a full continuum of evidence-based therapies including CBT, DBT, group therapy, and holistic modalities.
Recovery is not a destination — it’s a daily practice, and you don’t have to walk it alone. Whether you’re just starting to ask questions about how long do opioids stay in your system because you’re concerned about your use, or you’re ready to take the next step, our compassionate team is available 24/7. Take a moment to verify your coverage and discover what your insurance benefits look like. Contact us today — because the right moment to reach for a better life is always now.
Sources
[1] Schindler, D. (2019). Opioid pharmacokinetics and individual variability in drug metabolism. University of Minnesota College of Pharmacy. – https://www.pharmacy.umn.edu/sites/pharmacy.umn.edu/files/2024-10/class_of_2019_derekschindler_mmlscapstoneposter.pdf
[2] Smith, H. S. (2014). Opioid metabolism. Mayo Clinic Proceedings, PMC. – https://pmc.ncbi.nlm.nih.gov/articles/PMC4127332/
[3] Alaska Legislature. (n.d.). Prescription drug testing documentation. Alaska Legislative Information System. – https://www.akleg.gov/basis/get_documents.asp?session=29&docid=2108
[4] National Institute on Drug Abuse. (n.d.). Opioids. NIDA Research Topics. – https://nida.nih.gov/research-topics/opioids

