How Long Does Codeine Stay In Your Urine?

Codeine typically remains detectable in urine for one to three days after a single dose, though the window stretches longer with repeated use. In a study where subjects took codeine three times daily for three days, the drug was still measurable in urine up to 48 hours after the final dose, and its metabolite morphine lingered even beyond that point. The exact duration depends on how much you took, how your liver processes the drug, the sensitivity of the test, and a handful of other variables that make a single neat answer impossible.

How Your Body Breaks Down Codeine

Codeine is what pharmacologists call a prodrug, meaning it does not do much on its own until your liver converts it into active substances. The main metabolic pathway turns codeine into codeine-6-glucuronide, a water-soluble form your kidneys can flush out. A smaller fraction, roughly 10%, gets converted into morphine by a liver enzyme called CYP2D6. Another portion becomes norcodeine.1Journal of Pain and Symptom Management. Opioid Metabolites All three of these breakdown products wind up in your urine alongside whatever unchanged codeine passes through, which is why a urine drug test after codeine use will often flag positive for both codeine and morphine.

This matters because when you see a drug test result, it is not measuring just one chemical. The test is picking up a mix of codeine itself and its metabolites, and the ratios between them shift over time. Right after you take a dose, codeine dominates. As hours pass, morphine makes up a larger share. Eventually codeine drops below detection while traces of morphine may still linger. Understanding this progression helps explain why the detection window is not a single fixed number.

The Detection Timeline After Repeated Doses

The most detailed data on codeine’s urinary timeline comes from a study that gave nine subjects codeine-containing cold syrup (10 to 40 mg doses, three times daily for three days) and then tracked urine concentrations over the following days. The researchers identified four distinct phases of excretion. In the first phase, codeine concentrations exceeded morphine concentrations, which is the pattern you would expect while the drug is still being actively metabolized. In the second phase, codeine and morphine reached roughly equal concentrations, occurring about 18 to 30 hours after the last dose. In the third phase, morphine overtook codeine, appearing 18 to 42 hours after the final dose. In the fourth and terminal phase, codeine had dropped below 0.05 micrograms per milliliter while morphine was still detectable at 0.10 to 0.30 micrograms per milliliter, showing up roughly 24 to 36 hours after the last dose.2PubMed. Urinary excretion of codeine and morphine following the administration of codeine-containing cold syrup

The practical takeaway is that after a short course of codeine, the drug itself clears your urine within about two days of your last dose, but morphine, the metabolite, can hang around a bit longer. For a single occasional dose, the window is shorter. For someone who has been using codeine regularly at higher doses, the body accumulates more metabolites and takes longer to clear them.

Why the Test’s Cutoff Concentration Changes Everything

Drug tests do not report “present” or “absent.” They report whether a substance exceeds a threshold concentration, called a cutoff. For opiates, two different cutoffs have been widely used, and which one applies to your test dramatically affects how long codeine appears to stay in your system.

The older standard cutoff was 300 nanograms per milliliter (ng/mL) for both immunoassay screening and confirmatory testing. At that sensitivity, even small amounts of codeine from a legitimate prescription or even poppy-seed foods could trigger a positive. Because of this, many testing programs raised the cutoff to 2,000 ng/mL. A study examining this shift found that raising the cutoff led to more than a 300% reduction in confirmed-positive results for codeine and morphine and a 47% drop in codeine-only confirmations.3PubMed. Experience with a urine opiate screening and confirmation cutoff of 2000 ng/mL

What this means for you: at a 300 ng/mL cutoff, codeine from a therapeutic dose might remain detectable for the full two-to-three-day window described above. At a 2,000 ng/mL cutoff, the effective detection window shrinks considerably because urine concentrations drop below that higher bar much sooner. If you are wondering whether you will pass a test, knowing which cutoff your testing program uses matters at least as much as knowing when you last took the drug. Federally regulated workplace testing in the United States currently uses the 2,000 ng/mL initial screening cutoff for opiates, but many clinical, pain-management, and legal programs still use lower thresholds.

Genetic Differences in Codeine Metabolism

Not everyone processes codeine at the same speed. The CYP2D6 enzyme responsible for converting codeine into morphine comes in multiple genetic variants, and these variants fall along a spectrum from nonfunctional to ultrarapid. Most people are normal (“extensive”) metabolizers, but somewhere around 1 to 10% of people, depending on ethnic background, carry gene duplications that make them ultrarapid metabolizers. These individuals convert codeine into morphine much faster and in greater quantities than average.

A well-known case report in the New England Journal of Medicine described a patient who developed life-threatening codeine toxicity linked to carrying three or more functional CYP2D6 alleles, consistent with ultrarapid metabolism. The unusually high morphine production was compounded by other medications that slowed a different metabolic pathway and by reduced kidney function at the time.4PubMed. Codeine intoxication associated with ultrarapid CYP2D6 metabolism

