You're exhausted, but the moment your head hits the pillow, sleep won't come. Or you fall asleep fine but wake at 3 AM with a racing mind. A large meta-analysis found women were about 1.4 times as likely as men to have insomnia (Zhang & Wing, 2006), and the causes can go beyond "sleep hygiene."
Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first treatment for chronic insomnia in adults (Qaseem et al., 2016), including people with other health conditions (Riemann et al., 2023). Lab tests aren't needed for everyone with insomnia. They can help when your history or exam points to a specific cause, such as a thyroid problem or low iron.
What Can Disrupt Women's Sleep
A few things can matter more for women:
- Hormonal changes: Falling estradiol during the menopausal transition was linked with more trouble falling and staying asleep (Kravitz et al., 2008)
- Perimenopause and menopause: More frequent hot flashes and night sweats were linked with more sleep trouble (Kravitz et al., 2008)
- Iron deficiency: It's common in women of reproductive age and can come with restless legs syndrome (Auerbach et al., 2025)
- Thyroid disease: Graves disease, the most common cause of an overactive thyroid, is more common in women than in men (Lee et al., 2023)
- Mood: Depression is more common in women than in men (Halbreich & Kahn, 2001), and poor sleep and low mood can go together. If your mood is low, a clinician can help
Physical Causes of Insomnia
Thyroid Dysfunction
Insomnia is a common symptom of an overactive thyroid (hyperthyroidism), along with anxiety, palpitations, unintentional weight loss and feeling too hot (Lee et al., 2023).
What to test:
- TSH
- Free T4 and T3, if a clinician suspects an overactive thyroid (Lee et al., 2023)
Cortisol
Cortisol can be at its lowest around bedtime. In a small sleep-lab study of 11 people with insomnia and 13 good sleepers, cortisol and a related stress hormone, ACTH, ran higher over 24 hours in the insomnia group, most of all in the evening and the first half of the night. The daily rhythm itself stayed normal (Vgontzas et al., 2001). A later review of 32 studies also found higher cortisol in people with insomnia (Wang et al., 2026). These studies can't show whether cortisol causes poor sleep or poor sleep raises cortisol.
What to test: Cortisol isn't a routine insomnia test. The European insomnia guideline starts with a sleep and medical history, questionnaires and sleep diaries, then adds a physical exam and other measures where indicated (Riemann et al., 2023).
Iron Deficiency and Restless Legs
Restless legs syndrome (RLS) causes an urge to move the legs at rest, in the evening or at night, and severe forms can affect sleep (Manconi et al., 2021). Low iron in the brain may play a part in RLS, and guidelines advise iron treatment when blood iron levels are low (Allen et al., 2018). RLS was reported in 32% to 40% of people with iron deficiency, with or without anemia (Auerbach et al., 2025).
The ferritin level that matters for RLS can be higher than the cutoff used for iron deficiency. Iron deficiency can be defined as ferritin below 30 ng/mL (Auerbach et al., 2025), while the International Restless Legs Syndrome Study Group found oral iron possibly effective for RLS at a ferritin of 75 ng/mL or lower (Allen et al., 2018). Whether iron is right for you is a decision for you and your clinician.
What to test:
- Ferritin
- Transferrin saturation (part of an iron panel)
- CBC
Magnesium
Magnesium is often promoted for sleep, but the evidence is thin. A trial of 46 older adults found better insomnia scores, sleep efficiency and time to fall asleep with magnesium than with placebo (Abbasi et al., 2012). A review of 3 trials in 151 older adults found people fell asleep about 17 minutes sooner, with no clear change in total sleep time, and it rated the evidence low to very low quality (Mah et al., 2021). These trials don't tell us whether a magnesium blood test helps. Talk with a clinician before starting any supplement.
Hormonal Changes
Progesterone: Some breakdown products of progesterone have sedative-like effects. In a trial of 8 postmenopausal women, progesterone didn't change normal sleep, but it reduced sleep disruption during overnight blood draws (Caufriez et al., 2011). That study is too small to guide treatment.
Estrogen: A large US study of women in midlife found falling estradiol was linked with more trouble falling and staying asleep (Kravitz et al., 2008). This kind of study can't show that low estradiol causes poor sleep.
What to test: Hormone tests can't tell you where you are in the menopausal transition, because FSH and estradiol vary so much that they're of little diagnostic value (Burger, 2011). A clinician may look at your age, periods and symptoms instead. If hot flashes or night sweats wake you up, ask what treatments may help.
Vitamin D
A review of 9 mostly cross-sectional studies linked vitamin D deficiency with poor sleep quality, shorter sleep and sleepiness (Gao et al., 2018). Studies like these can't show that low vitamin D causes poor sleep, and the authors called for better trials.
What to test: The Endocrine Society suggests against routine 25-hydroxyvitamin D testing unless there's an established reason for it (Demay et al., 2024). It also found no clear evidence for a target level to prevent disease.
Tests a Clinician May Consider
There's no standard insomnia lab panel. Diagnosis starts with your sleep and medical history, and tests are added where indicated (Riemann et al., 2023). What can make sense depends on your symptoms:
- Thyroid symptoms: TSH, with free T4 or T3 if needed
- Restless legs, heavy periods or unusual tiredness: ferritin and transferrin saturation, since testing is advised for symptoms of iron deficiency and should be considered with heavy periods (Auerbach et al., 2025)
- Suspected sleep apnea or leg movements in sleep: a sleep study, which is advised when another sleep disorder is suspected (Riemann et al., 2023)
When Sleep Hygiene Isn't Enough
If you've improved your sleep environment, limited screens, kept a consistent schedule, and still can't sleep, talk with a clinician. Ask about CBT-I, and ask whether your symptoms may point to another sleep disorder or health condition. See a clinician promptly if poor sleep comes with low mood, loud snoring with pauses in breathing, or a racing heart. If you have thoughts of harming yourself, call or text 988 or go to the nearest emergency room.
References
- Zhang, B., & Wing, Y. K. (2006). Sex differences in insomnia: a meta-analysis. Sleep, 29(1), 85-93. PMID 16453985
- Vgontzas, A. N., et al. (2001). Chronic insomnia is associated with nyctohemeral activation of the hypothalamic-pituitary-adrenal axis. Journal of Clinical Endocrinology & Metabolism, 86(8), 3787-3794. PMID 11502812
- Allen, R. P., et al. (2018). Evidence-based and consensus clinical practice guidelines for the iron treatment of restless legs syndrome/Willis-Ekbom disease in adults and children: an IRLSSG task force report. Sleep Medicine, 41, 27-44. PMID 29425576
- Abbasi, B., et al. (2012). The effect of magnesium supplementation on primary insomnia in elderly. Journal of Research in Medical Sciences, 17(12), 1161-1169. PMID 23853635
- Gao, Q., et al. (2018). The association between vitamin D deficiency and sleep disorders. Nutrients, 10(10), 1395. PMID 30275418
- Qaseem, A., et al. (2016). Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline From the American College of Physicians. Annals of Internal Medicine, 165(2), 125-133. PMID 27136449
- Riemann, D., et al. (2023). The European Insomnia Guideline: An update on the diagnosis and treatment of insomnia 2023. Journal of Sleep Research, 32(6), e14035. PMID 38016484
- Lee, S. Y., et al. (2023). Hyperthyroidism: A Review. JAMA, 330(15), 1472-1483. PMID 37847271
- Manconi, M., et al. (2021). Restless legs syndrome. Nature Reviews. Disease Primers, 7(1), 80. PMID 34732752
- Auerbach, M., et al. (2025). Iron Deficiency in Adults: A Review. JAMA, 333(20), 1813-1823. PMID 40159291
- Mah, J., et al. (2021). Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies, 21(1), 125. PMID 33865376
- Kravitz, H. M., et al. (2008). Sleep disturbance during the menopausal transition in a multi-ethnic community sample of women. Sleep, 31(7), 979-990. PMID 18652093
- Caufriez, A., et al. (2011). Progesterone prevents sleep disturbances and modulates GH, TSH, and melatonin secretion in postmenopausal women. Journal of Clinical Endocrinology & Metabolism, 96(4), E614-23. PMID 21289261
- Burger, H. G. (2011). Unpredictable endocrinology of the menopause transition: clinical, diagnostic and management implications. Menopause International, 17(4), 153-154. PMID 22120939
- Demay, M. B., et al. (2024). Vitamin D for the Prevention of Disease: An Endocrine Society Clinical Practice Guideline. Journal of Clinical Endocrinology & Metabolism, 109(8), 1907-1947. PMID 38828931
- Wang, Y., et al. (2026). Biomarker evidence for the pathophysiological mechanisms of insomnia: a systematic review and meta-analysis. Frontiers in Immunology, 17, 1889366. PMID 42688078
- Halbreich, U., et al. (2001). Role of estrogen in the aetiology and treatment of mood disorders. CNS Drugs, 15(10), 797-817. PMID 11602005



