Belvedere and the greater Los Angeles area

Detection & Drug Testing

How Long Does Codeine Stay in Your System?

Codeine breaks down into morphine, and poppy seeds can trigger an opiate positive. Why results get disputed and how confirmatory testing works.

Written by [AUTHOR NAME] · Last updated August 2026 · 6 min read. Prefer to call? Our admissions line is [BRAND PHONE], answered by an admissions clinician.

  • Licensed by the California Department of Health Care Services. License numbers and expiration dates are published on every location page.
  • Accreditation. Status across the network: [ACCREDITATION STATUS].
  • PPO insurance and private pay. We do not accept Medicare, Medicaid, or Medi‑Cal.
  • Named clinical leadership. Our medical director: [MEDICAL DIRECTOR NAME, MD], [MEDICAL DIRECTOR CREDENTIALS].

Quick answer

Codeine breaks down into morphine, and poppy seeds can trigger an opiate positive. Why results get disputed and how confirmatory testing works.

If this is an emergency

Call 911 if someone is unresponsive, having a seizure, breathing slowly or irregularly, or confused with a high fever. For a mental health or suicidal crisis, call or text 988 to reach the Suicide & Crisis Lifeline, available 24 hours a day. This website is not monitored in real time.

A cough syrup, a poppy seed roll, and a result that says morphine

Picture the conversation nobody expects to have. A nurse is told her opiate screen came back positive. She took a prescribed cough preparation for two weeks in January and ate a bagel on the morning of the collection. The result on the form does not say codeine, and it certainly does not say bagel. It says opiates, and depending on the laboratory it may say morphine — the same finding that heroin produces. This is the single most misunderstood corner of drug testing, and codeine sits at the center of it.

The timing answer first, because that is what you came for. Codeine is typically detectable in urine for around a day up to a few days after the last dose, longer with sustained use, and the metabolites it produces can be what the test actually reports. Blood windows are shorter, usually under a day. Those are group patterns from testing literature, hedged on purpose, and they do not predict what one person's sample will show.

How the four sample types handle codeine

Urine testing dominates because it is inexpensive and the window is workable. For codeine it commonly reflects roughly the past day to the past several days. What complicates urine testing here is not the window but what shows up in it, since a portion of codeine converts to morphine in the body and many screens are reported simply as opiates.

Blood is used when someone needs to know what is active right now — an emergency department, a serious motor vehicle investigation — and typically covers under a day. Saliva usually reflects something on the order of a day or two and is gaining ground in workplace collections. Hair, by contrast, is designed to reflect roughly the past three months and is not a recent-use test at all. It has to be ordered deliberately and does not help with a dispute about a specific day.

Why no number predicts your result

Every published window is an average across study participants, and codeine has an unusually large source of individual variation: genetics. Codeine only works because the body converts part of it into morphine, and the liver enzyme that performs that conversion varies substantially between people. Some convert quickly, some barely at all, and that changes both the effect and what a test finds. Layer the usual variables on top and precision disappears.

  • Inherited differences in the liver enzyme that converts codeine to morphine
  • Dose taken, and whether use was a single day or several weeks
  • How the codeine was taken, since syrups are measured by volume and rarely tracked accurately
  • Liver function, which drives the conversion, and kidney function, which drives excretion
  • Age, body composition and hydration at the moment of collection
  • Whether the laboratory reported a screening immunoassay or a confirmatory method

The practical consequence: no published range tells you whether your sample will register. If you need certainty about a specific date, timing estimates cannot give it to you and only laboratory confirmation can narrow anything down.

The false-positive problem, and why confirmatory testing exists

Three separate things can produce an opiate-positive screen that has nothing to do with heroin. Prescribed or over-the-counter codeine is the obvious one. Poppy seeds are the notorious one — they carry trace opiate alkaloids from the plant, and enough of them can push a screen positive without anybody having taken a drug. And codeine's own conversion to morphine means a legitimate codeine prescription can be reported as morphine, which is exactly what a heroin result looks like on a basic panel.

That is why confirmatory testing exists. Screening immunoassays are antibody-based, deliberately broad, and built for speed and volume rather than certainty. They are meant to flag samples for a second look, not to conclude anything. A confirmatory test uses laboratory separation and mass spectrometry to identify specific compounds, and it can distinguish patterns that a screen lumps together — including the short-lived marker unique to heroin that neither codeine nor poppy seeds produce. A screening result on its own is not a finding. Anybody treating it as one has skipped a step, and you are entitled to say so.

None of this means positives are usually wrong. It means a positive screen is a question, not a verdict. If the underlying issue is that codeine use has grown past what a prescription covers, our opioid treatment program in Los Angeles handles that directly, and the risks of a codeine overdose are worth understanding either way.

Disputing a result, or getting a prescription on record first

If you believe a positive is wrong, act in writing and act quickly. Request the testing method used, ask whether confirmatory testing was performed, and ask for it if it was not. Note every prescription and over-the-counter product you have taken recently, including cough and cold preparations, with dates and the pharmacy that filled them. Most testing programs route this through a medical review officer whose job is exactly this verification, and prescriptions are ordinarily verified confidentially rather than broadcast to a manager.

