Need a Human Doctor?

We guide you when professional in-person care is required.

Symptom Checker

Painkillers That Are Safe (and Not Safe) With a Stomach Ulcer

Acetaminophen (Tylenol) is usually the safest over-the-counter painkiller when you have a stomach ulcer, since it does not irritate the stomach lining the way NSAIDs do.

Painkillers That Are Safe (and Not Safe) With a Stomach Ulcer
MedicationsPain Relief & NSAIDsMedication Safety

Written By: DocAi Health Editorial Team
Last Updated: 2026-07-29
Medically Reviewed By: DocAi Health Medical Review Team

Medical Disclaimer: This article is for general informational and educational purposes only and is not medical advice. It does not create a doctor-patient relationship and is not a substitute for professional diagnosis or treatment by a qualified healthcare provider. Never disregard or delay seeking professional medical advice because of something you have read here. If you think you may have a medical emergency, call 911 or your local emergency number right away. Health information can change and this guidance is general and US-focused, so consult a licensed clinician in your own country about your specific situation.

Acetaminophen (Tylenol) is usually the safest over-the-counter painkiller when you have a stomach ulcer, since it does not irritate the stomach lining the way NSAIDs do. NSAIDs such as ibuprofen, naproxen, and aspirin can worsen an existing ulcer or trigger bleeding, so they are generally avoided unless your doctor specifically approves them alongside a stomach-protecting medication.

How It Works

Why NSAIDs affect the stomach: Ibuprofen, naproxen, aspirin, and other nonsteroidal anti-inflammatory drugs (NSAIDs) block substances called prostaglandins that normally help protect the stomach lining from its own acid. With less protection, the lining becomes more vulnerable to irritation, erosion, and bleeding, which is why NSAIDs are a common medication cause of stomach ulcers and can make an existing ulcer worse.

Why acetaminophen is different: Acetaminophen relieves pain and fever through a different mechanism, acting mainly in the brain and spinal cord rather than by blocking prostaglandins in the stomach. This is why it does not carry the same ulcer risk and is the pain reliever most often recommended for people with a history of peptic ulcer disease.

Where aspirin fits: Aspirin is technically an NSAID and carries the same stomach risk, even at the low doses some people take to help prevent a heart attack or stroke. If you take daily low-dose aspirin for a heart condition and also have or have had an ulcer, do not stop or change it on your own; this needs to be managed with your doctor.

Who It's For

Acetaminophen is generally appropriate for: Most people with a current or past stomach ulcer who need relief from headaches, muscle aches, minor injuries, or fever, as long as they do not have significant liver disease and stay within the labeled dose.

NSAIDs are generally avoided for: Anyone with an active ulcer, a recent history of ulcer bleeding, or a strong tendency toward stomach irritation. If NSAIDs cannot be avoided (for example, for certain arthritis or inflammatory conditions), a doctor may prescribe a stomach-protecting medication, such as a proton pump inhibitor, to take alongside it.

Special caution: People with liver disease, those who drink alcohol heavily, or anyone already taking other products that contain acetaminophen (many combination cold and flu medicines do) need to be careful not to exceed the total daily limit on the label.

Common Side Effects

Acetaminophen: At recommended doses, acetaminophen is generally well tolerated. Its main risk is liver damage, which can happen if someone takes more than the labeled maximum, combines it with other acetaminophen-containing products without realizing it, or drinks heavily while using it.

NSAIDs (ibuprofen, naproxen, aspirin): Beyond the ulcer and bleeding risk, NSAIDs can cause stomach upset, heartburn, and kidney strain, especially with long-term use or dehydration, and can raise blood pressure in some people. Combining more than one NSAID, or an NSAID with aspirin, does not add extra pain relief but does add extra stomach and bleeding risk.

Drug and Food Interactions

NSAIDs plus blood thinners: Combining an NSAID with a blood thinner such as warfarin or a direct oral anticoagulant, or with another NSAID or aspirin, significantly raises the risk of stomach bleeding and should only happen under a doctor's direct guidance.

NSAIDs plus alcohol: Alcohol can further irritate the stomach lining and add to NSAID-related bleeding risk, so it is best minimized or avoided if you are taking an NSAID and have a history of ulcers.

Acetaminophen plus alcohol: Heavy or regular alcohol use increases the risk of liver damage from acetaminophen, so people who drink more than moderately should discuss a safe pain-relief plan with their doctor.

