Why can't I sleep? What causes insomnia, and the tests that check the medical causes

Most nights you can't sleep come from stress, caffeine, alcohol, screens or an irregular schedule, and when it lasts for months the first treatment is a short course of therapy, not a pill or a blood test.

Reviewed by LifeFrom’s medical AIPublished November 11, 2026 · 13 min read
Ask AI about this pageChatGPTClaudePerplexity
The distinctions
  1. 01
    A bad week is not chronic insomnia

    A few rough nights from stress or a schedule change is short-term insomnia and usually settles when the trigger passes. Insomnia 3 or more nights a week for more than 3 months is chronic insomnia, and by then the sleeplessness keeps itself going through worry about sleep and habits built around it, which is why its first treatment is CBT-I rather than more sleep hygiene tips.

  2. 02
    Blood tests look for causes, not for insomnia

    No blood test shows insomnia. Tests can find a medical cause that keeps you up, such as an overactive thyroid, low iron behind restless legs, or high blood sugar that wakes you to pee, and a sleep study, not a blood test, checks for sleep apnea.

Most of the time you can't sleep because of something in the day or the bedroom: stress and worry, caffeine, alcohol or nicotine, screens late at night, an irregular schedule or shift work, or a room that is noisy, bright, hot or cold. 25 When it keeps happening 3 or more nights a week for more than 3 months, it is called chronic insomnia, and the first treatment US guidelines recommend is cognitive behavioral therapy for insomnia (CBT-I), a short program that retrains sleep habits and the worry around them. 167 Medical causes, such as depression, menopause, sleep apnea (breathing that stops and starts in sleep), restless legs, an overactive thyroid and diabetes, are worth checking when the everyday causes don't explain it. 581112

When to get help now

Most sleepless nights are not dangerous. These are the exceptions.

Call 911 or your local emergency number
  • Thoughts of harming or killing yourself: call or text 988, the Suicide and Crisis Lifeline, or 911 if you are in danger now 9
  • Sleeplessness with a racing heart, chest pain or trouble breathing
See a doctor soon, the same day if you can
  • Falling asleep or nodding off while driving
  • Loud snoring with gasping, choking or pauses in breathing that someone has noticed 8
  • Low mood, loss of interest or hopelessness lasting more than 2 weeks 9
  • Several days with almost no sleep, racing thoughts and unusual energy
  • A racing heart, shaky hands and weight loss you can't explain along with poor sleep 11

LifeFrom can't examine you or assess a symptom. If something feels seriously wrong, trust that and get care rather than waiting on a test.

What counts as insomnia, and how much sleep is normal?

Insomnia means trouble falling asleep, staying asleep or getting good-quality sleep even though you have the time and a decent place to sleep. 1 The NHS lists the signs: finding it hard to go to sleep, waking several times in the night, lying awake, waking early and not getting back to sleep, and feeling tired, irritable and unable to concentrate the next day. 5 On average adults need 7 to 9 hours, and the NHS puts the test plainly: "You probably do not get enough sleep if you're constantly tired during the day." 5

Length is what separates a rough patch from a problem. Short-term insomnia follows stress or a change in schedule or environment and lasts days or weeks. 1 The NHLBI defines chronic insomnia as sleeplessness that "occurs 3 or more nights a week, lasts more than 3 months, and cannot be fully explained by another health problem." 1 By then the original trigger has often faded, and what keeps it going is worry about sleep, clock-watching and habits built around bad nights. 2 That is the one distinction to hold on to: chronic insomnia is treated with CBT-I, a structured program, while the everyday causes are fixed by changing the day.

Short-term insomnia or chronic insomnia?

Short-term insomniaUsually settles once the trigger passes
Days to weeks
How longDays or weeks, under 3 months 15
Typical triggerStress, a schedule change, travel, a new environment 1
First stepSleep habits and dealing with the trigger 5
When to see someoneIf habits don't help or you can't cope 5
Chronic insomnia✓ Ask about CBT-I
3+ nights a week for 3+ months
How long3 or more nights a week for more than 3 months 1
Typical triggerOften gone; worry about sleep and habits keep it going 2
First stepCBT-I, the first-line treatment in US guidelines 67
When to see someoneNow, with a 1 to 2 week sleep diary 3
Definitions from the NHLBI and NHS; treatment order from the American College of Physicians (2016) and American Academy of Sleep Medicine (2021) guidelines.

What can cause it, most likely first

