How Long Do Opioids Stay in Your System? Chronic Use Factors

Medical Providers:
Dr. Michael Vines, MD
Alex Spritzer, FNP, CARN-AP, PMHNP
Clinical Providers:
Natalie Foster, LPC-S, MS
Last Updated: February 18, 2026

Opioids include prescription pain medications such as morphine, oxycodone, and hydrocodone, as well as illegal drugs like heroin. They are often prescribed after surgery or for severe pain, but they can also be highly addictive. In 2023, opioid-related overdoses continued to claim tens of thousands of lives across the United States, reflecting the ongoing impact of the opioid crisis.

If you are searching “how long do opioids stay in your system,” you may have a drug test coming up. Or you may be worried about how long the effects linger. Either way, understanding opioid half-life and detection windows can help you make informed decisions about your health.

Our Opioid Addiction Treatment Programs

Using opioids too often? See how The Hope House can help.

icon image of heroin

Heroin

1-3 days in urine, 3-6 days in blood, up to 90 days in hair

illustrating fentanyl icon

Fentanyl

Fentanyl can stay 1-2 days in urine, 6-72 hours in blood, up to 90 days in hair

vials of morphine

Morphine

3-5 days in urine, 12-72 hours in blood, up to 90 days in hair

tablet icon for oxycodone

Oxycodone

1-2 days in urine, 12-24 hours in blood, up to 90 days in hair

Hydrocodone

2-3 days in urine, 12-24 hours in blood, up to 90 days in hair

It is important to note that these are just general estimates. The actual amount of time that opioids stay in your system can vary depending on a number of factors, as mentioned above. If you are concerned about whether or not opioids are present in your system, it is best to talk to your doctor or a medical professional.

Here are some additional things to keep in mind about how long opioids stay in your system:

  • The amount of time that opioids stay in your system can be affected by your metabolism. People with a faster metabolism will typically clear opioids from their system more quickly than people with a slower metabolism.
  • The amount of time that opioids stay in your system can be affected by the amount of opioid that you take. The more opioid that you take, the longer it will take for the drug to be eliminated from your system.
  • The amount of time that opioids stay in your system can be affected by the type of opioid that you take. Some opioids, such as fentanyl, are metabolized more quickly than others.
  • The amount of time that opioids stay in your system can be affected by your overall health. People with certain health conditions, such as liver disease, may take longer to clear opioids from their system.

Half-life refers to the time it takes for half of a drug to leave your bloodstream. It does not mean the drug is completely gone. Most substances require several half-lives to be mostly eliminated.

Understanding half-life helps explain how long opioids may continue affecting the body.

Heroin Half-Life

Heroin has a very short half-life of roughly 8 to 22 minutes. That is why its effects fade quickly. However, the body converts heroin into morphine, which remains longer.

Short half-life drugs can sometimes increase overdose risk because people may take more doses too quickly.

Oxycontin Half-Life

Oxycontin, the extended-release form of oxycodone, has a half-life of about 4.5 to 6.5 hours. Because it releases medication gradually, its effects last longer than immediate-release versions.

Fentanyl Half-Life

Fentanyl has an average half-life of 7 to 12 hours, depending on the delivery method. Transdermal patches release fentanyl over 72 hours, and the drug may linger even after removal.

Its potency, not just its half-life, is what makes fentanyl especially dangerous.

While learning about the half-life of a drug is important to better understanding how long someone may be under the influence of a specific substance, half-lives do not always correlate with detection in a drug test. If you have a drug test coming up, it can help to know how long the drug can be present in the body, especially the urine.

Reclaim your life from opioids. Take the first step towards recovery today.

Obviously the length of time opioids will show up on drug test will have variance depending on the type of drug used and what type of test is being used. Because urine tests are the most commonly used drug tests, we will focus on that and take a look at the detection window for a number of commonly used opioids.

Urine Test for Opioids

If you are taking a urine drug test for opioids, you will be asked to provide a urine sample. The sample will be collected in a cup and then sent to a laboratory for testing. The results of the test will be available in a few days.

If you are trying to learn how long do opioids stay in your system, urine tests generally have these results for opioids:

Heroin

Heroin can be detected in urine for up to 3 days after use. However, it is typically detectable for 1-2 days.

