Does eating chocolate before bed ruin your sleep? A dietician reveals all

A young woman eats chocolate before bed
(Image credit: Getty Images)

Chocolate makes the perfect post-dinner snack, so it's likely that you'll reach for it before bedtime. But while chocolate may be the ultimate comfort food in the evenings, will eating it before bed ruin your sleep?

From choosing one of the best mattresses of the year for your body and sleep style to drinking chamomile tea, there are plenty of tried-and-tested methods for falling asleep fast. However, eating chocolate before attempting to fall asleep is not recommended. 

To find out why, we spoke to Lena Bakovic, a registered dietician at Top Nutrition Coaching. Here, Bakovic explains how chocolate affects your sleep, which kinds of chocolate are better or worse before bed, and how you can enjoy chocolate without it disrupting your sleep schedule. 

Does eating chocolate before bed stop you from sleeping?

Chocolate isn't seen as a natural sleep aid like chamomile tea or the viral Sleepy Girl Mocktail, but does that mean it's actually bad for your sleep? "In short, yes," says Lena Bakovic. "Consuming chocolate right before sleep can in fact contribute to poor sleep quality."

A blonde woman eats a chocolate gateau from the fridge at night before bed

(Image credit: Getty Images)

According to Bakovic, both milk and dark chocolate are both dietary sources of caffeine - along with other heartrate-increasing stimulants such as theobromine - which can cause a restless night, depending on the kind of chocolate and what time it's consumed. 

"Chocolates can vary in caffeine content, and some individuals are more sensitive to caffeine than others," says Bakovic. "However, for most, eliminating caffeine at least six hours before bedtime is helpful in promoting healthy sleep habits."

Is milk chocolate worse for your sleep?

A pile of milk chocolate bars

(Image credit: Getty Images)

Bakovic tells us that milk and dark chocolate can each vary in caffeine content. However, milk chocolate isn't the worst kind of chocolate to eat before bed - good news considering it's America's favorite kind of chocolate

However, the registered dietician still warns that it shouldn't be consumed less than six hours before bed: "A 1oz serving of milk chocolate contains approximately 8 milligrams of caffeine, so consuming it directly before sleep can contribute to poor sleep."

Does eating dark chocolate help you sleep? 

A display of dark chocolate

(Image credit: Shutterstock)

