People with ulcers should avoid foods that increase stomach acid or cause stomach pain, heartburn or indigestion, according to Drugs.com. Common foods in this category are cola, coffee, some types of tea, citrus juices and seasonings.
Drugs.com provides a list of common dietary irritants for those with ulcers and gastritis. Beverages to avoid include hot cocoa, cola, chocolate milk, whole milk and coffee. Peppermint, spearmint, green and black tea can contribute to ulcer pain, as can orange and grapefruit juice and alcoholic drinks. Seasonings to avoid include black and red pepper, garlic powder and chili powder. Dairy foods made from whole milk or cream, spicy or strongly flavored cheeses, and highly seasoned, high-fat meats can exacerbate ulcer discomfort. Ulcer patients must avoid consuming hot peppers, onions, garlic and tomato products.
Health.com lists 16 foods and beverages people with ulcers should avoid. This list includes beans, broccoli, seeds, corn and mushrooms as well as whole spices, chocolate and nuts. It echoes the prohibition on coffee, tea, dairy, fatty meats and creamy foods, and also cautions against alcohol, soda and onions.
Some dietary modifications, such as eating smaller meals and limiting alcohol, can minimize ulcer-related pain, states WebMD. It is important to avoid using non-steroidal anti-inflammatory drugs, or NSAIDs, and to treat Helicobacter pylori bacteria, or H. pylori, as those are the two most common causes of peptic ulcers. Smokers have a much higher rate of ulcers than non-smokers, so WebMD also advises quitting smoking.