Does the time you eat affect how well you sleep?
Eating at night and a late eating pattern appear to negatively affect sleep and metabolism, but the evidence is still limited and largely based on associations. Try to eat your main meals well before bedtime and eat as little as possible during the night.
Eating at night disrupts the normal sleep-wake cycle. The timing of your meals, both how late in the day and relative to your other habits, appears to influence your metabolism and sleep rhythm. How large that effect actually is remains unclear: the evidence for it is still limited.
What you eat also plays a role. Your gut bacteria produce substances that help regulate sleep, such as melatonin, serotonin, and GABA. A plant-based, fibre-rich diet appears to support that production. This is, however, an indirect chain of associations that has not yet been fully understood.
If you are naturally an evening person, you face a greater risk of an unfavourable combination: eating late, less healthy dietary habits, and a higher body mass index all cluster together in evening chronotypes. Whether eating late is the cause here, or rather a consequence of a nocturnal lifestyle, is difficult to disentangle.
For people who exercise late in the evening, there is something concrete to be said: 30 to 40 grams of casein protein just before sleep increases muscle protein synthesis and overnight metabolism without inhibiting fat oxidation. This says nothing about sleep quality itself, however. For those wanting to reduce jet lag while travelling, there is weak evidence that aligning your meals with the schedule of your destination may help, though that recommendation is based on limited solid research.
What you can do with this in practice: try not to eat your main meals too late in the evening, and avoid eating in the middle of the night. A fibre-rich, plant-based eating pattern may indirectly contribute to better sleep via your gut bacteria. But do not expect a spectacular effect: the evidence for this is still limited and largely based on associations, not on targeted experiments in humans.
All claims are based on limited to moderate evidence, largely observational or mechanistic in nature. No large randomised studies exist on meal timing and sleep quality specifically.