
If you are searching for safe sleep supplements during pregnancy, you are probably 24 weeks in, lying on your side at 3 a.m., and wondering whether the melatonin in your nightstand is safe to take.
One framing point upfront. Every supplement choice during pregnancy belongs to you and your OBGYN, not to an article, an influencer, or a chatbot. Nothing below is a green light to start a supplement on your own. Bring this page to your next appointment and use it as a conversation starter.
Before you decide

Who should NOT self-start any of these: anyone whose OBGYN has not reviewed their current supplement list and lab work. Pregnancy is the wrong setting to add a new bottle without a clinician in the loop.
Do this FIRST before considering any new supplement: ask your OBGYN to draw a ferritin and a 25(OH)D level if they have not been checked this pregnancy, and try the non-supplement strategies ACOG recommends (side sleeping after 20 weeks, pillow support, limiting fluids in the 2 to 3 hours before bed, and a consistent wind-down). These are free, well evidenced, and don't require a single new pill.
Why pregnancy sleep is hard, briefly
Sleep gets harder in pregnancy because the system that produces sleep has new physiology to fight through. Progesterone rises and disrupts sleep architecture in the first trimester. Heartburn and reflux climb because the uterus pushes upward against the stomach. Bathroom trips multiply as the bladder shares less space. Restless legs syndrome shows up in roughly one in five pregnancies, with the strongest association tracking low ferritin. Anxiety about the pregnancy itself competes with rest. By the third trimester, finding any comfortable position is itself a puzzle, and the recommended left-side sleep can ache on the hip.
The standard professional guidance comes from the American College of Obstetricians and Gynecologists (ACOG). ACOG's patient and clinician materials emphasize positional sleep, sleep hygiene, and selective use of behavioral therapies before turning to pharmacology. The American Academy of Sleep Medicine does not publish a pregnancy-specific insomnia guideline and defers to ACOG for obstetric context. Cognitive behavioral therapy for insomnia (CBT-I) is considered safe during pregnancy and is the recommended first-line option when sleep complaints become persistent. The real question isn't which sleep capsule to buy, it's whether the discomfort driving your sleep loss has a structural fix (positioning, reflux management, ferritin correction) before it has a supplement answer.
Supplements your OBGYN may actually consider

