Pregnancy Insomnia Treatment: From CBT-I to Medication

Cognitive behavioral therapy for insomnia, usually called CBT-I, is the recommended first-line treatment for pregnancy insomnia, and multiple clinical trials confirm it works well even when delivered through an app or online program. Beyond CBT-I, the treatment landscape includes sleep hygiene adjustments, mindfulness-based approaches, light therapy, and in some cases carefully chosen medications. The challenge is that pregnancy insomnia tends to worsen as pregnancy progresses, and leaving it untreated carries real risks for both the pregnant person and the baby.

How Common Pregnancy Insomnia Is and When It Peaks

Sleep trouble during pregnancy is so common that it is closer to the rule than the exception. A meta-analysis pooling data from multiple studies found that about one in four pregnant people meet the threshold for insomnia symptoms in the first trimester, with that figure climbing to roughly 40% in the third trimester.1PubMed. Insomnia symptoms during pregnancy: A meta-analysis A prospective cohort study tracking the same women across pregnancy found even higher numbers, with insomnia affecting about 44% in the first trimester, 46% in the second, and nearly 64% in the third.2PubMed. Factors associated with insomnia in pregnancy: A prospective Cohort Study Regardless of the exact percentages, every study agrees on the trajectory: insomnia gets worse as the due date approaches.

What is interesting is how the experience of insomnia changes across trimesters. The same cohort study found that while nighttime sleep quality deteriorates steadily, the daytime impact of poor sleep is actually highest in the first trimester.3PubMed. Factors associated with insomnia in pregnancy: A prospective Cohort Study This makes sense: early pregnancy comes with intense fatigue and nausea, so any lost sleep hits harder. By the third trimester, many people have adapted somewhat to functioning on less sleep, even though the sleep itself has gotten worse. An analysis of insomnia trajectories found that about 44% of women fall into a “subclinical insomnia” group where symptoms hover below the clinical threshold for most of pregnancy but briefly spike to clinical levels in late pregnancy.4PubMed. Trajectories of Insomnia Symptoms and Associations with Mood and Anxiety from Early Pregnancy to the Postpartum

CBT-I as the Recommended First Treatment

Every recent clinical guideline for gestational insomnia positions CBT-I at the center of treatment, ahead of medication. A review of 19 published guidelines and expert consensus statements found that the recommended approach follows a stepped-care model: start with lifestyle modifications, move to CBT-I for people who need more structured help, and reserve pharmacotherapy for those who don’t respond to behavioral treatment or who have coexisting conditions that demand it.5Dove Press (Natural and Science of Sleep). Translating Evidence into Obstetric Care: Developing a Best Practice-Informed Stepped-Care Clinical Algorithm for the Management of Gestational Insomnia

The evidence backing this recommendation is solid. A systematic review and meta-analysis of CBT-I trials in pregnant women found that the therapy significantly improved insomnia severity scores, overall sleep quality, and the time it takes to fall asleep. It also reduced anxiety and depression symptoms.6PubMed. Efficacy of cognitive behavioural therapy for insomnia or sleep disturbance in pregnant women: A systematic review and meta-analysis In a randomized controlled trial, 64% of participants who received CBT-I achieved full remission of their insomnia disorder, with a median time to remission of just 31 days. The researchers noted that these improvements were especially meaningful because sleep normally worsens during the later weeks of pregnancy, meaning CBT-I was swimming against a physiological current and still winning.7PubMed Central. Cognitive Behavioral Therapy for Prenatal Insomnia: A Randomized Controlled Trial

CBT-I typically involves a handful of core techniques. Stimulus control trains you to associate the bed only with sleep, so you get out of bed if you are awake for more than about 15 or 20 minutes and return only when drowsy. Sleep restriction temporarily limits your time in bed to match the amount of sleep you are actually getting, which builds up sleep pressure and consolidates fragmented sleep. Cognitive restructuring addresses the anxious thoughts that tend to snowball at 2 a.m. (“I’ll never sleep again, and it’s going to harm the baby”). And relaxation training provides tools like progressive muscle relaxation or breathing exercises. A full course usually runs four to six sessions, though shorter versions have also shown benefit in pregnancy.

Digital CBT-I Programs

