Famotidine can be helpful in the treatment of conditions caused by too much acid being produced in the stomach. These conditions include stomach ulcers (gastric ulcers), ulcers of the upper part of the intestine (duodenal ulcers), acid reflux or heartburn (gastro-oesophageal reflux disease), and indigestion.