your body will gain muscle mass if you sleep if you give it enough nutrients if you give it enough carbohydrates and your thyroid is appropriate if you are not in a overly catabolic state if your cortisol is not elevated for a variety of reasons whether it's gut inflammation and the toxin toxins in your diet overly stressful not enough sleep your body will hold on to and build muscle