Can't fall asleep, waking at night, never feeling rested: what causes insomnia?

Insomnia means trouble falling asleep, waking in the night and not getting back to sleep, or waking too early, in a way that affects your energy and mood during the day. If it happens 3 or more nights a week for 3 months, it counts as chronic insomnia. The most common driver is stress keeping the brain on alert at night, along with irregular schedules, screens before bed, caffeine and alcohol. Hormone changes, blood sugar swings, pain and sleep apnea often play a part too.
Does this sound familiar?
- You lie down for over 30 minutes and still can't sleep. Your mind feels like it's in a meeting
- You wake up on your own at 3 or 4 a.m. and can't get back to sleep
- You sleep lightly and wake at the slightest sound
- You get a full 7 or 8 hours and still can't get out of bed in the morning
- The closer it gets to bedtime, the more anxious you feel about another bad night
- You need a drink, a show or a pill to fall asleep
What is insomnia?
Sleep is driven by two forces. One is "sleep pressure": the longer you're awake, the sleepier you get. The other is your "body clock," set by light and routine, which decides when you should sleep and when you should wake. A third player is the brain's alert system, which keeps you awake when you're under stress.
Picture a city getting ready to turn off its lights for the night. Sleep pressure is the tiredness built up over the day, the body clock is the streetlight timer, and the alert system is the alarm. If enough tiredness builds up and the timer runs on time, the city can go quiet. If the alarm keeps ringing, or the timer gets thrown off, you can't sleep no matter how tired you are. For many people with chronic insomnia, the alarm simply won't switch off at night.
Common causes: a functional medicine view
| Area | What may be happening |
|---|---|
| Stress axis | Cortisol is normally high in the morning and low at night. Long-term stress may keep nighttime cortisol from dropping, so the brain stays on alert |
| Body clock | Too little daylight, bright light and screens at night, and catching up on sleep at weekends can push your rhythm later |
| Blood sugar | A late or heavy dinner, or a drop in blood sugar overnight that triggers stress hormones, may wake you in the middle of the night |
| Nutrients | Magnesium, vitamin B6 and others are involved in nerve relaxation and the pathway that makes melatonin. Research is still clarifying how low levels relate to sleep |
| Thyroid | An overactive thyroid can cause palpitations, frequent waking and shallow sleep |
| Hormones | Hot flashes and night sweats around menopause, and hormone shifts before a period, often disrupt sleep |
| Gut | Acid reflux and bloating at night get worse when you lie down |
| Breathing and pain | Sleep apnea, chronic pain and waking to urinate all break sleep into pieces |
| Stimulants | Caffeine can keep working for hours. Alcohol helps you fall asleep but makes sleep lighter in the second half of the night |
How it shows up
- Trouble falling asleep: it takes a long time after lying down, and the harder you try, the more awake you feel
- Trouble staying asleep: you wake several times a night, or take a long time to fall back asleep
- Waking too early: you wake an hour or two before you planned and can't drift off again
- Daytime effects: tiredness, poor focus, irritability, headaches, sensitivity to noise and light
Who is more likely to have insomnia?
- People under heavy work stress who are still answering messages at night
- Shift workers and people who often travel across time zones
- Women around menopause
- People prone to anxiety or depression, or going through a major life event
- People with chronic pain, acid reflux, or who wake up to urinate
- People who rely on alcohol or screens to wind down and fall asleep
Quick self-check
Keep a sleep diary for two weeks in a row (when you go to bed, roughly when you fall asleep, how often you wake, when you get up, and how alert you feel during the day). Then check it against the following:
- 3 or more nights a week, it takes you over 30 minutes to fall asleep
- 3 or more nights a week, you wake in the night and take over 30 minutes to get back to sleep
- You wake an hour or more earlier than planned
- Your energy, mood or work during the day is clearly affected
- This has been going on for 3 months or more
- Your family says you snore loudly or stop breathing in your sleep
If several of the first five apply, we suggest talking with a doctor. If the last one applies, please make a sleep breathing assessment your first priority.
See a doctor first if
- You snore loudly, someone has seen you stop breathing in your sleep, or you're so sleepy during the day that you nod off while driving or in meetings
- You behave unusually in your sleep, such as punching or kicking while dreaming, or sleepwalking
- Your legs feel unbearably uncomfortable at night and you have to keep moving them to feel better
- Insomnia comes with persistent low mood, loss of interest in things, or thoughts of harming yourself (in Taiwan you can call the 1925 mental health support line)
- You're taking sleeping pills or sedatives and want to change the dose or stop
- Insomnia comes with rapid weight loss, palpitations or shaky hands
5 things you can start with
- Keep a fixed wake-up time. It matters more than a fixed bedtime. Try to keep it the same at weekends too.
- Only go to bed when you feel sleepy. If you're still wide awake after 20 minutes, get up, do something quiet in dim light, and go back to bed when you feel sleepy. This is one of the core techniques of CBT-I.
- Get light in the morning, dim it at night. Get natural light after you wake up. An hour before bed, turn the lights down and put your phone away.
- Finish your coffee before noon, and don't use alcohol to help you sleep.
- Give your brain a "handover" time. Before bed, write down tomorrow's to-dos so your worries have somewhere to go.
The European insomnia guideline and the American College of Physicians both recommend cognitive behavioral therapy for insomnia (CBT-I) as the first-line approach for chronic insomnia. It takes a few weeks of practice before you see results.
How ĒSEN assesses sleep problems
On your first visit to ĒSEN, you can start with our first-visit appointment, which includes a 56-item core health check, an autonomic nervous system test, and a full 30-minute consultation with a physician. If you keep a sleep diary, please bring it along.
What your doctor will ask
- The pattern of your insomnia: trouble falling asleep, waking often, or waking early, and when it started
- Your daily schedule and work rhythm, bedtime habits, caffeine and alcohol
- Things that disturb sleep, such as snoring, waking to urinate, pain or hot flashes
- Your mood, and any medicines and supplements you're taking
Tests that may be arranged
Depending on your situation, your doctor may arrange functional medicine testing. This can include stress-axis markers such as morning cortisol, thyroid function, blood sugar, magnesium and B vitamin markers, and sex hormones. The actual tests are chosen by your doctor based on your situation. If sleep apnea is suspected and your doctor thinks it's needed, a 24-hour sleep test can be arranged, or you may be referred for a sleep study. The ĒSEN 360 Genetic Test can add information on genetic tendencies related to your body clock and stress response.
After the assessment
Your doctor will talk through the Sleep Program based on your results. The program runs in 90-day blocks, with physician follow-ups and check-ins from your health advisor, alongside a lifestyle plan covering four areas: mood, sleep, exercise and nutrition. To see how each stage is arranged, check the 90-day flow on the Sleep Program page. A psychologist can guide you through sleep-focused cognitive behavioral exercises. Whether you need a prescription or other in-clinic treatments is planned by your doctor based on your individual assessment. If your insomnia is closely tied to stress, you may also want to read about autonomic imbalance.
Related articles
- Stressed and sleeping badly: what's happening in your body
- Common symptoms of autonomic imbalance
- Fatigue
- Hormone imbalance
This article is for general health information and cannot replace an individual assessment by a physician. Whether a treatment is right for you will be assessed by a doctor at your consultation.
FAQ
How long do sleep problems have to last to count as insomnia?
Can I take sleeping pills long term?
Can melatonin help me sleep?
Is snoring related to insomnia?
How many hours of sleep do I need?
- Riemann D, Baglioni C, Bassetti C, et al. European guideline for the diagnosis and treatment of insomnia. Journal of Sleep Research. 2017;26(6):675-700.
- Qaseem A, Kansagara D, Forciea MA, et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Annals of Internal Medicine. 2016;165(2):125-133.
- Watson NF, Badr MS, Belenky G, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Sleep. 2015;38(6):843-844.
This is health education information. It does not replace a physician's diagnosis; whether a treatment is right for you needs a physician's assessment.

















