?Could my sleepless nights be driven by anxiety, shifting hormones, or simply nightly habits that got out of hand?

Is My Insomnia Linked To Anxiety, Hormonal Changes, Or Poor Nighttime Habits?
I often get asked whether insomnia is primarily psychiatric, biological, or behavioral, and the short answer I give is that it can be any of those — or a combination. In this article I walk through how I think about each contributor, how they typically present, how I differentiate among them, and what I do (step by step) when treating or managing persistent sleep problems.
What I mean by insomnia
I use the term insomnia to mean persistent difficulty initiating sleep, staying asleep, or waking too early with impaired daytime functioning. I distinguish between short-term (acute) insomnia, lasting nights to weeks, and chronic insomnia, lasting three months or longer. I also note whether the complaint is trouble falling asleep (sleep-onset), trouble staying asleep (middle-of-night awakenings), or waking too early (terminal insomnia).
Why it matters to identify the underlying driver
I emphasize cause because the most effective interventions target the driver. For example, cognitive strategies help anxiety-driven insomnia, hormonal treatment or symptom management helps hormone-driven insomnia, and behavioral changes plus stimulus control help habit-driven insomnia. I find that mixing approaches often works best because contributors commonly overlap.
Common categories of causes I consider
I classify insomnia causes into broad buckets: psychological (anxiety, depression), hormonal/endocrine (menstrual cycle, pregnancy, menopause, thyroid), behavioral/habits (irregular schedule, screens, caffeine), medical (pain, sleep apnea, restless legs), and medications/substances. I usually screen all categories because coexisting factors are common.
How anxiety contributes to insomnia
I see anxiety as a frequent insomnia trigger and perpetuator. Anxiety increases cognitive arousal — worry, rumination, catastrophizing — and physiological arousal — racing heart, muscle tension — both of which make it harder to fall asleep and stay asleep. Anxiety disorders often coexist with insomnia; sometimes the sleeplessness appears first, and sometimes anxiety does.
Typical features of anxiety-related insomnia
When anxiety is the main driver, I often notice:
- Difficulty falling asleep because the mind won’t quiet down.
- Repetitive thoughts about future problems or past interactions.
- Worry that nighttime wakefulness will ruin the next day.
- Sleep improved temporarily when stress eases or with relaxation.
I pay attention to whether worrying is more pronounced at night, whether daytime anxiety is high, and whether worry interferes with sleep onset more than awakenings.
Mechanisms: how worry keeps me awake
I describe two main mechanisms: cognitive hyperarousal (mental rehearsal of threats) and physiological arousal (sympathetic nervous system activation). Both can reinforce each other: worrying increases heart rate and tension, which increases worry, creating a loop that prolongs sleep latency.
How hormonal changes can cause or worsen insomnia
Hormones strongly influence sleep regulation. Changes in estrogen, progesterone, thyroid hormones, cortisol, and even melatonin can alter sleep architecture, continuity, and circadian timing. I think of hormonal insomnia as biological, but it often triggers or amplifies anxiety or habit disruptions.
Menstrual cycle and premenstrual sleep changes
I note that many people experience sleep disturbance in the luteal phase (the week before menses), when progesterone and estrogen fluctuate. Premenstrual sleep complaints can include difficulty falling asleep, more awakenings, or nonrestorative sleep. Severe premenstrual mood disturbance (PMDD) frequently co-occurs with insomnia.
Pregnancy and postpartum sleep disruption
During pregnancy, especially the third trimester, enlarged uterus, reflux, nocturia, fetal movement, and musculoskeletal pain commonly fragment sleep. Postpartum insomnia is often a mix of biologic sleep interruption from infant care and heightened anxiety or mood symptoms. I pay attention to feeding patterns and safety when advising sleep strategies here.
Perimenopause and menopause: hot flashes and sleep
As estrogen levels decline in perimenopause and menopause, hot flashes and night sweats frequently fragment sleep. I find that the timing of hot flashes often causes middle-of-night awakenings, and the resulting sleep disruption can worsen mood and daytime functioning.
Thyroid and other endocrine causes
Hyperthyroidism can increase sympathetic activity and impair sleep, leading to insomnia and fragmented sleep. Cortisol dysregulation (Cushing’s or chronic stress) can also increase arousal and disturb sleep timing. I screen for symptoms like palpitations, weight changes, and sweating to consider endocrine testing.

Poor nighttime habits and how they create insomnia
Behavioral factors are often the most modifiable contributors. I refer to “poor nighttime habits” as inconsistent sleep schedule, excessive screen time before bed, late caffeine or alcohol, long naps late in the day, exercising too late, and using the bed for activities other than sleep or sex. Over time these behaviors weaken the association between bed and sleep and shift circadian timing.
Behaviors I commonly see
I frequently observe people:
- Using phones or laptops in bed until lights out.
- Napping for long periods in the late afternoon.
- Going to bed at very different times across the week.
- Drinking caffeine in the late afternoon or evening.
- Associating the bed with work or worry.
I find that changing these habits consistently can produce substantial improvements for many people.
How I differentiate anxiety, hormonal, and habit-based insomnia
It can be hard to tell which factor is primary. I rely on the pattern of symptoms, timing, associated signs, and response to initial interventions. The following table summarizes features I use to distinguish likely causes.
| Key feature | Anxiety-driven insomnia | Hormone-driven insomnia | Habit-driven insomnia |
|---|---|---|---|
| Typical timing | Worst at sleep onset; rumination before bed | Linked to cycle stages, pregnancy stages, or menopause; may be middle-of-night with hot flashes | Varies; often weeks to months of inconsistent schedule or late screen use |
| Common sleep pattern | Long sleep latency; recurrent worry | Middle-of-night awakenings; early morning waking; fragmented sleep | Variable latency and continuity; sleep schedule drift; excessive daytime sleepiness if naps |
| Daytime symptoms | High daytime worry, tension, concentration problems | Vasomotor symptoms, menstrual symptoms, pregnancy-related issues, thyroid signs | Daytime sleepiness, reduced performance, irregular energy patterns |
| Response to relaxation | Often improves with CBT or relaxation | May not fully respond until hormonal issue treated | Often improves quickly with sleep-schedule consistency |
| Physical signs | Muscle tension, autonomic symptoms | Night sweats, hot flashes, palpitations, menstrual changes | Often none specific; behavioral clues present |
| When to test | Consider psych screening (GAD-7, PHQ-9) | Consider hormones (TSH, progesterone/estradiol in complex cases) | Behavioral assessment and sleep diary usually sufficient |
I use this table as a guide, not a diagnostic rule; many people have overlaps, and more than one factor can be relevant.
Assessment steps I recommend
I begin with a focused sleep history, then use targeted questions and simple tools. I prioritize ruling out dangerous or treatable medical causes (sleep apnea, restless legs, thyroid disease). I also screen for mood disorders and substance use.
Practical assessment items I use
- Sleep complaint specifics: onset, duration, frequency, pattern.
- Bedtime routine and sleep environment.
- Daytime functioning and fatigue.
- Caffeine, alcohol, nicotine, and medication/substance use.
- Menstrual/pregnancy/menopausal history and timing.
- Medical problems (pain, reflux, nocturia) and medications.
- Screening questionnaires: Insomnia Severity Index (ISI), GAD-7 for anxiety, PHQ-9 for depression.
- Sleep diary for 1–2 weeks; actigraphy if circadian or objective timing needed.
Sleep diary template I suggest
I use a simple daily table to capture patterns. I recommend filling it every morning.
| Date | Bedtime | Lights-out time | Time to fall asleep (min) | Number of awakenings | Total awake time during night (min) | Final wake time | Time out of bed | Total sleep time (estimated) | Naps (duration, time) | Caffeine/alcohol (time & amount) |
|---|---|---|---|---|---|---|---|---|---|---|
| Example | 11:00 pm | 11:15 pm | 45 | 2 | 60 | 6:00 am | 6:15 am | 5 hrs | 20 min nap at 3 pm | 1 coffee at 2 pm |
I find the diary invaluable to detect patterns: later bedtimes, long time-to-sleep, nap timing, or frequent nocturnal awakenings.

