A stool pH test is a diagnostic procedure used to measure the acidity or alkalinity (pH level) of a person's stool. The pH of stool can provide valuable information about various gastrointestinal conditions and digestive processes. This test is sometimes conducted to help diagnose or monitor conditions like malabsorption, gastrointestinal infections, and imbalances in the gut microbiota.