Ranked from most to least likely in adults in general. The order shifts with age, sex and history: menopause moves up for women in their 40s and 50s, sleep apnea for people who snore, and medicines for anyone who started one recently.

  1. 01
    Stress, worry and racing thoughtsEverydaycommon

    Stress about work, money, relationships or a loss raises the risk of insomnia, and the NHLBI adds that worrying about whether you will sleep and watching the clock can start insomnia or make it worse. 2 This is the most common way a few bad nights turn into many. No blood test checks it; a conversation with a clinician, and CBT-I, address it. 4

  2. 02
    Caffeine, alcohol, late screens and a disruptive bedroomEverydaycommon

    Caffeine, nicotine, alcohol and recreational drugs all raise the risk of sleep problems, and so does watching TV or using devices close to bedtime. 2 The NHS suggests no alcohol, tea or coffee for at least 6 hours before bed and no devices right before it, "because the blue light makes you more awake." 5 Alcohol can make you drowsy at first but is still on the NHS list of insomnia causes. 5 Noise or light at night, a room that is too hot or cold, and being woken often, for example to care for a baby, disturb sleep too, and the NHS lists an uncomfortable bed among the common causes. 25 These are the easiest causes to test: change one thing for a week and see.

  3. 03
    Irregular schedule, naps, shift work and jet lagEverydaycommon

    Changing your sleep schedule often, long daytime naps and too little activity during the day all raise the risk of sleep problems. 2 Shift or night work and frequent travel across time zones disturb the sleep-wake cycle, the body's daily timing pattern. 2 A sleep calculator can help you plan a bedtime around a fixed wake-up time.

  4. 04
    Chronic insomnia disorderMedicalcommon

    When trouble sleeping happens 3 or more nights a week for more than 3 months and no other health problem fully explains it, it is chronic insomnia in its own right. 1 Insomnia is more common in women and becomes more likely with age, and it sometimes runs in families. 2 No blood test shows it; a clinician diagnoses it from your history and a sleep diary. 3

  5. 05
    Depression and anxietyMedicalcommon

    The NHS lists stress, anxiety and depression as the most common causes of insomnia. 5 The NIMH lists "difficulty sleeping, waking too early in the morning, or oversleeping" among the symptoms of depression, alongside low mood, loss of interest and fatigue. 9 No blood test checks for depression; a clinician does, with questions. If low mood comes with thoughts of harming yourself, call or text 988. 9

  6. 06
    Medicines, pain and other health problemsEverydaycommon

    The NHS notes that many medicines can cause insomnia, and the NHLBI names some cold and allergy medicines as examples. 45 Long-term pain keeps people awake, and so do conditions such as Parkinson's disease. 5 If the sleeplessness started around the time a medicine did, raise it with the prescriber; do not stop a medicine on your own.

  7. 07
    Perimenopause and menopauseMedicalcommon

    Hormone changes in pregnancy and menopause can cause sleep problems. 2 MedlinePlus lists sleeping problems among the common symptoms of menopause, along with hot flashes and night sweats that wake people in the night. 10 Menopause is usually recognized from age and periods; hormone tests can support it. 10

    FSH
    A high FSH (follicle stimulating hormone) fits menopause; in perimenopause it swings from month to month, so one normal result doesn't rule it out. 10
    Estradiol
    A low estradiol with a high FSH fits menopause; a single result while periods continue says little. 10
  8. 08
    Sleep apneaMedicalless common

    In sleep apnea, breathing stops and starts during sleep. The NHLBI lists frequent loud snoring, gasping for air, daytime sleepiness, morning headaches, insomnia (more common in women) and "waking up often during the night to urinate" among its symptoms. 8 You may not know you snore or gasp until someone tells you. 8 No blood test checks it; a sleep study does. 3

  9. 09
    Restless legsMedicalless common

    Restless legs syndrome, an urge to move the legs that is worst in the evening and eases with movement, is a known cause of insomnia. 5 It is linked with low iron, and sedating antihistamines in some over-the-counter sleep aids can make it worse. 4 See restless legs for the iron numbers sleep doctors use; iron itself is a clinician's decision after a test.

    Ferritin
    A low ferritin points to low iron stores, which are linked with restless legs; the sleep guideline uses a higher cutoff than many labs, so a result inside the lab's normal range can still matter. See restless legs.
  10. 10
    Diabetes and high blood sugarMedicalless common

    Diabetes causes increased urination and thirst, so it can wake you to pee in the night; sleep apnea can too. 812 Waking to pee has many everyday reasons, such as drinking late in the evening, so a blood sugar test is one check among several, not the first explanation.

    Fasting glucose
    A high fasting glucose points to diabetes or prediabetes, one reason for waking to pee at night. 12 See blood sugar explained.
    HbA1c
    A high HbA1c points to blood sugar that has run high over the past 2 to 3 months; it needs no fasting. See prediabetes.
  11. 11
    An overactive thyroidMedicalrare

    An overactive thyroid can bring "nervousness, irritability, trouble sleeping," but it rarely shows up as poor sleep alone: the NIDDK lists weight loss despite a bigger appetite, a fast or irregular heartbeat, shaky hands and trouble with heat alongside it. 11 Most people who can't sleep have a normal thyroid; a TSH is worth asking about when those other signs are there too.

    Can be linked with Hyperthyroidism

    TSH
    A low TSH (thyroid stimulating hormone) points to an overactive thyroid; a high free T4 with it fits. 11 High-dose biotin can make TSH look falsely low. See how to read your thyroid panel.

