CircleBumpCheckedFilledMedicalBookmarkBookmarkTickBookmarkAddCheckBoxCheckBoxFilled

Experts Answer: Can You Take Sleeping Pills During Pregnancy?

Thankfully, there are safer options out there if you’re struggling with pregnancy insomnia.
save article
profile picture of Dani Wolfe
By Dani Wolfe, Contributing Writer
Updated March 3, 2025
pregnant woman experiencing insomnia
Image: Natalia Deriabina | Shutterstock

Are you tossing and turning all night, wishing you could fall asleep? Pregnancy insomnia is no joke. I was there only a few months ago, staring at a ceiling fan all night, desperate for quality sleep.

Maybe you’ve thought about taking a sleep aid during pregnancy to help get you some much-needed zzz’s. Or maybe, there’s one you swore by before pregnancy but you’re not sure you can take it now. While the research on sleeping pills during pregnancy is pretty limited, there are certain medications doctors recommend over others. “These medications tend to be very necessary, considering that pregnancy insomnia can drive you crazy,” says Mana Baskovic, MD, an ob-gyn, robotics surgeon and chief medical officer at Lushi, a fertility platform. “Getting a head start on exhaustion before baby has even arrived is cruel.”

One thing’s for sure—you’re tired and need a solution. Keep scrolling for everything you need to know about whether you can take your pregnancy sleep aid of choice, including safer sleeping pill options, which ones to avoid and some more natural ways to help you get some rest.

Key Takeaways

  • Certain over-the-counter sleep aids, such as Unisom and Benadryl, are generally considered safe for pregnancy. Always make sure to ask your provider first.
  • Most providers caution against using prescription medications such as Valium and Ambien during pregnancy.
  • If you’re having trouble sleeping during pregnancy, it’s best to first try a natural alternative like yoga, massage and improving your sleep hygiene.

What Are the Different Types of Sleeping Aids and Sleeping Pills?

Sleeping pills typically fall into two main categories: over-the-counter (OTC) and prescription. Anyone 18 years or older can purchase OTC sleeping pills at a drugstore. These OTC sleeping aids are often powered by antihistamines—drugs that are usually used to treat allergies but can also cause drowsiness. Examples of OTC sleeping aids include Benadryl, ZzzQuil, Tylenol PM, doxylamine (Unisom) and melatonin.

Related Video

On the other hand, there are prescription sleeping pills. These are generally stronger than OTC choices, so you’ll need a script from your provider to get them. These include zolpidem (Ambien), eszopiclone (Lunesta), temazepam (Restoril), lorazepam (Ativan), diazepam (Valium) and trazodone.

“I asked my doc about what I can do if I have trouble sleeping. He suggested taking a Benadryl. He said it’s safe to take during pregnancy. I'm pretty sensitive to it, so I just take a half dose and it'll knock me out all night.” — cdc1982, The Bump community member

Can You Use Sleeping Aids While Pregnant?

It’s important to chat with your provider before taking any sleeping pills during pregnancy. “My first-line treatments are generally lifestyle modifications or supplements before resorting to medications,” says Amber Chambers, CNM, a certified nurse-midwife at Pediatrix Medical Group in Florida. It’s difficult to determine the true safety of taking sleep medications during pregnancy since studies often exclude pregnant people. That’s why it’s important to consider the pros and cons before using any sleeping aids while pregnant.

That said, you definitely have options—but make sure to speak with your provider about which sleeping pills are safe during pregnancy and which ones to avoid.

Safer sleep aids while pregnant

If the benefits of getting quality sleep outweigh the potential risks of negative interactions to you and baby, your provider might recommend some common sleep aids. Here are a few safer options, according to Chambers:

  • Doxylamine. More known under the brand name Unisom, this drug is mainly used to treat nausea in pregnancy. However, its sedative effects also make it an approved sleep aid.
  • Diphenhydramine. Benadryl, Tylenol PM and ZzzQuil are all common brand names of diphenhydramine. This drug works by binding to your central nervous system and suppressing activity, resulting in drowsiness. This makes it useful to treat insomnia in some cases. Diphenhydramine is generally considered safe for occasional use, notes Chambers.
  • Trazodone. This drug is often used as an antidepressant. But sometimes, providers prescribe trazodone in pregnancy to help with insomnia due to its sedative effects.
  • Melatonin. Naturally occurring in our bodies, this hormone plays a huge role in sleep. Mayo Clinic states that supplementing with melatonin has been shown to help promote rest. In pregnancy specifically, research shows that taking melatonin during pregnancy is probably safe but there’s need for more research.

“I take Unisom for nausea from pregnancy and a wonderful side effect is that I'm actually sleeping again! My doc is the one who told me to take the Unisom, and I know lots of preggos who've taken it.” — miaomi, The Bump community member

Unsafe sleep aids while pregnant

