The most common warning sign of a peptic ulcer is a dull or burning pain in your upper abdomen, between the navel and the breastbone. Roughly 5 to 10% of people will develop an ulcer in their lifetime, and pain is usually the first clue. But ulcers don’t always announce themselves clearly, and some produce no pain at all until a serious complication develops.
How Ulcer Pain Typically Feels
Ulcer pain is most often described as a burning or gnawing sensation in the upper middle part of the abdomen. It tends to come and go over days or weeks rather than staying constant. Some people feel it most when their stomach is empty or in the middle of the night, and eating brings temporary relief. For others, eating actually makes the pain worse. That difference often depends on where the ulcer is located: ulcers in the small intestine (duodenal ulcers) tend to flare on an empty stomach, while ulcers in the stomach itself may worsen after meals.
The pain can be mild enough to dismiss as indigestion, which is part of what makes ulcers tricky to catch early. Many people live with the discomfort for weeks before seeking help, assuming it’s something they ate or stress-related heartburn.
Other Symptoms Beyond Pain
Pain isn’t always the lead symptom. Ulcers can also cause:
- Bloating or feeling unusually full after small meals
- Nausea, sometimes with vomiting
- Loss of appetite or unintentional weight loss
- Frequent burping
Some people experience what feels like a persistent stomachache that antacids temporarily relieve. If you notice that over-the-counter antacids help but the discomfort keeps returning, that pattern itself is a warning sign worth paying attention to.
It’s also possible to have a “silent” ulcer that produces no noticeable symptoms. This is more common in older adults and people who take anti-inflammatory pain relievers regularly. In these cases, the first sign of trouble may be a complication like internal bleeding rather than the gradual buildup of pain most people expect.
How Ulcer Pain Differs From Heartburn
Ulcers and acid reflux (GERD) can feel similar, which leads to confusion. Both involve stomach acid and both can cause a burning sensation. The key differences are location and associated symptoms. GERD typically produces burning behind the breastbone that rises toward the throat, often with regurgitation, bad breath, or difficulty swallowing. Ulcer pain sits lower, in the upper abdomen, and is less likely to involve that upward-moving burn.
Another distinguishing feature: GERD often worsens when you lie down or bend over, while ulcer pain doesn’t follow that positional pattern. If your symptoms include dark or bloody stools, that points toward an ulcer rather than reflux. The most reliable way to tell the difference is an upper endoscopy, where a gastroenterologist uses a thin, flexible camera to look directly at the lining of your stomach and small intestine.
Signs That Need Immediate Attention
Most ulcers are manageable when caught early. But left untreated, they can erode deeper into the stomach or intestinal wall and cause complications that become medical emergencies. These red flags mean you should get help right away:
- Vomiting blood, which may look red or resemble dark coffee grounds
- Black, tarry stools or stools with visible dark blood, a sign of bleeding in the digestive tract
- Sudden, sharp abdominal pain that comes on intensely and doesn’t let up
- A rigid abdomen that feels hard and is painful to touch
- Feeling faint, dizzy, or confused, or breaking into a cold sweat, which can signal significant blood loss or shock
Sudden sharp pain with a rigid abdomen can indicate a perforation, meaning the ulcer has eaten all the way through the wall of the stomach or intestine. This is a surgical emergency. Vomiting blood or passing dark stools signals active bleeding, which can escalate quickly.
What Causes Ulcers in the First Place
Understanding what causes ulcers helps explain why certain people should be especially alert to the warning signs. Two things are responsible for the vast majority of cases.
The first is a bacterial infection called H. pylori. This bacterium burrows into the protective mucus lining of the stomach and triggers inflammation. It survives in the acidic environment by producing an enzyme that neutralizes the acid around it. Over time, the inflammation damages the lining enough to form an open sore. H. pylori is extremely common globally, though most people who carry it never develop an ulcer.
The second major cause is regular use of nonsteroidal anti-inflammatory drugs like ibuprofen, naproxen, or aspirin. These medications work by blocking an enzyme involved in pain and inflammation, but that same enzyme also helps maintain the stomach’s protective lining. Without that protection, stomach acid can damage the exposed tissue. The risk increases with higher doses, longer use, and age.
Contrary to popular belief, spicy food and stress don’t cause ulcers, though they can aggravate symptoms in someone who already has one.
How Ulcers Are Diagnosed
If your symptoms suggest an ulcer, doctors typically start by testing for H. pylori. One of the simplest methods is a breath test: you swallow a small amount of a specially labeled substance, and if H. pylori bacteria are present, they break it down in a way that changes the carbon dioxide you exhale. The test takes just a few minutes and is noninvasive.
For a definitive diagnosis, or if there’s concern about bleeding or other complications, the standard is an upper GI endoscopy. A gastroenterologist passes a flexible tube with a camera down through your mouth to visually inspect the lining of your esophagus, stomach, and the first part of your small intestine. During the procedure, they can take small tissue samples to check for H. pylori, rule out other conditions, and assess the ulcer directly. The procedure itself is typically done under light sedation and takes about 15 to 20 minutes.
Who Should Be Most Watchful
Some people are at higher risk and should take any persistent upper abdominal discomfort more seriously. You’re more likely to develop an ulcer if you take NSAIDs frequently, especially if you’re over 60 or take them alongside blood thinners or corticosteroids. Smoking increases risk and slows healing of existing ulcers. Heavy alcohol use irritates and erodes the stomach lining, compounding the damage from other risk factors.
If you have a history of ulcers, recurrence is common, particularly if the underlying cause wasn’t fully addressed. People who were treated for an ulcer but never tested for H. pylori, or who tested positive but didn’t complete the full course of treatment, are especially vulnerable to developing another one.

