How Long Does Codeine Stay in Your System?
See approximate detection windows for codeine across urine, blood, saliva, and hair tests, and the factors that change them. Codeine is broken down into morphine, so a codeine result almost always shows both.
Need support now? Call or text 988 for the Suicide & Crisis Lifeline, or call 1-800-662-HELP for the SAMHSA National Helpline. Free and confidential, 24/7.
Codeine does not affect everyone the same way, and that is dangerous. Codeine is a prodrug: it does nothing until your liver converts it into morphine using the CYP2D6 enzyme. Roughly one in twenty people are ultra-rapid metabolisers who convert far more of it, far faster, and can reach morphine levels high enough to stop their breathing on an ordinary dose. Deaths in children led the FDA to contraindicate codeine in under-12s and in breastfeeding mothers. Mixing it with alcohol, benzodiazepines, or gabapentin multiplies the risk.
Tolerance drops fast. After even a short break, a dose you once handled can be fatal. Codeine dependence is easy to slide into precisely because it feels mild and is sold over the counter in many countries. Carrying naloxone and never using alone are the two things most likely to prevent a fatal overdose.
Urine vs blood vs saliva vs hair, on the same scale
The solid bar is the shorter end of the range. The faded section shows how much further it can stretch.
The poppy seed defence, and why the cutoff was raised
This is the one drug-testing legend that turns out to be true. Poppy seeds genuinely contain codeine and morphine, and eating them genuinely produced positive opiate tests. It happened often enough that on 30 November 1998, SAMHSA raised the federal workplace cutoff for morphine and codeine from 300 ng/mL to 2,000 ng/mL specifically to stop it. Studies of that change found the confirmed-positive rate for codeine and morphine fell by more than 300 percent.
So the defence works, but only against the lower cutoff. In controlled poppy seed studies, participants tested positive for morphine at a 300 ng/mL cutoff within three hours and most were still positive a day later, while at 2,000 ng/mL no participant tested positive for codeine at all. If your test is a federal workplace panel, poppy seeds are very unlikely to be the explanation. If it is a clinical panel at 300 ng/mL, they genuinely might be.
There is one marker that settles it in either direction. Heroin, codeine, and poppy seeds can all produce morphine in urine at similar ratios, so the morphine level alone proves nothing. Only 6-MAM, the heroin-specific metabolite, confirms heroin, and it disappears within hours.
What affects how long codeine stays in your system
- Your CYP2D6 genetics, which decide how fast codeine converts to morphine. This varies more between people than almost any other drug factor.
- How much was taken, and how often.
- The cutoff the lab runs at, which for opiates changes the answer by roughly a day.
- Liver and kidney function.
- Other medicines. Some antidepressants, including fluoxetine and paroxetine, block CYP2D6 and stop codeine working at all.
If you are trying to stop taking codeine
Codeine dependence is often dismissed because the drug feels mild and is easy to get, and that is exactly what makes it easy to underestimate. Opioid withdrawal will not usually kill you, but it is brutal, and the drop in tolerance afterwards is what does. See what to expect with our withdrawal timeline generator, read about prescription opioid addiction and medically supervised detox, or take a private self-assessment.
Checking a different substance? Compare detection windows for 34 substances with our full substance detection time calculator.
These windows are general estimates drawn from clinical and forensic toxicology references, including SAMHSA federal workplace testing cutoffs, controlled poppy seed ingestion studies published in the Journal of Analytical Toxicology, and laboratory testing guidance. They are not a guarantee for any individual or test, and they are not medical or legal advice. If you have a valid prescription for codeine, disclose it to the testing program. If results matter for your health, employment, or a legal situation, talk with a qualified professional or the testing laboratory.
Detection Time Calculators
Every substance has its own window, its own metabolite, and its own way of slipping past a drug test. Pick one to see the detail.
- All substances
- Alcohol
- Cannabis
- Cocaine
- Codeine
- Crystal meth
- Fentanyl
- Gabapentin
- Heroin
- Hydrocodone
- Ketamine
- Klonopin
- Kratom
- LSD
- MDMA
- Methadone
- Opiates
- Ritalin
- Tramadol
- Valium
- Xanax
All windows are estimates. Detection times vary widely from person to person, and no calculator can tell you when a test will be clear.