Access to a trained CBT-I therapist can be a real barrier. There are not enough of them, wait lists can be long, and weekly in-person sessions are hard to fit around prenatal appointments and work. Digital CBT-I, delivered through apps or web-based programs, fills that gap and has been tested specifically in pregnant populations.

A randomized trial of digital CBT-I in pregnant women found a large treatment effect, with insomnia severity improving significantly more in the digital therapy group than in the group that received standard care.8JAMA Psychiatry. Efficacy of Digital Cognitive Behavioral Therapy for the Treatment of Insomnia Symptoms Among Pregnant Women: A Randomized Clinical Trial Another randomized trial found that digital CBT-I reduced insomnia severity by about 5 points on a standard scale, while the control group showed no meaningful change. Treatment response rates were roughly three times higher in the CBT-I group compared to controls.9PubMed Central. A randomized controlled trial of digital cognitive behavioral therapy for insomnia in pregnant women The stepped-care guidelines referenced earlier also specifically endorse digital delivery of CBT-I and the use of companion apps to support self-management between sessions.10Dove Press (Natural and Science of Sleep). Translating Evidence into Obstetric Care: Developing a Best Practice-Informed Stepped-Care Clinical Algorithm for the Management of Gestational Insomnia

Programs like Sleepio, Pear Therapeutics’ Somryst (now called PEAR-004), and others are available in various markets, though insurance coverage varies. If you cannot access a dedicated pregnancy program, general digital CBT-I programs use the same core techniques and the evidence suggests they translate well. The key advantage is that you can do the sessions at 11 p.m. in your pajamas, which suits pregnant life pretty well.

Sleep Hygiene and Lifestyle Adjustments

Sleep hygiene gets a lot of eye-rolls because the advice can sound obvious, but during pregnancy, the basics genuinely matter more than usual. Your body is running hotter, your bladder is smaller (or at least being squeezed by a growing uterus), and your circadian rhythm is shifting. Small environmental and behavioral changes can reduce the number of times you wake up each night, even if they do not cure the insomnia on their own.

Practical adjustments worth trying:

  • Temperature: Keep the bedroom cool. Pregnant people tend to run warm, and core body temperature naturally needs to drop for sleep onset. A fan or lighter bedding can make a measurable difference.
  • Fluid timing: Front-load your water intake earlier in the day. Staying hydrated matters, but drinking a large glass of water at 9 p.m. guarantees a 1 a.m. bathroom trip.
  • Caffeine cutoff: Even if you have cut back on caffeine for pregnancy, whatever you are still consuming should stop by early afternoon. Caffeine’s half-life is longer during pregnancy because the body clears it more slowly.
  • Body positioning: A pregnancy pillow or a regular pillow between the knees can reduce hip and lower back pain that wakes you up. Side sleeping is generally recommended in the third trimester for circulation reasons, and a supportive setup makes that position easier to maintain.
  • Screen curfew: Blue light from screens suppresses melatonin production. Putting the phone away 30 to 60 minutes before bed is one of the simplest interventions, and one of the hardest to follow.

These measures are the first step in the clinical guidelines, and when insomnia is mild, they can be enough on their own.11Dove Press (Natural and Science of Sleep). Translating Evidence into Obstetric Care: Developing a Best Practice-Informed Stepped-Care Clinical Algorithm for the Management of Gestational Insomnia Exercise also belongs in this category. Regular physical activity during pregnancy improves sleep quality, though the timing matters: vigorous exercise close to bedtime can be stimulating. Moderate activity earlier in the day, like a 30-minute walk or prenatal yoga, tends to promote deeper sleep.

Mindfulness and Light Therapy

For people who want structured support beyond sleep hygiene but are not ready for or do not have access to full CBT-I, mindfulness-based interventions and light therapy are two options with emerging evidence in pregnancy.

A study of mindfulness interventions in pregnant women during the second and third trimesters found that mindfulness training significantly improved sleep quality and also reduced anxiety and stress.12PubMed Central. The Effect of Mindfulness Interventions on the Sleep Quality of Pregnant Mothers in the Second and Third Trimesters of Pregnancy Mindfulness for sleep typically involves body-scan meditations, guided breathing, and techniques to notice anxious thoughts without engaging with them, which overlaps meaningfully with the cognitive component of CBT-I.

