Loose stools are a common symptom of irritable bowel syndrome (IBS), particularly diarrhea-predominant IBS (IBS-D). Dietary changes, stress management, and fiber supplements help some people, but if you need to harden loose stools fast, you may need medication.
Source: Verywell Health
