The first-line treatment for ulcers is usually a proton pump inhibitor (PPI) such as omeprazole, along with a course of antibiotics when H. pylori cause the ulcer.
Over-the-counter medicine for ulcer symptoms includes antacids such as Tums (calcium carbonate) and Pepcid AC (famotidine), but OTC products aren’t meant to heal an ulcer or treat an infection.
There are no home remedies that can cure an ulcer completely, but avoiding nonsteroidal anti-inflammatory drugs (NSAIDs), alcohol, and smoking can help them heal or prevent them from coming back.
Ulcers are open sores that often develop in the stomach (gastric ulcers), the upper part of the intestine (duodenal ulcers), or the lower esophagus (esophageal ulcers). Gastric and duodenal ulcers may be caused by the bacterium Helicobacter pylori or by certain pain relievers like ibuprofen or aspirin, while esophageal ulcers usually result from acid reflux. Ulcers are common and can heal within a couple of months after getting the right treatment. See a healthcare provider if you experience black or bloody stools, vomiting, unexplained weight loss, or trouble swallowing.
Ulcers are usually diagnosed by a healthcare provider who can look at your medical history, perform a physical exam, and recommend further testing as needed. You can expect questions about symptoms, the use of NSAIDs or blood thinners, a family history of gastrointestinal cancer, and any serious red flags like black stools, vomiting, or weight loss. Testing for ulcers may include:
H. pylori testing: A urea breath test is fast and accurate, but stool or urine tests may also be used.
Blood tests: Since ulcers can cause bleeding, blood tests can help check for anemia.
Upper endoscopy (EGD): With this test, a thin, flexible camera allows the gastroenterologist to see the ulcer directly and, if needed, take a tissue sample.
Imaging: In some cases, an imaging test is needed with a barium swallow X-ray or CT scan to check for complications or rule out other conditions.
Diagnosing an ulcer early can help reduce the risk of bleeding, perforation, obstruction, and other complications. A healthcare provider can then determine the best treatment based on the results of these tests.
Ulcers can be cured by treating the underlying cause and reducing stomach acid to allow the sore to heal. Treatment may include stopping NSAIDs, taking antibiotics with acid reducers for an H. pylori infection, or treating GERD if acid reflux is causing an esophageal ulcer. A healthcare provider can evaluate the ulcer's cause and location to recommend a medication or other treatment. In severe cases, surgery or other procedures may be needed, especially if the ulcer doesn’t improve with medication alone.
Ulcer medications work by managing stomach acid, protecting the stomach lining, or treating an H. pylori infection.
Proton pump inhibitors are a first-line medication for treating and preventing stomach and esophageal ulcers. Drugs such as pantoprazole, omeprazole, and esomeprazole block the stomach's acid pumps. They are taken once or twice daily, often for several weeks, to heal an ulcer fully.
H2 blockers (histamine H2 receptor antagonists), such as famotidine and cimetidine, help prevent histamine from stimulating the release of stomach acid. Although they work faster than PPIs, they’re not as potent. Ranitidine is an older H2 blocker that was removed from the U.S. market in 2020 due to concerns of contamination.
Ulcers caused by H. pylori typically require antibiotic treatment. The first-line treatment plan for this infection is a PPI, bismuth subsalicylate, tetracycline, and metronidazole taken for 14 days. Other options include newer treatments using vonoprazan or rifabutin. An older regimen with clarithromycin and amoxicillin is now used only if tests show the bacteria will respond to it.
Sucralfate coats the ulcer and protects it from acid while it heals. Misoprostol protects the stomach lining and may be prescribed to prevent ulcers in people who need to stay on treatment with NSAIDs.
OTC products can help control ulcer symptoms. Antacids such as Tums (calcium carbonate), magnesium hydroxide, or Pepto-Bismol (bismuth subsalicylate) can quickly neutralize stomach acid, while Pepcid AC (famotidine) and Prilosec OTC (omeprazole) can offer longer relief. For pain, use Tylenol (acetaminophen), and avoid NSAIDs like ibuprofen, naproxen, and aspirin, since they can damage the stomach lining and worsen ulcers. Talk to a healthcare provider if you need these medicines for more than a few days.
| Drug name | See SingleCare price |
|---|---|
| Prilosec | Get free coupon |
| Nexium | Get free coupon |
| Protonix | Get free coupon |
| Prevacid | Get free coupon |
| Tagamet Hb | Get free coupon |
| Carafate | Get free coupon |
| Cytotec | Get free coupon |
| Voquezna | Get free coupon |
| Amoxicillin | Get free coupon |
This is not an exhaustive list of ulcer medications. Always ask your healthcare provider for the best treatment for an ulcer based on your health condition and medical history.
Side effects will depend on the drug class, dose, and other factors.
Common side effects of PPIs may include headache, nausea, diarrhea, and constipation. Long-term use may increase the risk of low vitamin B12 and magnesium levels, bone fractures, kidney problems, and C. difficile diarrhea.
Common side effects of H2 blockers may include headache, dizziness, and drowsiness. Confusion is a possible side effect, especially in older adults.
Common side effects of antibiotics include nausea, diarrhea, and a metallic taste (metronidazole).
This is not a complete list, so talk to a healthcare provider about any concerns or questions about side effects.
Home remedies aren’t enough to heal an ulcer on their own. However, they can help facilitate healing and protect the stomach from further irritation while the ulcer heals with other medications.
Avoid NSAIDs: Medications like ibuprofen, naproxen, and aspirin can disrupt the stomach’s protective lining. Consider using acetaminophen for pain instead.
Stop drinking and smoking: Alcohol and tobacco can increase stomach acid, irritate the stomach lining, and slow the healing of an ulcer.
Eat smaller meals: Several small meals per day can be easier on the stomach, while reducing coffee, soft drinks, and spicy or fatty foods can help reduce symptoms or flare-ups.
Add probiotic foods: Foods like yogurt, kefir, and other fermented foods can be helpful additions alongside H. pylori treatment to reduce antibiotic side effects.
Manage stress: Although stress doesn’t directly cause ulcers, it may worsen symptoms. Try exercises like stretching, yoga, and meditation to reduce stress.
While these lifestyle changes can help support healing, ulcers usually need medication to heal fully. If symptoms persist or worsen, consult a healthcare provider for the right treatment plan.
A mistake many patients make is stopping their PPI as soon as the pain gets better. The sore typically takes weeks to heal fully, so it’s important to complete the entire treatment course even if you feel fine.
The most commonly used medications for ulcers are proton pump inhibitors to reduce stomach acid. If H. pylori is causing the ulcer, antibiotics are recommended, since the ulcer can keep coming back until the infection is cleared.
The preferred first-line antibiotic plan combines tetracycline and metronidazole with bismuth and a PPI for 14 days. Amoxicillin, clarithromycin, and rifabutin are sometimes used depending on a person’s allergies or other factors.
Like any other sore, a stomach ulcer can be permanently cured. However, this doesn’t mean new ulcers won’t form later, especially if an underlying, untreated infection is causing them.
A simple stomach ulcer without complications can take about six to eight weeks or more to heal with the right medications. Duodenal ulcers can heal more quickly, typically within four to six weeks. An esophageal ulcer typically heals in two to eight weeks. Healing depends on what’s causing the ulcer.
Peptic ulcer disease, StatPearls (2023)
Non-steroidal anti-inflammatory drugs and the gastrointestinal tract, Clinical Medicine (2021)
Gastric ulcer, StatPearls (2026)
Esophageal ulcer, StatPearls (2025)
ACG clinical guideline: Treatment of Helicobacter pylori infection, American College of Gastroenterology (2024)
A global perspective on smoking’s impact on peptic ulcer disease: DALY trends and projections, Frontiers in Public Health (2025)
Treatment for peptic ulcers (stomach or duodenal ulcers), National Institute of Diabetes and Digestive and Kidney Diseases (2022)
Proton-pump inhibitors: What you need to know, Harvard Health Publishing (2024)
Gerardo Sison, Pharm.D., graduated from the University of Florida. He has worked in both community and hospital settings, providing drug information and medication therapy management services. As a medical writer, he hopes to educate and empower patients to better manage their health and navigate their treatment plans.
...Health education, drug info, wellness & more
SingleCare is a prescription discount service that offers free coupons on thousands of prescription drugs. It can be used whether you have insurance, Medicare, Medicaid, or none of the above, but it cannot be combined with insurance.
SingleCare provides transparent drug pricing, so you can compare discounts at pharmacies near you. Browse singlecare.com to find drug discounts, helpful information about your prescription, and resources to help you make informed health decisions.
Prescription savings vary by prescription and by pharmacy, and may reach up to 80% off cash price. This is a medical discount plan. This is NOT insurance. This program offers you the opportunity to locate providers of various types of medical services who will offer their services to you at discounted rates. The range of discounts for medical or ancillary services provided under the plan will vary depending on the type of provider and service received. You are fully responsible for paying for all health care services but will be entitled to receive a discount from those health care providers in accordance with the specific pre-negotiated discounted fee schedule. This program does not guarantee the quality of the services or procedures offered by the providers. Except for prescription drugs which you will pay directly to the pharmacy at the time of purchase, all other services received through a program provider will be charged to the credit card on file in your member account. The charge will include an administrative fee for use of the program. Towers Administrators LLC is the licensed discount medical plan organization with its administrative office located at 4510 Cox Road, Suite 111, Glen Allen, VA 23060. SingleCare Services, LLC is the marketer of the discount medical plan organization including its website, singlecare.com, with its corporate office located at 99 High Street, Suite 2800, Boston, MA 02110. For additional information, including an up-to-date list of providers, or assistance with any issue related to program membership, please contact member support any time at www.singlecare.com, or by calling toll-free 844-234-3057, 24 hours, 7 days a week (except major holidays). Pharmacy names, logos, brands, and other trademarks are the property of their respective owners.
Blog articles are not medical advice. They are intended for general informational purposes and are not meant to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition. If you think you may have a medical emergency, immediately call your physician or dial 911.
© 2026 SingleCare Administrators. All rights reserved
© 2026 SingleCare Administrators. All rights reserved