It is recommended not to eat for up to 3 hours prior to going to bed as the metabolism slows at night and stores any excess calories as fat cells rather than using them.