Health Guides › Primary Care & Prevention
Insomnia (trouble sleeping)
Sources last checked: December 5, 2026
Insomnia is a common sleep disorder that makes it hard to fall asleep, stay asleep, or get good-quality sleep, even with enough time and the right setting. Short-term insomnia often follows stress or schedule changes and lasts days or weeks. Chronic insomnia happens 3 or more nights a week for more than 3 months and is not fully explained by another health problem.[1]
1 Recommended diet
What guidelines describe about eating. Not a personal meal plan.
- NHLBI lists avoiding caffeine, nicotine, and alcohol close to bedtime, eating meals on a regular schedule, avoiding late-night dinners, and limiting drinks before bed. Alcohol can make sleep lighter and lead to waking during the night.[2]
2 Physical therapy and exercise
What guidelines describe about activity and therapy. Not an exercise prescription.
- Regular daytime physical activity, finished at least 5 to 6 hours before bed, can help; exercising close to bedtime can make it harder to fall asleep.[2]
- Other habits: a cool, quiet, dark bedroom, no screens before bed, the same sleep and wake times every day including weekends, avoiding afternoon naps, and a relaxing wind-down routine.[2]
3 Integrative medicine approaches
Only what the cited evidence reviews or guidelines say, including where evidence is weak.
- Cognitive behavioral therapy for insomnia (CBT-I) is a 6- to 8-week program and is usually the first treatment for long-term insomnia. It can be done in person, by phone, or online and includes sleep education, relaxation, sleep restriction, and stimulus control (using the bed only for sleep and sex).[2, 3]
- Relaxation techniques alone have a small amount of low-quality evidence for insomnia. Yoga and tai chi may improve sleep quality but not necessarily insomnia.[3]
- Melatonin may help with shift work or jet lag sleep problems, but two guidelines recommended against it for chronic insomnia. It appears relatively safe short term, long-term safety is unknown, and side effects can include daytime sleepiness, headaches, upset stomach, and blood pressure changes.[3, 2]
- Evidence for chamomile and valerian is inconclusive. Kava has been linked to serious liver injury, and L-tryptophan may cause life-threatening serotonin toxicity with some medicines.[3]
- FDA does not review dietary supplements for safety and effectiveness before they are sold.[2]
4 Medicines available
Types of medicines guidelines describe. Your clinician decides what fits you.
- Several types of prescription sleep medicines exist, some meant for short-term and some for longer use. Rare side effects of some include doing activities while asleep, such as walking, eating, or driving, or severe allergic reactions.[2]
- Benzodiazepines may be used if other treatments have not worked. They can cause dizziness, confusion, and muscle weakness, can interact dangerously with other medicines, and can be habit-forming, so they are meant for only a few weeks.[2]
- Over-the-counter sleep aids with antihistamines can make people sleepy but can be unsafe for some; NHLBI suggests talking to a clinician first. Some cold and allergy medicines can disrupt sleep.[2]
5 Good questions to ask your doctor
Questions written for this site, each tied to a point in the sources.
6 Things to avoid
Items the cited sources warn about.
- Starting supplements or OTC sleep aids without talking to a clinician.[2]
- Leaving melatonin where children can get it. NCCIH cites a 2024 report that estimated 11,000 emergency visits from 2019 to 2022 after young children (5 and under) took melatonin without an adult watching.[3]
- Kava products, because of the risk of serious liver damage.[3]
7 What your care team may do
Typical steps described in the sources. Not a prediction for any one person.
✓ Original sources
→ Related guides
Sleep apnea (obstructive sleep apnea) · Anxiety disorders · Depression