Can You Take Melatonin And Ibuprofen Together?

In our latest question and answer, the pharmacist discusses the use of melatonin with ibuprofen.

2 min read Updated Jun 2026 23,420 views
Can You Take Melatonin And Ibuprofen Together?
Share
Jessie asked

I take melatonin every night to sleep and it didn't occur to me that it may not be safe to take Advil for my arthritis. Can I take both together?

Oct 04, 2022
The quick answer
  • It is safe to take melatonin and ibuprofen together as there is no known drug interaction between them.
  • Chronic use of ibuprofen may reduce your body's natural melatonin levels and potentially decrease sleep quality.
  • If you take ibuprofen long-term, supplementing with melatonin may help replace any deficiency caused by the medication.
A quick summary of Dr. Brian Staiger, PharmD's full answer below, condensed by AI from that answer only (not from any outside source). The pharmacist's answer is the source of record.
Medications in this answer — tap to explore

In the NDC directory: Ibuprofen NDC codes

Answer

Thanks for your question! There is no known drug interaction between melatonin and Advil (ibuprofen) but it is important to note that some studies have found that chronic NSAID use (ibuprofen is in this drug class) may reduce melatonin levels, decreasing sleep quality.

So, it is safe to combine ibuprofen and melatonin, but there is a chance that if you take ibuprofen consistently, you may be decreasing your body's natural ability to produce the hormone.

NSAID Use And Melatonin

Ibuprofen is classified as an NSAID (non-steroidal anti-inflammatory drug), which are used for a wide variety of indications, such as to reduce fever and to relieve minor aches and pain from headaches, muscle aches, arthritis, menstrual periods, the common cold, toothaches, and backaches.

It works by stopping the body's production of a substance (prostaglandins) that can cause pain, fever, and inflammation.

A number of studies have found that NSAIDs can affect sleep quality in some individuals. One such study concluded the following:

The mechanisms of sleep disruption after NSAID administration may relate to direct and indirect consequences of inhibiting prostaglandin synthesis, including decreases in prostaglandin D2, suppression of nighttime melatonin levels, and changes in body temperature.
Physiol Behav . 1994 Jun;55(6):1063-6.

Another found similar results:

We speculate that NSAID effects on sleep and BT [body temperature] are related to prostaglandin synthesis inhibition and/or suppression of MT [melatonin synthesis].
Physiol Behav . 1996 Jan;59(1):133-9

More studies are needed to determine if NSAIDs truly affect melatonin synthesis, as the ones above are relatively small scale. We also don't know exactly which NSAIDs, at what doses, may cause this problem. Regardless, supplementing with melatonin if you take an NSAID long-term may actually be helpful to replace this deficiency.

As an additional point, some studies even suggest that supplementing with melatonin can help reduce some of the long-term stomach side effects that NSAIDs can cause.

The overall point here is that there does appear to be some sort of interplay between melatonin and NSAIDs, but no clinically significant drug interaction between them.

Final Words

Thanks for your question and reach back out anytime!

References & sources
  1. Nonsteroidal anti-inflammatory drugs affect normal sleep patterns in humans — PubMed
  2. Nonsteroidal anti-inflammatory drugs alter body temperature and suppress melatonin in humans — PubMed
  3. Melatonin protects against piroxicam-induced gastric ulceration — PubMed
Glossary — Terms in This Answer
NSAID
Non-steroidal anti-inflammatory drugs are medications used to reduce pain, fever, and inflammation without containing steroids.
Melatonin
A hormone naturally produced by your body that helps regulate sleep-wake cycles.
Prostaglandins
Hormone-like substances in the body that cause pain, fever, and inflammation.
Drug interaction
A situation where two medications affect each other's effectiveness or safety when taken together.
Chronic use
Taking a medication or substance regularly over a long period of time.
Sleep quality
How well and deeply a person sleeps, including how rested they feel.
Prostaglandin D2
A specific type of prostaglandin that plays a role in promoting sleep in the body.
Melatonin synthesis
The process by which the body naturally produces melatonin.
Did this answer your question?
Dr. Brian Staiger, PharmD
About the pharmacist

Dr. Brian Staiger, PharmD

Clinical Pharmacy

Doctor of Pharmacy, board certified clinical pharmacist (BCPS), American Herbalist Guild, Medication Therapy Management certified

Brian Staiger, PharmD, BCPS, is a licensed pharmacist with more than 13 years of experience across retail pharmacy, clinical pharmacy, medication safety, pharmacy program development, and healthcare administration. He is the founder of HelloPharmacist.com, where he helps patients...

More answers from Brian →
Ask a Pharmacist