Sometimes medicines may be taken to decrease the acid in the stomach. Some medicines are available over-the-counter. Others require a prescription.