Weight Gain in Addiction Recovery

Gaining weight when we get sober is a rite of passage for many of us. Why do we gain weight in early addiction recovery, and how can we accept weight gain, and find solutions?