Getting a good night’s sleep isn’t just about how many hours you log—it’s about the quality of that rest. If you find yourself waking up groggy, restless, or unable to fall asleep in the first place, your daily habits and food choices could be quietly working against you. Sleep specialists say that certain nutrients, evening routines, and even small lifestyle tweaks can help regulate your body’s natural sleep cycle, lower stress hormones, and set you up for deeper, more restorative rest.
From magnesium-rich snacks to smarter caffeine timing, here are 7 expert-backed foods and habits that can improve your sleep—plus one more simple trick worth adding to your nighttime routine.

1. Take Magnesium
One of the standout benefits of magnesium is its ability to improve sleep quality, which often diminishes with age. "Magnesium has natural calming properties," Dr. Rimas Geiga, MD, notes. "It activates the parasympathetic nervous system, promoting relaxation and calmness." By regulating neurotransmitters and influencing melatonin production, magnesium supports healthy sleep-wake cycles, crucial for restorative sleep in older adults.

2. Greek Yogurt
A bowl of Greek yogurt before bed can work wonders for your sleep, according to this nutritionist. "This is primarily because of the high amounts of casein protein that are in yogurt that help to elevate the amino acids in the bloodstream throughout the evening time," he explains. This slow-release protein not only aids in relaxation but also supports overnight muscle repair and recovery, ensuring you wake up feeling refreshed. Amazing! It's packed with other health benefits too, including the fact that its probiotic content can keep your gut in great shape.

3. Dark chocolate
Now before we boast about the benefits of dark chocolate, Jordan Anthony, certified nutritionist at Ahara, notes that it’s still important to consider your metabolism when eating a snack close to bedtime.
"As a general rule, bedtime snacks can backfire if your goal is to get better sleep. This is because they'll fire up your metabolism and leave you waking up hungry in the middle of the night. Your body also won't have any activity to spend that energy on, so bedtime snacks can also contribute to weight gain." Noted!
The reason dark chocolate is a smart option is because you don't need to eat too much of it to gain its health benefits. "This stuff is surprisingly nutritious, being a great source of many essential minerals and antioxidants, including magnesium. A little bit also goes a long way in terms of flavor, so you can indulge in a small treat that won't spike your metabolism too much and also give you extra magnesium for sleep," Anthony states.

4. Nuts and seeds
Nuts and seeds are not only satisfying but are also packed with nutrients that can promote relaxation and better sleep.
"These are a great snack at any time of day; they're packed with essential minerals and a great mix of fiber, protein, and fat. Their magnesium content and low glycemic index make them a great choice around bedtime," she adds.
Snacks such as almonds, walnuts, and pumpkin seeds are great magnesium-rich options that can support a good night’s rest.

5. Follow a sleep schedule
One of the most important parts of consistently getting a good night’s sleep is sticking to a consistent sleep schedule. “This will help you maximize deep sleep, which in turn maximizes growth hormone secretion that keeps you youthful,” Dr. Chris Winter explains, advising that you get up and go to sleep at the same time each day.
“Timing is key to achieving your best rest,” he goes on. “You don't need to be obsessive about it, but gradually start establishing regular wake-up times and bedtimes.” Additionally, it’s important not to rely on sleeping in or napping during the day to make up for difficult nights of sleep. “That will only lead to making it harder and harder to fall asleep at night,” he warns.

6. Don't Drink Caffeine Too Late in the Day
That late afternoon or evening coffee might feel like a quick fix for low energy, but it can have lingering effects long after you’ve finished your cup. Caffeine can interfere with your ability to wind down, ultimately impacting your sleep quality and stress hormone levels.
Physician and weight loss expert Dr. Adrienne Youdim, MD, explains that caffeine works by disrupting your brain’s natural sleep signals. “Caffeine blocks adenosine receptors in the brain,” she says. “Adenosine is a neurotransmitter that induces sleep. By blocking this receptor, adenosine is unable to exert its effects. This is how caffeine induces alertness and wakefulness.”
Even if you fall asleep, poor-quality rest can keep cortisol elevated, which may contribute to increased belly fat over time.
7. Limit Screen Time Before Bed
One of the most overlooked sleep disruptors is late-night screen use. Scrolling on your phone or watching TV right before bed can interfere with your body’s natural production of melatonin—the hormone that signals it’s time to sleep.
Experts recommend shutting down screens at least 30 to 60 minutes before bedtime. The blue light emitted from devices can trick your brain into thinking it’s still daytime, making it harder to fall asleep and stay asleep. Instead, opt for relaxing activities like reading, stretching, or listening to calming music to help your body wind down naturally.