If a test is still ahead of you, disclosing a current codeine prescription in advance is almost always easier than contesting a result later. And if codeine has moved from a prescription to something you would rather not describe out loud, that is a common story and not a character failing — our assessment and treatment options start with a conversation rather than a test.

Frequently asked questions

Can poppy seeds really cause a positive drug test?

Yes, poppy seeds can produce a positive opiate screen, and this is a documented phenomenon rather than an urban legend. Poppy seeds come from the same plant that yields opium and carry trace opiate alkaloids, with the amount varying by batch, origin and how the seeds were processed. Because screening immunoassays are designed to be broad, that trace amount can be enough to push a result over a laboratory's reporting threshold. Confirmatory testing exists partly for this reason, since a laboratory method can examine the pattern of compounds present rather than simply flagging opiates. If you have eaten poppy seed bread or pastry and receive a positive screen, say so immediately and in writing. It is a recognized explanation that a competent medical review officer will know how to evaluate.

Why does a codeine result show up as morphine?

Because your body converts part of any codeine dose into morphine, which is how codeine produces pain relief in the first place. Testing detects what is present, and after that conversion morphine is present, so a laboratory can accurately report morphine in somebody who has only ever taken codeine. On a basic panel this is indistinguishable from other opiate sources, which is where disputes begin. Confirmatory testing can look at the full pattern of compounds, including whether codeine itself is still detectable alongside the morphine. The amount of conversion also varies between people because the responsible liver enzyme differs genetically. This is a normal pharmacological fact, not evidence that anybody has taken something they should not have.

How long does codeine stay in your urine?

Typically around a day up to a few days after the last dose, and longer after sustained daily use. That is a hedged range from testing literature, not a prediction, because the variables that control it differ from person to person. Dose, how long codeine has been taken, liver and kidney function, hydration and the sensitivity of the specific assay all move the window. Genetics matter unusually much here, since the enzyme that converts codeine to morphine varies widely between individuals. Cough preparations complicate the picture further because they are measured by volume and most people genuinely cannot say how much they have taken. No published number can tell you what a particular sample on a particular day will show.

What is confirmatory testing and should I ask for it?

Confirmatory testing is a second, far more specific laboratory analysis that identifies individual compounds rather than flagging a broad class, and yes, you should ask for it if a screen is disputed. Initial screens are antibody-based immunoassays built for speed and volume, which is precisely why they produce results that need checking. Confirmation typically uses chromatography paired with mass spectrometry to separate and identify what is actually in the sample. That method can distinguish compounds a screen groups together, including markers that separate heroin from codeine or poppy seeds. Ask in writing whether confirmation was performed and request the method used. A screening result standing alone is not a conclusion, and treating it as one is a procedural error.

Can prescription cough medicine cause a positive opiate result?

Yes, codeine-containing cough preparations produce genuine opiate positives, because the codeine in them is a real opioid. This catches people out because a syrup taken for a chest infection does not feel like a controlled substance, and many people do not realize what they were given. It is also why declaring current and recent medications before a test is worth the small amount of effort. Keep the bottle or the pharmacy record, since the label is the evidence that resolves the question quickly. If the product was bought outside the United States, the formulation may differ from what a domestic pharmacist would expect, so bring the packaging. A verified prescription generally converts an unexpected positive into a documented, expected one.

Does a positive opiate screen mean somebody has used heroin?

No, a positive opiate screen on its own does not identify heroin. Standard opiate immunoassays are built around morphine and codeine, and several innocent sources land in the same reporting category, including prescribed codeine, prescribed morphine and poppy seeds. Heroin itself breaks down quickly and is identified by a specific short-lived marker that only confirmatory laboratory testing can look for. This is why an unexpected positive should trigger confirmation rather than a conclusion or a consequence. Families in particular should be careful here, because the leap from a screen result to a diagnosis causes real damage. Ask what compound was actually identified and by what method before anybody acts on the number.

How do I dispute a drug test result I believe is wrong?

Start immediately, in writing, and ask three specific questions: what method was used, whether a confirmatory test was run, and who reviews contested results. Compile every prescription and over-the-counter product you have taken recently with dates and pharmacy details, plus any food that could explain an opiate finding. Most workplace and clinical programs designate a medical review officer to verify legitimate prescriptions confidentially, and that route usually resolves matters faster than an argument with a supervisor. Keep copies of everything you send and receive, including timestamps. If the result carries employment or legal consequences, an employment attorney is the appropriate person to consult, not a testing company. Acting within the first day or two matters, because sample retention and challenge windows are limited.

Sources

  1. National Institute on Drug Abuse. Prescription Opioids DrugFacts. nida.nih.gov
  2. National Institute on Drug Abuse. Heroin DrugFacts. nida.nih.gov
  3. National Institute on Drug Abuse. Misuse of Prescription Drugs Research Report. nida.nih.gov
  4. Substance Abuse and Mental Health Services Administration. National Helpline, 1-800-662-HELP (4357). samhsa.gov

Talk it through with somebody who can answer for your situation.

Verify your insurance
Medical disclaimer This article is for information only and is not a substitute for professional medical advice, diagnosis, or treatment. Substance use disorder is a chronic medical condition; outcomes vary by person, and nothing here promises a particular result. Always talk with a qualified clinician about your situation. Read our editorial and medical disclaimer.