These are things a symptom like this can be linked with, not a diagnosis. Several can sit together, and a clinician who knows your history puts them in order for you.

What to do when you can't sleep tonight

The most searched question about sleep is the simplest one: what to do at 2am when you are wide awake. The advice from CBT-I is counterintuitive. Lying in bed trying harder tends to teach the brain that bed is a place for worrying, so the stimulus control part of CBT-I helps you "link being in bed with being asleep." 4 In practice:

  1. 1Stop checking the clockWatching the clock and worrying about how much sleep you are losing feed insomnia. 2 Turn the clock away.
  2. 2Get up if you can't settleIf you can't sleep, get out of bed and do something calm in low light, such as reading on paper, until you feel sleepy. The NHLBI describes this as "getting out of bed if you cannot sleep." 4
  3. 3Keep screens awayPhones, tablets and TV close to bedtime make you more alert. 25
  4. 4Go back to bed only when sleepyThe NHS advice is to go to bed only when you are sleepy. 5
  5. 5Get up at the usual time anywayDon't sleep in after a bad night, and skip the daytime nap; the NHS says to stick to your regular sleeping hours instead. 5

Why do I wake up at 3am?

Waking in the night and waking early without getting back to sleep are both standard insomnia symptoms, not a separate condition. 5 The usual reasons are the same everyday ones: stress, alcohol in the evening, a warm or noisy room, a full bladder or pain. 25 A few medical patterns are worth knowing. Menopause brings hot flashes and night sweats that wake people. 10 Sleep apnea causes repeated waking, often with a need to urinate. 8 And early waking with low mood and loss of interest is one of the listed signs of depression, which the NIMH describes as "waking too early in the morning." 9

Tired but can't sleep: why both happen at once

Feeling exhausted and being able to fall asleep are controlled by different things. A worn-out body can sit alongside an alert mind, which is why stress, worry about sleep and caffeine taken earlier in the day can keep you awake when you feel drained. 2 If you are tired every day even after reasonable nights, the cause may not be the sleep at all: fatigue covers low iron, thyroid problems and the other causes, and brain fog covers trouble thinking clearly.

How CBT-I works, and why it comes before pills

The American College of Physicians states: "ACP recommends that all adult patients receive cognitive behavioral therapy for insomnia (CBT-I) as the initial treatment for chronic insomnia disorder." 6 The American Academy of Sleep Medicine gives multicomponent CBT-I its only strong recommendation, and advises against using sleep hygiene tips alone as the treatment. 7 The NHLBI describes CBT-I as a 6 to 8 week plan that a doctor, nurse or therapist can deliver in person, by phone or online. 4 It has five parts:

Part of CBT-IWhat it does
Cognitive therapyHelps you feel less nervous about not being able to sleep 4
Relaxation or meditationTeaches you to relax and fall asleep faster 4
Sleep educationCovers good sleep habits 4
Sleep restrictionSets a fixed time in bed, then lengthens it as sleep improves 4
Stimulus controlBuilds a stronger link between the bed and sleep 4

Sleeping pills exist, and the ACP guideline leaves room for a short course, chosen with a clinician, when CBT-I alone hasn't worked. 6 The NHLBI notes side effects such as dizziness and, rarely, doing things while asleep such as walking or driving. 4 Over-the-counter sleep aids that contain an antihistamine may make you sleepy, but the NHLBI advises talking to your doctor first because antihistamines can be unsafe for some people, and they can worsen restless legs. 4 Melatonin is widely used; NCCIH says it may help with shift work and jet lag, while two clinical guidelines advised against it for chronic insomnia. 13

What blood tests can and can't tell you

No blood test diagnoses insomnia. A clinician diagnoses it from your story and a sleep diary, then looks for anything that might be driving it: the NHLBI says a sleep study checks for sleep apnea and other sleep disorders, a wrist sensor called actigraphy tracks rest and activity for 3 to 14 days, and "Blood tests check for thyroid problems or other medical conditions that can affect sleep." 3 So a normal blood panel does not mean nothing is wrong with your sleep; it means the thyroid, iron and blood-sugar causes are less likely.

The panel that checks these