Light therapy, usually delivered via a light box that emits bright white light in the morning, works by resetting the circadian clock. A systematic review and meta-analysis found that light therapy significantly improved sleep scores in women during pregnancy or the postpartum period, with a moderate effect size.13PubMed Central. The effects of light therapy on depression and sleep in women during pregnancy or the postpartum period: A systematic review and meta-analysis Morning light therapy can be particularly useful for people whose sleep timing has drifted later during pregnancy, or for those dealing with seasonal changes that reduce natural light exposure. Light boxes designed for this purpose are widely available and do not require a prescription.

When Medication Comes Into the Picture

The honest reality is that medication for pregnancy insomnia is an area where the evidence is thin and clinicians are cautious. A review of sleep-promoting medications used in pregnancy concluded that there are very few randomized controlled trials, limited real-world evidence on prescribing choices, and ongoing concern about potential effects on fetal development. That said, the review also noted that the studies it examined generally showed no increased risk of birth defects with the medications reviewed, which included antihistamines, benzodiazepines, and newer sleep medications.14Elsevier / American Journal of Obstetrics and Gynecology. A review of sleep-promoting medications used in pregnancy

The medication most commonly mentioned in pregnancy sleep literature is diphenhydramine, an over-the-counter antihistamine found in products like Benadryl and Unisom SleepGels. It has a long track record of use in pregnancy, partly because it doubles as a treatment for nausea when combined with vitamin B6 (this combination is the basis for the prescription nausea drug Diclegis). Diphenhydramine is generally considered low-risk in pregnancy, but it causes grogginess the next morning for many people, and its effectiveness for insomnia tends to decrease with repeated use.

Doxylamine, another antihistamine in the same family, is found in Unisom SleepTabs and has similar properties. It also has a long safety track record in pregnancy through its use in anti-nausea formulations.

Prescription options are murkier. Zolpidem (Ambien) is used during pregnancy in some cases, but a case report noted that its use is “not uncommon” despite limited data, with some associations reported for low birth weight, small-for-gestational-age babies, and preterm labor.15Psychiatry Research Case Reports. Management of zolpidem dependence during pregnancy: A case report with discussion on obstetric and management approaches Trazodone, a sedating antidepressant sometimes prescribed off-label for insomnia, has been studied in a comparative cohort, but researchers concluded that available data remain “insufficient to conclude that this drug is safe during pregnancy.”16PubMed Central. Reproductive Safety of Trazodone After Maternal Exposure in Early Pregnancy: A Comparative ENTIS Cohort Study Clinical guidelines recommend that when pharmacotherapy is used, it should be at the lowest effective dose for the shortest feasible duration.17Dove Press (Natural and Science of Sleep). Translating Evidence into Obstetric Care: Developing a Best Practice-Informed Stepped-Care Clinical Algorithm for the Management of Gestational Insomnia

What About Melatonin?

Melatonin is the supplement many people reach for first, and it deserves a clear answer: there is essentially no evidence supporting its use for pregnancy insomnia. A scoping review of human studies on melatonin during pregnancy and lactation found a total absence of randomized controlled trials examining melatonin specifically for treating sleep disorders in pregnancy. Insomnia was not the primary outcome in any of the included studies.18PubMed Central. Melatonin use during pregnancy and lactation: A scoping review of human studies

This does not necessarily mean melatonin is dangerous during pregnancy, but it means we do not know enough. Melatonin is a hormone, not just a sleep supplement, and it plays roles in placental function, fetal circadian development, and uterine contractions. Supplementing with it during pregnancy introduces variables that have not been studied thoroughly. Most obstetricians recommend against using melatonin during pregnancy until better data exist, and it is worth noting that melatonin supplements are not regulated for purity or dose accuracy in most countries, which adds another layer of uncertainty.

Conditions That Masquerade as Simple Insomnia

Not all pregnancy sleep problems are insomnia, and treating the wrong condition wastes time and delays relief. Two conditions commonly confused with or compounding pregnancy insomnia are restless legs syndrome and obstructive sleep apnea.

