Famotidine works by reducing the amount of acid produced in the stomach. It is used to treat various conditions of the gastrointestinal (stomach and intestines) tract including: