Guides›Health Guide

Exercise for Insomnia: How to Move Your Way Toward Better Sleep

Exercise for insomnia works best as one part of a bigger plan, alongside a steady sleep schedule and, for long-term insomnia, a proven talk-based treatment called CBT-I. Regular daytime activity is a standard tip from the NIH and the NHS for people who struggle to fall asleep or stay asleep.

Exercise will not fix every sleep problem, and timing matters more than many people expect. This guide covers when to work out, how daylight and gentle movement can help, and which signs point to a different problem, like sleep apnea. If poor sleep has lasted for months or affects your days, talk to your doctor.

Last updated · Educational content, not medical advice

Does exercise help insomnia?

Regular physical activity is one of the healthy habits that support better sleep. The NHLBI, part of the NIH, lists regular daytime exercise among its tips for insomnia, and the NHS advises exercising regularly during the day. The CDC also names regular exercise as a habit that can improve sleep.

Exercise is not a stand-alone cure for chronic insomnia, though. It works best as part of a routine that includes a regular wake time, a calm bedtime routine and limits on caffeine, alcohol and late naps. Think of activity as something that helps your body be ready for sleep, not as a sleeping pill.

Being active has other benefits that matter for people with poor sleep. It supports mood, heart health and energy during the day, which can make it easier to stick with the rest of your sleep plan.

If you are new to exercise, start small. Short walks of 10 minutes on most days are a good first step. Add a few minutes each week, and work toward the general US guideline of 150 minutes of moderate activity a week, plus strength training twice a week. If you have a heart, lung or other chronic condition, check with your doctor before you increase your activity.

Best time to exercise for better sleep

Earlier in the day is the safer choice if you have insomnia. The NHLBI suggests finishing exercise at least 5 to 6 hours before bedtime, because exercising close to bedtime can make it harder to fall asleep. The NHS advises not exercising within 4 hours of bed. Advice differs a little between sources, so use these as a starting point and watch how your own sleep responds.

If the evening is your only free time, keep it moderate and give yourself time to wind down afterward. Save hard workouts, like fast runs or heavy lifting, for earlier in the day. Use the last hour before bed for quiet activities, not exercise or bright screens.

  • Morning or midday: the best time for brisk walks, cycling, swimming or strength training.
  • Late afternoon: fine for most people, if it ends well before bed.
  • Evening: gentle stretching or slow breathing only, if exercise seems to keep you awake.
  • Keep a simple sleep diary for 2 weeks to see which timing works for you.

Morning light walks: daylight and your body clock

Light is the strongest signal for your body clock, according to the NIH. Your brain uses light and dark to decide when to make melatonin, the hormone that helps you feel sleepy at night. Light from screens late at night can confuse this clock.

A walk outdoors in the morning combines two helpful habits: daylight and movement. Try to step outside soon after you get up, at the same time each day, even when it is cloudy. A regular wake time anchors your sleep schedule, so keep it the same on weekends too.

Start with 10 to 15 minutes at an easy pace and build up to 20 to 30 minutes of brisk walking. If mornings are hard, a walk at lunchtime still gives you daylight and activity. Avoid long daytime naps, especially in the afternoon, since they can make it harder to sleep at night.

Yoga, tai chi and relaxation for sleep

Gentle mind and body practices are good low-intensity options, especially in the evening. The National Center for Complementary and Integrative Health (NCCIH) says studies suggest yoga and tai chi can improve sleep quality, although they have not been shown to treat insomnia itself. Tai chi appears to be safe, and studies in older adults show better sleep quality.

Relaxation techniques, like progressive muscle relaxation and guided imagery, are safe and easy to use. The NHLBI also suggests calming activities such as meditation or yoga as part of a bedtime routine.

  • Slow yoga or stretching: 10 to 20 minutes, with easy poses and no hard flows late at night.
  • Tai chi: a class or video 2 to 3 times a week. It also helps balance.
  • Progressive muscle relaxation: tense and release each muscle group, from feet to face.
  • Slow breathing: breathe in for about 4 counts and out for about 6, for 5 minutes.

CBT-I: the first-line treatment for chronic insomnia

Cognitive behavioral therapy for insomnia (CBT-I) is the first treatment usually recommended for long-term insomnia. The American Academy of Sleep Medicine (AASM) gives CBT-I a strong recommendation for adults with chronic insomnia. It is the only treatment in that guideline to get a strong rating. The AASM advises against using sleep hygiene tips alone as the treatment.

The NHLBI describes CBT-I as a 6 to 8 week program. It teaches you to change thoughts and habits that keep you awake, and it often includes sleep restriction, stimulus control, relaxation and sleep education. It can be delivered by a doctor, nurse or therapist, in person, by phone or online.

Exercise fits well alongside CBT-I. Ask your doctor whether CBT-I is right for you, and do not stop or change any sleep medicine without their advice.

When poor sleep may be sleep apnea

Some people who think they have insomnia actually have sleep apnea, a condition where breathing stops and starts during sleep. It is important to find, because it is linked to other health problems and has its own treatments. The NHLBI notes that insomnia can itself be a symptom of sleep apnea, especially in women.

