How to Have Good Dreams and Avoid Nightmares

You can influence your dreams more than you might think. While you can’t script your dreams like a movie, a growing body of research shows that what you do before bed, what you expose your senses to during sleep, and how you train your mind all shift the emotional tone of your dreams toward more positive experiences.

What You Watch Before Bed Matters for Days

Your brain doesn’t just process what you saw right before falling asleep. It often incorporates visual media into dreams on a delayed schedule, sometimes appearing six to eight days after you watched something. Researchers call this the “dream-lag effect,” and it’s surprisingly common. In one study where participants watched a stressful film, nearly half were classified as high incorporators, meaning the content showed up repeatedly in their dreams across the following week in a U-shaped pattern, appearing strongly on the first night, fading, then surging again around day six to eight.

The practical takeaway: your evening media diet shapes your dream life well beyond that single night. If you spend your last waking hour scrolling through disturbing news footage or watching horror films, that material has a real chance of weaving itself into your dreams for a week. Replacing that window with calming, pleasant, or even boring content gives your dreaming brain better raw material to work with.

Use Scent to Shift Dream Emotions

One of the simplest and most surprising ways to improve your dreams involves your nose. In a study published in the journal *Sleep*, researchers exposed sleeping participants to either the scent of roses or the smell of rotten eggs during REM sleep. The results were clear: the pleasant rose scent produced more positively toned dreams, while the unpleasant smell led to more negative ones. The dreamers didn’t actually dream about smelling roses. Instead, the overall emotional atmosphere of their dreams shifted to match the pleasantness of the scent.

This works because your brain continues processing sensory information while you sleep, even though you’re not conscious of it. A diffuser with a scent you find genuinely pleasant (lavender, vanilla, rose) running lightly in your bedroom could nudge your dreams in a more positive direction. The key is that the scent needs to be one you personally associate with comfort or happiness.

Train Your Mind to Choose Dream Topics

Dream incubation is the practice of deliberately choosing what you want to dream about before falling asleep. Researchers at MIT developed a structured version called Targeted Dream Incubation, or TDI, which uses audio cues played during the earliest stage of sleep to guide dream content. In their study, participants were told to “remember to think of a tree” as they drifted off, and the prompt was repeated each time they briefly woke. The success rate was remarkable: 92% of participants incorporated the tree theme into at least one dream during the session, and 40.6% of all awakenings included a direct appearance of a tree in the dream report.

You don’t need specialized equipment to try a simpler version at home. The core technique involves three steps:

  • Choose a specific, pleasant scene. Pick something vivid and emotionally positive: a favorite beach, a meal with someone you love, a place from a happy memory.
  • Visualize it as you fall asleep. Hold the scene in your mind with as much sensory detail as possible. What does it look like, sound like, feel like?
  • Repeat an intention phrase. Tell yourself, “Tonight I’ll dream about [your scene]” as you drift off. Repetition matters here.

Even without the MIT lab setup, 42% of participants in that study reported their chosen theme appearing in dreams during the following week just from a single session. Consistency improves results. Practicing this nightly builds a stronger connection between your waking intention and your sleeping mind.

Rewrite Recurring Nightmares

If bad dreams are the specific problem you’re trying to solve, a technique called Imagery Rehearsal Therapy is one of the most effective tools available. Originally developed for people with chronic nightmares, it works for anyone who has a recurring unpleasant dream they’d like to change. The process has three steps: identify the origin or theme of the nightmare, consciously rewrite the ending into something neutral or positive while you’re awake, and then spend time each day vividly imagining the new version.

For example, if you regularly dream about being chased, you’d sit down during the day and reimagine that dream, but this time the pursuer stops, or you discover you can fly, or the scene transforms into something absurd and harmless. You then rehearse this new version in your mind for 10 to 20 minutes daily. Over time, the rehearsed version begins replacing the nightmare. This isn’t wishful thinking. It’s a clinically validated approach used in sleep medicine.

Try Lucid Dreaming (With Realistic Expectations)

Lucid dreaming, where you become aware that you’re dreaming while still inside the dream, offers the most direct control over dream content. The most studied induction method is the MILD technique (Mnemonic Induction of Lucid Dreams). It works like this: when you wake up from a dream, either naturally or with an alarm, you replay the dream in your mind and tell yourself, “Next time I’m dreaming, I’ll realize I’m dreaming.” You then visualize yourself back in the dream, but this time recognizing it as a dream.

The success rate is modest. A large international study found that MILD produced lucid dreams on about 16.5% of nights it was practiced, and deliberate control within those lucid dreams was possible roughly a third of the time. So this isn’t a reliable nightly tool, but with consistent practice, it gives you occasional windows where you can steer your dreams actively. Some people find that even the awareness practice itself, regularly reflecting on dreams and setting intentions around them, improves overall dream quality whether or not full lucidity occurs.

Vitamin B6 and Dream Vividness

There’s one supplement with peer-reviewed evidence behind it. A randomized, double-blind, placebo-controlled study tested 240 mg of vitamin B6 taken before bed for five consecutive nights and found it enhanced dream recall. Participants remembered more of their dreams and reported them as more vivid. This doesn’t guarantee the dreams will be pleasant, but better recall pairs well with the other techniques on this list. You can’t practice rewriting dreams or incubating positive themes if you don’t remember dreaming at all.

A note on dosage: 240 mg is well above the recommended daily amount of B6 (about 1.3 to 2 mg for most adults), and high doses taken long-term can cause nerve issues. If you want to experiment, start much lower and treat this as a short-term tool rather than a permanent habit.

Build a Pre-Sleep Routine That Works Together

These techniques are most effective in combination. A practical nightly routine might look like this: an hour before bed, switch from stimulating or stressful media to something calming or pleasant. Set up a gentle scent in your bedroom. As you lie down, spend a few minutes visualizing a specific positive scene you’d like to dream about, repeating your intention phrase. Keep a small notebook by your bed and jot down whatever you remember when you wake up, even fragments.

The dream journal is the connective tissue between all these methods. Regularly recording your dreams improves recall over time, which makes dream incubation more effective, gives you material for imagery rehearsal if nightmares appear, and helps you notice patterns in what influences your dreams. Most people who start journaling are surprised to find they dream far more than they thought. Within a week or two of consistent recording, many go from “I never dream” to remembering one or two dreams per night.

Your emotional state at sleep onset also plays a meaningful role. Stress and anxiety are among the strongest predictors of negative dream content. Anything that genuinely lowers your stress before bed, whether that’s light stretching, a warm shower, slow breathing, or reading fiction, improves the odds of pleasant dreams simply by changing the emotional baseline your sleeping brain starts from.