Nighttime restlessness usually comes down to one or more fixable problems: your body temperature is too high, your nervous system is still running in daytime mode, or something you consumed hours earlier is quietly keeping you wired. The good news is that most causes respond well to straightforward changes in your evening routine and sleep environment. Here’s what’s actually driving the tossing and turning, and what to do about each one.
Why Your Body Won’t Settle Down
Restlessness at night isn’t random. Your body needs a specific set of conditions to transition into sleep: a dropping core temperature, low levels of stress hormones, rising melatonin, and a nervous system that feels safe enough to power down. When any of these signals get disrupted, the result is that familiar feeling of shifting positions every few minutes, kicking off covers, or lying awake with a body that simply won’t relax.
Stress plays a particularly stubborn role. Cortisol, your primary stress hormone, directly reduces the deep, restorative stage of sleep and increases the time you spend awake during the night. Worse, this creates a feedback loop: fragmented sleep raises cortisol levels the next day, which fragments sleep again the following night. If you’ve noticed that restless nights tend to cluster together during stressful periods, this cycle is why.
Set a Caffeine Cutoff
Caffeine has a half-life that ranges from 2 to 10 hours depending on your genetics, age, and liver function. That means if you’re a slow metabolizer, half the caffeine from your 2 p.m. coffee could still be circulating at midnight. One well-known study found that 400 mg of caffeine (roughly two standard cups of coffee) taken even six hours before bedtime significantly disrupted sleep compared to a placebo. If you’re restless at night, try cutting off all caffeine by noon for two weeks and see if the pattern changes. That includes tea, chocolate, and some pain relievers.
Cool Your Bedroom Down
Your body needs to drop about one degree in core temperature to initiate sleep, and a warm room fights that process. Research on sleep and temperature suggests that bedroom air should stay below 26°C (about 79°F) to avoid overheating, while the microclimate directly around your body, inside the cocoon of your sheets, works best at roughly 29 to 31°C (84 to 88°F). The practical takeaway: keep your room noticeably cool and use bedding to create warmth close to your skin. If you’re waking up sweaty or throwing covers off repeatedly, your room is too warm, your bedding is too heavy, or both.
A fan or cracking a window can make a meaningful difference. Breathable sheets made from cotton or linen help regulate that microclimate better than synthetic fabrics.
Put Screens Away Earlier
Two hours of exposure to an LED screen (a tablet, phone, or laptop) suppresses melatonin production by about 55% and delays your natural sleep onset by an average of 1.5 hours compared to reading a printed book under low light. That’s not a subtle effect. If you’re climbing into bed at 10:30 after scrolling on your phone until 10:15, your brain’s internal clock thinks it’s closer to 9 p.m. Your body won’t feel ready for sleep, and you’ll toss and turn until the delayed melatonin finally kicks in.
Switching to a book, podcast, or music for the last hour before bed is one of the highest-impact changes you can make. If you must use a screen, dimming it fully, enabling a warm-light filter, and holding it farther from your face all reduce the dose of sleep-disrupting light, though none eliminate it entirely.
Time Your Exercise Right
Regular physical activity is one of the most reliable ways to improve sleep quality, but timing matters. After exercise, your core temperature stays elevated for 30 to 90 minutes before it drops. That post-exercise temperature drop actually promotes sleepiness, which is why morning or afternoon workouts tend to help people fall asleep faster. The problem comes when you exercise too close to bedtime.
A meta-analysis found that high-intensity exercise performed within three hours of bedtime was more likely to disrupt sleep than moderate-intensity activity. Vigorous workouts done less than an hour before bed had the strongest negative effect. If evening is your only option, keep it to a walk, gentle yoga, or light stretching rather than interval training or heavy lifting.
Check Your Iron and Magnesium
Two nutritional gaps are closely linked to nighttime restlessness. The first is iron. Ferritin levels below 50 ng/mL (a measure of your body’s iron stores) coincide with more severe symptoms of restless legs, that uncomfortable urge to move your legs that intensifies in the evening. Even levels that fall technically within the “normal” lab range can be low enough to cause problems. If you experience tingling, crawling, or aching sensations in your legs at bedtime that improve when you get up and walk around, ask your doctor to check your ferritin specifically, not just a standard iron panel.
Magnesium is the other common gap. It plays a direct role in muscle relaxation and nervous system regulation. Mayo Clinic recommends 250 to 500 milligrams of magnesium taken as a single dose at bedtime for sleep support. Magnesium glycinate is a popular form because it’s well-absorbed and less likely to cause digestive issues than other types. Foods rich in magnesium include pumpkin seeds, almonds, spinach, and dark chocolate.
Calm Your Nervous System Before Bed
If your restlessness feels more like wired energy than physical discomfort, your nervous system is likely still in an alert state when you’re trying to sleep. Cortisol and adrenaline don’t have an off switch; they taper gradually when your body gets consistent signals that it’s safe to wind down. Building a short buffer zone between your active day and sleep helps send those signals.
Deep, slow breathing (inhaling for four counts, exhaling for six to eight) directly activates the branch of your nervous system responsible for relaxation. Progressive muscle relaxation, where you tense and release each muscle group from your feet to your face, gives restless energy somewhere to go. Even 10 minutes of either technique can noticeably reduce the time it takes to fall asleep.
Weighted blankets work on a similar principle. The deep pressure against your joints and muscles provides what’s called proprioceptive input, sensory feedback that helps your nervous system register where your body is in space. This calming input helps organize the nervous system toward relaxation and can reduce the urge to shift and fidget. Most people find blankets weighing about 10% of their body weight comfortable.
When Restlessness Points to Something Deeper
Sometimes nighttime restlessness isn’t just a habit problem. Two sleep disorders are worth knowing about. Restless leg syndrome (RLS) causes uncomfortable tingling, crawling, or painful sensations in your legs that create an irresistible urge to move. Symptoms get worse in the evening and around bedtime, and movement provides only temporary relief before the sensations return. This is a neurological condition, not just discomfort from a long day.
Periodic limb movement disorder (PLMD) is different. It causes repetitive, involuntary leg or arm movements during sleep, often without you being aware of them. You might not know you have it unless a partner notices the movements, or you wake up feeling unrested despite what seemed like a full night’s sleep.
Both conditions are treatable. Iron supplementation helps many RLS patients, particularly those with ferritin below 50 ng/mL. In one study, 60% of RLS patients with low iron stores reported improved symptoms within three weeks of a single iron infusion, with symptom severity scores dropping by about a third. For persistent cases, prescription medications targeting nerve signaling can significantly reduce symptoms. If your restlessness involves distinct leg sensations or if a bed partner reports frequent kicking during sleep, a sleep evaluation can identify what’s happening and match you with the right treatment.