WHAT YOU NEED TO KNOW
  • A review of 16 studies linked melatonin and Ambien before surgery with less pain, anxiety and opioid use.
  • Some abdominal surgery patients taking melatonin reduced opioid use by more than 30%.
  • Ambien was associated with lower opioid requirements during colorectal surgery and the first 24 hours afterward.
  • Researchers cautioned that the scoping review cannot establish clinical recommendations, and experts urged patients to consult their surgical teams.

Taking melatonin or Ambien before surgery may be associated with less pain, reduced anxiety and lower opioid use during recovery, according to research presented at the ANESTHESIOLOGY 2026 annual meeting. The findings suggest sleep could become a useful focus of surgical preparation, although researchers stressed that the evidence remains inconclusive.

The research, presented in San Diego on Oct. 18, examined whether improving sleep before surgery with either medication could support a smoother recovery. Researchers analyzed 16 studies conducted between 2000 and 2025 and involving more than 1,100 patients.

Those patients underwent abdominal, gynecologic, orthopedic, urologic, dental and other surgical procedures, according to a press release from the American Society of Anesthesiologists. The review considered how the sleep aids were associated with anxiety, pain, inflammation, sleep quality and opioid requirements.

Melatonin was generally taken the night before surgery, 20 to 90 minutes before anesthesia, or at both times. Doses ranged from 1 mg to 20 mg.

Ambien, also known as zolpidem, was consistently given at a dose of 10 mg. Patients took it at bedtime on the night before surgery or for multiple nights beginning up to two days before their procedures.

Although both products are used to promote sleep, they work differently. The National Institutes of Health describes melatonin as a naturally occurring hormone that helps regulate sleep and wakefulness, while FDA prescribing information says zolpidem acts on GABA-A receptors in the central nervous system to create a sedative effect.

Across the studies, melatonin was associated with less anxiety, pain and inflammation. Some abdominal surgery patients experienced a reduction of more than 30% in opioid use.

The analysis also suggested that melatonin may have advantages over traditional sedatives for older adults, who may be more susceptible to confusion following surgery. In studies that used activity monitors, patients taking melatonin also showed better recovery and sleep patterns.

With ongoing concerns about highly processed foods and long term health risks, have you reduced your consumption of ultra processed foods this year?

By completing the poll, you agree to receive emails from Being Healthy News, occasional offers from our partners and that you've read and agree to our privacy policy and legal statement.

Ambien was associated with improved sleep before surgery among patients who already had sleep problems, as well as less pain afterward. Colorectal surgery patients who received Ambien needed less opioid medication during surgery and throughout the first 24 hours after the procedure, while also showing lower inflammation levels.

Patients who underwent hip replacement and took Ambien reportedly experienced less anxiety and depression. They also expressed greater satisfaction with the recovery process.

Dr. Sebastian Amaya, senior study author and senior anesthesiology resident at Yale School of Medicine, said the positive associations were not surprising. He described sleep as “extremely important” for overall health and for controlling the immune system, cognitive function and emotional well-being.

“Pain is ultimately an experience,” Amaya said, explaining that a patient’s environment and individual circumstances can affect pain levels. He also said sleep has an important role in brain function, including the processes involved in experiencing pain.

“A lot of the hormones that are involved in pain are also involved in sleep,” he said. “If you have insomnia , if you have other chronic sleep issues, all these different biological pathways can be disrupted, and that could lead to increased pain after surgery.”

Multiple studies found reduced pain and opioid consumption during the immediate period after surgery, Amaya said. However, patients were not followed for the next several days, leaving unanswered questions about how long the apparent benefits might continue.

That limitation matters because opioids are commonly prescribed for surgical pain, and research has linked greater exposure after surgery with an increased risk of persistent use. Amaya nevertheless cautioned that the review does not prove improving sleep will prevent continued opioid use.

Because the research was a scoping review that summarized existing studies instead of directly testing a treatment, the researchers could not make clinical recommendations or fully evaluate the risk of bias. They said additional research is necessary.

Dr. Wendy Troxel, a Utah based licensed clinical psychologist and senior behavioral scientist at RAND who was not involved in the research, said the findings “make sense” because sleep is important for healing and recovery. She noted that anxiety and disrupted sleep are normal before a major medical procedure.

Troxel said she was somewhat surprised by the reported melatonin benefits because the overall evidence suggests limited effects as a sleep aid for most people. She said placebo or expectancy effects could also contribute in the stressful setting surrounding surgery.

Despite those limitations, Troxel called the findings “interesting and could positively impact patient care for surgical procedures.” She advised anyone considering melatonin or a prescription sleep medication to consult the surgical and anesthesia team about what is appropriate.


Are you feeling overwhelmed or hopeless right now? Have you been withdrawing from people or activities you usually enjoy? Are you having thoughts about hurting yourself, or feeling like things will never improve?

You do not have to handle those feelings alone. Support is available, and talking to someone can make a difference. You can reach out to the 988 Suicide & Crisis Lifeline by calling or texting 988, or by chatting online at 988lifeline.org. Trained counselors are available 24 hours a day to listen and help.

If you believe someone is in immediate danger, call emergency services right away. Even a small step, like reaching out to a trusted friend, family member, or professional, can help create a path forward.