If a clinician tests, ferritin, HbA1c and TSH are the usual first checks, because they read the treatable medical causes blood can find: low iron linked with restless legs, high blood sugar that wakes you to pee, and, less often, an overactive thyroid. Fasting glucose needs a fast beforehand; the others don't. FSH and estradiol only help for women whose periods are changing.

  1. FSHPerimenopause and menopause
  2. EstradiolPerimenopause and menopause
  3. FerritinRestless legs
  4. Fasting glucoseDiabetes and high blood sugar
  5. HbA1cDiabetes and high blood sugar
  6. TSHAn overactive thyroid
Already have results?Add them to LifeFrom and it reads these markers side by side, against each other and over time, in plain language. Free, on the web or in the app.

LifeFrom doesn't sell blood tests. It reads results from any lab and helps you prepare for your own doctor; it doesn't diagnose.

Getting a useful appointment

  • Keep a sleep diary for 1 to 2 weeks: when you go to bed, fall asleep, wake and nap, how sleepy you feel in the day, and when you have caffeine, alcohol or exercise. 3
  • Ask a bed partner whether you snore loudly, stop breathing or gasp. 38
  • List every medicine and supplement, including cold, allergy and over-the-counter sleep products, with start dates. 34
  • Mention high-dose biotin before a thyroid test, since it can make TSH look falsely low; agree any pause before the test with your clinician, and see the thyroid panel guide.
  • Mention low mood, anxiety, pregnancy or changing periods; each changes what the clinician looks for. 3
  • One blood result is a snapshot; see why trends beat single readings.

What may help

Habits come first because they are the cause for most people, and because CBT-I builds on them. Supplements are a small extra at most.

Start with the everyday things
  • Get up at the same time every day, including after a bad night and at weekends. 5
  • Go to bed only when sleepy, and get up if you can't settle. 45
  • No caffeine, alcohol or nicotine for at least 6 hours before bed, and no big meal late at night. 5
  • Keep the bedroom dark, quiet and comfortable, and put devices away before bed. 5
  • Exercise during the day, but not in the 4 hours before bed, and skip daytime naps. 5
  • If it has lasted 3 months, ask about CBT-I; it works online too. 46
Supplements people look at

The herbal sleep blend isn't listed: its main herb, valerian, has inconsistent trial results, and the American Academy of Sleep Medicine advised against valerian for chronic insomnia. 13 No ready-made pack is listed either: the stress pack contains ashwagandha, which may raise thyroid hormones and has rarely harmed the liver, and an overactive thyroid is one of the causes of poor sleep on this page. Supplements support general wellness. They don't treat the causes above, and if a test finds one, treating that comes first. If you take medicines, are pregnant or have a health condition, check with your clinician before starting anything.

Questions to ask your clinician

  • Does my pattern fit chronic insomnia, and can you refer me to CBT-I, in person or online?
  • Could any of my medicines be keeping me awake?
  • Should I have a sleep study for snoring or sleep apnea?
  • Is a TSH, ferritin or HbA1c worth checking for me?
  • Could perimenopause, low mood or anxiety be part of this?

This page is general education, not medical advice or a diagnosis. Sleep problems usually have more than one cause at once, and the clinician who knows your history is the one to read your results and decide what comes first.

Free in LifeFromAdd the lab results you already have, and LifeFrom reads each marker next to the others it moves with, in plain language, with the sources it used. Free, on the web or in the app.
Citations
  1. National Heart, Lung, and Blood Institute (NHLBI). Insomnia: what is insomnia?
  2. National Heart, Lung, and Blood Institute (NHLBI). Insomnia: causes and risk factors.
  3. National Heart, Lung, and Blood Institute (NHLBI). Insomnia: diagnosis.
  4. National Heart, Lung, and Blood Institute (NHLBI). Insomnia: treatment.
  5. NHS. Insomnia.
  6. Qaseem A, Kansagara D, Forciea MA, et al; Clinical Guidelines Committee of the American College of Physicians. 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.
  7. Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med. 2021;17(2):255-262.
  8. National Heart, Lung, and Blood Institute (NHLBI). Sleep apnea: symptoms.
  9. National Institute of Mental Health (NIMH). Depression (publication).
  10. MedlinePlus Medical Encyclopedia. Menopause. US National Library of Medicine.
  11. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Hyperthyroidism (overactive thyroid).
  12. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Symptoms and causes of diabetes.
  13. National Center for Complementary and Integrative Health (NCCIH). Sleep disorders and complementary health approaches: usefulness and safety.
  14. Bulman A, D'Cunha NM, Marx W, et al. The effects of L-theanine consumption on sleep outcomes: a systematic review and meta-analysis. Sleep Med Rev. 2025;81:102076.

Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.