It has been stated eating just before going to bed makes you fat because the body doesn't need the energy while you're asleep.
While no conclusive studies prove that eating before bed leads to weight gain, eating too much food, or eating spicy foods, fatty foods and caffeine one to three hours before bedtime can reduce the quality and length of your sleep, making you fatigued, sluggish and generally not fun to be around the next day. Eating fatty foods before bed will slow down the emptying of the stomach, exacerbating indigestion, while spicy foods can lead to heartburn and indigestion.
Eating food before bed can contribute to weight gain, because you're consuming calories, some of which may not be as healthy as the choices you made earlier in the day. But does eating at that time of day mean you will gain MORE weight than if you were to eat the same snack mid day? No.
There is a correlation between night eating, low self-esteem, reduced daytime hunger, and weight loss among people who are already obese or prone to obesity, however, this correlation does not necessarily imply causation (i.e., the act of eating a late meal does not necessarily provoke these conditions). It may simply be the case that the types of foods that people prefer to eat late at night are less healthy.
NES (Night Eating Syndrome) is an eating disorder where the person consumes at least half of their calories for the day after dinner (mostly carbs and starchy food). This disorder does lead to weight gain.
You should wake up refreshed in the morning without the use of an alarm clock and feel energetic all day.
Stay away from big meals at night:
Try to make dinnertime earlier in the evening, and avoid heavy, rich foods within two hours of bed. Fatty foods take a lot of work for your stomach to digest and may keep you up. Also be cautious when it comes to spicy or acidic foods in the evening, as they can cause stomach trouble and heartburn.
Does eating certain foods before sleep cause you to dream more? - Includes list of foods reported to cause vivid lucid dreams.
2 List of various foods and drinks showing how many calories they contain and how long it would take to burn off those calories if you do certain exercises such as running, cycling, swimming, walking etc....