Each entry below assumes the same precondition: your OBGYN reviews your full medication and supplement list, your trimester, and any pregnancy complications before signing off. The doses below are typical ranges from the published context, not a personalized prescription.
Continued prenatal vitamin
Why it matters. The prenatal multivitamin covers folate, iron at a partial dose, iodine, choline (in some formulations), and the B vitamin spread your body uses to build a baby. It is not a sleep supplement, but a chronic micronutrient gap can quietly make sleep worse. Most pregnancy nutrition research agrees the prenatal is a non-negotiable baseline.
Dose context. Your OBGYN prescribes the specific product. The pregnancy RDAs your prenatal is built around include 27 mg of iron, 600 IU of vitamin D, 600 mcg of folate DFE, and 350 to 360 mg of magnesium depending on age. The average US diet covers a meaningful share of magnesium and choline but rarely hits the iron or folate target without help.
Form to look for. Whatever your OBGYN prescribed. If you cannot tolerate it (nausea is the usual reason), call your OBGYN before swapping rather than choosing a new product yourself.
Skip if. Your OBGYN tells you to. Some women on combined high-dose iron protocols are taken off a separate iron-containing prenatal to avoid stacking.
Magnesium glycinate, with OBGYN approval
Why it helps. Magnesium is the cofactor in over 300 enzymatic reactions and modulates NMDA and GABA signaling that overlap with calm and sleep. In pregnancy specifically, the Dahle 2007 RCT in pregnant women found that 5 mmol of magnesium twice daily reduced the severity of restless legs syndrome compared to placebo. Restless legs is one of the single biggest reasons pregnant women lose sleep in the second and third trimesters.
Dose context. The pregnancy RDA for magnesium is 350 to 360 mg per day. Sleep and restless legs studies in the broader literature have used 200 to 400 mg of elemental supplemental magnesium. In pregnancy, your OBGYN may suggest a lower starting dose, especially if you are already eating magnesium-rich foods (pumpkin seeds, almonds, spinach, black beans, dark chocolate are the easy ones).
Form to look for. Magnesium glycinate (also labeled bisglycinate) is the form most clinicians default to in pregnancy because it is the gentlest on the gut and the least laxative. Citrate and oxide tend to loosen stools, and constipation is already a pregnancy issue.
Skip if. Your OBGYN has not reviewed your kidney function, you are on a fluoroquinolone, tetracycline, or other medication that interacts with magnesium, or you have pregnancy-induced hypertension treated with IV magnesium sulfate (that is a hospital protocol, not an addition to it). Per the Drugs.com magnesium interaction monographs, separate oral magnesium from levothyroxine and these antibiotics by at least 4 hours.
Iron, only when ferritin is low
Why it matters for sleep. Iron deficiency is a leading driver of restless legs syndrome in pregnancy. The link is strong enough that treating low ferritin is a first-line response to RLS, not a supplement to layer on top of unaddressed deficiency. Anemia of pregnancy also drives fatigue that paradoxically can fragment sleep.
Dose context. The pregnancy RDA for iron is 27 mg per day. Therapeutic doses for documented deficiency run higher and are an OBGYN decision based on your ferritin, hemoglobin, and tolerance. Some clinicians use alternate-day dosing to improve absorption and reduce constipation.
Form to look for. Ferrous bisglycinate or ferrous sulfate, depending on what your OBGYN prescribes. Take with vitamin C (or a glass of orange juice) to improve non-heme absorption, and away from coffee, tea, and calcium-containing foods.
Skip if. Your OBGYN has not confirmed you are iron-deficient. Iron supplementation in iron-replete pregnancy can cause GI distress without benefit, and chronically high iron in non-deficient women is not the right tradeoff. Ask your doctor about a ferritin and hemoglobin check before assuming you are low.
Vitamin D3, only when 25(OH)D is below the adequacy range
Why it matters. Vitamin D supports calcium absorption and a range of bone and immune pathways that matter in pregnancy. The link to sleep is indirect and the data is mixed, but uncorrected deficiency is associated with poorer sleep quality and other pregnancy complications in observational studies.
Dose context. The pregnancy RDA is 600 IU per day, which most prenatal vitamins cover. Some women with documented deficiency are placed on 1,000 to 2,000 IU per day for repletion. Doses above 4,000 IU per day are above the tolerable upper intake level and need a clear clinical reason and OBGYN oversight.
Form to look for. Vitamin D3 (cholecalciferol) over D2, taken with a fat-containing meal for absorption.
Skip if. Your OBGYN has not measured your 25(OH)D. Supplementing without a baseline guesses at a problem that may not exist.
Supplements to discuss with your OBGYN before considering
L-theanine
L-theanine is the amino acid in tea that produces a calm-without-drowsy effect in non-pregnant adults. Pregnancy-specific human safety data is limited, which is the honest caveat. Some OBGYNs are comfortable with a small evening dose (100 to 200 mg) for occasional use; others prefer to avoid it entirely until more data exists. The conversation belongs in your prenatal visit.
Calcium, for leg cramps
Calcium gets discussed for pregnancy leg cramps that can wake you at night. The evidence is mixed. The pregnancy RDA is 1,000 mg per day (1,300 mg if under 19). If your dietary calcium is genuinely low, your OBGYN may suggest closing the gap with food (dairy, fortified plant milks, sardines, leafy greens) before adding a calcium pill. Calcium supplements can interfere with iron absorption, so timing matters.
What to skip during pregnancy
Some supplements show up in general "natural sleep aid" lists but are not appropriate during pregnancy. The honest framing: limited human safety data plus a plausible biological concern is enough reason to wait until after delivery.
- Melatonin. Limited pregnancy safety data, exogenous melatonin acts on a hormonal pathway involved in fetal development, and animal studies have raised teratogenic signals at high doses. The Andersen 2013 safety review and most subsequent pregnancy-specific commentary recommend avoiding routine use.
- Valerian. Pregnancy safety data is limited and the historical clinical guidance has been to avoid it.
- Passionflower. Limited human safety data in pregnancy. Skip.
- Kava. Hepatotoxicity risk in the general adult population, including FDA consumer warnings. Not appropriate in pregnancy.
- 5-HTP. Acts on the serotonin pathway, contraindicated in pregnancy without specialist oversight.
- Apigenin (the chamomile-derived compound popular in influencer sleep stacks). Apigenin has estrogenic activity in some assays, and pregnancy-specific human safety data is essentially nonexistent. Skip.
- High-dose vitamin A above 10,000 IU per day from supplements. Preformed retinyl ester at high doses is teratogenic. The prenatal usually delivers beta-carotene rather than preformed A for this reason.
- High-dose vitamin B6 above 100 mg per day. Low-dose B6 (10 to 25 mg several times daily) is part of the ACOG protocol for pregnancy nausea, but chronic high-dose B6 has been associated with neuropathy and is not a sleep tool.
This list is not exhaustive. The general rule: if your supplement is on TikTok this month and was not on the ACOG pregnancy page last year, default to no until your OBGYN says yes.
A non-supplement toolkit ACOG actually endorses
These work better than most sleep supplements and don't carry safety questions.
- Side sleeping, ideally left side, after 20 weeks. Improves venous return and uteroplacental blood flow. A long body pillow or pregnancy wedge between the knees and under the belly reduces hip and lower back strain.
- Limit fluids 2 to 3 hours before bed. Doesn't eliminate bathroom trips, but reduces them.
- Manage reflux upstream. Eat the last meal earlier, elevate the head of the bed slightly, and avoid trigger foods identified in the second and third trimesters. Talk to your OBGYN about pregnancy-safe options if reflux is severe.
- Wind-down routine. Dim lights an hour before bed, no screens in the bedroom, consistent sleep and wake times.
- CBT-I. Cognitive behavioral therapy for insomnia is considered safe in pregnancy and outperforms supplements in chronic insomnia outside of pregnancy. Ask your OBGYN or primary care clinician for a referral if sleep loss has lasted more than a few weeks.
When supplements are NOT enough
Pregnancy sleep loss crosses into a clinical concern when:
- You are dealing with sustained insomnia (more than 3 nights a week for more than 3 weeks) and lifestyle changes have not helped.
- Restless legs symptoms are severe and your ferritin has not been checked.
- You have signs of obstructive sleep apnea (loud snoring, witnessed pauses, daytime sleepiness), which is associated with adverse pregnancy outcomes and warrants formal evaluation.
- Your mood is involved. Pregnancy and postpartum mood disorders are common and treatable. If you have persistent low mood, anxiety that interferes with daily function, intrusive thoughts, or any thoughts of self-harm, contact your OBGYN urgently, call the 988 Suicide and Crisis Lifeline (call or text 988), or call Postpartum Support International at 1-800-944-4773 (text "Help" to 800-944-4773 in English or 971-203-7773 in Spanish). These resources cover pregnancy as well as postpartum.
If your OBGYN concludes a short course of pharmacotherapy is appropriate, options like diphenhydramine (pregnancy category B) are available, but those are clinician decisions made in the context of your specific pregnancy, not a self-medication choice from the drugstore aisle.
FAQ
Is melatonin safe during pregnancy?
The honest answer is the data is limited and the plausible concerns are real. Exogenous melatonin acts on a hormonal pathway involved in fetal development, animal studies at high doses have raised teratogenic signals, and human RCT data in pregnancy is sparse. Most clinicians recommend avoiding routine melatonin use during pregnancy. Talk to your OBGYN before any use.
Can I take magnesium for pregnancy leg cramps?
Possibly, with your OBGYN's sign-off. Magnesium glycinate at 200 to 400 mg of elemental magnesium is what many clinicians consider first for pregnancy-related restless legs and night cramps. The Dahle 2007 trial showed benefit on restless legs symptoms in pregnant women. Your specific dose and timing belong to your prenatal visit, not a pharmacy aisle.
What about chamomile tea?
Occasional chamomile tea is widely considered safe in pregnancy in normal beverage amounts. Concentrated chamomile extracts and apigenin-standardized capsules are a different question and lean toward "skip" because of estrogenic activity in some assays. When in doubt, ask your OBGYN.
Is Benadryl (diphenhydramine) safe for pregnancy insomnia?
Diphenhydramine is pregnancy category B, which means animal data has not shown fetal harm and there are no controlled human studies showing risk. That makes it a reasonable option when an OBGYN prescribes it for short-term use. It is not appropriate as a self-prescribed nightly habit. Ask your OBGYN before using it.
Does the prenatal vitamin help with sleep?
Not directly. A prenatal closes nutrient gaps that, if left open, can make sleep and energy worse. It is foundational, not therapeutic for insomnia.
Conclusion: the bottom line on safe sleep supplements during pregnancy
The 2 to 3 supplements worth discussing with your OBGYN for pregnancy sleep are a continued prenatal vitamin, magnesium glycinate when restless legs or cramps are part of the picture, and iron if your ferritin is low. Vitamin D earns a spot only when a 25(OH)D measurement shows true insufficiency. Most over-the-counter sleep aids (melatonin, valerian, passionflower, kava, 5-HTP, apigenin) lack pregnancy safety data or have plausible mechanism concerns and should be skipped until after delivery. The non-pill toolkit (side sleeping, body pillows, evening fluid timing, sleep hygiene, CBT-I) is more important than the supplement aisle and far better evidenced. Every pill choice in pregnancy belongs to a conversation with your OBGYN.
Next steps
- Write down your current sleep complaint (restless legs, reflux, anxiety, fragmented sleep, all of the above) and bring it to your next prenatal visit. Ask about a ferritin and 25(OH)D check if those have not been drawn this pregnancy.
- For the postpartum window, the rules change again. See our walkthrough on supplements during the postpartum period in Best Supplements for Postpartum Recovery and consult your OBGYN about breastfeeding-specific considerations.
- For the dietitian methodology behind this article, read How We Review Supplements, or browse other articles by Sarah Thompson, RD. If you are not pregnant and want a deeper look at the most-asked-about sleep mineral, see Best Magnesium for Sleep.
Reviewed by Sarah Thompson, Registered Dietitian, focused on vitamin and mineral nutrition.
This article is for informational purposes and not medical advice. Pregnancy supplementation decisions belong to you and your OBGYN. Do not start, stop, or change any supplement or medication during pregnancy without clinician oversight. If you are experiencing a mental health crisis or thoughts of self-harm, contact the 988 Suicide and Crisis Lifeline (call or text 988) or Postpartum Support International at 1-800-944-4773.