Habit Lab Journal About
Everyday illness

Stomach ulcer: causes, diet and treatment in Nigeria

Stomach ulcers are not simply caused by your diet, such as eating too much pepper or skipping meals. Here is what actually causes them, which Nigerian foods may be easier to tolerate, the tests and treatments that work, and when stomach pain needs urgent attention.

Dr Oluwatayo Olajide
Samuel Ayomide Olalekan, MBBS
A person sitting in an armchair with both hands held to the stomach over a blue knit top
In this article
  1. Foods and eating habits that may worsen ulcer symptoms
  2. What causes stomach ulcers?
  3. Which foods are safe for ulcer patients in Nigeria?
  4. Which foods make the pain worse?
  5. Which test do you need?
  6. How is H. pylori treated?
  7. What does treatment cost?
  8. Can pain medicines cause ulcers?
  9. When is an ulcer an emergency?
  10. Can you still enjoy Nigerian food with an ulcer?

You finish a plate of jollof rice, and the usual burning pain returns. Someone suggests you drink milk. Another person advises you to stop eating pepper. A neighbour tells you to get a particular medicine from the pharmacy.

These scenarios may sound very familiar, especially in Nigeria, where almost every stomach pain is simply called “ulcer.” But not every stomach pain is caused by an ulcer, and avoiding certain foods may not solve your problem.

A stomach ulcer is an open sore in the lining of the stomach. When it occurs in the first part of the small intestine, called the duodenum, it is a duodenal ulcer. Together, they are known as peptic ulcers.

Foods and eating habits that may worsen ulcer symptoms

Food does not usually cause stomach ulcers, but certain foods and eating habits can make existing symptoms worse. Very spicy meals, such as pepper soup and pepper-heavy stews, may trigger burning pain or discomfort in some people. Fatty foods, including akara, fried plantain and heavily oiled stews, may also aggravate symptoms. Other possible triggers include coffee, strong tea, alcohol, tomatoes and acidic drinks such as orange juice. However, these foods do not affect everyone the same way, and there is no medical reason to avoid a particular food if it does not worsen your symptoms.

How you prepare and eat your meals may be just as important as what you eat. For example, reducing the pepper and oil in your stew, choosing boiled or steamed foods instead of frying, and eating smaller portions may help reduce discomfort. Eating very large meals or lying down shortly after eating can also worsen digestive symptoms. If you experience discomfort at night, try having dinnerat least three to four hours before bedtime. Eating slowly and avoiding unusually large portions may also help.

Importantly, feeling better after avoiding pepper, changing your cooking methods or eating smaller meals does not mean an ulcer has healed. Dietary adjustments may relieve symptoms, but proper treatment is still needed to address the underlying cause, particularly an H. pylori infection.

What causes stomach ulcers?

Think of your stomach as having two systems working together to achieve a balance. One produces acid that helps digest food, while the other protects the stomach lining from that acid. An ulcer can develop when there is an imbalance between these two systems, and the protection becomes overwhelmed.

Two common causes are responsible for most cases.

Helicobacter pylori (H. pylori) infection

H. pylori is a bacterium that can survive in the stomach and cause long-lasting inflammation. Over time, the inflammation may damage the protective lining, allowing an ulcer to form.

H. pylori in Nigerian patients with stomach symptoms
150 of 280adults with indigestion-related symptoms at Garki Hospital, Abuja, had H. pylori antibodies
24 of 36people investigated for dyspepsia in Jos had H. pylori
48 of 100people investigated for gastritis in Jos had H. pylori
A study at Garki Hospital, Abuja, and a 2026 study of 136 symptomatic patients in Jos.

Save as a picture

These findings show why anyone with persistent stomach symptoms should get a full medical evaluation rather than relying on guesswork or diet changes alone.

Certain pain medications

A group of drugs commonly referred to as Non-Steroidal Anti-Inflammatory Drugs (NSAIDs) like ibuprofen, diclofenac, naproxen, aspirin and the likes can damage the protective lining of the stomach. This is especially important for people taking them frequently for various pain conditions.

Factors people commonly blame, such as pepper, skipping breakfast and everyday emotional stress, are not established causes. They may worsen symptoms, but focusing on them alone can mean missing the underlying problem.

Which foods are safe for ulcer patients in Nigeria?

If you have an ulcer, you do not necessarily need to abandon your usual meals. The important thing is to understand how your body responds to those meals.

For example, someone may tolerate boiled yam with mild vegetable sauce but feel uncomfortable after eating the same yam with a very peppery stew. Another person may eat beans without difficulty but experience bloating after a large serving.

