Treatment for constipation depends on the cause, how severe the symptoms are, and how long the constipation lasts. However, in most cases dietary and lifestyle changes will help relieve symptoms.