Stomach-protecting medications: Proton pump inhibitors, such as omeprazole, and other acid-reducing medications are often prescribed alongside an NSAID when the NSAID cannot be avoided, to lower, though not eliminate, the ulcer risk. They do not make it safe to ignore warning signs of bleeding.

What to Ask Your Doctor

Questions worth bringing to an appointment: Which pain reliever is safest for me given my ulcer history? If I need an NSAID for another condition, should I also take a stomach-protecting medication? Is my low-dose aspirin still necessary, and how should it be managed alongside my ulcer? What total daily amount of acetaminophen is safe for me, especially if I take other combination medications? What symptoms should prompt me to call you right away versus go to the emergency room?

When to Seek Medical Care

When to Seek Urgent or Emergency Care

Most people with a stomach ulcer can manage pain safely by choosing the right medication and following their doctor's guidance. But some symptoms mean the ulcer may be bleeding or has become a medical emergency. This guidance is in addition to, not a replacement for, the general disclaimer above.

Emergency, call 911 or go to the emergency room immediately if:

  • You vomit blood or material that looks like coffee grounds.
  • You pass black, tarry, or bloody stools.
  • You have sudden, severe abdominal pain, especially if your abdomen feels rigid or you feel like you might pass out.
  • You have signs of shock, such as a racing heartbeat, cold clammy skin, confusion, or fainting.
  • You think you or someone else has taken far more acetaminophen than the label allows, whether by accident or on purpose. Call Poison Control at 1-800-222-1222 or 911 right away, even if the person feels fine at first, since liver damage from an overdose can take time to show up.

See a doctor soon (same-day or next available appointment) if:

  • Ulcer pain returns or gets worse despite treatment.
  • You need regular pain relief for a chronic condition and have a history of ulcers, before starting or changing any painkiller.
  • Your stools look unusually dark but you have no other emergency signs.
  • You notice new fatigue, paleness, or shortness of breath with light activity, which can point to slow blood loss and anemia.

Still concerned about your symptoms?

Use the DocAi Health AI Symptom Checker for a personalized health assessment and guidance.

Start Your Assessment →

Frequently Asked Questions

Is Tylenol (acetaminophen) safe if I have a stomach ulcer?

Yes, acetaminophen is generally the pain reliever doctors recommend first for people with a stomach ulcer, since it does not irritate the stomach lining the way NSAIDs do. Stay within the labeled dose and check other medications you take for hidden acetaminophen content.

Can I take ibuprofen if I have a stomach ulcer?

Ibuprofen is an NSAID and can irritate an existing ulcer or cause bleeding, so it is usually avoided unless your doctor specifically approves it along with a stomach-protecting medication. Talk to your doctor before using it if you have a current or past ulcer.

Is aspirin safe to take with a stomach ulcer?

Aspirin is also an NSAID and carries the same stomach risk, even at low doses taken for heart health. If you take daily aspirin for a heart or stroke condition and have an ulcer, do not stop it on your own; ask your doctor how to manage both safely.

What about naproxen or other NSAIDs?

Naproxen and other NSAIDs work the same way as ibuprofen and aspirin and carry the same ulcer and bleeding risk. They are generally avoided with an active or recent ulcer unless a doctor prescribes them with additional stomach protection.

Can I take a painkiller together with omeprazole to protect my stomach?

Doctors sometimes prescribe a proton pump inhibitor like omeprazole alongside an NSAID when the NSAID cannot be avoided, which can lower the ulcer risk. This combination should be set up by a doctor, since it reduces but does not remove the risk of bleeding.

What pain relievers should I avoid completely with a stomach ulcer?

As a general rule, avoid ibuprofen, naproxen, aspirin, and other NSAIDs unless your doctor has specifically told you it is safe in your situation. Acetaminophen is typically the safer everyday choice instead.

Is it safe to take acetaminophen every day for chronic pain if I have an ulcer?

For many people, yes, as long as the total daily dose stays within the label limit and there is no significant liver disease or heavy alcohol use. If you need pain relief every day, it is worth discussing a long-term plan with your doctor rather than managing it on your own.

Sources

  • MedlinePlus (National Library of Medicine, NIH): Peptic ulcer disease and NSAID use.
  • National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK, NIH): Peptic ulcers (stomach ulcers).
  • Mayo Clinic: NSAIDs, pain relievers, and stomach ulcer risk.
  • U.S. Food and Drug Administration (FDA): Acetaminophen dosing and liver safety.
  • American College of Gastroenterology: Guidance on NSAID-related ulcer risk.

Need a Human Doctor?

We guide you when professional in-person care is required.

Connect with a Board-Certified Doctor