How Long Does It Take for Codeine to Leave Your System?

Codeine itself clears from your bloodstream fairly quickly, with a plasma half-life of roughly two to two and a half hours. That means the drug is largely gone from your blood within about twelve hours of your last dose. But “leaving your system” and “showing up on a drug test” are very different things. Depending on whether you’re being tested through urine, saliva, hair, or a sweat patch, traces of codeine and its metabolites can be detected anywhere from a day to several months after use.

How Fast Codeine Clears From Your Blood

In healthy adults, codeine’s plasma half-life averages about 2.6 hours, though individual studies put it slightly lower or higher depending on the group tested. One pharmacokinetic study in healthy volunteers found a mean half-life of 2.58 hours, with a range spanning roughly two to just over three hours across participants.1PubMed Central. Pharmacokinetics of codeine and its metabolites in Caucasian healthy volunteers: comparisons between extensive and poor hydroxylators of debrisoquine A separate study measuring both plasma and oral fluid found a mean half-life of 2.2 hours in plasma.2PubMed. Plasma and oral fluid pharmacokinetics and pharmacodynamics after oral codeine administration As a rough rule, it takes about five half-lives for a drug to drop below detectable levels in blood. With a half-life around two to two and a half hours, that works out to roughly ten to thirteen hours for codeine itself to become undetectable in a standard blood draw.

That timeline applies to the parent compound, codeine. But your liver converts codeine into several metabolites, including morphine and codeine-6-glucuronide, and those metabolites can persist a bit longer. Blood tests in clinical or forensic settings sometimes look for these breakdown products rather than codeine alone, which can extend the effective detection window by several hours.

Urine Testing and the Standard Detection Window

Urine is by far the most common specimen type for drug screening, and it catches codeine for longer than blood does. Most clinical and workplace guidelines cite a detection window of one to three days after a single dose, though the exact duration depends on how much you took, how often you’ve been taking it, and your individual metabolism. The reason urine testing has a longer reach is straightforward: your kidneys filter out codeine and its metabolites over many hours, concentrating them in urine well after blood levels have dropped.

Standard immunoassay screens look for “opiates” as a class, meaning a positive result could reflect codeine, morphine, or both. Confirmatory testing then identifies the specific compounds. One practical complication worth knowing is that the cutoff concentrations used in different testing programs can vary. A workplace test using a higher threshold will call a sample negative sooner than a forensic test with a lower threshold, even from the same person on the same day.

Saliva Testing

Oral fluid testing has grown more common in roadside and workplace screening because collection is easy and hard to tamper with. Codeine’s half-life in saliva closely mirrors plasma, averaging about 2.2 hours.2PubMed. Plasma and oral fluid pharmacokinetics and pharmacodynamics after oral codeine administration After a single dose, codeine concentrations in oral fluid tend to peak within one to two hours and then decline in step with blood levels, giving a general detection window of about twelve to twenty-four hours for a standard dose.

There is a catch in the first hour or two after swallowing a liquid codeine preparation: residue from the formulation can linger in your mouth, producing artificially high readings that don’t reflect what’s actually circulating in your blood. A systematic review of saliva drug testing found that oral contamination from liquid drug formulations caused abnormally high codeine concentrations in the first hours after dosing, and the correlation between saliva and plasma improved only after the absorption phase was complete.3PubMed Central. Can we Predict Drug Excretion into Saliva? A Systematic Review and Analysis of Physicochemical Properties For testing purposes, this means an oral fluid sample collected very soon after dosing may overestimate actual drug exposure.

Hair Testing Has a Much Longer Reach

If blood clears codeine in half a day and urine in a few days, hair extends the window by months. Drug molecules get incorporated into the growing hair shaft through the bloodstream, and because hair grows at a relatively predictable rate of about one centimeter per month, each segment of a strand becomes a rough timeline of past drug exposure.

One study found that codeine was detectable in the first centimeter of hair within thirty minutes of a single 120-milligram dose, though it didn’t reach more distal segments for about three weeks. After that single dose, codeine remained detectable in hair for at least ten weeks.4PubMed. Codeine disposition in human hair after single and multiple doses For people who used codeine regularly and then stopped, the clearance from hair takes considerably longer. A study tracking former codeine users found that after two months of confirmed abstinence, only about a quarter still tested positive for codeine in hair. After four months, just a handful remained positive for morphine metabolites. By six months, all participants tested negative for codeine, morphine, and the heroin marker 6-MAM.5Forensic Science International. Disappearance of codeine, morphine and 6-MAM in hair after cessation of abuse

Standard forensic hair testing typically analyzes the most recent three centimeters, which represents roughly three months of growth. That is the window most commonly reported, but as the research shows, traces from heavier use can hang around somewhat longer.

Sweat Patch Testing

