Treatment for gastric ulcers depends on the underlying cause, its severity and location. Antibiotics, along with acid suppressant and antacids, are usually prescribed in case of Helicobacter pylori infection. If these ulcers are caused by other factors, then, medication like acid suppressant and antacids are used for treatment.