Can I take Codeine and Magnesium together?
Drug interaction guide
Originally published 14 Mar 2026
Meets Patient’s editorial guidelines
- DownloadDownload
- Share
- Language
- Discussion
- Audio Version
Taking magnesium and codeine together can lead to increased drowsiness and may cause constipation. Magnesium can also slightly interfere with how your body absorbs codeine if taken at the exact same time.
In this article:
Continue reading below
Why this happens
Both substances can slow down the central nervous system, leading to an additive calming or sedating effect. Additionally, magnesium (especially in antacid form) can change the acidity of the stomach, which may slightly alter how quickly codeine enters your system. Both can also slow down the movement of the digestive tract.
What you should do
Back to contentsIt is generally safe to take these together, but you should be aware that you might feel more tired or sleepy than usual. To ensure the codeine works effectively, try to leave a gap of 2 hours between taking a magnesium supplement (or antacid) and your codeine dose. If you experience severe constipation, speak to a pharmacist.
Continue reading below
Using other medicines
Back to contentsTaking multiple medicines? Our Medicines Interaction Checker helps you check whether your prescriptions, over-the-counter medicines, and supplements are safe to take together. Simply search for your medicines to see potential interactions and what to do about them.
Disclaimer
This information is for general educational purposes only and should not be relied upon as a substitute for professional medical advice. Always consult your GP, pharmacist, or another qualified healthcare professional before making decisions about your medications. Individual circumstances may vary, and only a healthcare professional who knows your medical history can provide personalised guidance.
Patient picks for Drug interactions

Treatment and medication
Can I take Atorvastatin and Magnesium together?
Taking magnesium antacids at the same time as atorvastatin can lower the amount of the statin medicine that your body absorbs. This might make your cholesterol treatment less effective.

Treatment and medication
Can I take Acetaminophen and Trazodone together?
Taking paracetamol (acetaminophen) and trazodone together is generally considered safe, but there is a small risk of increased side effects. Both substances are processed by the liver, and in some cases, taking them together might slightly increase the levels of trazodone in your blood. This could make you feel more drowsy or dizzy than usual. Additionally, both medications can occasionally affect your liver function, so using them together over a long period requires caution.
Article history
The information on this page is written and peer reviewed by qualified clinicians.
14 Mar 2026 | Originally published

Ask, share, connect.
Browse discussions, ask questions, and share experiences across hundreds of health topics.

Feeling unwell?
Assess your symptoms online for free
Sign up to the Patient newsletter
Your weekly dose of clear, trustworthy health advice - written to help you feel informed, confident and in control.
By subscribing you accept our Privacy Policy. You can unsubscribe at any time. We never sell your data.