This is an open sore that forms in the lining of your stomach or the first part of your small intestine. It happens when the protective lining gets damaged, often by stomach acid or sometimes by bacteria. It can cause pain and sometimes bleeding.
Every report comes from a Lived member, sent anonymously.
Have you tried Prilosec (Omeprazole) for Peptic Ulcer?
A peptic ulcer is an open sore in the lining of the stomach or the duodenum, the first part of the small intestine. Those organs are normally bathed in strong acid and digestive enzymes, and a protective mucus layer keeps that acid from harming the tissue underneath. When that protection breaks down, acid wears through the lining and an ulcer forms. Ulcers in the duodenum are about four times as common as ulcers in the stomach. A similar ulcer can form where the stomach is joined to the small intestine after gastric bypass surgery; this is called a marginal ulcer. The most typical symptom is a dull or burning pain in the upper abdomen, between the belly button and the breastbone. It often comes and goes over days or weeks, and for some people it appears on an empty stomach or at night and eases briefly after eating, while for others eating makes it worse. Bloating, belching, nausea and feeling full quickly are also common. Many people have no symptoms at all until an ulcer bleeds or causes another complication, which is one reason ulcers matter even when they feel minor.
Two causes account for most peptic ulcers. The first is infection with Helicobacter pylori (H. pylori), a common stomach bacterium that many people carry for years without symptoms. In some people it inflames and weakens the stomach's protective lining. The second is regular use of nonsteroidal anti-inflammatory drugs (NSAIDs), the pain relievers that include aspirin, ibuprofen and naproxen. NSAIDs make the lining more vulnerable to acid, and the risk climbs with long-term use, higher doses, combining more than one NSAID, or taking one while also infected with H. pylori. Corticosteroids, some osteoporosis medicines and some antidepressants add to that risk, especially when taken alongside an NSAID. Risk is also higher in older adults, in people who have had an ulcer before and in people who smoke. Less common causes include other infections, Crohn's disease, severe illness, reduced blood flow to the stomach and Zollinger-Ellison syndrome, a rare condition in which tumors drive the stomach to make too much acid. Stress and spicy food do not cause ulcers, although for some people they can make symptoms feel worse. Researchers have not found that any particular diet prevents or heals ulcers.
A clinician starts by asking about symptoms, past ulcers or H. pylori infection, and every medicine you take, including over-the-counter pain relievers and aspirin. A physical exam checks the abdomen for tenderness or swelling. Because the treatment depends on the cause, testing for H. pylori is a central step. A urea breath test (you swallow a harmless labeled substance that the bacteria break down, then breathe into a container) or a stool test can detect an active infection. Blood tests mainly check for anemia from blood loss; a blood test for H. pylori shows past exposure rather than an active infection. An upper endoscopy confirms the diagnosis. A doctor passes a thin, flexible tube with a camera through the mouth to look directly at the esophagus, stomach and duodenum. Small tissue samples (biopsies) can be taken to check for H. pylori and other causes. Sometimes an x-ray series after swallowing a chalky liquid called barium is used instead.
Treatment has two goals: let the ulcer heal and remove what caused it, so it does not come back. Acid-lowering medicine does the healing. Proton pump inhibitors (PPIs), such as omeprazole (Prilosec), sharply reduce the acid the stomach makes, and most ulcers heal within four to eight weeks of treatment. Histamine-2 (H2) blockers such as famotidine (Pepcid), which block a different acid signal, are a less powerful alternative. Antacids and milk may soothe pain briefly but cannot heal an ulcer. If H. pylori is found, it is treated with a combination of medicines taken together, usually for 14 days. The regimen US gastroenterologists prefer combines a PPI, bismuth subsalicylate (the ingredient in Pepto-Bismol) and two antibiotics. Bismuth commonly turns stool and the tongue black, which is expected and harmless. Black stool together with dizziness, fainting or vomiting blood still needs emergency care, and if you are unsure, ask your care team. Another approved option pairs vonoprazan (Voquezna), a newer acid blocker, with the antibiotic amoxicillin. Taking every dose matters, because stopping early can leave bacteria behind that become resistant to the antibiotics. A breath or stool test at least four weeks after finishing confirms whether the infection is gone; if it is not, a different combination is used. Your clinician may ask you to pause acid-lowering medicine for a short time beforehand so the result is accurate. If an NSAID caused the ulcer, the clinician may suggest stopping it, lowering the dose or switching to a different pain reliever. When someone needs to keep taking an NSAID or aspirin for another condition, a daily PPI can protect the stomach. Quitting smoking helps ulcers heal. Bleeding ulcers are treated in the hospital, usually during endoscopy, while a perforation usually needs surgery. Otherwise, surgery is now rarely needed except for ulcers that will not heal.
Once the cause is treated, most ulcers heal within a few weeks, and most people take medicine for about two months. Pain often improves within days of starting acid-lowering treatment, but feeling better is not proof that the ulcer or the infection is gone, so finishing the full course and returning for the follow-up test matter. Clearing H. pylori lowers the chance of another ulcer, and it also removes a known risk factor for stomach cancer. Ulcers tend to return when the cause remains, for example when NSAIDs continue without protection or the infection persists or comes back. If an ulcer does not heal or returns, doctors look again for a hidden cause, may repeat endoscopy with biopsies, and may extend treatment. Long-term, it helps to keep a list of past ulcers and H. pylori treatment for any future clinician, and to check before starting over-the-counter pain relievers. People who need ongoing aspirin or NSAIDs for another condition should agree on a stomach-protection plan with their care team and mention it to any new prescriber.
Make an appointment if you have upper abdominal pain or indigestion that keeps coming back, if you regularly take NSAIDs and develop stomach symptoms, if you have repeated vomiting, trouble keeping food down or unexplained weight loss, or if ulcer symptoms change or return after treatment. Get emergency care for signs that an ulcer is bleeding or has broken through the wall of the stomach or intestine: black or tarry stool, red or maroon blood in the stool, vomiting blood or material that looks like coffee grounds, sudden sharp or severe abdominal pain that does not go away, or feeling dizzy or faint, or having a racing pulse.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share what living with Peptic Ulcer is like, what's helped you, or ask the community a question.