Darasp Kran / Shutterstock

Eating causes secretion of acid in the stomach which then goes to the esophagus. “Unfortunately, the body has to be awake to get rid of it, Dr. Doghramji says. “That’s just how physiology works. He recommends not eating at least four hours before bedtime.

Don’t eat a big dinner and avoid heavy, rich foods, especially those high on sugar or grains. Your stomach takes time to digest fattening foods and that will keep you awake for a while. Same goes for spicy and acidic foods, which can also lead to heartburn.