Acids, or gastric juices, usually stay in the stomach. They are blocked from going up into the esophagus by a valve mechanism.