Pantoprazole is used to treat gastroesophageal reflux disease (gerd), a condition that causes gastric juices to flow upward from your stomach and into the esophagus. It also treats conditions in which the stomach makes excess acid, such as zollinger-ellison syndrome.