A stomach ulcer is a sore that develops in the lining of your stomach, small intestine, or esophagus. The stomach naturally produces acid to break down food during digestion. Normally, a protective mucus layer shields the stomach lining from this acid. But when that protective layer breaks down or when acid production increases abnormally, the acid can eat into the tissue underneath, creating an open sore.
Free Guide to Growing Chayote Squash at Home →
Two main culprits cause most stomach ulcers. The first is infection with a bacterium called H. pylori (Helicobacter pylori). This bacteria can live in the stomach lining and gradually damage the protective mucus layer. According to medical research, H. pylori causes about 60% of stomach ulcers worldwide, though rates vary by region and age group. The second major cause is regular use of nonsteroidal anti-inflammatory drugs (NSAIDs)—common over-the-counter painkillers like ibuprofen, naproxen, and aspirin. NSAIDs account for roughly 25% of ulcer cases. When taken frequently, especially on an empty stomach or in high doses, these medications can irritate and erode the stomach lining.
Less common causes include stress-related ulcers (which can develop after severe physical or emotional trauma), Zollinger-Ellison syndrome (a rare condition where the stomach produces too much acid), and Crohn's disease. Contrary to popular belief, spicy food and stress alone don't cause ulcers, though they may worsen symptoms in some people.
Practical takeaway: If you take NSAIDs regularly, understanding your personal risk can help you make informed conversations with your doctor about whether you need additional stomach protection or alternative pain management strategies.
Stomach ulcer symptoms vary widely from person to person. Some people experience no symptoms at all and only discover an ulcer during testing for another reason. Others have noticeable warning signs that prompt them to seek medical care.
Free Guide to Series 7 License Requirements and Steps →
The most common symptom is a burning pain in the stomach area, typically between meals or at night when the stomach is empty. This pain often happens because stomach acid irritates the exposed ulcer. Many people describe it as a gnawing or aching sensation that can range from mild discomfort to severe pain. Other frequent symptoms include bloating, heartburn, loss of appetite, nausea, and feeling uncomfortably full after eating small amounts of food.
More serious warning signs suggest you should contact a healthcare provider without delay. These include vomiting blood (which may appear red or like coffee grounds), black or tarry stools, unexplained weight loss, and severe abdominal pain. These symptoms can indicate complications like internal bleeding or a perforated ulcer (a hole in the stomach wall), both of which require urgent medical evaluation.
The timeline matters too. If you've had burning stomach pain for more than a few weeks, or if over-the-counter antacids stop working, that's worth discussing with a doctor. A healthcare provider can perform tests to confirm whether you actually have an ulcer and identify the underlying cause—information that changes which treatment approach makes sense for your situation.
Practical takeaway: Keep a brief note of when your symptoms happen (after meals, at night, when stressed), what foods or activities make them better or worse, and how long they last. This information helps your doctor narrow down possible causes more quickly.
Before recommending treatment, doctors need to confirm that you actually have an ulcer and identify what caused it. Several different tests can accomplish this, and your doctor will choose based on your symptoms, medical history, and what information matters most for your care.
Get Your Free Pinto Bean Growing Guide →
The upper endoscopy (also called EGD or esophagogastroduodenoscopy) is the gold standard for ulcer diagnosis. During this procedure, a doctor inserts a thin tube with a camera through your mouth down into the stomach and first part of the small intestine. This allows direct visualization of any ulcers and lets the doctor take tissue samples if needed. While it sounds uncomfortable, most people tolerate it reasonably well because the throat is numbed first. The procedure takes about 15 to 30 minutes.
H. pylori testing is almost always performed if an ulcer is found, because identifying this infection changes treatment significantly. Several types of H. pylori tests exist: breath tests (where you drink a special liquid and your breath is analyzed), stool tests, blood tests, and tissue samples taken during endoscopy. Breath tests and stool tests are non-invasive and often used first.
Other diagnostic options include upper GI X-rays (where you swallow a contrast liquid that shows up on imaging) and less commonly, CT scanning. These imaging tests can suggest ulcers exist but are less reliable than endoscopy for confirming diagnosis and identifying the cause.
One important note: if you're taking certain medications or have recent use of antibiotics, these can affect H. pylori test results. Your doctor will ask about your medication list before testing to interpret results accurately.
Practical takeaway: Write down any medications you take regularly (including over-the-counter ones) and bring this list to your appointment. This helps your doctor choose the most reliable test and correctly interpret the results.
When H. pylori bacteria causes an ulcer, the treatment strategy focuses on eliminating the infection and allowing the ulcer to heal. This typically involves a combination of medications taken together for 1 to 2 weeks—an approach called triple or quadruple therapy depending on the specific drugs used.
Learn About Vaginal Health and Discharge →
The most common treatment regimen includes two antibiotics plus a proton pump inhibitor (PPI). A PPI is a medication that dramatically reduces stomach acid production, creating an environment where the ulcer can heal and antibiotics can work more effectively. Examples of commonly prescribed PPIs include omeprazole (Prilosec), lansoprazole (Prevacid), and pantoprazole (Protonix). A typical H. pylori treatment might combine the antibiotic amoxicillin with another antibiotic like clarithromycin or metronidazole, plus a PPI taken twice daily.
Quadruple therapy adds a fourth medication—usually bismuth subsalicylate (the active ingredient in Pepto-Bismol) or another agent—and is often used when triple therapy fails or in regions where antibiotic resistance is more common. Research shows that cure rates with these combination regimens range from 85% to 95%, though effectiveness varies based on which specific antibiotics are used and local resistance patterns.
After completing the antibiotic course, patients typically continue the PPI alone for several more weeks to allow complete ulcer healing. Your doctor will provide specific instructions about how long to take each medication. A follow-up H. pylori test is usually recommended at least 4 weeks after treatment ends (and after stopping PPIs) to confirm the infection was eliminated. This test-of-cure step matters because if the bacteria wasn't fully eliminated, the ulcer can return.
Side effects from these medications are generally mild—common ones include nausea, diarrhea, metallic taste in the mouth, and headache. Most side effects resolve after treatment ends. However, PPIs carry some considerations with long-term use (discussed in later sections), so the goal is to use them for the shortest duration needed.
Practical takeaway: Take all antibiotics exactly as prescribed, even if symptoms improve before the course is finished. Stopping antibiotics early is a leading cause of treatment failure and antibiotic resistance.
When NSAIDs cause an ulcer, the treatment approach differs from H. pylori ulcers because no infection needs to be eliminated. Instead, the focus is on stopping NSAID use (if possible), healing the existing ulcer, and preventing future ones if continued NSAID use is necessary.
Understanding Vaginal Health and Odor →
For acute ulcer healing, a PPI is usually prescribed for 4 to 8 weeks. Omeprazole, lansoprazole, and pantoprazole all work effectively for this purpose. The reduced stomach acid gives the ulcer tissue time to repair itself. If the ulcer is large or
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.