A peptic ulcer is an open sore that forms on the lining of your stomach, small intestine, or esophagus. The lining of your digestive tract normally has a protective layer of mucus that shields it from stomach acid. When this protective layer breaks down, the acid damages the tissue underneath, creating an ulcer. This damage doesn't happen overnight—it typically develops over weeks or months.
Get Your Free ComEd Billing Guide →
Two main factors cause most peptic ulcers. The first is infection with a bacterium called Helicobacter pylori (H. pylori). According to the National Institute of Diabetes and Digestive and Kidney Diseases, H. pylori affects roughly 30 to 40 percent of people in the United States. This bacteria colonizes the stomach lining and can trigger inflammation that weakens the protective mucus layer. The second major cause is the regular use of nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen and naproxen. These medications block substances that help maintain the stomach's protective lining, making ulcers more likely to form.
Other factors can increase your ulcer risk. Stress and spicy foods were once thought to cause ulcers, but research shows they rarely do. However, they can make existing ulcers feel worse. Smoking and heavy alcohol use can damage the stomach lining and reduce the effectiveness of treatments. Age also plays a role—people over 60 develop ulcers more often, partly because they use NSAIDs more frequently for chronic pain conditions.
Common symptoms include burning stomach pain (especially between meals or at night), bloating, heartburn, nausea, and loss of appetite. Some people experience no symptoms at all until a serious complication develops. A guide about ulcer treatment options should explain these warning signs so you can recognize when to seek medical evaluation.
Practical takeaway: Understanding what causes your ulcer—whether it's H. pylori infection, NSAID use, or another factor—is the first step toward choosing an effective treatment strategy.
Before any treatment begins, your doctor needs to confirm that you have an ulcer and identify the underlying cause. Several diagnostic methods exist, and your doctor will choose based on your symptoms and medical history. Understanding what these tests involve helps you know what to expect during a medical evaluation.
Learn About Filing Complaints Against Lawyers →
An upper endoscopy is one of the most common diagnostic tools. During this procedure, your doctor uses a thin, flexible tube with a camera (called an endoscope) to directly view your stomach and small intestine lining. If an ulcer is present, the doctor can see it and sometimes take a small tissue sample for testing. This procedure typically takes 15 to 20 minutes and is done under mild sedation. According to the American Gastroenterological Association, upper endoscopy allows doctors to identify about 90 percent of peptic ulcers accurately.
An upper gastrointestinal (GI) X-ray uses a liquid called barium that shows up on imaging. You drink the barium solution, and as it moves through your digestive tract, X-rays are taken to look for ulcers. This method is less invasive than endoscopy but provides less detailed information. X-rays are often used when endoscopy is unavailable or when the patient prefers a simpler procedure.
H. pylori testing is essential because treatment differs significantly depending on whether this bacterium is present. Several testing methods exist. A breath test involves drinking a liquid containing a special carbon compound; if H. pylori is present, it produces a detectable gas that appears in your breath. Stool antigen tests check for H. pylori proteins in your feces. Blood tests look for antibodies your body creates in response to H. pylori infection. A tissue biopsy taken during endoscopy can also be tested for the bacteria. Each test has different accuracy rates, and your doctor may use more than one to confirm results.
Practical takeaway: Knowing which diagnostic tests you might need helps you prepare mentally and logistically, and understanding what each test reveals allows you to make informed decisions with your healthcare provider.
Several classes of medications effectively treat peptic ulcers by either reducing acid production or protecting the stomach lining. Your doctor will recommend medications based on the cause of your ulcer and your individual health situation. A treatment guide should explain how these medications work and what you might expect.
Learn About Driver Grant Programs Available →
Proton pump inhibitors (PPIs) are among the most commonly prescribed ulcer medications. These drugs reduce the amount of acid your stomach produces by blocking the mechanism that creates it. Common PPIs include omeprazole, lansoprazole, and pantoprazole. Studies published in the journal Gastroenterology show that PPIs heal about 80 percent of stomach ulcers within four weeks when used correctly. For ulcers caused by H. pylori, PPIs are often combined with antibiotics. PPIs work best when taken 30 to 60 minutes before meals. Most people tolerate them well, though long-term use may affect your ability to absorb certain vitamins like B12 and calcium.
Histamine-2 (H2) blockers represent an older class of acid-reducing drugs. These medications include famotidine and cimetidine. They work by blocking histamine, a chemical that triggers acid production. H2 blockers are less powerful than PPIs but may cause fewer drug interactions. They typically take effect within 30 minutes and last for several hours. Many H2 blockers are available over-the-counter, though prescription versions provide higher doses.
If your ulcer is caused by H. pylori, antibiotic therapy is necessary to eliminate the infection. Standard treatment typically involves taking three or four medications together for 10 to 14 days. A common combination includes a PPI plus two or three antibiotics such as amoxicillin, clarithromycin, and metronidazole. After completing antibiotic treatment, your doctor may test you again to confirm the infection has cleared. According to the American College of Gastroenterology, this approach successfully eliminates H. pylori in approximately 85 to 90 percent of patients.
Antacids like calcium carbonate or magnesium hydroxide provide quick relief by neutralizing acid already in your stomach. They work fast but don't last long, making them useful for occasional symptoms rather than long-term treatment. Bismuth compounds like bismuth subsalicylate coat the stomach lining and reduce inflammation while also fighting H. pylori bacteria, sometimes used as part of combination therapy.
Practical takeaway: Different medications work through different mechanisms, so understanding how each type functions helps you appreciate why your doctor might recommend a specific combination tailored to your ulcer's cause.
While medications do the primary work of treating ulcers, the choices you make daily significantly influence how quickly you heal and whether ulcers return. A comprehensive guide about treatment should include information about lifestyle factors that matter. These aren't substitutes for medical treatment, but they work alongside medications to improve outcomes.
Free Guide to Understanding Kiwanis Organizations →
Diet plays an important role in managing ulcer symptoms, though certain foods don't actually cause ulcers despite common beliefs. Instead, focus on avoiding foods that trigger your personal symptoms. Common irritants include spicy foods, citrus fruits, tomato-based products, coffee, and alcohol—but these affect people differently. Some individuals tolerate all these foods without problems. Keep a simple food diary for a week, noting what you eat and when symptoms occur. This personal information is far more useful than general rules. Eating smaller, more frequent meals rather than three large ones can help because smaller amounts of food reduce the amount of acid your stomach produces at once.
Smoking significantly slows ulcer healing. Studies show that smokers heal 30 to 40 percent more slowly than non-smokers, even when taking the same medications. Smoking reduces the protective mucus layer, increases acid production, and impairs blood flow to the stomach lining. If you smoke, quitting—or even reducing the number of cigarettes—meaningfully improves your healing timeline. Many communities offer smoking cessation programs and resources.
Alcohol use requires careful attention. While alcohol doesn't cause ulcers in most people, it can irritate an existing ulcer and slow healing. If you have an active ulcer, minimizing or eliminating alcohol temporarily allows your stomach lining to recover.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.