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