Our admissions team is available now, 24/7
Opium Guide · How Long It Stays

How long opium stays in the body and drug testing

Reviewed by: Dr. Mahmoud El-Sawy Last updated: September 28, 2026 7-minute read
The short answer

Opium does not show up on a test under its own name. It is detected through its components, morphine and codeine. They are usually detectable in urine for roughly two to four days, in saliva for about one to two days, in hair for up to about 90 days, and in blood for hours. These time frames vary with the amount, how often it is used, liver and kidney function, and the type of test.

  • These are approximate windows that vary between laboratories and testing methods.
  • Poppy seeds and some cough medicines can give a positive result for opiates.
  • The purpose of this page is medical awareness, not getting around drug tests.

How is opium broken down in the body?

Opium is a mixture of alkaloids, and the most important ones for testing are morphine and codeine. Morphine is broken down mainly in the liver into compounds bound to glucuronic acid, which leave in the urine, while part of the codeine is converted into morphine in the body. This is why tests usually look for morphine, codeine and their breakdown products, not for “opium” itself.

Morphine

The main component. It appears on the standard opiate test, but it can also result from morphine medications or heroin.

Codeine

It often appears alongside morphine, but it can also come from cough medicines and painkillers that contain it.

Other alkaloids

Such as noscapine and papaverine, which specialized labs may look for in particular cases.

How long does opium stay in urine, blood, saliva and hair?

Urine

About 2 to 4 daysThe most commonly used, and the time may be longer with chronic use and large amounts

Blood

Hours to about a dayReflects very recent use, and is mostly used in emergencies

Saliva

About 1 to 2 daysEasy to collect and detects recent use

Hair

Up to about 90 daysReveals the pattern of use over the previous months, not recent use
Infographic of how long opium stays in the body by test type: urine about 2 to 4 days, blood hours to about a day, saliva about 1 to 2 days, hair up to about 90 days
How long opium stays in blood, saliva, urine and hair

These durations are approximate and vary by laboratory and test sensitivity. For an accurate interpretation of a specific result, consult the doctor or the laboratory.

Does opium show up on a standard drug test?

Usually yes. The initial screening test known as “opiates” is designed mainly to detect morphine, the main component of opium, so opium usually gives a positive result on it. But this test cannot tell whether the morphine came from opium, heroin or a prescribed medication, and it does not reliably detect synthetic opioids such as methadone and fentanyl.

What factors affect how long opium stays in the body?

  • How often and how long it is used: daily use over years lengthens the detection time compared with a single use.
  • The strength of the opium and its morphine content: this varies greatly from one sample to another.
  • Liver and kidney function: when weaker they slow the clearance of breakdown products, which is common in older adults.
  • Age, weight and metabolism.
  • Other medications and substances used at the same time.

What is the difference between a screening test and a confirmatory test?

Types of opiate tests
TypeHow it worksLimitations
Initial (immunoassay) testRapid strips or devices that detect the presence of morphine and similar substancesMay give false positives and does not identify the source
Confirmatory testPrecise laboratory instruments that identify each substance and its concentrationMore expensive and slower, but far more accurate
Targeted testingLooking for specific breakdown products or alkaloidsRequested in special cases, on the decision of a doctor or the relevant authority

Can an opiate test be positive without using opium?

Yes. Studies have documented that eating baked goods containing a certain amount of poppy seeds can give a positive urine result for morphine and codeine within hours, and it may last about a day. Cough medicines and painkillers containing codeine, and prescribed morphine medications, give the same result. That is why a positive result on the initial screening test needs a confirmatory test and a medical interpretation.

Are rapid home tests enough to detect opium?

The rapid strips available work in the same way as the initial screening test, so they are useful as a first indication but can give false positive or false negative results, and they do not identify the source of the morphine. Also, testing children or spouses secretly or by force can destroy trust and increase denial. It is better for the test to be part of a medical assessment in which the doctor explains it and interprets the result in context.

When are opiate tests requested?

  • In emergencies, when an overdose or unexplained loss of consciousness is suspected.
  • When starting an addiction treatment program, and during it to monitor progress.
  • In older adults who show unexplained symptoms such as excessive drowsiness or confusion.
  • In some job, licensing, or legal procedures.

Does opium stay longer in someone who has used it for years?

Often yes. With long daily use, breakdown products build up in the body, and the test result may stay positive for longer than the usual windows, especially in older adults and people with weakened liver or kidney function. A hair test in these people may also reflect a pattern of continuous use over months. For this reason a single result should not be interpreted in isolation from the medical history and assessment.

What should you do if you take a medication containing codeine and are asked for a test?

  1. Keep the prescription or the medicine box that shows the active ingredient.
  2. Tell the lab or the party requesting the test about the medication before the sample is taken.
  3. If a positive result appears, ask for a confirmatory test and discuss the result with your doctor.
  4. Do not stop a prescribed medication on your own because of a test. Go back to your doctor first.

Why do we not offer tips for getting around the test?

Because in the context of treatment a test is a tool to protect and help the patient, not to condemn them, and because attempts to get the substance out of the body quickly can be dangerous and do not change the fact that there is a problem. If you truly want to stop opium, the safe route is medically supervised detox. Read about opium addiction treatment.

Frequently asked questions

Frequently asked questions about how long opium stays in the body and testing

Didn’t find your answer?

Ask an advisor directly. The reply is confidential and carries no commitment.

Ask on WhatsApp
How long does opium stay in urine?

Its components, morphine and codeine, are usually detected in urine for roughly two to four days, and this may be longer with chronic use.

Does opium show up on a test as morphine?

Yes. Because morphine is its main component, opium usually gives a positive result on an opiate test, though the initial screening test does not identify the source of the morphine.

Do poppy seeds show up on a drug test?

A certain amount of them can give a positive result for morphine and codeine for a short time, which is why a confirmatory test is needed, and you should tell the lab what you ate.

How long does opium stay in hair?

It may be detected in hair for up to about 90 days depending on the length of the sample, but a hair test does not detect use in the last few days.

Can opium and heroin be told apart on a test?

The initial screening test cannot tell them apart, but confirmatory tests may help: heroin has a specific short-lived breakdown product, and other alkaloids may appear with opium.

How long does opium stay in blood?

Morphine is detected in blood for only hours after use, up to about a day, which is why a blood test is mostly used to assess very recent use in emergencies.

Does drinking a lot of water affect an opium test result?

Drinking water does not change how fast the liver breaks down morphine, and overdoing it can cause a dangerous salt imbalance. Labs also check whether a sample has been diluted.

Does cough medicine show up on an opium test?

Medications that contain codeine may give a positive result on an opiate test, so the lab and the doctor should be told about them before testing.

Medical reviewDr. Mahmoud El-Sawy, Consultant Psychiatrist and Addiction Specialist

This page was written by the Eradah editorial team and reviewed by a specialist physician under the medical review policy. Last medically reviewed: September 28, 2026. The content is for education and does not replace consulting a doctor.

Need help with opium?

Your information is confidential and is not shared with anyone

Call WhatsApp Consultation