A high-sodium diet can lead to weight gain overnight because it increases the amount of fluid in the body. Sodium causes fluid retention and bloating, making cells hold more water, which leads to increased fat storage, especially around the belly area. As a result, you gain weight.