Can't Sleep? Causes of Insomnia and What to Do Tonight
Tossing and turning until 2 a.m., or waking in the middle of the night and not getting back to sleep, is very common among city workers. This article covers when to see a doctor, the most common causes, and evidence-based fixes you can start tonight.
When should you see a doctor about insomnia?
If you have trouble falling asleep, staying asleep or waking too early at least 3 nights a week for 3 months or more, and it affects your daytime life (sleepiness at work, mood swings), that matches the definition of chronic insomnia used by the American College of Physicians (ACP). It is worth talking to a doctor.
See a doctor sooner if you also have any of these:
- Very loud snoring, or a partner notices you stop breathing during sleep
- Leg twitching or a constant urge to move your legs at bedtime
- Low mood, strong anxiety, or thoughts of harming yourself
- Nearly falling asleep while driving
How many hours of sleep do adults need?
The American Academy of Sleep Medicine and the Sleep Research Society recommend that adults aged 18–60 sleep at least 7 hours a night, and that regularly sleeping 6 hours or less is not enough for health and safety (AASM).

5 common causes in working adults
- Stress and racing thoughts about work, money or relationships keep the brain alert at bedtime.
- Phone screens before bed, both the stimulating content and the light.
- Afternoon caffeine. In one study, 400 mg of caffeine taken even 6 hours before bed cut actual sleep time by more than an hour (AASM). Read more in Caffeine Dependence: Are You Drinking Too Much Without Realizing?
- Irregular sleep times. Late nights on weekdays and catch-up sleep on weekends throw your body clock off.
- A bedroom that is too hot or too bright, which is common in Thailand's climate.
10 sleep hygiene tips to start tonight
Summarised from Sleep Foundation guidance, roughly from easiest to hardest.
- Wake up at the same time every day, weekends included. This matters more than forcing a fixed bedtime.
- Get morning sunlight. Light sets your body clock so it knows when to be awake and when to feel sleepy.
- Stop caffeine by early afternoon.
- Put your phone down 30–60 minutes before bed.
- Dim the lights in the evening. Bright light at night interferes with melatonin release.
- Keep the bedroom cool, dark and quiet. Sleep Foundation suggests around 65°F (about 18°C). If you use air conditioning, set it cool enough that you don't need a heavy blanket, and use blackout curtains or an eye mask.
- Avoid alcohol in the evening. It may help you fall asleep but causes more waking in the second half of the night.
- Don't eat a heavy meal close to bedtime.
- Keep naps short and no later than early afternoon.
- If you're still awake after 20 minutes, get out of bed. Do something quiet in dim light, such as reading, and go back to bed when you feel sleepy.
The most effective approach for chronic insomnia: CBT-I
The American College of Physicians recommends cognitive behavioral therapy for insomnia (CBT-I) as the first treatment for adults with chronic insomnia, before considering sleeping pills (ACP).
CBT-I combines changing unhelpful thoughts about sleep, limiting time in bed to match the time you actually sleep, using the bed only for sleep, and sleep hygiene education. It can be done in person, by phone, online or with a self-help guide. Ask at a hospital sleep clinic.
Do sleep supplements actually work?
The honest answer is the evidence is limited, and supplements should not replace the habit changes above.
Take magnesium as an example. A 2021 meta-analysis of 3 trials in 151 older adults with insomnia found the magnesium groups fell asleep about 17 minutes faster than placebo on average, but the authors rated the quality of evidence as low to very low (Mah & Pitre, 2021). For timing and dosage, see When to take magnesium.
If you're interested in this option, read the ingredient pages for magnesium glycinate, GABA, chamomile and L-theanine, or see g4u Deep Sleep, which discloses every ingredient and its amount. If you take regular medication or have a health condition, check with a doctor or pharmacist first.

Summary
- Insomnia 3+ nights a week for more than 3 months is a reason to see a doctor.
- Adults should sleep at least 7 hours a night.
- Start by waking at the same time daily, getting morning sun, cutting afternoon caffeine and putting your phone away before bed.
- CBT-I is the first-line approach doctors recommend for chronic insomnia.
- Supplements are an add-on, not the main fix, and the evidence is limited.
Not sure where to start? Try chatting with Dr. good4u. It takes about a minute.
Frequently asked questions
What should I eat or take for insomnia?
No food or supplement fixes insomnia on its own. What helps more clearly is avoiding afternoon caffeine and avoiding alcohol and heavy meals in the evening. Supplements such as magnesium have some evidence, but it isn't strong.
Is one sleepless night dangerous?
Occasional sleepless nights happen to everyone and usually improve as stress eases. Pay attention when it happens often (at least 3 nights a week for several months) or when sleepiness affects your work or driving.
Should I get out of bed if I can't sleep?
Yes. If you're still awake after about 20 minutes, get up and do something quiet in dim light, then return when you're sleepy. This teaches your brain that bed is for sleeping, not for worrying.
Does catching up on sleep at the weekend help?
Long lie-ins shift your wake time and make it harder to fall asleep on Monday night. Waking at the same time every day helps more.
This article is for general information and is not medical advice. Dietary supplements are not medicines and are not intended to diagnose, treat, cure or prevent any disease. Eat a varied, balanced diet, and talk to a doctor or pharmacist before starting any supplement, especially if you have a health condition, take medication, or are pregnant or breastfeeding.
References
- American College of Physicians (2016). ACP Recommends Cognitive Behavioral Therapy as Initial Treatment for Chronic Insomnia
- American Academy of Sleep Medicine & Sleep Research Society (2015). Seven or more hours of sleep per night: a health necessity for adults
- American Academy of Sleep Medicine (2013). Late afternoon and early evening caffeine can disrupt sleep at night
- Sleep Foundation. Sleep Hygiene
- Mah, J., & Pitre, T. (2021). Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complementary Medicine and Therapies. PubMed