Yes, ulcer pain typically comes and goes. Most people with peptic ulcers experience episodes of burning pain that last minutes to hours, then disappear completely before returning. This on-and-off pattern is one of the hallmark features of ulcer disease, and some people even go through weeks or months of feeling fine between flare-ups.
What the Pain Pattern Feels Like
The most common sensation is a burning or gnawing pain in the upper middle part of your abdomen, roughly between your belly button and breastbone. A typical episode starts two to three hours after eating or very late at night, and it can last anywhere from a few minutes to several hours before fading on its own.
What makes ulcer pain distinctive is that it follows a rhythm tied to your stomach’s activity. When your stomach produces acid with no food to absorb it, the acid contacts the raw ulcer surface and triggers pain. Once you eat something or take an antacid, the acid gets neutralized and the pain eases. Then, a few hours later when digestion winds down and acid builds up again, the cycle repeats.
Gastric vs. Duodenal Ulcer Pain
The two main types of peptic ulcers produce slightly different patterns. Duodenal ulcers (in the first section of the small intestine) tend to be more predictable. You might wake up feeling fine, develop pain by midmorning, get relief from eating, then feel the pain return two to three hours after your meal. This eat-relief-pain cycle can repeat throughout the day.
Stomach ulcers are less consistent. Eating sometimes helps, but with certain stomach ulcers, food actually makes the pain worse. These ulcers can also cause bloating, nausea, and vomiting, particularly when swelling near the stomach’s outlet starts to interfere with digestion. Because stomach ulcer symptoms are less predictable, people with them sometimes go longer before recognizing a pattern.
Why Pain Disappears and Returns
The come-and-go nature of ulcer pain isn’t just about daily acid cycles. Ulcers can actually heal partially on their own, giving you days or weeks without symptoms, then reopen when the underlying cause is still present. This is called spontaneous healing and relapse. If an H. pylori bacterial infection is driving your ulcer, the inflammation it causes will keep damaging your stomach lining even during periods when you feel fine. The ulcer heals just enough for symptoms to stop, then breaks back open.
The same thing happens with ulcers caused by regular use of anti-inflammatory painkillers like ibuprofen, naproxen, or aspirin. The medication keeps irritating the stomach lining, so even if the ulcer starts to close up, continued use reopens it. This is why ulcer pain can seem to come in waves over weeks or months. You’re not imagining the good stretches. The ulcer genuinely improves, but without treating the root cause, it comes back.
Why Ulcers Hurt More at Night
Many people notice their worst ulcer pain happens late at night or in the early morning hours. Your stomach continues producing acid while you sleep, and without any food in your stomach to buffer it, that acid sits directly on the ulcer. People with duodenal ulcers produce roughly 65% more acid overnight compared to people without ulcers, which helps explain why nighttime pain is so common with this type. Waking up between 1 and 3 a.m. with a burning stomach is a classic ulcer symptom.
What Makes Flare-Ups Worse
Several factors can intensify ulcer pain or trigger a return of symptoms during a quiet period. Stress and spicy foods don’t cause ulcers, but they do make existing ones hurt more. Smoking increases ulcer risk in people with H. pylori infections. Alcohol irritates the stomach lining directly and ramps up acid production, which is a combination that aggravates an open ulcer quickly.
Anti-inflammatory painkillers deserve special attention because they’re both a cause and an aggravator. The risk of serious complications climbs with higher doses, longer use, age over 65, and combining these drugs with blood thinners or corticosteroids. If you’re taking these medications regularly and noticing stomach pain that comes and goes, that pattern alone is worth bringing up with your doctor.
When Ulcers Cause No Pain at All
Not everyone with an ulcer feels it. Research suggests that as many as two-thirds of people with peptic ulcer disease have no remarkable symptoms. These “silent” ulcers are particularly common in older adults and people taking anti-inflammatory painkillers, which can mask the pain they’re simultaneously causing. Silent ulcers are concerning because the first sign of a problem can be a serious complication rather than a warning ache.
Signs That Something More Serious Is Happening
The typical come-and-go burning pain of an ulcer, while uncomfortable, is manageable. But ulcers can erode into a blood vessel or eat through the stomach wall entirely. If your pain suddenly becomes constant and severe rather than episodic, that shift in pattern matters. Vomiting blood or material that looks like coffee grounds, dark or tarry stools, unexplained weight loss, and feeling faint or lightheaded are all signs that the ulcer has progressed beyond something that will resolve on its own.
The key distinction is the pattern change. Ulcer pain that comes and goes is the expected course of the disease. Pain that stops coming and going, becomes dramatically worse, or is accompanied by any of these additional symptoms signals a complication that needs immediate attention.

