How Long Does Morphine Stay in Urine?

A single dose of morphine is typically detectable in urine for about one and a half to four days, while people who use morphine regularly can test positive for roughly a week after their last dose. That range is wide because detection depends on several interacting factors: the dose taken, the cutoff concentration the lab uses, how well your kidneys work, and even your genetics. The story gets more interesting once you look at how the body breaks morphine down and what the tests are actually measuring.

How Your Body Handles Morphine

After morphine enters the bloodstream, the liver converts most of it into two main breakdown products: morphine-3-glucuronide (M3G) and morphine-6-glucuronide (M6G).1Journal of Pharmacology and Experimental Therapeutics. Morphine Glucuronidation and Glucosidation Represent Complementary Metabolic Pathways That Are Both Catalyzed by UDP-Glucuronosyltransferase 2B7 M3G is by far the more abundant of the two, while M6G is pharmacologically active and contributes to pain relief. Both metabolites are water-soluble, which means the kidneys can filter them into urine relatively efficiently. The majority of a morphine dose appears in urine within the first 24 hours, with concentrations tapering off over the following days.

Kidney handling of morphine and its glucuronides varies quite a bit from person to person. Research on cancer patients receiving morphine found wide individual differences in how the kidneys process all three compounds, with evidence of both net secretion into and reabsorption from the urine at different times.2PubMed. Plasma concentrations and renal clearance of morphine, morphine-3-glucuronide and morphine-6-glucuronide in cancer patients receiving morphine That variability is one reason two people taking the same dose can have noticeably different detection windows.

Why the Detection Window Varies So Much

The one-and-a-half to four-day range for a single dose comes from a large review of detection times across drugs of abuse, and it reflects averages.3PubMed. Detection times of drugs of abuse in blood, urine, and oral fluid Several things push an individual toward the shorter or longer end of that window.

Kidney function is the most powerful modifier. In people with chronic kidney disease, the half-life of morphine’s glucuronide metabolites can balloon from a normal range of roughly 4 to 14 hours all the way up to 119 hours.4PubMed Central. Opioid Prescription in Patients With Chronic Kidney Disease: A Systematic Review of Comparing Safety and Efficacy of Opioid Use in Chronic Kidney Disease Patients That is a dramatic extension. Because the kidneys cannot clear the metabolites at a normal pace, concentrations build up, keeping urine levels detectable far longer than in someone with healthy kidneys. This accumulation also raises the risk of serious side effects like excessive sedation and respiratory depression, which is why morphine is generally avoided in renal failure.

Age matters too, particularly at the extremes. In neonates and young infants, the enzyme systems that convert morphine to M3G and M6G are immature. The formation clearance for M3G increases with a maturation half-life of about 88 days from birth, and the metabolites’ own clearance matures over roughly 129 days, tracking the development of the infant’s kidney filtration capacity.5PubMed. Developmental pharmacokinetics of morphine and its metabolites in neonates, infants and young children A newborn exposed to morphine will therefore clear it much more slowly than an adult, and its metabolites will linger in urine substantially longer.

Genetics add another layer of unpredictability. The enzyme primarily responsible for morphine glucuronidation is UGT2B7. One study of patients with sickle cell disease found that a specific promoter variant of the UGT2B7 gene was associated with significantly reduced glucuronidation, meaning the liver processed morphine into its metabolites more slowly.6PubMed. UGT2B7 promoter variant -840G>A contributes to the variability in hepatic clearance of morphine in patients with sickle cell disease If your liver converts morphine more slowly, the parent drug lingers longer in your system and the metabolite profile in urine shifts. That said, a separate study in a different population found no significant association between UGT2B7 variants and morphine pharmacokinetics, so the genetic picture is not fully resolved.7PubMed. Lack of genetic association between OCT1, ABCB1, and UGT2B7 variants and morphine pharmacokinetics Genetics probably plays a real but modest role for most people, and its influence may be clearer in certain disease states than in the general population.

Dose and frequency of use also matter in a straightforward way. The more morphine you take and the more often you take it, the more drug and metabolites accumulate. In chronic users, detection times can stretch to roughly a week after the last dose.3PubMed. Detection times of drugs of abuse in blood, urine, and oral fluid Hydration level and urine concentration also play a role. A very dilute urine sample can push drug concentrations below the testing cutoff, while concentrated urine from dehydration can keep them detectable longer.

Testing Cutoffs Change the Answer

The detection window for morphine is not purely biological. It also depends on the number the lab considers “positive.” That number, the cutoff concentration, varies depending on who ordered the test and why.

In 1998, the U.S. Department of Health and Human Services raised the federal workplace testing cutoff for opiates from 300 ng/mL to 2,000 ng/mL. The main reason was to reduce false positives from poppy seed ingestion and routine prescription drug use.8Mayo Clinic Proceedings. Clinical Interpretation of Urine Drug Tests: What Clinicians Need to Know About Urine Drug Screens A higher cutoff means concentrations that would have triggered a positive result under the old standard now come back negative. In practical terms, a 2,000 ng/mL cutoff shortens the effective detection window compared to a 300 ng/mL cutoff. Someone whose morphine level has dropped to, say, 500 ng/mL would test negative under the workplace standard but positive under the older or clinical standard.