Treatment approaches I use, tailored to cause
I typically combine behavioral, psychological, and medical strategies as needed. Below I outline the main effective approaches and how I apply them depending on the suspected driver.
Cognitive Behavioral Therapy for Insomnia (CBT-I)
I consider CBT-I the first-line treatment for chronic insomnia regardless of cause. It includes:
- Sleep restriction (consolidate sleep to increase sleep pressure).
- Stimulus control (use bed only for sleep and sex, leave bed when unable to sleep).
- Sleep hygiene education.
- Cognitive therapy (challenge sleep-related beliefs and worry).
- Relaxation techniques.
I find CBT-I produces durable results and often reduces the need for long-term medication.
Strategies specific to anxiety-related insomnia
For anxiety-driven insomnia I combine CBT-I with targeted anxiety treatments:
- Scheduled worry time during the day to contain nighttime rumination.
- Cognitive restructuring to reframe catastrophic thoughts about sleep.
- Progressive muscle relaxation or guided imagery before bed.
- Brief exposure-based approaches for anticipatory anxiety if relevant.
I often recommend practicing relaxation skills for several weeks and monitor changes in sleep latency and sleep-related worry.
Strategies specific to hormonal-related insomnia
When hormones are a major contributor, I address the underlying hormonal issue and use symptom-targeted strategies:
- For perimenopause/menopause: consider hormonal therapy discussion with a clinician, non-hormonal options like SSRIs or gabapentin for vasomotor symptoms, and cooling bedding or lower room temperature to reduce night sweats.
- For pregnancy: optimize comfort (positioning, pillow support), manage reflux and nocturia, and use safer behavioral strategies since many medications are contraindicated.
- For thyroid dysfunction: refer for thyroid function testing (TSH, free T4) and appropriate endocrine treatment if abnormal.
I pay attention to the appropriateness and safety of pharmacologic options, especially in pregnancy and breastfeeding.
Strategies specific to habit-driven insomnia
If habits are the main issue, I prioritize behavioral restructuring:
- Fixed wake-up time every day (including weekends).
- Limit time in bed to true sleep opportunity (sleep restriction) to build sleep pressure.
- No screens 60–90 minutes before bed; create a wind-down routine.
- Avoid late caffeine or heavy evening meals; limit alcohol close to bedtime.
- Make the bedroom cool, dark, and quiet; use blackout curtains and white noise if needed.
I find that when habits are corrected, sleep often normalizes within 1–4 weeks.
Quick comparison: expected timeframes for improvement
I often tell people what to expect. The following table summarizes typical response times.
| Intervention type | Typical onset of benefit | Durability |
|---|---|---|
| Behavioral changes (sleep schedule, stimulus control) | Days to 2–4 weeks | Durable if maintained |
| CBT-I | 4–8 weeks for major improvement | Very durable; effects last months to years |
| Relaxation and breathing | Immediate calming; modest sleep gains | Helpful adjunct |
| Hormone therapy (when indicated) | Days to weeks (varies by therapy) | Depends on ongoing treatment |
| Medications (hypnotics) | Immediate | Often effective short-term; risks with long-term use |
I use these timelines to set expectations and to avoid premature switching of strategies.
Practical nightly strategies I use when I can’t sleep
When I can’t sleep tonight, I follow simple rules that often prevent escalation:
- If I can’t fall asleep after 20 minutes, I get out of bed and do a quiet, non-stimulating activity (reading a dim book, gentle stretching) and return when sleepy. This follows stimulus control.
- I avoid screens and bright lights during awakenings because blue light and stimulating content reset arousal and circadian cues.
- I practice a brief relaxation technique — diaphragmatic breathing or progressive muscle relaxation — for 10 minutes to reduce physiological arousal.
- I avoid clock-watching, which increases anxiety; I turn the clock away or cover it.
- I avoid alcohol as a sleep aid because it fragments later sleep.
- I keep a pad next to my bed to jot down urgent thoughts to address the next day (a version of worry-scheduling).
I use these techniques nightly until sleep begins to normalize.
Medication: when I consider it and what I watch for
I view medications as helpful short-term adjuncts in certain cases: severe acute sleep loss, high safety-sensitive daytime functioning required, or when other treatments are delayed/unavailable. Options can include short-term benzodiazepines, non-benzodiazepine hypnotics, sedating antidepressants, or low-dose sedating antipsychotics — each with trade-offs. I emphasize:
- Use medications at the lowest effective dose and shortest duration.
- Reassess regularly and plan a strategy for tapering.
- Avoid long-term benzodiazepines due to dependence and cognitive effects.
- Consider melatonin (0.5–3 mg) for circadian-related problems or as a short-term sleep aid, noting variable efficacy for sleep-onset insomnia.
I always evaluate for interactions and contraindications, particularly with pregnancy, breastfeeding, and older adults.
When I suspect sleep apnea, restless legs, or another medical disorder
If I detect symptoms suggesting obstructive sleep apnea (loud snoring, witnessed apneas, daytime sleepiness, morning headaches), restless legs syndrome (evening leg discomfort, urge to move), periodic limb movements, or chronic pain that fragments sleep, I refer for further evaluation. Diagnostic studies like polysomnography or actigraphy can clarify the problem, and medical treatment (CPAP for apnea, iron/meds for restless legs) can significantly improve sleep.
When I recommend professional help immediately
I advise immediate medical or psychiatric contact if:
- There is suicidal thinking or severe worsening of mood.
- There are signs of a medical emergency.
- Daytime functioning is dangerously impaired (e.g., accidents, falling asleep while driving).
- Insomnia persists despite self-help measures for several weeks and severely affects quality of life.
I encourage prompt evaluation because early treatment prevents chronic patterns and reduces the need for long-term medication.
How I measure progress and set realistic expectations
I monitor sleep efficiency (time asleep divided by time in bed) and symptom changes using the sleep diary and ISI scores. My goals are incremental: reduce sleep latency, reduce awakenings, improve daytime alertness, and reach sleep efficiency above 85–90%. I explain that CBT-I typically requires 4–8 weeks of work and that medications usually offer short-term relief while behavioral therapies build durable change.
My stepwise plan I typically recommend
When I see someone with insomnia, I follow a clear plan:
- Conduct a focused history and screening questionnaires (sleep diary for 1–2 weeks).
- Screen for medical causes and refer for testing (TSH, polysomnography) if indicated.
- Begin behavioral interventions immediately: consistent wake time, stimulus control, no screens before bed, limit caffeine late-day.
- Start CBT-I or refer to a trained therapist; teach relaxation techniques.
- Address comorbid anxiety with targeted therapy if anxiety is prominent.
- If hormones appear causal, coordinate with the appropriate clinician for hormonal evaluation/treatment.
- Consider short-term medication for severe impairment while pursuing behavioral therapy.
- Reassess in 4–8 weeks and adjust.
I find that having a plan reduces frustration and clarifies next steps.
Practical sleep-habit checklist I give people
I give a practical checklist that I encourage people to follow consistently. I ask them to try it for 4 weeks before deciding whether it helped.
| Habit | Target |
|---|---|
| Wake time | Same time every day (±15 minutes) |
| Bedtime | Go to bed only when sleepy; avoid forcing sleep |
| Bed use | Bed = sleep and sex only |
| Light exposure | Bright light in morning; dim lights at night; no screens 60–90 min before bed |
| Caffeine | Avoid after 2 pm (adjust based on sensitivity) |
| Alcohol | Avoid as a sleep aid; limit within 3–4 hours of bedtime |
| Naps | Limit to 20–30 min and before 3 pm |
| Exercise | Prefer earlier in the day; avoid intense exercise within 2–3 hours of bed |
| Bedroom | Cool, dark, quiet, comfortable mattress and pillow |
| Wind-down | 30–60 min relaxing routine (reading, warm shower, gentle stretching) |
I encourage tracking adherence and noting changes in sleep parameters.
My final thoughts
I rarely find that insomnia stems from a single simple cause. Anxiety, hormones, and habits frequently interact in ways that sustain sleeplessness. I favor a structured assessment, targeted interventions, and clear timelines. Behavioral interventions, especially CBT-I and sleep-schedule restructuring, are central to my approach and are often combined with anxiety-focused work or hormone-directed treatment when appropriate.
If I had to summarize the practical takeaways I use in clinical practice:
- First, document patterns with a sleep diary and look for clues in timing and associated symptoms.
- Second, apply straightforward behavioral fixes immediately: consistent wake time, stimulus control, and reduced evening stimulation.
- Third, use CBT-I as a core long-term strategy; combine it with anxiety treatment or hormonal care when the history suggests those drivers.
- Fourth, use medications cautiously and short-term when needed for acute impairment.
- Finally, seek evaluation for medical disorders like sleep apnea or thyroid disease when symptoms point that way.
I know how frustrating sleepless nights are, and I find that a systematic approach gives me and the people I work with a clear path from confusion to better sleep. If I were managing my own insomnia, I would begin with a sleep diary, make immediate behavioral adjustments, practice a nightly relaxation routine, and consult a clinician if the problem persisted despite these efforts.