The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) explains that research has not established a special diet for preventing or treating peptic ulcers.

Maintaining a balanced diet is important, as restricting your meals out of fear can deprive your body of essential nutrients and increase your risk of malnutrition.

Which foods make the pain worse?

There is no universally established list of foods that worsen ulcers, but some people may notice discomfort after eating peppery meals, acidic foods, fried foods or drinking coffee.

Alcohol can also irritate the digestive system, so avoiding it is sensible when it is noticed to trigger or worsen symptoms.

Rather than removing several foods at once, try keeping a simple food diary. Record what you eat, when symptoms appear and whether the same pattern happens again.

Remember that burning pain after meals may also come from acid reflux or other digestive conditions. Persistent symptoms deserve medical assessment, even when changing your diet helps.

Which test do you need?

Before buying another round of medication, it is worth finding out what is causing the pain.

A doctor may recommend one or more of the following tests:

TestWhat it does
H. pylori stool antigen testChecks a stool sample for evidence of an active infection.
Urea breath testDetects changes in your breath produced by H. pylori activity.
Upper gastrointestinal endoscopyUses a flexible tube with a camera to examine the stomach and upper intestine directly. Tissue samples may also be collected for further investigation.

Save as a picture

A blood antibody test may show previous exposure to H. pylori, but it cannot reliably distinguish an active infection from one that has already cleared (ACG). It is therefore not the preferred test for confirming an active infection or checking whether treatment worked.

Your doctor will choose the appropriate investigation based on your symptoms, age, medical history and warning signs.

If you have recently been taking medications like antibiotics, bismuth or acid-reducing medicines such as omeprazole, you should inform your doctor as some medications can affect test accuracy.

How is H. pylori treated?

If your test confirms H. pylori infection, treatment usually involves antibiotics alongside medicines that reduce stomach acid.

These acid-reducing medicines, called proton pump inhibitors (PPIs), include omeprazole, rabeprazole, pantoprazole and others. They help create conditions for the ulcer to heal.

In a small, single-center 2014 study at Lagos State University Teaching Hospital, researchers tested triple therapy for H. pylori. Patients took rabeprazole to reduce stomach acid and two antibiotics, amoxicillin and clarithromycin. A month after treatment, 41 of the 47 patients who completed the study (87.2%) tested negative on a breath test.

However, treatment must be selected by a qualified clinician based on patient’s history, local antibiotic resistance data, allergies, pregnancy, previous treatments and availability of medication. Buying antibiotics without a test can delay the right treatment.

Treatment is not complete until the infection has been cleared. A stool antigen or breath test should be performed at least four weeks after antibiotics are completed (ACG). PPIs generally need to be stopped for two weeks beforehand, under medical guidance, to avoid misleading results.

Checking that the infection has cleared
Week 0Antibiotics endWeek 2Stop the PPIWeek 4 or laterTest

Save as a picture

What does treatment cost?

Ulcer treatment costs vary across Nigeria, depending on the hospital, laboratory, prescribed medicines and whether endoscopy is necessary.

A complete treatment budget may include consultation, initial tests, prescribed medicines and a follow-up test. Endoscopy, when needed, adds another expense.

What stomach ulcer care costs in Nigeria

Item and sourcePrice
Doctor consultation, public or general hospital, Lagos
Lagos.Cool, 7 May 2026
₦2,000–₦5,000
Doctor consultation, standard private clinic, Lagos
Lagos.Cool, 7 May 2026
₦5,000–₦15,000
Doctor consultation, premium specialist hospital, Lagos
Lagos.Cool, 7 May 2026
₦10,000–₦25,000
Doctor consultation, specialist gastroenterology centre, Lagos
Zendale, 1 Dec 2026
₦90,000
H. pylori stool antigen test, private diagnostic network in 21 cities
Mezo Health, 30 Oct 2026
₦19,000
H. pylori stool antigen test, private diagnostic network, nationwide
GoDoctor, 23 Sept 2026
₦70,200
Urea breath test
UPTH service charter, 2019. Listed on service directories without a fee, 1 Dec 2026; sparse availability noted in May 2024
No 2026 public price (₦12,000 in 2019)
Upper GI endoscopy, public health insurance tariff, nationwide
NHIA, 1 Dec 2026
₦35,000
Upper GI endoscopy, specialist centre, Lagos
Zendale, 1 Dec 2026
₦110,000, plus ₦50,000 for optional sedation and ₦30,000 for biopsy histology
Seven-day triple-therapy pack, online pharmacy
Amkamed, 1 Dec 2026
₦14,050
Seven-day triple-therapy pack, online pharmacy
MedeCify, 1 Dec 2026
₦21,500, or about ₦28,100–₦43,000 for 14 days
Follow-up test, a stool antigen test at least four weeks after antibiotics
Mezo Health, 30 Oct 2026, and GoDoctor, 23 Sept 2026
₦19,000–₦70,200

