Clinical Insights • Sleep

Why Can’t I Sleep? Root Causes to Check Beyond Stress and Screens

Can’t fall asleep, or waking at 3 a.m.? Here’s how stress hormones, alcohol, caffeine, perimenopause, thyroid, iron, and sleep apnea disrupt sleep, and what to check first.


You went to bed on time. You skipped the late coffee. You put your phone down.

And you’re staring at the ceiling at 3 a.m. Again.

Maybe you even bought a sleep tracker, and now you have a graph telling you what you already knew: you slept badly.

If that’s you, I want to say this first: you’re not failing at sleep. Poor sleep almost always has a cause, and often more than one.

The tracker can tell you that it happened. It can’t tell you why.

This post covers the root causes I look at from a functional medicine and pharmacist perspective, what to ask your provider, and what actually helps. It’s educational and isn’t a substitute for care from your own healthcare team. Numbers in brackets point to the references at the end.

Man lying awake in bed at night next to a clock reading 2:06
Poor sleep almost always has a cause, and often more than one.
A Quick Word on Sleep Trackers
What They’re Good At

Spotting patterns, like how your sleep changes after alcohol or a late dinner. Consumer wearables are reasonably good at estimating when you’re asleep and awake.[1]

Where They Fall Short

They’re much less reliable at telling you which sleep stages you were in.[1] (More on the metric on your watch you probably shouldn’t trust.)

There’s also a downside. Some people become so focused on their sleep scores that the tracking itself increases worry about sleep, which can make sleep worse. Researchers even have a name for it: orthosomnia.[2] If your numbers are stressing you out, it’s fine to take a break from them.

Either way, a score isn’t a fix. Let’s look at what’s behind the problem.

The Functional Medicine Lens

The Root Causes I Look At

It’s common to find more than one. Here’s where I start.

Root Cause 1

Your Stress Rhythm

Tired all day, wired at bedtime.

Your cortisol is supposed to be highest in the morning and lowest at night. When that rhythm is off, you can feel tired during the day and wired at bedtime.

It’s also a loop. After a night of short sleep, evening cortisol runs higher the next day,[3] which makes it harder to fall asleep the next night. If you’re exhausted by day and wired at night, this is the first pattern I look at. (See HPA axis dysfunction and being told it’s “just stress”.)

Root Cause 2

Alcohol, Caffeine, and Evening Habits

The most common causes, and the most fixable.

🍷 Alcohol

It may help you fall asleep, but as it wears off it fragments sleep in the second half of the night and suppresses REM sleep.[4] If you wake at 2 or 3 a.m., alcohol is a common culprit, even after a drink or two. (See how alcohol quietly undermines recovery.)

☕ Caffeine

In one study, caffeine taken six hours before bed still cut total sleep by about an hour.[5] Many people are more sensitive than they realize, and sensitivity can change with age and hormones.

🥗 Dinner

In a small study, eating more sugar and saturated fat and less fiber was linked to lighter, less restorative sleep.[6] I focus on protein, fiber, and vegetables at dinner, and finishing a few hours before bed.

Root Cause 3

Light

Your body clock runs on it.

Evening light, including bright overhead lights and screens, suppresses melatonin and delays your body clock.[7] Dimming the lights and putting screens away about an hour before bed helps. Morning light matters just as much, because it anchors your rhythm for the whole day. More in how light runs your hormone clock.

Root Cause 4

Hormone Shifts

This is where functional medicine thinking helps, especially for women.

Sleep gets harder for many women during perimenopause and menopause, with night sweats, 3 a.m. wake-ups, and lighter sleep becoming much more common.[8] Progesterone has a calming effect on the brain and often declines first, and in a small randomized trial it improved sleep in postmenopausal women.[9] That’s one reason sleep can fall apart before periods stop. I cover this in my post on perimenopause symptoms that get missed.

For men, low testosterone and poor sleep affect each other, and sleep apnea (below) is a common overlap. (See what happens to your hormones when you don’t sleep.)

Root Cause 5

Thyroid

An easy blood test, and one of the first I check.

Both an overactive and an underactive thyroid can disrupt sleep, along with fatigue, mood, and weight changes.[10] An overactive thyroid often causes trouble falling asleep, a racing heart, and anxiety. Already on thyroid medication and still struggling? See why thyroid medication works better for some people than others.

Root Cause 6

