An impacted stool does not usually come out by itself, so you will need to see a doctor. For long-term care, you will want to change your diet. Eat fewer beans and other hard foods. Drink plenty of fluids. Avoid caffeine. Take probiotics. Try eating fiber-rich foods such as applesauce, prunes, and bananas. Don't eat anything after midnight. And avoid alcohol.