Can I take Esomeprazole and Magnesium together?
Drug interaction guide
Originally published 25 Jan 2026
Meets Patient’s editorial guidelines
- DownloadDownload
- Share
- Language
- Discussion
- Feedback
- Audio Version
- Add to preferred sources on Google
Taking esomeprazole for a long time (usually more than three months) can lower the levels of magnesium in your blood. This can lead to symptoms like tiredness, muscle spasms, or an irregular heartbeat. Additionally, if you take magnesium as an antacid or supplement at the same time as esomeprazole, it might slightly interfere with how well the medicine is absorbed.
Video picks for Drug interactionsVideo library
Why this happens
Esomeprazole reduces stomach acid. The body needs a certain level of acidity to absorb magnesium from food and supplements efficiently. Over time, this reduced absorption can deplete the body's magnesium stores. Furthermore, magnesium-containing antacids can physically bind to or change the environment for esomeprazole, potentially reducing its effectiveness if taken at the exact same time.
What you should do
If you are taking esomeprazole long-term, your doctor may want to check your magnesium levels with a blood test. If you are taking a magnesium supplement or antacid, try to leave a gap of at least 2 hours between taking it and your esomeprazole dose. Seek medical advice if you experience muscle twitches, tremors, or a racing heart.
Important precautions
Severe diarrhoea
Esomeprazole can increase your risk of serious bowel infections, such as C. difficile. If you develop severe or persistent watery diarrhoea, fever, or stomach pain, contact your doctor immediately.
Low magnesium levels (hypomagnesaemia)
Taking esomeprazole for more than 3 months can cause your blood magnesium levels to drop. This is particularly dangerous if you are already taking magnesium supplements or medicines like digoxin, as it can lead to severe fatigue, muscle spasms, or an irregular heartbeat. Your doctor may need to monitor your levels via blood tests.
Long-term use (over 1 year)
Taking esomeprazole for a long time can lead to weakened bones (osteoporosis) and increased risk of fractures, as well as low magnesium levels in your blood. Your doctor may need to monitor your mineral levels.
Severe kidney or liver disease
Your doctor may need to prescribe a lower dose, as your body will take longer to clear esomeprazole.
Kidney disease
If you have kidney problems, you must not take magnesium supplements without medical supervision, as your kidneys may not be able to clear excess magnesium from your blood, leading to toxic levels.
Masking stomach cancer symptoms
Esomeprazole can hide the symptoms of stomach cancer. You must tell your doctor if you have unexplained weight loss, persistent vomiting, or difficulty swallowing before starting this medicine.
Food and drink warnings
Alcohol
While alcohol does not directly interact with esomeprazole, it can increase stomach acid production and irritate the stomach lining, which may worsen the symptoms you are taking esomeprazole to treat.
It is best to avoid or strictly limit alcohol when taking magnesium. Alcohol acts as a diuretic, which can increase the amount of magnesium your body loses through urine, potentially making the supplement less effective. Additionally, chronic alcohol use can lead to magnesium deficiency.
Dairy products and high-calcium foods
Large amounts of calcium (found in milk, cheese, and yoghurt) can interfere with how your body absorbs magnesium. If you are taking a magnesium supplement, try to avoid taking it at the same time as a high-calcium meal or calcium supplement.
Caffeine
Caffeine (found in coffee, tea, and some fizzy drinks) can trigger or worsen acid reflux and heartburn. This may make esomeprazole less effective at managing your symptoms. It is best to limit caffeine intake around the time you take magnesium. Like alcohol, caffeine has a mild diuretic effect and can increase the excretion of magnesium through the kidneys.
High-fibre foods (Bran, whole grains)
Foods very high in fibre or phytates (found in whole grains and beans) can bind to magnesium in the gut and reduce the amount your body absorbs. It is best to take magnesium supplements on an empty stomach or away from very high-fibre meals.
Using other medicines
Taking 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

Drug interactions checker
Can I take Esomeprazole and Vitamin C together?
Esomeprazole may slightly reduce how much Vitamin C your body absorbs, but this is generally not a cause for concern for most people.

Drug interactions checker
Can I take Esomeprazole and Indapamide together?
Taking these two medicines together can lead to low levels of magnesium and potassium in your blood. This is more likely to happen if you take them together for a long time (usually more than three months). Low levels of these minerals can cause symptoms like tiredness, muscle cramps, or an irregular heartbeat.

Drug interactions checker
Can I take Esomeprazole and Ezetimibe together?
There are no known significant interactions between esomeprazole and ezetimibe. It is generally considered safe to take these two medications together.

Drug interactions checker
Can I take Colecalciferol and Esomeprazole together?
There is no evidence of a harmful interaction between colecalciferol (Vitamin D3) and esomeprazole. In fact, taking them together may be beneficial for your bone health.

Drug interactions checker
Can I take Esomeprazole and Vitamin B12 together?
Taking esomeprazole for a long time can make it harder for your body to absorb vitamin B12 from your food. Over several years, this could lead to a vitamin B12 deficiency.

Drug interactions checker
Can I take Esomeprazole and Sertraline together?
Taking esomeprazole and sertraline together may increase the amount of sertraline in your bloodstream. This could potentially lead to an increase in side effects from the sertraline, such as feeling sick (nausea), tremors, or feeling restless. In rare cases, it could lead to a more serious condition called serotonin syndrome.
Share your thoughts or experiences with others in our patient communities.
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.