Iron and Restless Legs

That urge to move your legs when you lie down.

An uncomfortable urge to move your legs at night, especially when you lie down, could be restless legs syndrome, which is linked to low iron stores. Guidelines recommend checking ferritin and treating low iron under a provider’s guidance.[11]

Pharmacist Note

Ask for your actual ferritin number, not just “normal.” More on the hidden causes of anemia.

Root Cause 7

Sleep Apnea

Unrefreshed no matter how long you’re in bed.

Sleep apnea causes repeated pauses in breathing at night, so you wake unrefreshed no matter how many hours you spend in bed.[12] It’s not only in men. Women more often describe insomnia, morning headaches, low mood, and fatigue rather than loud snoring, so it’s frequently missed.[13]

A simple screening questionnaire can tell you whether a sleep study is worth doing.

Root Cause 8

Medications and Supplements

As a pharmacist, I always check this layer.

Some common medicines and products can interfere with sleep, including stimulant medications, decongestants, steroids, some antidepressants, and some supplements.

Pharmacist Tip

If your sleep changed around the time you started or changed something, tell your provider or pharmacist. Please don’t stop any medication on your own.

Spot Your Pattern

What’s Waking You Up? A Rough Guide

This isn’t a diagnosis, but it can help you notice a pattern:

What You NoticePossible Contributors to Ask About
Can’t fall asleep, wired at nightStress rhythm, evening caffeine, bright light, thyroid
Waking at 2 to 4 a.m.Alcohol, blood sugar swings, stress hormones, perimenopause
Waking hot or sweatyPerimenopause, thyroid, medications
Restless legs or twitchingLow iron, medications
Snoring, gasping, morning headachesSleep apnea
Sleeping 8 hours but waking unrefreshedSleep apnea, thyroid, iron, B12, depression
Cover of The Sleep Solution, a free guide from Farmacy Counter
Free Guide • Sleep

Ready to Fix Your Sleep?

If you’re doing everything right and still waking up at 3 a.m., start with my free Sleep Solution. It walks you through the foundations of better sleep, so you know what to change first.

The Whole Picture

What I Look At

When someone says they can’t sleep, I look at the pattern:

  1. 1

    Your Sleep Story

    When you fall asleep, when you wake, snoring, night sweats, and how you feel in the morning.

  2. 2

    Targeted Labs

    Thyroid with antibodies, ferritin with a complete blood count, B12, vitamin D, fasting glucose and insulin, A1c, and hormones when the story fits. Sometimes I also look at cortisol rhythm across the day.

  3. 3

    A Sleep Apnea Screen

    A quick questionnaire, and a sleep study when it points that way.

  4. 4

    Your Habits and Medications

    Caffeine, alcohol, evening light, meal timing, and what you take.

  5. 5

    Your Stress Load

    Work, family, caregiving, and whether you ever get a real break.

Four Working Patterns

I also use my four working patterns to organize what I find:

Dysregulated Rhythm

Wired at night, tired by day, 3 a.m. wake-ups, sleep that isn’t restful

Deficiency & Depletion

Fatigue, restless legs, low iron or nutrients

Traffic Misdirection

Blood sugar swings, cravings, stubborn weight

Overloaded Clearance

Alcohol hitting harder, bloating, puffiness

These are clues that organize questions. They don’t diagnose a cause.

Start With a Few

What Actually Helps

You don’t need a perfect routine. Start with a few of these:

  • A steady bedtime and wake time, including weekends.
  • Morning light. Get outside early.
  • Dim the lights and put screens away about an hour before bed.
  • Cut off caffeine earlier than you think you need to, and go easy on alcohol.
  • Finish dinner a few hours before bed, protein-forward with fiber.
  • Keep your room cool and dark.
  • A wind-down you enjoy. A shower, stretching, or reading.
  • Targeted support, with your provider. Magnesium, melatonin, and others may help some people, but check first if you take medications or have a health condition. (See why you can’t supplement your way past a sleep problem.)
The Magnesium I Carry

If you and your provider decide magnesium is a fit, this is the one I use. Check first if you take medications or have kidney disease.

Products shown are available through my Fullscript dispensary. Farmacy Counter may earn a commission on purchases.

When Habits Aren’t Enough