Save as a picture

Ask the hospital or laboratory for an itemised estimate before proceeding. If you have health insurance, confirm which services your plan covers.

Choosing an appropriate test and completing effective treatment may help avoid repeated spending on medicines that only temporarily relieve symptoms.

Can pain medicines cause ulcers?

Yes. Some commonly used pain medicines can cause ulcers, especially when taken repeatedly or at high doses.

These pain medicines belong to a group called non-steroidal anti-inflammatory drugs (NSAIDs), e.g. ibuprofen, diclofenac, naproxen and aspirin.

NSAIDs reduce substances that amplify pain and inflammation, which is how they relieve pain, but these substances also help protect the stomach lining.

The risk of an ulcer rises with prolonged use, higher doses, taking more than one NSAID at the same time, and having an H. pylori infection at the same time.

If you frequently take pain medicines for any medical condition, discuss safer options with your doctor.

Paracetamol may be an alternative for some types of pain, provided it is appropriate for you and taken within recommended doses. If an anti-inflammatory is still essential in someone with peptic ulcer, the clinician may consider a subclass called selective COX-2 inhibitor together with a proton pump inhibitor (PPI) for stomach protection. If aspirin has been prescribed to prevent a heart attack or stroke, do not stop it independently. Your doctor can assess the bleeding risk and decide whether additional stomach protection is needed.

When is an ulcer an emergency?

Most ulcers can be managed with appropriate medical treatment. However, complications can sometimes become life-threatening.

Seek emergency care immediately if you experience:

  • Vomiting blood or material that resembles coffee grounds.
  • Black, sticky, tar-like stool.
  • Sudden, severe abdominal pain that does not go away.
  • Fainting, marked dizziness or severe weakness, particularly with abdominal pain or bleeding.

Do not attempt to manage these symptoms with antacids, herbal mixtures or dietary changes at home, as they may indicate bleeding, a hole in the stomach or intestinal wall, or another serious medical condition.

For persistent but less severe symptoms, arrange a medical consultation rather than repeatedly treating yourself for an assumed ulcer.

Can you still enjoy Nigerian food with an ulcer?

You can have an ulcer and still enjoy many Nigerian foods. The goal is not to fear pepper, rice or swallow, but to understand which meals you tolerate and, more importantly, what is causing the ulcer.

Food adjustments may make you more comfortable. Proper testing, appropriate medicines and follow-up care are what address the underlying problem.

How we reviewed this article

Questions this piece answers

Can I eat pepper, rice, beans, yam or swallow if I have an ulcer?

Yes. Eating pepper does not cause stomach ulcers, and most people can continue eating usual Nigerian staples like rice, beans, yam and swallow. What matters is how your body responds, as spicy or heavily oiled meals may irritate an existing ulcer and trigger burning pain. Simply reduce excess pepper and oil, eat smaller portions and avoid only the specific foods that repeatedly cause discomfort, but keep in mind that diet changes manage symptoms, not the underlying cause.

How do I know if I have an ulcer or just ordinary stomach pain?

You cannot reliably tell from symptoms alone. Burning stomach pain may also result from acid reflux or other digestive conditions. A doctor may recommend an <em>H. pylori</em> stool antigen test, a urea breath test or an endoscopy, depending on your symptoms and medical history.

Can stomach ulcers heal completely?

Yes. Many ulcers heal with appropriate treatment. If <em>H. pylori</em> is responsible, treatment usually involves antibiotics and acid-reducing medicines. A follow-up test is needed to confirm that the infection has cleared.

Can taking painkillers cause stomach ulcers?

Yes. Medicines such as ibuprofen, diclofenac, naproxen and aspirin can damage the stomach’s protective lining, particularly when used frequently or at high doses. Speak with your doctor about safer options if you regularly need pain relief. Do not stop prescribed aspirin without medical advice.

When should I go to the hospital for ulcer symptoms?

Persistent stomach pain also deserves medical assessment, even if it is not an emergency. Seek emergency medical care if you vomit blood, pass black, sticky stool, experience sudden and severe abdominal pain, or develop fainting or severe dizziness. These may indicate serious complications such as bleeding or perforation.