Sweat patches are less commonly encountered than urine or hair tests, but they show up in criminal justice monitoring and some treatment programs. The standard device is worn on the skin for five to ten days, collecting whatever drug molecules migrate out through sweat during that period.6Journal of Chromatography B: Biomedical Sciences and Applications. Sweat testing for cocaine, codeine and metabolites by gas chromatography–mass spectrometry

In a controlled study where participants received codeine under supervision, codeine was the primary analyte found in sweat. It showed up in the majority of weekly patches worn during dosing and was still detectable at low but variable concentrations up to two weeks after the last dose.7Clinical Chemistry. Opioid Disposition in Human Sweat after Controlled Oral Codeine Administration Separate earlier work found that codeine appeared in sweat within an hour of dosing, peaked during the twelve-to-twenty-four-hour window, and plateaued around the third day of continuous patch wear.8PubMed. Detection of codeine and phenobarbital in sweat collected with a sweat patch The concentrations were highly variable between individuals, which is a recurring theme across all specimen types and one of the reasons there is no single clean answer to “how long.”

Why Your Genetics Can Drastically Change the Timeline

Codeine is what pharmacologists call a prodrug. It doesn’t relieve pain on its own. Instead, a liver enzyme called CYP2D6 converts a portion of each codeine dose into morphine, and that morphine is what actually activates opioid receptors.9PubMed. Codeine intoxication associated with ultrarapid CYP2D6 metabolism How much morphine you produce from a given dose of codeine, and how quickly you clear it, depends heavily on which version of the CYP2D6 gene you inherited.

People fall along a spectrum. Those with normal enzyme activity produce a moderate amount of morphine. Poor metabolizers produce very little, which means codeine may barely work as a painkiller for them, and their body clears morphine-related metabolites faster simply because less morphine was made in the first place. At the other extreme, ultrarapid metabolizers convert codeine into morphine much more efficiently. A pharmacokinetic modeling study found that ultrarapid metabolizers had roughly 218% higher morphine exposure compared to normal metabolizers, reaching plasma concentrations that could potentially cause respiratory depression. Poor metabolizers, by contrast, had morphine exposure less than one-eighth that of normal metabolizers.10PubMed Central. Population Pharmacokinetic Quantification of CYP2D6 Activity in Codeine Metabolism in Ambulatory Surgical Patients for Model-Informed Precision Dosing

This genetic variability doesn’t change the half-life of codeine itself very much, but it dramatically affects how long morphine and its metabolites circulate. An ultrarapid metabolizer will have higher and more sustained morphine levels, meaning their urine may test positive for morphine-related metabolites longer than expected from a standard codeine dose. This genetic variation is also the reason regulatory agencies in multiple countries have restricted or banned codeine use in children, after case reports of respiratory depression and even deaths in pediatric patients who turned out to be ultrarapid metabolizers.11PubMed Central. Codeine and opioid metabolism: implications and alternatives for pediatric pain management

When Other Medications Mimic a Genetic Change

You don’t need to have an unusual CYP2D6 genotype to behave like a poor metabolizer. Certain commonly prescribed medications are potent inhibitors of CYP2D6, and taking them alongside codeine can effectively shut down or severely reduce the enzyme’s activity. This phenomenon, sometimes called phenoconversion, can turn someone who genetically has normal metabolism into a functional poor metabolizer.12PubMed Central. CYP2D6 pharmacogenetics and phenoconversion in personalized medicine Well-known CYP2D6 inhibitors include certain antidepressants like fluoxetine and paroxetine, the antihistamine diphenhydramine, and the heart rhythm drug quinidine.

If CYP2D6 is inhibited, codeine hangs around longer in its original form because less of it is being converted. This can change both the drug’s effectiveness (less morphine means less pain relief) and the pattern of metabolites in your urine. From a drug testing perspective, it can mean higher codeine-to-morphine ratios than expected, which may complicate the interpretation of results.

Kidney and Liver Disease Both Change the Picture

Your kidneys are the main exit route for codeine and its metabolites. When kidney function is impaired, clearance slows down and metabolites accumulate. Research on codeine in patients with advanced kidney failure found significantly reduced renal clearance of codeine and its glucuronide metabolites. In one study, researchers had to abandon plans to test repeat dosing in hemodialysis patients after two out of six participants experienced severe adverse reactions from a single dose. The investigators estimated that with chronic dosing, toxic levels would accumulate in about two-thirds of dialysis patients.13Journal of Pain and Symptom Management. Opioids in renal failure and dialysis patients For someone with significant kidney disease, codeine and its metabolites can linger substantially longer than the standard timelines suggest.