For detection purposes, ultrarapid metabolizers may show higher morphine-to-codeine ratios in their urine and could potentially test positive for morphine at higher concentrations or for a longer stretch than normal metabolizers who took the same dose. At the other end, poor metabolizers produce very little morphine from codeine, so their urine profile looks different again. This genetic variability is one reason that rigid rules about detection times are always approximate.

Poppy Seeds and False Positives

One of the most persistent questions around opiate urine testing is whether eating poppy-seed bagels or muffins can really make you test positive. The answer is a clear yes, and the science on this has only grown more definitive over the years. Poppy seeds naturally contain morphine and codeine, and the amounts vary widely between batches and brands.

A controlled feeding study in which participants ate commercially available poppy seeds with known opiate content found that urine specimens tested positive for morphine at the 2,000 ng/mL federal cutoff after consuming seeds currently sold as food products.5PubMed Central. Morphine and Codeine Concentrations in Human Urine following Controlled Poppy Seeds Administration of Known Opiate Content A separate study looking at poppy-seed food products (not raw seeds) found that two out of five products produced opiate-positive urine results at all post-consumption time points when screened at 300 ng/mL. In those positive samples, codeine was found every time, and codeine concentrations exceeded morphine concentrations in every single sample. Even at the higher 2,000 ng/mL cutoff, about 65% of those samples still tested positive for codeine, with one participant reaching a peak codeine concentration above 13,000 ng/mL.6PubMed. Urine and hair drug test results associated with daily consumption of codeine-predominant poppy seed food products

This creates a genuine problem for drug-testing programs, because the urinary pattern from poppy-seed consumption can look remarkably similar to the pattern from taking codeine as a medication. A separate investigation found that some poppy-seed food products produced urine that was codeine-positive and morphine-negative at a 300 ng/mL cutoff, a pattern traditionally interpreted as evidence of codeine use rather than poppy-seed ingestion. The researchers concluded that poppy-seed consumption cannot reliably be distinguished from codeine administration based on previously published urinary opiate concentrations and ratios alone.7PubMed. Poppy Seed Consumption May Be Associated with Codeine-Only Urine Drug Test Results

How Labs Tell Codeine Use from Heroin or Morphine Use

Because codeine produces morphine as a metabolite, and because heroin also breaks down into morphine (along with a unique marker called 6-monoacetylmorphine), labs face the challenge of figuring out which substance a person actually consumed. The primary tool for making this distinction is the morphine-to-codeine ratio in the urine specimen. When someone has taken codeine, the codeine concentration typically exceeds the morphine concentration for most of the detection window, and the morphine-to-codeine ratio stays below a certain threshold.8PubMed Central. Morphine/Codeine Ratio, a Key in Investigating a Case of Doping

When someone has used heroin or taken morphine directly, the morphine concentration dominates the urine profile and codeine is either absent or present only in trace amounts. In forensic settings, the concentration ratio between morphine and codeine has been used as a criterion to distinguish heroin users from codeine users.9PubMed. Distinguishing heroin abuse from codeine administration in the urine of Chinese people by UPLC-MS-MS However, as the poppy-seed research described above has shown, these ratio-based rules are not foolproof. The ratios shift over time after a dose, and certain food products can mimic the pattern expected from codeine medication. Labs increasingly rely on testing for additional markers like 6-monoacetylmorphine (unique to heroin) and hydromorphone to improve accuracy.

Lab Processing Quirks That Affect Results

Even the mechanics of how a lab processes your urine sample can influence the numbers that come back. Most of the codeine in urine is not floating around as free codeine. It is conjugated to glucuronide, a sugar molecule your body attaches to make the drug more water-soluble for excretion. Before the lab can measure the codeine concentration, it needs to break that bond through a process called hydrolysis. The problem is that codeine-6-glucuronide is stubbornly resistant to the standard enzymatic hydrolysis methods that labs commonly use.

Research comparing different hydrolysis approaches found that the enzyme typically used broke down morphine-3-glucuronide with 90 to 95% efficiency but managed only 45 to 58% efficiency for codeine-6-glucuronide. The researchers concluded that this incomplete breakdown likely explains erratic results that different labs sometimes report for the same sample. An optimized acid hydrolysis method using hydrochloric acid at high temperature gave more reproducible results.10PubMed. Optimizing the hydrolysis of codeine and morphine glucuronides in urine

For you as the person being tested, this means that the codeine concentration reported on your results is partly a function of how good the lab’s hydrolysis step was. Two labs testing an identical split sample could return meaningfully different codeine numbers. This is not a common topic of conversation, but it becomes relevant when borderline results have real consequences, such as in probation testing, pain-management agreements, or workplace drug programs.

