Depends what condition you are treating. Both drugs reduce acid in the stomach. Esomeprazole is in the class of drugs called proton-pump inhibitors and ranitidine is a histamine-2 blocker.
Esomeprazole is used to treat symptoms of gastroesophageal reflux disease (GERD) and other conditions involving excessive stomach acid such as Zollinger-Ellison syndrome. Esomeprazole is also used to promote healing of erosive esophagitis (damage to your esophagus caused by stomach acid).
Esomeprazole may also be given to prevent gastric ulcer caused by infection with helicobacter pylori (H. pylori), or by the use of nonsteroidal anti-inflammatory drugs (NSAIDs).
Ranitidine is used to treat and prevent ulcers in the stomach and intestines. It also treats conditions in which the stomach produces too much acid, such as Zollinger-Ellison syndrome. Ranitidine also treats gastroesophageal reflux disease (GERD) and other conditions in which acid backs up from the stomach into the esophagus, causing heartburn.
Search for questions
Still looking for answers? Try searching for what you seek or ask your own question.
Updated 22 Jan 2011 • 2 answers
Updated 11 Mar 2011 • 2 answers
Updated 10 Sep 2012 • 1 answer
Updated 3 May 2014 • 2 answers
Updated 7 Mar 2017 • 1 answer