You have tried everything. You bought the blackout curtains. You put your phone away an hour before bed. You took the melatonin. You tried the magnesium, the chamomile tea, the lavender pillow spray. You read the sleep hygiene lists, followed them religiously, and you are still lying awake at midnight staring at the ceiling. Or worse: you fall asleep fine, then snap awake at 2am or 3am with a racing mind and cannot get back to sleep no matter what you do.
If this sounds like you, the problem is probably not your sleep habits. Sleep hygiene is real and it matters, but it is the floor, not the ceiling. When you have implemented all the behavioral interventions and you are still not sleeping, something deeper is going on. And in a significant number of cases, that something is hormonal.
This guide is about the causes of insomnia that most doctors never test for — the hormonal, metabolic, and neurochemical drivers that keep you awake despite doing everything "right." If your doctor has prescribed you a sleeping pill without checking your cortisol, progesterone, thyroid, or blood sugar patterns, you have been given a Band-Aid without a diagnosis.
Insomnia is usually a symptom, not a diagnosis
The conventional medical approach to insomnia treats it as a standalone condition. You cannot sleep, so here is a prescription for zolpidem or trazodone. The underlying assumption is that sleep is the problem. But in most cases, sleep is the casualty. Something else is disrupting the neurochemical and hormonal environment that your brain needs to initiate and maintain sleep.
Sleep is not a passive process. It requires a precise orchestration of hormonal signals: cortisol must decline to its nadir, melatonin must rise, GABA activity must increase, body temperature must drop. If any of these steps is disrupted — by elevated cortisol, by declining progesterone, by blood sugar crashes, by thyroid dysfunction — the entire cascade fails. You can have perfect sleep hygiene and still be unable to sleep because the biochemistry is wrong.
This reframing matters because it changes what you do about it. Instead of layering more behavioral interventions onto a hormonal problem, you identify and fix the hormonal problem. The sleep follows.
The hormonal causes of insomnia
Cortisol: the 2am wake-up
If you fall asleep without much trouble but wake between 2am and 4am with your mind racing, there is a strong chance your cortisol curve is dysregulated. In a healthy body, cortisol hits its lowest point around midnight and gradually rises through the early morning hours, peaking 30 to 60 minutes after waking. When the HPA axis is chronically activated by stress, this rise happens too early and too sharply, producing a nocturnal cortisol spike that yanks you out of sleep.
This pattern is measurable. A four-point salivary cortisol testtaken at morning, noon, evening, and bedtime will reveal whether your nighttime cortisol is elevated. Many people with this pattern also report feeling "tired but wired" at bedtime — exhausted during the day but unable to wind down at night. That is the signature of a flattened or inverted cortisol curve.
Menopause and night sweats
Insomnia affects 40 to 60 percent of women during the menopausal transition, making it one of the most common and most impactful symptoms. The mechanism is twofold. Declining estrogen disrupts the hypothalamic thermoregulatory center, narrowing the thermoneutral zone and triggering hot flashes and night sweats that fragment sleep. Simultaneously, declining progesterone reduces GABA-mediated sedation, making it harder to initiate and maintain sleep even without thermoregulatory disruption.
Many women in perimenopause are told their insomnia is stress-related and given behavioral recommendations. Their hormones are never checked. Meanwhile, their estrogen and progesterone have declined significantly from their premenopausal baseline, and replacing those hormones would address the root cause rather than manage the symptom.
Low progesterone: the missing sleep hormone
Progesterone deserves special attention because its role in sleep is dramatically underappreciated. Progesterone and its metabolite allopregnanolone are among the most potent natural positive modulators of GABA-A receptors in the human body. GABA is the brain's primary inhibitory neurotransmitter — it is what calms neural activity and allows sleep to occur. When progesterone declines (as it does in perimenopause, menopause, luteal phase deficiency, and chronic stress), GABA activity decreases and the brain becomes more excitable. The result is difficulty falling asleep, difficulty staying asleep, and lighter, less restorative sleep overall.
Oral micronized progesterone (Prometrium) taken at bedtime is one of the most effective interventions for sleep in women with low progesterone. It provides dual benefit: hormonal replacement and a natural sedative effect through GABA receptor activation. Unlike pharmaceutical sleep aids, progesterone does not suppress deep sleep architecture and does not produce dependence.
Low testosterone in men
Men with low testosterone frequently report poor sleep quality, including difficulty falling asleep, frequent awakenings, and unrefreshing sleep. Testosterone influences sleep architecture, particularly the maintenance of slow-wave (deep) sleep and REM sleep. Hypogonadal men who start testosterone replacement therapy often report improved sleep quality as one of the earliest benefits. However, the relationship is dose-dependent: supraphysiological testosterone levels can worsen sleep by increasing hematocrit and contributing to obstructive sleep apnea. Optimization, not maximization, is the goal.
Thyroid dysfunction
Both hypothyroidism and hyperthyroidism can disrupt sleep, through different mechanisms. Hyperthyroidism increases metabolic rate, heart rate, and sympathetic nervous system activity, making it difficult to fall asleep and producing restless, fragmented sleep. Hypothyroidism can cause excessive daytime sleepiness and fatigue while paradoxically disrupting nighttime sleep architecture, reducing the amount of deep sleep and increasing nighttime awakenings. Either direction warrants a complete thyroid evaluation including free T3, free T4, and antibodies.
Blood sugar and sleep
One of the most overlooked drivers of middle-of-the-night waking is blood sugar instability. When you eat a high-carbohydrate meal or snack before bed, your blood sugar spikes, followed by a compensatory insulin surge that drives blood sugar down rapidly. If blood sugar drops low enough (reactive hypoglycemia), your body responds by releasing cortisol and adrenaline to mobilize glucose from liver glycogen stores. These counter-regulatory hormones are stimulating: they wake you up, raise your heart rate, and make it nearly impossible to fall back asleep.
The pattern is predictable: you eat dinner or a late snack heavy in refined carbohydrates, fall asleep initially, then wake two to four hours later feeling wired, anxious, or with a racing heart. A continuous glucose monitor can reveal this pattern clearly, but even without one, the solution is straightforward: avoid high-glycemic meals within two to three hours of bedtime, include protein and fat at dinner to blunt the glycemic response, and if you must eat late, choose foods that produce a slow, steady glucose curve.
What to test
If you have persistent insomnia that does not respond to behavioral interventions, the following labs should be part of your workup.
Four-point salivary cortisol: Measures cortisol at morning, noon, evening, and bedtime to map your diurnal curve. Reveals whether nighttime cortisol is elevated and whether the overall pattern is flattened or inverted. This is the single most informative test for stress-related insomnia.
Hormones: Estradiol, progesterone, total and free testosterone, and DHEA-S. In women over 35, low progesterone is one of the most common and most treatable causes of insomnia. In men, low testosterone should be ruled out.
Thyroid panel: TSH, free T4, free T3, and thyroid antibodies. Both hypo and hyperthyroidism disrupt sleep, and subclinical thyroid dysfunction is common and frequently missed.
Blood sugar: Fasting glucose, fasting insulin, and HbA1c at minimum. A continuous glucose monitor worn for two weeks provides the most actionable data, revealing overnight glucose patterns that correlate with sleep disruption.
What actually works for hormonal insomnia
Progesterone at bedtime
For women with low progesterone, oral micronized progesterone (typically 100 to 200 milligrams at bedtime) is often the single most impactful intervention. It restores the hormonal environment needed for sleep while providing a natural GABA-mediated sedative effect. Many women describe this as the first good sleep they have had in months or years. It works because it addresses the cause, not just the symptom.
Address cortisol
If your cortisol curve is elevated or inverted, targeted interventions include adaptogenic herbs (ashwagandha at 300 to 600 milligrams daily has the strongest evidence base for cortisol reduction), phosphatidylserine at bedtime to blunt the nocturnal cortisol rise, and stress management practices like box breathing or meditation that have been shown to lower cortisol measurably. The key is consistency: sporadic interventions do not reset a chronically dysregulated HPA axis.
Magnesium glycinate
Magnesium glycinate at 200 to 400 milligrams before bed supports sleep through multiple mechanisms: it activates GABA receptors, reduces cortisol, relaxes skeletal muscle, and supports melatonin synthesis. The glycinate form is preferred because glycine itself has calming properties and the chelated form is well-absorbed and gentle on the digestive system. Magnesium deficiency is common (estimated to affect over 50 percent of the U.S. population) and supplementation is low-risk.
Light management and timing
Blue light exposure after sunset suppresses melatonin production and delays sleep onset. This is well-established. What is less commonly discussed is the morning side of the equation: bright light exposure within 30 minutes of waking anchors your circadian rhythm and ensures that melatonin release happens at the right time in the evening. Both sides matter. Blue-light blocking glasses after sunset and 10 to 15 minutes of outdoor light in the morning are among the highest-leverage behavioral interventions.
Temperature and consistency
Core body temperature must drop by one to two degrees Fahrenheit to initiate sleep. A cool room (65 to 68 degrees Fahrenheit) facilitates this drop. For women with night sweats, cooling mattress pads and moisture-wicking bedding can reduce thermoregulatory disruption. A consistent sleep-wake schedule — same time every day, including weekends — reinforces circadian entrainment and improves sleep efficiency over time.
What does not work for hormonal insomnia
Melatonin alone
Melatonin is effective for jet lag and circadian rhythm disorders, but it is not a solution for chronic insomnia driven by cortisol, progesterone deficiency, or blood sugar instability. Most people with hormonal insomnia do not have a melatonin deficiency. They have an upstream hormonal problem that prevents the sleep cascade from executing properly. Melatonin at low doses (0.3 to 1 milligram) can be a useful adjunct for circadian timing, but it should not be the primary intervention.
Sleeping pills long-term
Prescription sleep medications like zolpidem (Ambien) and benzodiazepines can help acutely but are problematic for long-term use. They suppress deep sleep architecture, produce tolerance (requiring increasing doses for the same effect), carry dependence and withdrawal risks, and are associated with increased all-cause mortality in long-term observational studies. Most importantly, they do not address the hormonal cause of the insomnia. They chemically override the wakefulness signal without fixing the reason it is firing. When you stop the medication, the insomnia returns because nothing has changed.
Frequently asked questions
Why do I wake up at 2am or 3am every night?
Waking between 2am and 4am is strongly associated with nocturnal cortisol spikes. In a healthy rhythm, cortisol is at its lowest around midnight. When the HPA axis is dysregulated from chronic stress, cortisol rises too early and too sharply, waking you with a racing mind. A four-point salivary cortisol test can confirm this pattern. See our cortisol guide for more.
Can menopause cause insomnia?
Yes, and it is one of the most common menopausal symptoms. Declining estrogen causes hot flashes and night sweats that fragment sleep. Declining progesterone reduces GABA activity, making it harder to fall and stay asleep. Hormone replacement therapy, particularly progesterone at bedtime, is the most effective intervention.
Does progesterone help with sleep?
Yes. Progesterone and its metabolite allopregnanolone are potent GABA-A receptor modulators — the same system targeted by sedative medications. Oral micronized progesterone at bedtime provides both hormonal replacement and a natural sedative effect without suppressing deep sleep or causing dependence.
Is melatonin effective for chronic insomnia?
Generally not as a standalone treatment. Melatonin is a timing signal, not a sedative. It helps with jet lag and circadian disorders, but most chronic insomnia has an upstream hormonal cause (cortisol, progesterone, blood sugar) that melatonin does not address. Low-dose melatonin (0.3 to 1 milligram) can be a useful adjunct for circadian timing.
Can low testosterone cause insomnia in men?
Yes. Testosterone influences deep sleep and REM architecture. Hypogonadal men often report unrefreshing sleep, frequent awakenings, and difficulty falling asleep. Testosterone replacement can improve sleep quality, but supraphysiological levels can worsen it by contributing to sleep apnea. The goal is optimization, not maximization.
If your insomnia has not responded to behavioral interventions alone, it is time to look deeper. The connection between hormones and sleep is among the most well-established in endocrinology, yet it remains one of the most overlooked in clinical practice. A proper hormonal workup — including cortisol, progesterone, testosterone, and thyroid — should be part of every persistent insomnia evaluation. Your body is not broken. The signal it needs to sleep is just missing, and in most cases, it can be restored.
Related reading: High Cortisol Symptoms, Complete Menopause Guide, Progesterone Guide, Brain Fog: Causes and Solutions.
Sources & References
- Buckley TM, Schatzberg AF. On the interactions of the hypothalamic-pituitary-adrenal (HPA) axis and sleep: normal HPA axis activity and circadian rhythm, exemplary sleep disorders. Journal of Clinical Endocrinology & Metabolism, 2005;90(5):3106-3114.
- Schüssler P, Kluge M, Adamczyk M, et al. Progesterone reduces wakefulness in sleep EEG and has no effect on cognition in healthy postmenopausal women. Psychoneuroendocrinology, 2008;33(8):1124-1131.
- Jehan S, Masters-Isarilov A, Salifu I, et al. Sleep Disorders in Postmenopausal Women. Journal of Sleep Disorders & Therapy, 2015;4(5):1000212.
- Abbasi B, Kimiagar M, Sadeghniiat K, et al. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. Journal of Research in Medical Sciences, 2012;17(12):1161-1169.
- Kripke DF, Langer RD, Kline LE. Hypnotics' association with mortality or cancer: a matched cohort study. BMJ Open, 2012;2(1):e000850.