Weight gain occurs when you consume more calories than your body burns. This excess energy is stored in the form…