The most common ulcer aggravators are painkillers like ibuprofen and naproxen, smoking, alcohol, high-salt foods, and psychological stress. Each one interferes with your stomach’s ability to protect and repair itself, either by ramping up acid production or by weakening the mucus barrier that shields your stomach lining from that acid. Some widely believed remedies, like drinking milk, can actually make things worse.
Anti-Inflammatory Painkillers
Nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen, naproxen, and indomethacin are the single biggest medication-related trigger for ulcer flare-ups. Your stomach lining relies on hormone-like substances called prostaglandins to maintain its protective mucus coating. NSAIDs suppress prostaglandin production, which thins that coating and leaves your tissue exposed to digestive acid. At the same time, most NSAIDs increase the muscular contractions of your stomach wall. That combination of weakened defense and increased physical stress creates the perfect conditions for ulcers to form or worsen.
Interestingly, not all NSAIDs behave the same way. Research published in the World Journal of Gastroenterology found that while drugs like indomethacin and naproxen both suppressed prostaglandins and ramped up stomach contractions, aspirin suppressed prostaglandins without increasing those contractions. Aspirin actually triggers the production of a protective compound in the stomach that other NSAIDs don’t. That said, aspirin can still irritate ulcers through direct contact with the stomach lining, so it’s not considered safe for people with active ulcers either.
If you’re taking an NSAID regularly for pain or inflammation and you have an existing ulcer, that medication is likely slowing your healing or making the ulcer worse with every dose.
Smoking
Smoking attacks your stomach’s defense system from a different angle. Your duodenum (the first section of your small intestine, just past the stomach) produces bicarbonate, a natural acid-neutralizing substance that protects the lining from stomach acid flowing downstream. Cigarette smoking slashes that bicarbonate response by roughly 80%, based on research in the Annals of Internal Medicine. Every participant in the study showed a decrease. That’s a dramatic reduction in one of your body’s primary defenses against acid damage.
This helps explain why smokers are significantly more likely to develop duodenal ulcers and why existing ulcers heal more slowly in people who smoke. If you have an active ulcer, continuing to smoke essentially keeps the wound bathed in acid without the buffer your body normally provides.
Alcohol
Alcohol at concentrations of 10% or higher (roughly the strength of wine or stronger) disrupts the gastric mucosal barrier and increases the permeability of your stomach lining. In simpler terms, it makes the protective layer leaky, allowing acid to reach the vulnerable tissue underneath. Alcohol also appears to reduce prostaglandin production in the stomach, similar to what NSAIDs do, further weakening mucosal defenses.
You don’t need to be a heavy drinker for this to matter. Even moderate drinking can aggravate an existing ulcer by repeatedly compromising the lining’s ability to protect itself. Beer and wine aren’t gentler options; what matters is the alcohol concentration reaching your stomach.
High-Salt Diets
A high-salt diet is especially dangerous if you carry H. pylori, the bacterium responsible for most ulcers. H. pylori produces a protein called CagA that damages stomach tissue. Research in Infection and Immunity found that a high-salt diet actually increases the expression of the gene responsible for this protein, essentially turning up the volume on the bacterium’s most harmful tool.
In animal studies, the results were striking: 100% of H. pylori-infected animals on a high-salt diet developed severe gastric disease at four months, compared to 58% on a regular diet. The high-salt group also showed significantly more stomach inflammation, greater loss of acid-producing cells, and higher levels of inflammatory markers. Animals without the CagA-producing strain showed no increased damage from salt alone, which confirms that salt works as an amplifier of H. pylori’s destructive effects rather than causing damage independently.
Practically, this means that processed foods, cured meats, soy sauce, and other high-sodium staples can worsen your ulcer if H. pylori is involved, which it is in the majority of peptic ulcers.
Stress
The old idea that stress “causes” ulcers has been largely replaced by the understanding that H. pylori and NSAIDs are the primary culprits. But stress genuinely does aggravate existing ulcers through a clear physiological pathway. When you’re under sustained stress, your body produces elevated levels of acetylcholine and histamine, two chemical signals that directly stimulate your stomach’s acid-producing cells. These signals activate a pump on those cells that pushes hydrogen ions (the key component of stomach acid) into your stomach. More stress, more signaling, more acid.
Stress also increases gastrin, a hormone that triggers acid secretion through the same cellular pathway. The result is a stomach producing more acid than it needs for digestion, bathing an already-damaged ulcer in corrosive fluid. This is why stressful periods often coincide with worse ulcer symptoms, even when diet and medication haven’t changed.
Coffee
Coffee stimulates the release of gastrin, the hormone that drives acid production. Caffeinated ground coffee has the strongest effect, with instant caffeinated coffee close behind. Decaffeinated coffee produces less gastrin stimulation, but doesn’t eliminate it entirely, which means the acid-boosting effect comes partly from caffeine and partly from other compounds in coffee itself.
That said, the relationship between coffee and ulcers is more nuanced than most people assume. Most large studies have found no association between regular coffee drinking and the risk of developing peptic ulcers. Coffee increases acid output temporarily, which can worsen symptoms if you already have an ulcer, but it doesn’t appear to cause ulcers on its own. If coffee makes your ulcer pain flare, switching to decaf may help reduce the acid response, though it won’t eliminate it completely.
The Milk Myth
Milk feels soothing going down, which is why it’s been recommended as an ulcer remedy for decades. But milk is actually a net acid stimulator. A study of ulcer patients found that 240 ml (about one cup) of whole, low-fat, or nonfat milk all produced a significant increase in stomach acid secretion, generating roughly 20% to 35% of the stomach’s maximum acid output. The proteins and calcium in milk are both direct stimulants of acid production.
For people with duodenal ulcers specifically, milk produced an even greater acid response than it did in healthy subjects. So while that glass of milk may provide a few minutes of relief by temporarily coating the stomach, the rebound in acid production that follows can leave your ulcer worse off than before.
When Pain Gets Worse
The timing of your pain can tell you something about what’s aggravating your ulcer. The hallmark ulcer symptom is a dull or burning pain between your breastbone and navel. This pain commonly flares between meals or wakes you at night, periods when your stomach is relatively empty but still producing acid. Without food to absorb some of that acid, the exposed ulcer takes the full impact.
Eating sometimes temporarily relieves the pain by diluting stomach acid, but certain foods then trigger a rebound in acid production (as milk does), restarting the cycle. Paying attention to which foods correlate with pain flares two to three hours later, not just during the meal, gives you a more accurate picture of your personal triggers.