There are a few sleep aids experts say to stay away from while pregnant. Primarily due to their potential adverse effects on the pregnancy and baby, it’s best to avoid them altogether unless absolutely necessary. Chambers lists a few here:

  • Benzodiazepines. Medications such as Valium, Ativan and Xanax come with risks of birth defects and neonatal withdrawal, says Chambers. Research also shows that benzodiazepines may be associated with a higher chance of preterm labor, cesarean delivery and low-birthweight infants.
  • Zolpidem. More commonly known as Ambien, this drug may be associated with withdrawal symptoms in newborn babies. On top of that, taking zolpidem toward the end of pregnancy can increase these chances even more, notes the UK’s National Health Service.
  • Eszopiclone. Also commonly known as Lunesta, this drug is another unsafe sleeping aid. There’s very limited safety data so it’s best to avoid during pregnancy, says Chambers. What’s more, the FDA label on Lunesta mentions the possibility of fetal harm in animal studies.
  • Herbal supplements. Some herbal supplements, like passionflower, are praised for their sedative effects. However, the American Pregnancy Association (APA) warns pregnant people to stay away from this herb and others due to the lack of extensive research on herbal remedies and pregnancy. Be sure to ask your healthcare provider if you have questions about specific herbs.

Reasons to Consider Taking a Sleep Aid While Pregnant

It’s a known fact—pregnant women struggle with sleep. Common causes of insomnia in pregnancy include hormonal fluctuations, physical discomfort, having to get up and pee all the time and stress, says Chambers. (Sounds familiar!)

“Sleep disturbance and insomnia increases during the normal course of pregnancy, affecting one in four women in the first trimester to over two-thirds by the end of the third trimester,” says Baskovic. New research also shows that women who don’t get enough sleep while pregnant have higher risks of developing preeclampsia and gestational diabetes, as well as increased rates of C-sections.

Alternatives to Sleeping Pills in Pregnancy

There’s not enough research out there on the full scope of risks associated with taking sleeping pills during pregnancy. That’s why it might be best to try more natural sleep aids first. One method Baskovic suggests is improving your “sleep hygiene.” Things like drinking a cup of tea, taking a warm shower, meditating and trying some light reading before bed are all relaxing activities she recommends. Another pro tip? Try to avoid watching TV or excessive phone use right before you hop into bed.

Here are some other alternatives to taking sleeping pills during pregnancy, according to Chambers:

Frequently Asked Questions

What causes insomnia during pregnancy?

Common pregnancy symptoms like nausea, frequent peeing, leg cramps, back pain, baby moving, shortness of breath, anxiety about birth and heartburn are all causes of insomnia during pregnancy, notes Cleveland Clinic.

Can you take Unisom while pregnant?

Unisom is commonly used in pregnancy for nausea and insomnia and is generally considered safe in moderation, says Chambers. If you’re 18 or older, you can buy Unisom over the counter, but it’s best to talk to your provider first before taking any medications during pregnancy.

Can you take Ambien in pregnancy?

Ambien is a category C drug, meaning it may be harmful to a growing fetus. A class C drug also means studies have shown risks in animals with the drug and that human data on its safety is very limited. “It’s generally avoided unless benefits outweigh risks,” says Chambers.

Is ZzzQuil safe during pregnancy?

If the benefits outweigh the risks, your provider might suggest occasionally taking ZzzQuil as a sleeping aid during pregnancy. Keep in mind that ZzzQuil is a diphenhydramine, which some studies have shown to cause temporary withdrawal symptoms in newborns after birth. You should talk to your provider first about the pros and cons of taking ZzzQuil during pregnancy.

Can I take Tylenol PM while pregnant?

Baskovic says taking Tylenol PM in pregnancy can be safe in moderation—it actually contains the same drug that causes drowsiness as Benadryl. However, it’s best to take straight Benadryl instead to avoid the added acetaminophen. “Tylenol PM also contains acetaminophen, which has no effect on sleep, and while safe in pregnancy, you don’t want to accidentally take too much,” points out Baskovic.

Can you take Lunesta while pregnant?

There’s very limited data on Lunesta, and it’s generally not recommended for use in pregnancy unless absolutely necessary, says Chambers. Lunesta should only be used in pregnancy if the benefits outweigh the potential risks to baby.

Can you take melatonin while pregnant?

Clinical studies suggest that using melatonin during pregnancy is probably safe, but more research is needed. “If over-the-counter interventions haven’t been effective, then we can consider melatonin as the next drug of choice,” says Baskovic.

To Sum It Up

We know by now that some sleeping aids are safer than others during pregnancy. And, unfortunately, experts won’t truly understand the full effect of sleeping pills on babies in the womb until more research is done.

If you need a sleep aid during pregnancy, try some lifestyle adjustments first. Or, ask your doc about a magnesium supplement. If none of that works and you’re still desperate for sleep, chat with them about a safe sleep aid for pregnant women for occasional use. Hang in there—we’re sending all the restful vibes your way.