Clinical settings often use lower thresholds because the purpose is different. A pain management clinic monitoring whether a patient is actually taking prescribed morphine needs to detect smaller amounts. An employer screening for illicit drug use wants to avoid flagging someone who ate a poppy seed bagel that morning. The same biology produces completely different test outcomes depending on which cutoff is applied. When someone asks “how long does morphine stay in my urine,” the honest follow-up question is: what cutoff is the test using?

Initial Screening Versus Confirmation Testing

Most urine drug tests start with an immunoassay, a quick screening method that detects the opiate class broadly rather than morphine specifically. Research comparing several commercial immunoassays against gas chromatography/mass spectrometry (GC/MS) found that immunoassays correlate well with GC/MS for morphine-positive specimens, but the presence of codeine increases variability and reduces accuracy.9PubMed. Forensic drug testing for opiates. V. Urine testing for heroin, morphine, and codeine with commercial opiate immunoassays One assay type (EMIT) showed accurate correlation only within a narrow range and plateaued at higher concentrations, while others tracked GC/MS more faithfully across a wider range.

What this means for you is that a positive screening result is not the final word. Immunoassays are designed to cast a wide net, and they can cross-react with other opiates and even some non-opiate drugs. A confirmation test using GC/MS or liquid chromatography-mass spectrometry (LC-MS) is much more specific. It can distinguish morphine from codeine, quantify exact concentrations, and identify specific metabolites. If the initial screen is positive but the confirmation test comes back negative at the same cutoff, the screen was a false alarm.

Poppy Seeds and Positive Tests

Poppy seeds contain trace amounts of morphine and codeine. Eating enough of them can genuinely push urine concentrations above testing cutoffs, and this is not an urban myth. It is the very reason federal workplace cutoffs were raised from 300 to 2,000 ng/mL.

Research using poppy seed paste found that, at the older 300 ng/mL cutoff, urine samples tested positive for opiates for up to 48 hours after consumption. Even at the higher 2,000 ng/mL cutoff, positives were detected for up to 12 hours.10PubMed. Morphine Concentrations in Human Urine Following Poppy Seed Paste Consumption The morphine content of poppy seeds varies enormously depending on origin, processing, and how they are prepared. A study of poppy seed-enriched curry found that subjects who consumed low amounts tested negative, but one out of six high-dose subjects tested positive between 3 and 6 hours after a single meal, and five out of six were positive after multiple high-dose meals.11PubMed. Profiling of morphine and codeine in urine after the ingestion of curry containing poppy seed as an evidence for opiates defence in Malaysia

One useful forensic clue is thebaine. Poppy seeds contain thebaine as a natural alkaloid, while pharmaceutical morphine and heroin do not. The poppy seed paste study found thebaine in all urine samples from poppy seed consumers but no 6-acetylmorphine, the metabolite specific to heroin.10PubMed. Morphine Concentrations in Human Urine Following Poppy Seed Paste Consumption If a lab runs a full metabolite panel, these markers can often distinguish dietary poppy seed exposure from drug use.

Distinguishing Morphine from Heroin and Codeine in Urine

Morphine appears in urine not only after someone takes morphine itself, but also after heroin or codeine use. Heroin (diacetylmorphine) is rapidly converted to 6-monoacetylmorphine (6-MAM) and then to morphine. Codeine is partially metabolized to morphine as well. So a urine test that simply reports “morphine detected” does not tell you which drug was actually taken. Labs use metabolite profiling to sort this out.

The key marker for heroin is 6-MAM. Because heroin is metabolized quickly, 6-MAM has a short detection window, but when it is present alongside morphine and M3G in urine, it provides strong evidence of heroin use rather than morphine or poppy seed ingestion.12PubMed. Interpretation of the presence of 6-monoacetylmorphine in the absence of morphine-3-glucuronide in urine samples: evidence of heroin abuse

For codeine, the situation is trickier. Because codeine is partially converted to morphine in the body, someone taking only codeine will have both codeine and morphine in their urine. The codeine-to-morphine ratio is sometimes used to work out what was actually consumed.13PubMed Central. Morphine/Codeine Ratio, a Key in Investigating a Case of Doping In patients prescribed morphine alone, codeine appears in urine at less than 1 percent of the morphine concentration, a pattern also seen in heroin users.14PubMed. Analysis of codeine positivity in urine of pain management patients However, older research found that codeine-to-morphine ratios are not always reliable indicators of the type of opiate taken, particularly during the terminal elimination phase when codeine has already cleared but morphine lingers.15PubMed. Forensic drug testing for opiates, III. Urinary excretion rates of morphine and codeine following codeine administration These nuances are why labs increasingly rely on full LC-MS metabolite panels rather than simple ratio calculations.

