Stool softeners are used on a short-term basis to relieve constipation by people who should avoid straining during bowel movements because of heart conditions, hemorrhoids, and other problems. They soften stools, making them easier to pass.