Please note: The Bump and the materials and information it contains are not intended to, and do not constitute, medical or other health advice or diagnosis and should not be used as such. You should always consult with a qualified physician or health professional about your specific circumstances.

Sources

Mana Baskovic, MD, is an ob-gyn, robotics surgeon and chief medical officer at Lushi, a fertility platform. She earned her medical degree from Western University and has a special focus on pregnancy, fertility and the impact of microplastics and toxins on women's health.

Amber Chambers, CNM, is a certified nurse-midwife at Pediatrix Medical Group in Florida. She earned her degree from Frontier School of Midwifery & Family Nursing.

American Pregnancy Association, Herbs and Pregnancy

Brazilian Journal of Psychiatry, Melatonin Use During Pregnancy and Lactation: A Scoping Review of Human Studies, May-June 2022

Chest, Sleep Pharmacotherapy for Common Sleep Disorders in Pregnancy and Lactation, October 2019

Cleveland Clinic, Pregnancy Insomnia, January 2024

Food and Drug Administration, Lunesta (Eszopiclone) Tablets, May 2014

Johns Hopkins Medicine, Get A Good Night’s Sleep During Pregnancy

Mayo Clinic, Melatonin, August 2023

MotherToBaby, National Library of Medicine, Trazodone, July 2023

National Health Service UK, Pregnancy, Breastfeeding and Fertility While Taking Zolpidem, January 2023

Obstetric Medicine, Insomnia and Sleep Deficiency in Pregnancy, September 2015

StatPearls, National Library of Medicine, Diphenhydramine, July 2023

StatPearls, National Library of Medicine, Doxylamine, June 2023

Learn how we ensure the accuracy of our content through our editorial and medical review process

save article
ADVERTISEMENT

Next on Your Reading List

pregnant woman holding a tub of lotion
Can You Use Vicks While Pregnant? (What About Other Vapor Rubs?)
Medically Reviewed by Kendra Segura, MD
pregnant woman holding glass of water and two white pills
A List of Over-the-Counter Medications You Can Take While Pregnant
Medically Reviewed by Kendra Segura, MD
pregnant woman holding an ibuprofen pill
Can You Take Ibuprofen While Pregnant?
Medically Reviewed by Kendra Segura, MD
ADVERTISEMENT
woman taking tylenol pills
Can You Take Tylenol While Pregnant?
By Anna Davies
pregnant woman in pajamas sitting on her bed
Taking Tylenol While Pregnant May Increase Risk of ADHD, Study Says
By Nehal Aggarwal
paper heart cut out
How to Safely Treat Heartburn While Pregnant
By The Bump Editors
folic acid supplement pregnant women should take
Do You Need Folic Acid or Folate? It Depends on Your Genes, Study Says
By Anisa Arsenault
ADVERTISEMENT
Illustration of a prescription bottle full of pills
Study Takes a Closer Look at What Antibiotics During Pregnancy Mean for Baby
By Ashley Edwards Walker
When Is the Best Time to Take My Prenatal Vitamin?
When Is the Best Time to Take My Prenatal Vitamin?
By Sharon Phelan, MD
Pregnant woman holding cigarette
Could Drugs and Alcohol During Pregnancy Become a Crime?
By Ashley Edwards Walker
ADVERTISEMENT
How to Relieve Headaches Without Medication
How to Relieve Headaches Without Medication
By Maria Kammerer
African American woman researching on laptop.
Three Rules of Thumb Every High-Risk Pregnancy Patient Should Know
By Heather Spohr
Is It Safe to Take Ketoprofen?
Is It Safe to Take Ketoprofen?
By Christian Hoffman, MD
ADVERTISEMENT
Tylenol’s Safe for Moms-to-Be, but Researchers Worry About Effects On Baby
Tylenol’s Safe for Moms-to-Be, but Researchers Worry About Effects On Baby
By Kylie McConville
Antidepressants During Pregnancy Are Linked to Autism Risk
Antidepressants During Pregnancy Are Linked to Autism Risk
By Ivy Jacobson
FDA’s New Drug Labeling: How Will This Affect Your Pregnancy?
FDA’s New Drug Labeling: How Will This Affect Your Pregnancy?
By Anisa Arsenault
Is Zofran Safe for Pregnant Women? New Study Says…
Is Zofran Safe for Pregnant Women? New Study Says…
By Kylie McConville
ADVERTISEMENT
Is It Safe to Take Antidiarrheal Medicine?
Is It Safe to Take Antidiarrheal Medicine?
By Kelly Kasper, MD
Q&A: What Medications Stop Labor Progression?
Q&A: What Medications Stop Labor Progression?
By Karen Moise, RN
Is Asthma Medication Safe During Pregnancy?
Is Asthma Medication Safe During Pregnancy?
By Jenna McCarthy
ADVERTISEMENT
Article removed.
Article removed.
Name added. View Your List