Tell your doctor if you notice any of the signs below. A sleep study may be needed to find out what is going on. Exercise can support your overall health, but it does not replace testing or treatment for sleep apnea.

  • Loud, frequent snoring, or a partner notices pauses in your breathing.
  • Waking up gasping or choking.
  • Strong daytime sleepiness, or nodding off while reading, watching TV or driving.
  • Morning headaches or a dry mouth when you wake.
  • Waking often at night to urinate.

When to stop exercising and get help

Stop right away and contact your doctor, or call emergency services if symptoms are severe, if you notice:

  • Chest pain, pressure or tightness during or after exercise (call 911 if it does not go away within a few minutes of rest)
  • Sudden severe shortness of breath, fainting, or a racing or irregular heartbeat (call 911)
  • Signs of stroke, such as face drooping, arm weakness or trouble speaking (call 911 right away)
  • Feeling dizzy, very drowsy or unsteady during exercise, especially if you take sleep medicine
  • Falling asleep while driving or nodding off during daily tasks (stop driving and see your doctor promptly)
  • Loud snoring with pauses in breathing or waking up gasping (see your doctor about sleep apnea)
  • Exercise that leaves you more wired or worse at sleeping for several nights (move it earlier or make it lighter)

Sample beginner week

An example to show how a balanced week can look. Adjust it to your energy, symptoms and your clinician's advice, or let VitalStep build one around your schedule.

DayActivityTimeIntensity
MondayMorning outdoor walk + light strength (sit-to-stands, wall push-ups, band rows)30 minModerate (RPE 3-4/10)
TuesdayMorning or lunchtime brisk walk; evening slow breathing30 min + 5 minModerate, then very light
WednesdayRest day: short daylight stroll and gentle evening yoga15 min + 15 minVery light (RPE 1-2/10)
ThursdayCycling, swimming or an elliptical, finished by mid-afternoon30 minModerate (RPE 3-4/10)
FridayMorning outdoor walk + light strength (glute bridges, step-ups, band rows)30 minModerate (RPE 3-4/10)
SaturdayTai chi class or video, then a walk in daylight40 minLight to moderate (RPE 2-3/10)
SundayRest day: easy stroll at your usual wake time and evening relaxation20 minVery light (RPE 1-2/10)
Create a personalized version of this plan →

Exercise for Insomnia videos

130 follow-along videos tagged for this condition

Ready-made 7-day plans for exercise videos for better sleep

Free starter plans by age group and gender. Open one to see the full week and safety notes, then follow it in VitalStep. All plans

Frequently asked questions

Does exercise help with insomnia?

Yes, regular daytime exercise can support better sleep, and it is a standard tip from the NIH and the NHS. It works best alongside a steady wake time, a calm bedtime routine and limits on caffeine and alcohol. For insomnia that lasts months, exercise is not enough on its own. CBT-I is the recommended first treatment, so ask your doctor about it.

What is the best time of day to exercise for sleep?

Morning or early afternoon is usually best if you have insomnia. The NHLBI suggests finishing exercise at least 5 to 6 hours before bed, while the NHS says to avoid exercise within 4 hours of bedtime. A morning walk outdoors adds daylight, which helps set your body clock. If you can only exercise in the evening, keep it moderate.

Is it bad to exercise right before bed?

Exercising close to bedtime can make it harder to fall asleep for some people, so it is best avoided if you have insomnia. Health sources suggest using the hour before bed for quiet time, without exercise or bright light. Gentle stretching, slow breathing or relaxation exercises are a better fit for the evening. Track your sleep to see how your body responds.

Can yoga or tai chi help me sleep?

Yoga and tai chi may improve sleep quality, according to research summarized by the NIH's NCCIH, though they have not been shown to treat insomnia itself. Both are gentle and suit older adults and people new to exercise. Tai chi appears to be safe. They work well as part of a routine, but they do not replace CBT-I for chronic insomnia.

What is CBT-I and how is it different from sleep hygiene?

CBT-I is a structured 6 to 8 week program that changes the thoughts and habits that keep you awake, and it is the top-rated treatment for chronic insomnia. It includes methods like sleep restriction and stimulus control. Sleep hygiene is a list of general tips, such as avoiding caffeine late in the day. Sleep medicine experts advise against relying on those tips alone.

How do I know if my sleep problem is sleep apnea?

Loud snoring, pauses in breathing, waking up gasping and strong daytime sleepiness are common signs of sleep apnea. Morning headaches, a dry mouth and frequent night-time urination can also occur. Insomnia itself can be a symptom, especially in women. Only a sleep study can confirm it, so tell your doctor about these signs rather than trying to treat them with exercise alone.

Sources

  1. American Academy of Sleep Medicine - Behavioral and psychological treatments for chronic insomnia disorder in adults: clinical practice guideline (J Clin Sleep Med, 2021)
  2. NHLBI (NIH) - Insomnia: Treatment
  3. NHS - Insomnia
  4. NCCIH (NIH) - 6 Things To Know About Mind and Body Practices for Sleep Disorders
  5. NHLBI (NIH) - Sleep Apnea: Symptoms
  6. NIGMS (NIH) - Circadian Rhythms
Video
HomeHistory