How to Get Rid Of Nightmares from Habits: 12 habit changes for undisturbed sleep

Before you start exploring therapies and interventions, check what you’re doing in the 12 hours before sleep. Most nightmare problems have a behavioral cause – something you’re eating, drinking, watching, or doing (or not doing) that’s disturbing your REM cycles. These twelve habits are the standard culprits. Changing a few of them often makes a significant difference without any other intervention.

1. Fix Your Sleep Schedule

Irregular sleep timing wrecks REM structure. Going to bed at midnight one night and 2 AM the next means your body never settles into a predictable sleep architecture. REM sleep – where most nightmares occur – gets compressed, fragmented, and distorted when your schedule varies.

Set consistent bedtimes and wake times and hold to them on weekends too. Your brain needs that predictability to process the day’s material without turning it into a horror film. This is the most foundational change on the list.

2. Stop Eating Before Bed

Late meals spike your metabolism and raise your body temperature, which increases brain activity during sleep. That extra activity translates to more vivid, more disturbing dreams. Cut off food at least 2-3 hours before bed.

If genuine hunger keeps you awake, have something light – a banana or a small handful of nuts. Not a full meal, not anything high in sugar or saturated fat. Spicy foods are particular offenders for vivid dreams and should be avoided even earlier in the evening.

3. Cut the Stimulants

Caffeine’s half-life is 5-6 hours. That afternoon coffee at 3 PM is still measurably active in your system at 9 PM. It doesn’t just delay falling asleep – it disrupts REM structure, reducing sleep quality in ways that show up as more fragmented, intense dreaming.

Switch to decaf after noon. Same applies to black tea, energy drinks, and pre-workout supplements. Nicotine follows the same pattern – don’t smoke within 3 hours of sleep. The effect compounds: a few weeks of cutting stimulants earlier usually produces a noticeable shift in dream quality.

Hand pushing away an afternoon coffee cup and choosing water instead

4. Skip the Nightcap

Alcohol suppresses REM sleep in the first half of the night. Then, as it metabolizes, your brain compensates with a REM rebound in the second half: intense, vivid, often disturbing dreams. You fall asleep faster and wake up at 2 AM with your heart pounding.

Stop drinking at least 3 hours before bed. For people with frequent nightmares, the first experiment worth running is cutting alcohol entirely for two weeks and tracking the difference. The correlation between nighttime drinking and nightmare frequency is consistent enough that this alone often resolves the problem.

5. Cool Down the Room

Overheating during sleep is a consistent nightmare trigger. Your body temperature is supposed to drop during sleep – fighting against a hot room disrupts that process and pushes you into lighter, more disturbed sleep stages.

Keep your bedroom between 60-67°F (15-19°C). If that feels cold, use a lighter blanket rather than heating the room. Get a fan or crack a window. Some people find that cooling the room is the single change that makes the most immediate difference.

6. Deal with Stress During the Day

Bottled stress doesn’t disappear at bedtime. It surfaces during REM as your brain works through unprocessed emotional material – which produces the kind of anxiety and threat-simulation dreams that qualify as nightmares.

The fix is actually engaging with whatever’s stressing you during waking hours. Write it down, talk to someone, take 15 minutes to acknowledge what’s bothering you. This doesn’t need to be therapeutic – even a brief journaling session before bed gives your brain a place to put the day rather than processing it in your dreams.

7. Avoid Horror Content Before Sleep

Your brain uses recent sensory inputs when constructing dreams. Feed it disturbing content right before sleep and that’s what gets incorporated. This is especially true within 1-2 hours of bed.

Save horror, true crime, violent news, and stressful social media for earlier in the day. Before bed, switch to something boring – a light novel, a quiet show, something that doesn’t activate threat-response systems. The transition matters.

8. Keep a Dream Journal

Write down your nightmares when you wake up. Getting them out of your head and onto paper reduces their emotional weight. Over time, you’ll start to see patterns: certain stressors at work triggering specific themes, particular foods correlating with bad nights, nightmare frequency spiking around certain situations.

Keep a notebook by the bed. Write immediately upon waking, before the details fade. You don’t need to analyze them – just recording them is enough to reduce their charge and help you identify your specific triggers.

Person journaling at a kitchen table in the evening as part of a pre-sleep wind-down routine

9. Check Your Medications

Nightmares are a documented side effect of several common medications. Beta-blockers, some antidepressants (particularly SSRIs taken at night), certain sleep aids, blood pressure medications, and drugs that affect acetylcholine are common culprits.

If your nightmares started or intensified after beginning a new medication, that timing is significant. Talk to your prescribing doctor about whether alternatives exist or whether taking the medication at a different time of day would help. Don’t adjust dosing or stop taking anything without medical guidance.

10. Exercise Earlier in the Day

Regular exercise reduces baseline anxiety and improves sleep quality, both of which help with nightmares. But intense exercise within 3-4 hours of bed activates your sympathetic nervous system and raises core temperature – effects that directly increase vivid dreaming.

Move workouts to morning or early afternoon. Light activity like a walk in the evening is fine. The goal is the anxiety-reduction benefit without the pre-bed arousal effect.

Person jogging in a park in the morning as part of an earlier-in-the-day exercise habit

11. Create a Calming Pre-Sleep Routine

Your brain needs a transition. Going from high-stimulation activity straight to lying in a dark room gives it no time to downshift, and it keeps processing in dream form. A 30-45 minute wind-down routine closes that gap.

What works: light reading, a warm shower or bath (the drop in core temperature afterward actually induces sleepiness), gentle stretching, quiet music. What doesn’t: screens (blue light suppresses melatonin and the content is stimulating), anything work-related, news. Pick a consistent routine and the consistency itself becomes a sleep cue over time.

12. Sleep on Your Right Side or Back

Left-side sleeping has been associated with higher nightmare frequency in some studies, possibly due to the physiological effect of the heart position increasing perceived physical stress during sleep. Stomach sleeping also correlates with more vivid disturbing dreams, possibly because slight restriction of breathing affects dream content.

Try sleeping on your right side or back. It’s not a reliable fix and the evidence isn’t definitive – but it’s a zero-cost experiment if you’ve worked through the other items on this list and you’re still looking for variables to eliminate. Body pillows can help you maintain a side position through the night if you tend to roll over.