git add

Skip to main content

Can I take Ibuprofen and Magnesium together?

Drug interaction guide

Taking magnesium and ibuprofen together is generally safe, but magnesium may slightly speed up how quickly your body absorbs ibuprofen. This could mean the painkiller starts working a little faster, but it does not change the overall amount of medicine in your system.

Video picks for Drug interactions

Continue reading below

Why this happens

Magnesium acts as an antacid or buffering agent. By slightly increasing the pH (reducing acidity) in the stomach, it can help ibuprofen dissolve more quickly, leading to faster absorption into the bloodstream.

You can take these two together. There is no need to change your dose or timing. However, if you have kidney problems, you should speak to your doctor before taking either of these regularly, as both can affect kidney function.

Continue reading below

Asthma

Do not take ibuprofen if you have asthma, as it can trigger a severe or life-threatening asthma attack.

Pregnancy (Third Trimester)

Avoid ibuprofen if you are more than 20 weeks pregnant, as it can cause serious heart and kidney problems in the unborn baby and reduce amniotic fluid levels.

Kidney Disease

If you have kidney problems, avoid these medicines unless prescribed; magnesium can build up to toxic levels, and ibuprofen can further damage kidney function.

Alcohol

Drinking alcohol while taking ibuprofen can increase the risk of stomach irritation and bleeding. It is best to limit alcohol intake or avoid it if you have a history of stomach issues.

Large meals or high-fibre foods

Taking magnesium supplements with a very large meal or foods very high in fibre may reduce how much magnesium your body absorbs. However, taking it with a small snack can help prevent stomach upset.

Continue reading below

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.

Continue reading below

Article history

The information on this page is written and peer reviewed by qualified clinicians.

  • 12 May 2026 | Originally published
flu eligibility checker

Ask, share, connect.

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

symptom checker

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.

Please enter a valid email address

By subscribing you accept our Privacy Policy. You can unsubscribe at any time. We never sell your data.