REM and deep sleep are the two most restorative stages of your nightly sleep cycle, and most people don’t get enough of either. Deep sleep (stage 3) is when your body repairs tissue and strengthens your immune system. REM sleep is when your brain is nearly as active as when you’re awake, processing emotions and consolidating learning. Improving both requires targeting different habits, because each stage responds to different triggers and is disrupted by different mistakes.
What Deep Sleep and REM Actually Do
Deep sleep, also called slow-wave sleep, is dominated by slow, powerful brain waves. Your body uses this stage to repair injuries, reinforce immune function, and release growth hormone. It’s the stage most responsible for whether you wake up feeling rested or groggy. Most deep sleep happens in the first half of the night, which is why cutting your sleep short by an hour or two often still leaves you feeling physically okay but mentally foggy.
REM sleep serves a different purpose. Your brain consolidates memories, processes emotions, and clears out metabolic waste. Most REM sleep happens in the second half of the night, with each REM period getting longer toward morning. If you set an alarm that cuts your final sleep cycle short, you’re likely trimming your longest REM period of the night. A healthy adult typically spends about 20 to 25 percent of total sleep in REM and 15 to 20 percent in deep sleep, though these numbers decline naturally with age.
Keep Your Bedroom Cool
Room temperature is one of the most direct levers you have for increasing deep sleep. Your body needs to drop its core temperature by about one to two degrees to initiate and maintain slow-wave sleep. A warm room fights against that process. Sleep specialists recommend keeping your bedroom between 60 and 67°F (15 to 19°C). That range supports what researchers call thermoregulation, the process of your body shedding heat to stay in restorative sleep stages.
If 60°F sounds cold, start at the warmer end and adjust downward over a few nights. Wearing socks to bed can help by dilating blood vessels in your feet, which paradoxically helps your core temperature drop faster. A warm shower 60 to 90 minutes before bed works the same way: your body overcompensates by cooling down afterward, priming you for deeper sleep.
Finish Exercise at Least Four Hours Before Bed
Regular exercise reliably increases both deep sleep and REM sleep over time. But timing matters more than most people realize. A 2025 study published in Nature Communications found that exercising within four hours of bedtime was linked to falling asleep later, getting less total sleep, and experiencing worse sleep quality. Participants who exercised too close to bed also had higher resting heart rates and lower heart rate variability during the night, both signs that the body hadn’t fully shifted into recovery mode.
The fix is straightforward: if you can, wrap up vigorous exercise at least four hours before you plan to sleep. If your schedule only allows evening workouts, stick to brief, low-intensity options like a light jog or easy swim. Morning and afternoon exercise tend to produce the biggest gains in deep sleep percentage, likely because your body has fully cooled down and your stress hormones have returned to baseline by bedtime.
Stop Alcohol Early (or Skip It Entirely)
Alcohol is one of the most common and least recognized destroyers of sleep quality. It acts as a sedative in the first half of the night, which makes you fall asleep faster and may even increase deep sleep initially. But it suppresses REM sleep in a dose-dependent way, meaning the more you drink, the more REM you lose. Once your body metabolizes the alcohol in the second half of the night, REM sleep rebounds aggressively, often causing fragmented, restless sleep and vivid or disturbing dreams.
The net result is that even moderate drinking (two or three drinks in an evening) can cut your total REM sleep significantly while also fragmenting the deep sleep you do get. If you’re serious about improving sleep architecture, eliminating alcohol within three to four hours of bedtime is one of the highest-impact changes you can make. Many people who track their sleep with a wearable notice the difference on the first alcohol-free night.
Lock In a Consistent Sleep Schedule
Your body’s internal clock, the circadian system, determines when each sleep stage is most likely to occur. Deep sleep is concentrated in the first few hours after you fall asleep, and REM sleep clusters in the early morning hours. When your sleep and wake times shift from day to day, your circadian clock can’t anticipate these transitions cleanly. The result is lighter, more fragmented sleep with less time in both deep and REM stages.
Keeping a consistent wake time is actually more important than a consistent bedtime. Your wake time anchors the entire circadian cycle: it sets when melatonin starts rising in the evening, when your body temperature dips, and when your brain is primed for deep sleep. Try to keep your wake time within a 30-minute window every day, including weekends. If you had a late night, it’s better to wake up at your normal time and nap briefly in the early afternoon than to sleep in for two extra hours and throw off the next night’s sleep architecture.
Use Light Strategically
Bright light exposure in the morning reinforces your circadian rhythm and helps your brain produce melatonin at the right time later that evening. Aim for 10 to 20 minutes of bright outdoor light within the first hour of waking. On overcast days, outdoor light still delivers roughly 10,000 lux, far more than typical indoor lighting.
In the evening, the priority flips. Bright light, especially the blue-heavy spectrum from screens and overhead LEDs, suppresses melatonin production and delays sleep onset. This directly compresses REM sleep by pushing your entire sleep cycle later without adjusting your wake time. Dimming lights in the last one to two hours before bed and using warm-toned lighting helps preserve the natural melatonin curve that gates your transition into sleep.
Consider Pink Noise for Deep Sleep
Pink noise, a sound similar to white noise but with more emphasis on lower frequencies (think steady rainfall or a distant waterfall), has shown promise for boosting deep sleep. Researchers at Northwestern University found that short pulses of pink noise, timed to synchronize with slow brain waves during deep sleep, increased slow-wave activity by 20 percent or more in some participants. Those individuals also performed better on memory tests the next morning, recalling about two additional words on average. One participant whose slow-wave activity increased by 40 percent recalled nine more words.
The key detail is that the sound pulses were timed to match the brain’s existing slow waves, not played continuously. Consumer apps and devices that attempt to replicate this are still catching up to the precision of lab equipment, but playing steady pink noise at a low volume throughout the night may still help by masking disruptive environmental sounds that would otherwise pull you out of deep sleep.
What About Magnesium Supplements?
Magnesium is one of the most commonly recommended sleep supplements, often in the glycinate form because it’s gentler on the stomach. The recommended daily intake is 310 to 320 mg for adult women and 400 to 420 mg for adult men, depending on age. Many people fall short of these targets through diet alone, and low magnesium levels are associated with poorer sleep.
That said, the evidence is more nuanced than supplement marketing suggests. According to Mayo Clinic, magnesium hasn’t been proven in human studies to directly improve sleep, relaxation, or mood. Some people do report subjective improvements, which could reflect correcting an existing deficiency rather than a pharmacological sleep effect. If you’re getting adequate magnesium from foods like nuts, leafy greens, and whole grains, supplementing more is unlikely to change your sleep stages. If you suspect a deficiency, a supplement may help, but it’s not a reliable substitute for the behavioral changes above.
Manage Caffeine’s Hidden Half-Life
Caffeine has a half-life of roughly five to six hours in most adults, meaning half the caffeine from your 2 p.m. coffee is still circulating at 7 or 8 p.m. Even if you fall asleep on time, caffeine in your system reduces deep sleep by blocking the brain’s adenosine receptors, the same receptors that build sleep pressure throughout the day. People who say caffeine “doesn’t affect their sleep” often sleep for a normal duration but get measurably less deep sleep when tracked objectively.
A practical cutoff for most people is to finish your last caffeinated drink by early afternoon, roughly eight to ten hours before your intended bedtime. If you’re particularly sensitive to caffeine or metabolize it slowly (which is genetically variable), noon may be a better stopping point.
Putting It All Together
The changes that tend to produce the most noticeable improvements in deep and REM sleep, roughly in order of impact:
- Eliminate alcohol close to bedtime, ideally three to four hours before sleep or entirely on nights you want optimal recovery.
- Cool your room to 60 to 67°F and let your body temperature drop naturally.
- Fix your wake time to within 30 minutes daily, even on weekends.
- Finish intense exercise four or more hours before bed.
- Cut caffeine by early afternoon.
- Dim lights in the evening and get bright light exposure in the morning.
- Try pink noise at a low volume to support slow-wave sleep.
Most people who track their sleep notice measurable changes within one to two weeks of stacking several of these habits together. Deep sleep tends to respond fastest because it’s so sensitive to temperature, alcohol, and exercise timing. REM sleep improvements often take slightly longer because REM is more dependent on circadian consistency and the absence of substances that suppress it.