How Long Do Opioids Stay In Your Hair?

Updated on June 15, 2026

Opioids are powerful pain relievers that can become addictive with chronic use or misuse. Opioid use can be detected through a hair drug test for up to three months on average.

Looking for Addiction or Mental Health Treatment?

AddictionResource.net is an advertising-supported site. Ads on this site are from companies that compensate us and are always clearly identified. This compensation does not influence our facility rankings, resource guides, or other editorially-independent information published on this site.

Learn More About Our Advertisers

At Recovery Guide, our mission is to connect as many individuals struggling with mental health and substance abuse disorders to reputable treatment facilities.

To achieve this goal, we set strict guidelines for our editorial team to follow when writing about facilities and utilize behavioral healthcare experts to review medical content for accuracy.

While we receive compensation in the form of paid advertisements, these advertisements have absolutely no impact on our content due to our editorial independence policy.

Hair follicle testing is the most comprehensive drug screening method available, capable of detecting opioid use going back up to 90 days, three times longer than urine testing and far longer than blood or saliva screens. While urine tests reflect recent use, hair tests reveal patterns of use over time, making them particularly useful in legal, employment, and forensic contexts where a broader picture is needed.

Both prescription and illicit opioids can be detected through hair testing, including oxycodone, hydrocodone, morphine, codeine, methadone, tramadol, hydromorphone, and heroin. One important nuance is that hair testing typically can’t detect use that occurred within the past five to 10 days, since it takes time for drug metabolites to become incorporated into the hair shaft as it grows.

Learn more about detecting opioids through various drug tests

How Long Can Opioids Be Detected In Hair?

Opioids can generally be detected by a hair drug test for up to three months, or 90 days, after a person’s last use. However, a hair test may not depict a positive test result directly after use.

Due to how hair is collected for a hair drug test, it may take five to 10 days for opioid use to be detected in the hair.

What Types Of Opioids Can Be Detected In Hair?

Hair drug tests can detect the use of various opioid drugs, including both prescription and illicit opioids.

Common opioid drugs include:

  • oxycodone (OxyContin)
  • hydrocodone (Vicodin)
  • morphine
  • codeine
  • methadone
  • tramadol (Ultram)
  • oxymorphone (Opana)
  • hydromorphone (Dilaudid)

Heroin, an illicit opioid, can also be detected in the hair for up to 90 days on average. Some drug screens may show a positive result for morphine or codeine among those who use heroin.

Ad
Get Support
If you or someone you love is struggling with addiction, getting help is just a phone call away, or consider trying therapy online with BetterHelp.
Exclusive offer: 20% Off BetterHelp*
Try Therapy Online With BetterHelp
As a BetterHelp affiliate, we receive commissions if you purchase through the BetterHelp links above.
*Get 20% off your first month of BetterHelp. This offer is only available to users who have never received therapy with BetterHelp.

What Factors Can Affect Opioid Detection In Hair?

Three months is the standard timeline for how long various drugs—including but not limited to opioids—will remain detectable in a sample of hair. However, some personal and biological factors may affect this average timeline, particularly for people with a history of chronic opioid use or opioid addiction.

Factors that can affect opioid detection times in hair:

  • duration of opioid use
  • metabolism
  • dose taken (e.g. quantity of opioids used)
  • amount of melanin in hair

The use of styling products will not affect how long a drug remains detectable in a person’s hair. Hair samples taken for a drug test are generally collected from the head, or from another area of the body if a person has no hair to be collected from the head.

Why Hair Drug Tests Are Used

Hair drug tests can be used to detect a 90-day history of repetitive drug use. They are generally used less often than urine tests, which can be ordered by a judge, employer, or doctor.

Why hair drug tests may be used:

  • random testing
  • detecting patterns of long-term use
  • pre-employment screening
  • workplace drug testing

Hair testing is less suitable for post-accident drug testing or reasonable suspicion testing. For these purposes, oral fluid and blood tests are preferred methods.

Can Hair Tests Produce False Positives For Opioids?

False positives for opioids on hair tests are relatively uncommon but do occur. The most well-documented cause is passive exposure, or being in close contact with someone who uses opioids can in some cases lead to trace amounts of the drug being deposited on the hair externally rather than from within the body. Certain medications and foods have also been associated with triggering positive results on initial screening tests.

If a positive hair test result is disputed, a confirmatory test using gas chromatography-mass spectrometry can distinguish between external contamination and actual drug use with a high degree of accuracy. Always disclose any prescription medications to the testing lab before submitting a sample.

Browse our directory or reach out to the Substance Abuse and Mental Health Services Administration (SAMHSA) for more information about addiction recovery.

This page does not provide medical advice. See more

Addiction Resource aims to provide only the most current, accurate information in regards to addiction and addiction treatment, which means we only reference the most credible sources available.

These include peer-reviewed journals, government entities and academic institutions, and leaders in addiction healthcare and advocacy. Learn more about how we safeguard our content by viewing our editorial policy.

  • Was this Helpful?
  • YesNo
Get Help Today
(844) 994-1177
Addiction Resource Logo