How Morphine Detection Compares Across Specimen Types

Urine is the most commonly used specimen for drug testing partly because it offers a longer detection window than blood or saliva. In blood or plasma, morphine is generally detectable for only one to two days at typical assay sensitivity. In oral fluid (saliva), the window narrows further to roughly 5 to 48 hours.3PubMed. Detection times of drugs of abuse in blood, urine, and oral fluid Hair testing occupies the opposite extreme, capturing drug use over months, though it is rarely used for morphine outside forensic investigations.

Each specimen type has trade-offs beyond the detection window. Oral fluid testing is harder to adulterate than urine testing and can be collected under direct observation without privacy concerns, but its short window makes it useful mainly for detecting very recent use. Blood testing reflects what is actually circulating and affecting the brain right now, making it more relevant for impairment assessments, but it requires a needle stick and the window is short. Urine sits in the middle: non-invasive to collect, a reasonable detection window, and well-established cutoff standards. That combination keeps it the default for workplace testing, clinical monitoring, and most forensic contexts.

What Happens to the Sample After Collection

A question that rarely occurs to the person being tested but matters a great deal in practice is whether morphine degrades in the sample before the lab analyzes it. Stored urine samples do lose total morphine over time. Research tracking samples over 11 months found that total morphine and codeine concentrations decreased under all storage conditions, including refrigerator and freezer temperatures, with losses ranging from roughly 10 to 40 percent.16PubMed. Storage temperature effect on the stability of morphine and codeine in urine Room temperature storage caused the largest drops in some specimens. Interestingly, free morphine (the unconjugated form) showed slight steady increases over time, suggesting that glucuronide conjugates were slowly breaking down and releasing free morphine.

A separate study found that storing samples at negative 20 degrees Celsius resulted in minimal morphine decomposition over 12 months, and that lower urine pH slowed the breakdown rate.17PubMed. Total morphine stability in urine specimens stored under various conditions Freezing is standard practice for labs that need to preserve samples for reanalysis or legal proceedings. Still, sample handling matters. If a borderline-positive sample degrades enough before confirmation testing, a true positive could flip to negative, and this is one reason labs have strict chain-of-custody and storage protocols.

Why Labs Hydrolyze Urine Samples Before Measuring Morphine

Most of the morphine in urine is not actually free morphine. It is bound up as M3G and M6G, the glucuronide metabolites produced by the liver. To measure total morphine accurately, labs need to break those conjugates apart first. This is done through hydrolysis, either with acid or with enzymes called beta-glucuronidases.

The hydrolysis step is not trivial. M3G breaks down much faster than M6G under both acid and enzymatic conditions. One study found that a three-hour incubation with beta-glucuronidase completely hydrolyzed M3G, but M6G hydrolyzed at roughly 25 percent of that rate and needed a full 24 hours for complete conversion.18PubMed. Comparison of the hydrolysis rates of morphine-3-glucuronide and morphine-6-glucuronide with acid and beta-glucuronidase More recent work with recombinant enzymes has achieved near-complete hydrolysis of both M3G and M6G, though M3G still converts faster, in 5 to 10 minutes compared to 10 to 60 minutes for M6G.19PubMed Central. Exploring Enzymatic Hydrolysis of Urine Samples for Investigation of Drugs Associated with Drug-Facilitated Sexual Assault

If a lab does not hydrolyze the sample long enough, it may undercount the M6G fraction and report a lower total morphine concentration than is actually present. This matters when a result falls close to the cutoff. The choice of enzyme, incubation time, and temperature all influence the final number. It is a technical detail that most people never think about, but it is one more reason why morphine detection in urine is not as simple as a binary yes or no.

Codeine Prescriptions Producing Morphine-Positive Results

If you take codeine for a cough or pain and then undergo a drug test, you may be surprised to find morphine in your urine. Your body converts a fraction of codeine into morphine via an enzyme called CYP2D6, and this is completely normal metabolism. Studies tracking codeine excretion in healthy subjects found that after a single intramuscular dose of codeine, both codeine and morphine appeared rapidly in urine, with most drug excreted in the first 24 hours.15PubMed. Forensic drug testing for opiates, III. Urinary excretion rates of morphine and codeine following codeine administration At a 300 ng/mL cutoff, at least one subject tested positive for morphine and negative for codeine during the late elimination phase, which could look misleadingly like morphine use without any codeine involvement.

The practical takeaway is that if you are prescribed codeine and facing a drug test, disclosing the prescription to the testing authority before the test matters. The metabolite pattern can help the lab reconstruct what was taken, but only if the medical review officer knows to look for it. People metabolize codeine at different rates depending on their CYP2D6 activity. Ultra-rapid metabolizers convert more codeine to morphine and may produce higher morphine concentrations in urine. Poor metabolizers convert less, so their urine shows more codeine and less morphine. These differences can complicate interpretation, especially for workplace or legal testing where someone is trying to prove they only took codeine.