Oxycodone

Oxycodone can be detected in urine for up to 3 days after use. However, it is typically detectable for 1-2 days.

Hydrocodone

Hydrocodone can be detected in urine for up to 3 days after use. However, it is typically detectable for 1-2 days.

Morphine

Morphine can be detected in urine for up to 3 days after use. However, it is typically detectable for 1-2 days.

Fentanyl

Fentanyl can be detected in urine for up to 3 days after use. However, it is typically detectable for 1-2 days.

If concerns about detection are causing stress, it may be worth asking a deeper question. Has opioid use started to feel difficult to manage?

Opioid dependence can develop gradually. Many people begin using these medications for legitimate reasons. Over time, tolerance builds. Doses increase. Stopping becomes harder.

At The Hope House in Scottsdale, we provide evidence-based care for opioid addiction in a private, supportive setting. Our programs include medical detox, individualized therapy, and ongoing recovery planning.

The answer to the question “how long does cocaine stay in your system” is, cocaine is typically detectable in urine for about 2-4 days after use, although its metabolites can be detected for a longer period, often up to several weeks. The exact duration of detection can vary based on factors such as the amount used, frequency of use, metabolism, and individual differences.

The answer to the question “how long does ecstasy stay in your system” is that Ecstasy, also known as MDMA, can stay in your system for around 2 to 4 days. This means that traces of the drug can be detected in your urine, blood, or saliva during this time frame after taking it. Remember, factors like your metabolism and the amount you take can influence how long it lingers in your body.

The answer to the question “how long does heroin stay in your system” is that heroin usually stays in your system for around 2 to 3 days. This means it can be found in your urine, blood, or saliva during this time after use. Remember, the exact duration can be influenced by factors like how much you take and your body’s metabolism.

The answer to the question “how long does meth stay in your system” is that methamphetamine, or meth, can stay in your system for about 2 to 4 days, but it might be detectable for up to a week in some cases. This depends on factors like how much you’ve used, your metabolism, and the type of drug test being used.

The answer to the question “how long does alcohol stay in your system” can vary depending on factors like the amount consumed, your metabolism, and other factors. On average, alcohol can be detected in your urine for up to 48 hours and in your blood for about 12 hours. However, it’s important to note that heavy drinking can lead to longer detection times.

The answer to the question “how long does alcohol stay in your system” can vary depending on factors like the amount consumed, your metabolism, and other factors. On average, alcohol can be detected in your urine for up to 48 hours and in your blood for about 12 hours. However, it’s important to note that heavy drinking can lead to longer detection times.

The answer to the question “how long does xanax stay in your system” is that Xanax, a medication for anxiety, typically stays in your system for about 4 days. This means that after taking it, it can be detected in your body for up to four days through tests like urine or blood samples.

The answer to the question “how long does suboxone stay in your system” can vary. Suboxone can be detected in urine tests for up to several days, and sometimes even longer. But its effects might last even beyond that. Naloxone leaves the system faster, usually within a day or so.

The answer to the question “how long does fentanyl stay in your system” is that fentanyl and its metabolites can be detectable in urine for around 1-2 days after use. However, this detection window can vary depending on factors like the dosage, frequency of use, individual metabolism, and the specific drug test being employed.

The answer to the question “how long does weed stay in your system” is that marijuana can stay in your system for different lengths of time depending on factors like how often you use it and your metabolism. Typically, it can be detected in urine for up to 30 days, but for infrequent users, it might only be detectable for a few days to a week.

The answer to the question, “how long does ambien stay in your system” is that Ambien (zolpidem) typically stays in your system for about 8 hours, with its effects diminishing after that time. However, it may be detectable in urine for up to 72 hours after use, depending on factors like dose, frequency of use, and individual metabolism.

The answer to the question, “how long does methadone stay in your system” is that methadone can typically be detected in urine for up to 7-10 days after the last dose, but this duration can vary depending on factors like individual metabolism and the frequency of use. In some cases, it may be detectable in hair follicles for several months.

The answer to the question, “how long does percocet stay in your system” is that Percocet can typically be detected in urine for about 3-4 days after the last dose. However, the exact duration may vary depending on factors such as individual metabolism, dosage, and the sensitivity of the drug test used.