Factors That Push the Window Longer or Shorter

Beyond genetics and cutoff thresholds, several other variables influence how quickly your body clears codeine from urine:

  • Dose and duration: A single 30 mg tablet clears faster than a week of taking codeine cough syrup multiple times a day. Repeated dosing lets metabolites accumulate, and the body needs more time to flush the backlog.
  • Kidney function: Because codeine and its metabolites are eliminated primarily through the kidneys, any reduction in kidney function slows clearance. The case report of ultrarapid CYP2D6 metabolism noted that a transient reduction in renal function contributed to the patient’s dangerously high morphine levels.4PubMed. Codeine intoxication associated with ultrarapid CYP2D6 metabolism
  • Age and liver health: Older adults and people with liver disease tend to metabolize drugs more slowly, which can extend how long metabolites persist.
  • Hydration: Drinking more fluids dilutes your urine, which can push concentrations below the cutoff sooner, though labs check for overly dilute specimens and may flag or reject them.
  • Other medications: Drugs that inhibit CYP2D6 (like fluoxetine or paroxetine) slow codeine’s conversion to morphine, potentially altering the timeline and the metabolite profile. Drugs that inhibit CYP3A4 can shift metabolism toward other pathways in unpredictable ways.

None of these factors add days to the window in most healthy adults taking normal doses. The difference between someone who clears codeine in 36 hours and someone who takes 72 hours usually comes down to a combination of these variables stacking in the same direction.

Detection in Hair, Blood, and Saliva

Urine is the most common matrix for drug testing, but it is not the only one, and the detection windows differ substantially across sample types. Blood and saliva have very short windows for codeine, typically measured in hours rather than days, because the drug is rapidly distributed and metabolized. A study that tracked codeine across multiple specimen types found that both morphine and codeine appeared in beard hair approximately seven to eight days after drug administration, at a time when levels in urine, plasma, and saliva were already undetectable and drug-related effects had long since disappeared.11PubMed. Testing human hair for drugs of abuse. I. Individual dose and time profiles of morphine and codeine in plasma, saliva, urine, and beard compared to drug-induced effects on pupils and behavior

Hair testing can detect opiates for months because the drug gets incorporated into the growing hair shaft and stays locked in place. A standard hair test covering 1.5 inches of growth represents roughly 90 days of history. This makes hair the preferred matrix when the question is about patterns of use over weeks or months, while urine remains the standard for recent-use detection.

Sample Tampering and Adulterants

Some people facing drug tests attempt to alter their urine specimens to avoid detection. One chemical that has been studied in this context is pyridinium chlorochromate (PCC), a strong oxidizing agent sometimes sold online as a urine additive. Research has shown that PCC effectively oxidizes codeine and codeine-6-glucuronide in urine, altering the original codeine-to-glucuronide ratio in the specimen.12PubMed. Transformation of codeine and codeine-6-glucuronide to opioid analogues by urine adulteration with pyridinium chlorochromate: potential issue for urine drug testing This means that rather than simply destroying the evidence, PCC can transform codeine into different opioid-like compounds, potentially creating a confusing or misleading result rather than a clean negative.

Modern labs routinely test for common adulterants as part of specimen-validity checks. Oxidizing agents like PCC change the pH, specific gravity, and chromium content of urine in ways that are straightforward to detect. Attempting to tamper with a sample generally carries consequences at least as serious as a positive result in most testing programs, making it a risky strategy on top of being scientifically unreliable.

When Codeine Shows Up and You Did Not Take Any

Beyond poppy seeds, a few other scenarios can produce unexpected codeine or morphine in a urine test. Some heroin batches contain trace amounts of acetylcodeine, which the body converts to codeine, so a person who has used heroin may have both morphine and codeine in their urine even though they never took codeine. Conversely, because codeine metabolizes into morphine, a person who took only codeine will show morphine in their results, which can raise uncomfortable questions in clinical settings where morphine use is not authorized.

The shifting ratios of codeine to morphine over time compound the confusion. If your sample happens to be collected late in the excretion window, during those terminal phases where morphine exceeds codeine, the profile can look more like someone who took morphine directly. This is where the multi-phase excretion data from the cold-syrup study becomes practically important: a specimen collected 36 or more hours after the last dose of codeine can show morphine as the dominant analyte, with codeine barely detectable or gone entirely.2PubMed. Urinary excretion of codeine and morphine following the administration of codeine-containing cold syrup If you have a legitimate codeine prescription and face regular testing, providing your test administrator with documentation of the prescription before the test avoids a lot of avoidable back-and-forth.