Is it safe to take Unisom (diphenhydramine or doxylamine) the night before an endoscopy?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: September 16, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Taking Unisom the Night Before Endoscopy

Yes, it is generally safe to take Unisom (diphenhydramine or doxylamine) the night before an endoscopy, as the medication will be largely cleared from your system by procedure time and will not interfere with procedural sedation.

Pharmacokinetic Rationale

The key consideration here is timing and drug clearance:

  • Diphenhydramine (one formulation of Unisom) has a duration of effect of 4-6 hours after administration 1. When taken at bedtime the night before a morning or afternoon endoscopy, the sedative effects will have worn off well before the procedure.

  • The drug's hypnotic effect is increased when combined with benzodiazepines and opioid narcotics 1, but this interaction is only clinically relevant when drugs are given concurrently or within close temporal proximity—not 8-12+ hours apart.

Clinical Context from Endoscopic Practice

Interestingly, diphenhydramine is actually used as an adjunct during endoscopic sedation itself in clinical practice:

  • Studies show diphenhydramine 50 mg given intravenously 3 minutes before initiating sedation with midazolam and meperidine improved sedation quality and reduced the amount of standard sedatives needed 2
  • The medication has been studied extensively as an intra-procedural adjunct with favorable safety profiles 3, 4
  • It has a modest stimulatory effect on ventilation and has been reported to counteract opioid-induced hypoventilation 1

Safety Considerations

Important caveats to discuss with your endoscopist:

  • Inform your procedural team that you took Unisom the night before—transparency is always best practice
  • The FDA labeling warns against combining with other sedatives or sleep aids 5, but this refers to concurrent use, not sequential use separated by many hours
  • Potential side effects include hypotension, dizziness, and urinary retention 1, but these are acute effects that resolve within hours

Fasting Guidelines Still Apply

Taking Unisom the night before does not change your fasting requirements:

  • Clear liquids are permitted up to 2 hours before the procedure
  • Light meals up to 6 hours before
  • Regular meals up to 8 hours before 6

The medication itself (taken with minimal water) does not violate NPO status when taken the night before.

Bottom Line

There is no contraindication to taking Unisom the night before your endoscopy. The medication will be metabolically cleared by procedure time, and diphenhydramine is routinely used safely even during endoscopic procedures themselves. Simply inform your endoscopy team of all medications taken, including over-the-counter sleep aids.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.