(CNN) - A good night’s sleep does the body good, and it can also make sure you put good into your body.
According to research published in the Journal of the American Heart Association, people who aren't getting good sleep tend to eat too much sugar and other unhealthy foods.
The study looked at nearly 500 women between the ages of 20 and 76 who self-reported their sleep and eating habits for a year.
The study found over a third of the women had poor sleep or some level of insomnia.
Those women reported eating an additional 500 to 800 calories per day on average, and they ate more than the recommended amounts of saturated fats, added sugars and caffeine.
They also fell below the recommended intake of whole grains and fiber.
The study suggests one reason for the connection between sleep and eating is that when we are sleep deprived, our hormones stimulate hunger.
Insomnia can also trigger the parts of your brain that make it harder for you to control cravings and rash decisions.
So be sure to make sleep a priority.
Turn your gadgets off at least 20 minutes before bedtime.
Make sure your room is dark and cool.
And don't eat large amounts of food before bed, making your gut uncomfortable.