As with other caffeinated drinks, avoid soda for at least six, and ideally nine, hours before bedtime. Nutrition experts typically advise against significant soda consumption.