It’s best to stop eating about three hours before going to bed. That allows plenty of time for your body to digest the last food you ate so it won’t disrupt your sleep, but leaves a small enough window before sleep that you won’t go to bed feeling hungry.