If you have trouble sleeping at least three nights a week for three months or longer, that’s chronic insomnia. The recommended first-line treatment is cognitive behavioral therapy for insomnia (CBT-I), and its benefits tend to last longer than sleep medications.[14] Ask your provider about finding it.

When to Talk to Your Provider

Please talk with your healthcare provider if you snore loudly or gasp at night, wake unrefreshed no matter how long you sleep, fall asleep during the day, or have persistent insomnia. And if poor sleep is weighing on your mood, bring that up too.

There’s Usually a Reason

Sleep Doesn’t Fall Apart for No Reason

When you find the cause, whether it’s your stress rhythm, your hormones, your iron, or your thyroid, things often change.

If you haven’t yet, start with the free Sleep Solution above. And if you’d rather talk through what’s been going on, I offer a free discovery call. No pressure, just a conversation about whether functional medicine is the right next step for you.

Book Your Free Discovery Call →

To your health and vitality, Dr. Ryan

Common Questions

Frequently Asked Questions

Why do I keep waking up at 3 a.m.?

Common contributors include alcohol wearing off, blood sugar swings, an off-rhythm stress response, and perimenopause. Sleep apnea and thyroid changes can also play a role, so it’s worth looking at the pattern with your provider.

Are sleep trackers accurate?

Consumer wearables are reasonably good at estimating when you’re asleep and awake, but much less reliable at identifying sleep stages. They’re best for spotting patterns, not diagnosing problems.

How late can I have caffeine and still sleep well?

In one study, caffeine taken six hours before bed still reduced total sleep by about an hour, so many people do better cutting off caffeine by early afternoon.

Can perimenopause cause insomnia?

Yes. Sleep problems become much more common in perimenopause and menopause, including night sweats, 3 a.m. wake-ups, and lighter sleep, and they can start before periods stop.

What is the best treatment for chronic insomnia?

Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line treatment for chronic insomnia in adults, and its benefits tend to last longer than sleep medications.

For educational purposes only. Not a diagnosis, and not a substitute for care from your healthcare provider. Talk with your provider before starting, stopping, or changing any medication or supplement.

References
  1. de Zambotti M, Cellini N, Goldstone A, Colrain IM, Baker FC. Wearable sleep technology in clinical and research settings. Med Sci Sports Exerc. 2019;51(7):1538–1557.
  2. Baron KG, Abbott S, Jao N, Manalo N, Mullen R. Orthosomnia: are some patients taking the quantified self too far? J Clin Sleep Med. 2017;13(2):351–354.
  3. Leproult R, Copinschi G, Buxton O, Van Cauter E. Sleep loss results in an elevation of cortisol levels the next evening. Sleep. 1997;20(10):865–870.
  4. Ebrahim IO, Shapiro CM, Williams AJ, Fenwick PB. Alcohol and sleep I: effects on normal sleep. Alcohol Clin Exp Res. 2013;37(4):539–549.
  5. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195–1200.
  6. St-Onge MP, Roberts A, Shechter A, Choudhury AR. Fiber and saturated fat are associated with sleep arousals and slow wave sleep. J Clin Sleep Med. 2016;12(1):19–24.
  7. Gooley JJ, Chamberlain K, Smith KA, et al. Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans. J Clin Endocrinol Metab. 2011;96(3):E463–E472.
  8. Baker FC, de Zambotti M, Colrain IM, Bei B. Sleep problems during the menopausal transition: prevalence, impact, and management challenges. Nat Sci Sleep. 2018;10:73–95.
  9. Caufriez A, Leproult R, L’Hermite-Balériaux M, Kerkhofs M, Copinschi G. Progesterone prevents sleep disturbances and modulates GH, TSH, and melatonin secretion in postmenopausal women. J Clin Endocrinol Metab. 2011;96(4):E614–E623.
  10. Green ME, Bernet V, Cheung J. Thyroid dysfunction and sleep disorders. Front Endocrinol (Lausanne). 2021;12:725829.
  11. Allen RP, Picchietti DL, Auerbach M, et al. 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 Med. 2018;41:27–44.
  12. Jordan AS, McSharry DG, Malhotra A. Adult obstructive sleep apnoea. Lancet. 2014;383(9918):736–747.
  13. Kapsimalis F, Kryger MH. Gender and obstructive sleep apnea syndrome, part 1: clinical features. Sleep. 2002;25(4):412–419.
  14. Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Ann Intern Med. 2016;165(2):125–133.