After a night of tossing and turning, do you find yourself reaching for a muffin for breakfast and sugary treats throughout the day? Don’t be so quick to blame poor self-control.

Research shows that we have a natural tendency to seek out sweets and foods high in carbohydrates for energy when we’re sleep-deprived. On top of that, a night of poor sleep can leave your hunger hormones out of whack, tricking you into thinking you’re hungry even if you aren’t.

While those indulgent comfort foods may provide a short-term energy boost as your blood sugar spikes, the inevitable crash that follows will leave you feeling worse than before. However, Stanford researchers found that eating a wholesome diet the day after short sleep can help lessen those feelings of grogginess, irritability, and difficulty concentrating that come after a sleepless night.