The liver introduces a different problem. Because codeine depends on hepatic enzymes for conversion to its active form, liver disease creates an unpredictable situation. In people with moderate to severe liver impairment, decreased enzyme activity means less morphine is produced, so the drug may be less effective for pain. At the same time, the overall clearance of codeine can be prolonged because the liver isn’t processing it as efficiently.14PubMed. Pharmacokinetics of opioids in liver disease Clinical guidelines generally recommend avoiding codeine entirely in moderate to severe hepatic impairment because the effect becomes unpredictable.15Journal of Pain and Symptom Management. Prescribing in Chronic Severe Hepatic Impairment

The Poppy Seed Problem

One question that comes up frequently alongside codeine detection windows is whether eating poppy seeds can trigger a positive opiate test. The answer is yes, and the issue is more complicated than most people realize. Poppy seeds naturally contain small amounts of codeine and morphine on their outer coating, and consumption of certain poppy seed products can produce urine results indistinguishable from actual codeine use.

A study in which participants consumed various commercially available poppy seed foods found that about 18% of post-consumption urine samples tested positive for codeine while negative for morphine at the standard 300 ng/mL cutoff. This is the exact pattern that older clinical guidance said should indicate codeine administration rather than poppy seed ingestion. The researchers concluded that poppy seed consumption cannot reliably be distinguished from codeine use based on previously published urinary opiate concentrations and ratios.16PubMed. Poppy Seed Consumption May Be Associated with Codeine-Only Urine Drug Test Results A follow-up study testing daily consumption of codeine-predominant poppy seed products found even more striking results: all sixty urine samples from two of the food products were positive for codeine, and about 65% remained positive even at a much higher cutoff of 2,000 ng/mL.17PubMed. Urine and hair drug test results associated with daily consumption of codeine-predominant poppy seed food products

In oral fluid testing, the poppy seed window is much shorter. A study of raw poppy seed ingestion found that morphine showed up in all saliva samples at thirty minutes, and codeine appeared in most. But by two hours, morphine was only detectable in one out of five participants, and codeine was undetectable in all of them.18PubMed Central. Exploring the “poppy seed defense” in oral fluid: detection of opioids following poppy seed consumption So while the poppy seed defense is a genuine concern for urine testing over a day or more, saliva testing appears to be much less affected beyond the first couple of hours.

Codeine in Breast Milk

For nursing mothers prescribed codeine after delivery, the question of how long the drug stays in their system carries an extra dimension: how long does it take for codeine and morphine to clear from breast milk? Codeine does transfer into breast milk, and because the infant’s liver is immature and less able to process opioids, even small amounts of morphine in milk can accumulate in a newborn. Reports of serious adverse events in breastfed infants whose mothers were taking standard codeine doses prompted organizations including Health Canada and the FDA to issue warnings. Guidelines developed in response suggest limiting codeine use during breastfeeding to the lowest effective dose for the shortest possible duration, and watching the infant closely for signs of excessive sedation, difficulty feeding, or breathing problems.19PubMed Central. Guidelines for maternal codeine use during breastfeeding The risk is especially high if the mother happens to be an ultrarapid CYP2D6 metabolizer, since she will convert more codeine to morphine and pass more of it along in milk.

Forensic Challenges After Death

Outside the clinical setting, forensic toxicologists face their own version of the “how long does codeine stay” question when analyzing postmortem specimens. After death, drug concentrations in blood can change because compounds redistribute from tissue stores back into the bloodstream, a phenomenon called postmortem redistribution. A study examining brain-to-blood ratios of several common opioids, including codeine, noted that postmortem blood levels are susceptible to this redistribution and may not accurately reflect concentrations present at the time of death.20PubMed. Postmortem Brain-Blood Ratios of Codeine, Fentanyl, Oxycodone and Tramadol This means that a postmortem blood codeine concentration can look higher or lower than what was actually circulating when the person was alive, which complicates determinations about cause of death and whether a drug played a role.

Quick Reference by Specimen Type

Because the detection windows vary so much depending on what’s being tested, here’s a summary of what the research supports:

  • Blood: Codeine is generally undetectable after roughly 12 hours, given a half-life of about 2.2 to 2.6 hours.
  • Urine: One to three days is the commonly cited window, though heavy use or impaired kidney function can extend this.
  • Saliva: Similar to blood, roughly 12 to 24 hours, with artificially elevated readings possible in the first hour or two after an oral dose.
  • Sweat patch: Up to two weeks after dosing in controlled studies, with high variability between individuals.
  • Hair: A standard three-centimeter segment covers approximately three months; traces from prolonged use can persist for up to six months.

These windows assume normal organ function and typical genetics. Kidney disease, liver disease, CYP2D6 status, and concurrent medications can all shift the timeline in either direction. Anyone facing a drug test who has recently used codeine, whether prescribed or over the counter, should be aware that the answer to “is it out of my system yet” depends as much on the test being used and their own physiology as it does on the clock.