Meanwhile, dark chocolate (America's second favorite type of chocolate) is actually the most detrimental to your sleep. According to Bakovic, this is because the levels of caffeine and other stimulants are more distinct in dark chocolate varieties. 

"Generally speaking, dark chocolate is moderate in terms of caffeine content," she explains. "Put into context, a 1oz serving of milk chocolate contains approximately 8 milligrams of caffeine, whereas a 1oz serving of dark chocolate contains approximately 25 milligrams of caffeine."

Does eating white chocolate make you sleepy?

It may not be America's favorite type of chocolate (only 11% say they prefer it), but white chocolate is actually the best kind of chocolate to eat before bed. "Make the switch to white chocolate, which contains no caffeine," advises Bakovic. "Unlike milk and dark varieties, which are dietary sources of caffeine."

Can drinking hot chocolate help you fall asleep faster?

A whisk in hot chocolate

(Image credit: Future)

If you find a cup of hot chocolate to be a soothing pre-bedtime beverage, Bakovic says there's a good reason behind it. First of all, it's a great psychological sleep aid as a warm beverage is often a component of a calming bedtime ritual.

Secondly, Bakovic also says it's nutritional content can aid sleep. "Hot chocolate, when consumed or prepared with milk and cocoa, is a good source of tryptophan,", the dietician explains. "This stimulates serotonin which helps produce melatonin, important factors for the optimization of sleep quality."

How to enjoy chocolate without it affecting your sleep

A woman lies in bed eating a box of dark, milk, and white chocolates

(Image credit: Getty Images)
  • Consume chocolate somewhere in the range of 4-6 hours before bedtime, which should not have too much of an impact on sleep quality. So, if you go to bed at 11pm, try not eat chocolate after 7pm.
  • Avoid eating dark chocolate in the evening (or eliminate it all together), as this is the worst type of chocolate for your sleep. 
  • Make the switch to white chocolate, which contains no caffeine. If you dislike the taste of white chocolate, eat milk chocolate, which has a lower caffeine content than dark.
  • If hot chocolate helps you to relax before bed and is part of your calming bedtime ritual, there's no need to forgo it.  Just make sure it's prepared with milk and cocoa (it's probably best to skip the mini marshmallows, too!).
Frances Daniels
Senior Sleep Staff Writer

Frances Daniels is a PPA-accredited journalist and Sleep Staff Writer at Tom's Guide with an MA in Magazine Journalism from Cardiff University. Her role includes covering mattress and sleep news and writing sleep product reviews and buyer's guides, including our Best Hybrid Mattress 2025 guide. She is hugely interested in the relationship between good sleep and overall health, interviewing a wide array of mattress and sleep experts to create well-informed articles about important topics such as nutrition, sleep disorders (from sleep apnea to night terrors), lucid dreaming, sleep hygiene, and mattress care. She is also our specialist on mattress toppers — producing mattress topper reviews and taking care of our Best Mattress Toppers 2025 guide — and takes the lead on all content related to fiberglass-free mattresses for a clean, non-toxic sleep. Outside of Tom's Guide, she has written for Ideal Home, Homes & Gardens, and Marie Claire. 

Read more
A woman looking inside a fridge to decide what to eat as a nighttime snack
6 healthy nighttime snacks that help you sleep better, according to a nutritionist
A woman sleeping on her back in bed wearing a christmas hat
6 holiday foods to eat for quality sleep — and 3 you should avoid
A woman with red hair wearing a white, yellow and navy stripey shirt sitting at desk yawning with a mug in hand and a pastry on plate on desk in front of computer
Poor sleep is sabotaging your weight loss resolution — doctor explains why we eat more when we're tired
A man laying on grey sofa sleeping next to bowl of popcorn
Trouble sleeping? Adding more of these two food groups to your diet will help you sleep faster, better and deeper
A woman lying in bed reading a book and sipping a glass of red wine, with the Tom's Guide Sleep Week 2025 logo in the top left corner
10 popular sleep myths debunked for World Sleep Day — and the real science behind restful nights
Woman drinking a glass of wine in a white bed wearing pajamas in a dim lit room
Using alcohol for sleep doesn't work — experts explain why and which drinks are worse than others for your sleep
Latest in Sleep
A woman in bed reading a book with a cup of tea in hand and a lamp on the bedside table, as she completes her nighttime routine
Reduce your stress before bed by 68% with this easy 6-minute nighttime routine
A man and a woman sleeping in bed
Forget the Scandi Sleep Method — 3 tricks for better sleep I recommend for bedsharing couples
Bare feet poking out of the covers at the end of a bed
Twitching in your sleep? Expert shares 5 most common causes of hypnic jerks
A woman with dark hair lies in bed yawning because she is so tired and ready to sleep
Tired all the time? Sleep experts share how to tackle hypersomnia — plus what might be causing it
A woman with long dark hair falls asleep quickly in a comfy bed dressed with soft white linens
I'm an ex-insomniac turned sleep coach — my 3 top tips to fall asleep quickly
A person lying on their stomach on the Leesa Legend Hybrid Mattress
What’s so bad about stomach sleeping? Expert dishes the dirt on so-called ‘worst sleeping position ever’
Latest in Features
A hand feels the temperature regulation of the SPRINGSPIRIT Dual Layer Mattress Topper.
What is a bamboo mattress topper and should you buy one?
2025 Mini Cooper Countryman SE All4 review.
I drove the Mini Cooper Countryman EV for a week — here’s my pros and cons
Troubadour Apex 3.0 Backpack
I tested this laptop backpack for 6 months — and it’s one of the best purchases I’ve ever made
a person with muscular calves running
Physio says runners need these 3 calf strength variations in their training — here’s why I’m finally listening
Obscura VPN website landing page
Obscura VPN wants to be the "best darn VPN out there" – can it?
Galaxy S25 Ultra next to macro shot of flower
I test camera phones for a living — here's 3 tips for taking great macro shots