Our admissions team is available now, 24/7
Codeine Guide · Duration in the Body

How long codeine stays in the body and drug testing

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

Codeine is detected in urine usually for about one to three days after the last use, in blood for hours to about a day, and in saliva for a day or two, while it may appear in hair for about three months. Because the liver converts part of it to morphine, it often shows up on tests as opiates. These durations are approximate and vary by laboratory and individual.

  • A screening test detects the opiate class, and a confirmatory test identifies the substance precisely.
  • Tell the laboratory or doctor about any prescribed medicine containing codeine before the test.

How does the body get rid of codeine?

After codeine is taken, it is absorbed from the digestive tract, and the liver handles it by more than one route: a small part is converted to morphine by the CYP2D6 enzyme, part to norcodeine by the CYP3A4 enzyme, and most is bound to substances that ease its removal. The kidneys then clear most of these products in the urine.

Codeine’s half-life is relatively short, estimated at a few hours, which is why its effect disappears from the blood quickly, while its metabolites stay in the urine longer.

How long does codeine stay in the body, by type of test?

Urine

About 1–3 daysThe most commonly used; the time can be longer with regular 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 codeine stays in the body by type of test: urine about 1 to 3 days, blood hours to about a day, saliva about 1 to 2 days, hair up to about 90 days
How long codeine stays in blood, saliva, urine and hair

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

What factors affect how long codeine stays?

  • Frequency and length of use: regular use lengthens the detection time compared with a single dose.
  • Amount: larger amounts take longer to clear.
  • Liver enzyme activity: it varies genetically, so the proportions of metabolites in urine differ from person to person.
  • Kidney and liver function: weakness in either slows clearing of the drug and its metabolites.
  • Age and general health: clearance is often slower with advancing age.
  • Test sensitivity and cutoff: these differ between laboratories and types of test.

Why does codeine show up on a test as morphine?

Because the liver converts part of the codeine to morphine, it is normal for a urine sample to contain both codeine and morphine. The quick screening test usually cannot tell them apart and gives only an “opiates” result. A confirmatory test measures each substance separately, and a specialist doctor can interpret the result more precisely from the ratios and the presence of distinctive metabolites of other substances.

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

Types of opiate tests
Screening testConfirmatory test
MethodA rapid immunoassay, using strips or laboratory instrumentsPrecise techniques such as chromatography with mass spectrometry
What it detectsThe opiate class in generalThe specific substance and its metabolites
SpeedMinutes to hoursUsually days
AccuracyMay give false positivesHigh accuracy, relied on medically and legally

Can a false positive result occur?

Yes. A screening test can be affected by various factors, the best known for opiates being:

  • Eating foods containing poppy seeds, which can contain traces of morphine and codeine.
  • Prescribed medicines that contain codeine, such as some painkillers and cough medicines.
  • Some other medicines that may interfere with immunoassay tests, depending on the type of test.
  • Errors in collecting or storing the sample.

That is why medical bodies recommend confirming any positive result with a confirmatory test, and telling the doctor or laboratory about all medicines used before the test.

What is the difference between how long codeine acts and how long it shows on a test?

Many people confuse the two durations. The painkilling and sedative effect of codeine usually lasts a few hours, then the feeling fades, while its metabolites stay in urine much longer. So the end of drowsiness, or the person returning to normal, does not mean the drug has left the body, nor that combining it with another sedative has become safe.

Duration of effect compared with detection time
MeasureApproximate durationWhat it means
Felt effectA few hoursHow long the person feels pain relief or drowsiness
In the bloodHours to about a dayReflects very recent use
In the urineAbout one to three daysMetabolites remain after the effect has gone
In the hairMonthsA long record of the pattern of use

Can the time or amount of use be known from a test?

Only approximately. A urine test cannot pinpoint when codeine was used or how much, because its concentration is affected by the amount of fluid, the time the sample was taken and the genetic speed of conversion. A blood test gives a closer picture of recent use, while a hair test gives a picture of the past months without identifying a particular day. That is why the doctor always interprets a result in light of the medical history and symptoms, not as an isolated number.

What if you use codeine by prescription?

If you take a codeine-containing medicine by prescription, you have the right to explain that. Keep the prescription or the doctor’s report, and inform the party requesting the test before it is done. A confirmatory test together with the prescription often clarifies the situation. Do not stop or change your medication before a test without consulting your doctor.

Why is a codeine test requested?

  • In the emergency department: to explain loss of consciousness or slow breathing and decide on the right treatment.
  • In treatment: to follow adherence to the recovery plan in a supportive, non-punitive way.
  • Before prescribing certain medicines: to avoid dangerous interactions with other opioids.
  • In employment or legal screening: according to the regulations in force.

Why don’t we publish ways to hide a test result?

Because testing in the context of treatment is a tool to protect the patient, not to punish them; it helps the doctor understand what is happening and adjust the plan. Also, the recipes circulating for hiding results are often ineffective, and some are harmful to the kidneys and heart. If testing is a source of worry for you, this is a good time to ask for help. Learn about codeine addiction treatment.

Frequently asked questions

Frequently asked questions about how long codeine 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 codeine stay in urine?

Usually about one to three days after the last use, and possibly longer with regular use. The duration is approximate and varies by laboratory.

Does codeine show up on a standard drug test?

Usually yes, because the screening test for opiates detects codeine and morphine, but it cannot tell them apart without a confirmatory test.

Does cough medicine show up on a test?

If it contains codeine it may give a positive result for opiates, which is why the laboratory should be told about all medicines being used.

Do poppy seeds cause a positive result?

They may do so on a screening test, and some bodies recommend avoiding them for several days before testing; a confirmatory test helps with interpretation.

How long does codeine stay in hair?

It may appear in a hair test for about three months, but it reflects the earlier pattern of use, not recent use.

Does drinking a lot of water speed up the removal of codeine?

Drinking water does not change the detection time in any reliable way, and drinking too much can be harmful. It is better to talk openly with the doctor.

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 codeine?

Your information is confidential and is not shared with anyone

Call WhatsApp Consultation