To gain weight healthily, focus on consuming nutrient-dense foods that are high in calories. Incorporate strength training exercises to build muscle mass and increase your caloric intake. Avoid excessive amounts of junk food and processed snacks.