Restless legs syndrome (RLS) causes an uncomfortable, often hard-to-describe urge to move the legs, typically in the evening or at night. It is a very common cause of insomnia in pregnancy and can make it difficult both to fall asleep and to stay asleep.19PubMed Central. Management of Restless Legs Syndrome in Pregnancy and Lactation Iron deficiency, which is common in pregnancy, can trigger or worsen RLS, so checking ferritin levels and supplementing iron when low is often the first treatment step. If your insomnia involves a physical restlessness in your legs rather than purely a racing mind, bring that up with your provider.

Obstructive sleep apnea (OSA) is less obvious because many people associate it with overweight middle-aged men. But pregnancy-related weight gain, nasal congestion, and airway changes increase the risk. In one study of pregnant women screened for sleep-disordered breathing, about 32% were found to have OSA.20PubMed Central. Screening of obstructive sleep apnea during pregnancy: differences in predictive values of questionnaires across trimesters That is a strikingly high number. OSA during pregnancy is associated with preeclampsia and gestational diabetes, so it is worth screening for if you snore loudly, gasp during sleep, or wake up feeling unrefreshed despite spending enough time in bed. Standard screening questionnaires work reasonably well during pregnancy, and the treatment (CPAP) is safe.

Why Treating Pregnancy Insomnia Matters

It can be tempting to accept poor sleep as an unavoidable part of pregnancy and wait it out. The problem is that untreated insomnia during pregnancy is linked to outcomes that go well beyond daytime tiredness. Research has found associations between insomnia and depression, gestational diabetes, preeclampsia, preterm delivery, increased pain during labor, and higher rates of cesarean section.21PubMed Central. Insomnia and sleep deficiency in pregnancy 22PubMed Central. Sleep disorders during pregnancy: an underestimated risk factor for gestational diabetes mellitus

The mental health connection is especially strong. A majority of people with perinatal insomnia also experience depression and anxiety, and the insomnia can persist for years after delivery if left unaddressed.23PubMed Central. Perinatal Insomnia and Mental Health: a Review of Recent Literature Researchers have not yet fully established which causes which, as the relationship between insomnia and depression runs both ways, but the practical implication is clear: treating insomnia during pregnancy may help protect mental health, and treating depression and anxiety may help improve sleep. Ignoring one while addressing the other is less effective than tackling both.

The Postpartum Bridge

One of the more compelling reasons to treat pregnancy insomnia before delivery is what happens afterward. A small but notable randomized trial assigned pregnant women with insomnia to trazodone, diphenhydramine, or placebo during the third trimester. Both treatment groups showed improved sleep compared to placebo after six weeks. More striking, both treatment groups also had fewer depressive symptoms at two and six weeks postpartum compared to the placebo group.24PubMed Central. Insomnia treatment in the third trimester of pregnancy reduces postpartum depression symptoms: a randomized clinical trial The suggestion here is that getting ahead of sleep problems before delivery can have a protective effect on postpartum mood, which is a period when new parents are already vulnerable to sleep deprivation from nighttime feedings.

This does not mean everyone with pregnancy insomnia should take medication in the third trimester. The finding from that trial is more about the principle: treating insomnia before delivery pays dividends after delivery. CBT-I has the added advantage of teaching skills you keep. The techniques for managing racing thoughts, keeping a consistent sleep window, and responding to wakefulness without panic are just as useful when you are up with a newborn at 3 a.m. as they are during pregnancy. Unlike a medication that you stop taking, the behavioral skills travel with you into the postpartum period and beyond.

Talking to Your Provider

Sleep problems often go unmentioned during prenatal visits because they feel like a minor complaint compared to everything else being monitored. Providers may not ask about sleep unless you bring it up. If you are regularly taking more than 30 minutes to fall asleep, waking up multiple times and struggling to get back to sleep, or feeling so tired during the day that it affects your functioning, those are worth reporting. Mention any leg restlessness, snoring, or gasping your partner has noticed.

Your provider can help you figure out whether your sleep trouble is straightforward insomnia, is driven by a condition like RLS or sleep apnea, or is entangled with anxiety or depression that needs its own treatment. A referral to a sleep specialist or a behavioral health provider who offers CBT-I is reasonable to request, and so is asking about digital CBT-I programs if in-person options are limited in your area. The evidence clearly supports behavioral approaches as the best place to start, with medication held in reserve for situations where non-drug treatments have not been enough.