A marginal ulcer is an open sore that forms at or near the connection between the stomach pouch and the small intestine after gastric bypass (or one-anastomosis bypass). It is one of the most common long-term problems after gastric bypass, and most can be treated with medicine, especially when caught early.
On this page: What it is · Symptoms · Emergencies · Causes and risk factors · Prevention · Treatment tips · Diet and lifestyle · References

What is a marginal ulcer?
- It forms at the connection (anastomosis) between the stomach pouch and the small intestine, usually on the intestine side, which is not built to handle acid.
- Reported rates vary widely, from under 1% to about 25% in different studies; in a large review, about 5% of gastric bypass patients developed one.[1]
- Many appear in the first year after surgery, but they can happen months or years later, often after someone starts smoking, vaping or taking NSAIDs.[2]
- See also Risks of Metabolic Surgery.
Symptoms
- Burning, gnawing or aching pain in the upper belly, often right after eating
- Pain or discomfort when eating or swallowing; eating less because it hurts
- Nausea or vomiting
- Food feeling stuck (an ulcer can scar and narrow the connection)
- Black, tarry stools or tiredness from slow bleeding (anemia)
- Some ulcers cause no symptoms until they bleed
If you have these symptoms, call your surgical team. The diagnosis is usually made with an upper endoscopy (a camera exam).
When it is an emergency
🚨 Call 911 or go to the nearest emergency room for
- Sudden, severe belly pain, especially with a hard or swollen belly, fever, a fast heart rate or feeling faint. This can mean the ulcer has made a hole (perforation), which needs emergency surgery.
- Vomiting blood or material that looks like coffee grounds
- Black, tarry stools with dizziness, weakness or fainting
Tell the emergency team that you have had gastric bypass surgery and ask them to contact your surgeon.
Causes and risk factors
Anything that increases acid or reduces blood flow and healing at the connection raises the risk. In a combined analysis of studies with more than 340,000 gastric bypass patients, the risk factors that stood out were:[3]
| Risk factor | How much it raises the risk |
|---|---|
| H. pylori infection (a common stomach bacteria) | Linked to higher risk in some studies but not in others[4] |
| Smoking | About 2½ times |
| Diabetes | About 1.8 times |
| NSAIDs (ibuprofen, naproxen, aspirin and others) | Trend toward higher risk |
| Oral steroids (such as prednisone) | Raise the risk and slow healing; avoid when possible |
- All forms of nicotine and tobacco count: cigarettes, vapes and e-cigarettes, cigars, hookah, chewing tobacco and nicotine pouches. Marijuana smoke also damages tissue.
- NSAIDs should never be taken after gastric bypass. Check labels on cold, sinus and headache products. Tell every doctor, dentist and pharmacist that you have had gastric bypass.
- Oral steroids (such as prednisone) also raise the risk and slow healing, and should be avoided when possible. Heavy alcohol use and poorly controlled blood sugar can also slow healing.
Prevention
- Take your acid-reducing medicine (PPI) every day for the first 3 months after surgery, as prescribed.
- No nicotine of any kind, for life. Ulcers can appear years later if someone starts smoking or vaping.
- No NSAIDs, ever, after gastric bypass. Use acetaminophen (Tylenol) for pain unless your doctor says otherwise.
- Keep diabetes under control.
- Limit alcohol.
- Avoid oral steroids (such as prednisone) when possible. If you truly need steroids, or a blood thinner long term, tell the prescribing doctor you have had gastric bypass and ask whether you should also take a PPI.
Tips for treating a marginal ulcer
Taking your medicines consistently and at the right times is the most important part of healing. Treatment usually lasts several weeks to months; your team will tell you how long, and may repeat the endoscopy to confirm healing.
Your PPI (proton pump inhibitor)
- Examples: omeprazole (Prilosec), pantoprazole (Protonix), esomeprazole (Nexium) and others.
- Take it every day, before breakfast and before dinner.
- If possible, get your PPI as a capsule that can be opened. Open the capsule and mix it with a small amount of water or a soft food like applesauce or yogurt. This can help it work better after bypass.
Sucralfate (Carafate)
- Take it every 6 hours.
- Do not eat or drink anything for 30 minutes afterward. Sucralfate works by coating the ulcer so it can heal. Eating or drinking washes the coating away.
- You can crush the tablet and mix it with a small amount of water to make a slurry, which can work better. Your pharmacy can make a liquid form, but insurance often does not cover it and the cost can be high, so discuss it with your pharmacy.
- Sucralfate can bind other medicines. Ask your pharmacist how to space it from your other pills.
Remove the cause
- Stop all nicotine, completely.
- Stop all NSAIDs, and avoid oral steroids if possible.
- If your team tests for H. pylori and finds it, they may treat it.
- Ulcers that do not heal, keep coming back, or cause a stricture may need further procedures, such as endoscopic dilation, or, rarely, surgery to revise the connection.
Diet and lifestyle while healing
These tips can ease symptoms and reduce acid while your ulcer heals.
Foods that may help
- Vegetables: naturally low in fat and sugar. Good options include green beans, broccoli, asparagus, cauliflower, leafy greens, potatoes and cucumbers.
- Ginger: has natural anti-inflammatory properties. Add grated or sliced ginger to recipes or smoothies, or drink ginger tea.
- Oatmeal and other whole grains: good sources of fiber that are gentle on the stomach.
- Non-citrus fruits: melons, bananas, apples and pears are less likely to trigger symptoms than acidic fruits.
- Lean proteins: chicken, turkey, fish and seafood, grilled, broiled, baked or poached.
- Egg whites rather than yolks, which are higher in fat.
- Healthy fats in small amounts: avocado, walnuts, flaxseed and olive oil, in place of saturated and trans fats.
Common trigger foods to avoid
- High-fat and fried foods
- Tomatoes and citrus fruits
- Chocolate
- Garlic, onions and spicy foods
- Caffeine
- Mint (including peppermint and spearmint gum)
- Alcohol
Lifestyle
- Don’t overeat; eat slowly
- Sip water throughout the day
- Stay upright for at least 2 hours after eating
- Don’t eat for 3 to 4 hours before bed
- Raise the head of your bed 4 to 6 inches
References
- Coblijn UK, et al. Development of ulcer disease after Roux-en-Y gastric bypass, incidence, risk factors, and patient presentation: a systematic review. Obes Surg. 2014;24(2):299-309. PubMed
- Dittrich L, et al. Marginal ulcers after laparoscopic Roux-en-Y gastric bypass: analysis of the amount of daily and lifetime smoking on postoperative risk. Surg Obes Relat Dis. 2020;16(3):389-396. PubMed
- Beran A, et al. Predictors of marginal ulcer after gastric bypass: a systematic review and meta-analysis. J Gastrointest Surg. 2023;27(6):1066-1077. PubMed
- The impact of Helicobacter pylori on marginal ulcer formation following gastric bypass: a systematic review and meta-analysis. Cureus. 2025;17(11):e96787. Link
This page is for education only. Follow your own team’s instructions.