Ulcers are open sores, and whether they can spread depends entirely on where they are and what caused them. The short answer: stomach ulcers are not contagious, but the bacterium that causes most of them can pass between people. Mouth ulcers are not contagious either in the usual sense, though the viruses that sometimes cause them are. Two very different conditions, two very different answers.
This matters because confusion is common. People hear “ulcer” and assume one thing. They hear “bacteria” and assume another. Understanding the difference helps you know what to worry about and what not to.
What Is a Stomach Ulcer?
A stomach ulcer is an open sore in the lining of the stomach or the first part of the small intestine. Doctors call these peptic ulcers. The stomach lining normally protects itself from acid. When that protection fails, acid damages the tissue underneath and an ulcer forms.
For decades, people believed stress and spicy food caused ulcers. That changed in the 1980s when researchers identified a bacterium called Helicobacter pylori in the stomachs of people with ulcers. This discovery reshaped how medicine treats the condition. Research published in medical journals since then has consistently shown that H. pylori causes most peptic ulcers.
Not all stomach ulcers come from bacteria. Long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and naproxen can erode the stomach lining. So can certain other medications. In rare cases, a condition called Zollinger-Ellison syndrome causes excess acid production. But H. pylori remains the leading cause worldwide.
Are Stomach Ulcers Contagious?
No, the ulcer itself is not contagious. You cannot catch an ulcer from someone the way you catch a cold. But the bacterium that causes most ulcers can spread from person to person.
H. pylori lives in the stomach and can be found in saliva, dental plaque, and stool. It spreads primarily through oral-oral contact (like kissing) and fecal-oral routes (contaminated food or water). This is why H. pylori infections tend to cluster in families and in communities with limited access to clean water.
Here is the important distinction: catching H. pylori does not mean you will develop an ulcer. Most people who carry the bacterium never get one. Some estimates suggest that a minority of those infected develop peptic ulcers. The infection is common worldwide, but ulcers are not. Something else — genetics, immune response, lifestyle factors, or medication use — likely influences whether an infection leads to an ulcer.
So while you can “catch” the bacteria, you cannot catch the ulcer. The infection is a risk factor, not a guarantee.
What Is a Mouth Ulcer?
A mouth ulcer is a sore inside the mouth, on the gums, tongue, lips, or inner cheeks. The most common type is called an aphthous ulcer, or canker sore. These are shallow, painful, and usually heal on their own within one to two weeks.
Mouth ulcers have many causes. Minor injury from biting your cheek or brushing too hard is common. So is irritation from acidic or spicy foods. Some people get them from stress, hormonal changes, or nutritional deficiencies like low vitamin B12, iron, or folate. Certain medical conditions, including autoimmune diseases and inflammatory bowel disease, can also cause recurring mouth ulcers.
Unlike stomach ulcers, mouth ulcers are not primarily caused by a single bacterium. They are typically an immune response or a reaction to local irritation.
Are Mouth Ulcers Contagious?
Canker sores themselves are not contagious. You cannot pass them to another person through kissing, sharing utensils, or any other contact.
But some sores in the mouth that look like ulcers are contagious. Cold sores, also called fever blisters, are caused by the herpes simplex virus. They often appear on or near the lips but can occur inside the mouth. The virus spreads through direct contact with the sore or with saliva. Once you have the virus, it stays in your body and can reactivate, causing new sores.
Hand, foot, and mouth disease, which is common in young children, causes painful mouth sores along with a rash on the hands and feet. It is caused by viruses that spread easily through contact and droplets.
So the answer depends on the cause. A canker sore is not contagious. A viral sore often is.
How Can You Tell the Difference Between a Stomach Ulcer and a Mouth Ulcer?
The location alone makes these two conditions very different. A stomach ulcer causes pain in the upper abdomen, often described as a burning or gnawing sensation. It may feel worse when the stomach is empty or better after eating, depending on where the ulcer is. Other symptoms can include bloating, nausea, and a feeling of fullness.
A mouth ulcer is visible. You can see it when you look in the mirror. It causes pain or tenderness in the mouth, especially when eating, drinking, or talking. There is no overlap in symptoms between the two.
One is internal and requires medical testing to diagnose. The other is external and often diagnosed by sight. They share a name but almost nothing else.
When Should You See a Doctor?
Stomach ulcers need medical attention. If you have persistent abdominal pain, especially if it wakes you at night or improves or worsens with eating, see a doctor. Other warning signs include black or tarry stools, vomiting blood, unexplained weight loss, or difficulty swallowing. These can indicate bleeding or other complications and need prompt evaluation.
Diagnosis usually involves testing for H. pylori through a breath test, stool test, or blood test. Sometimes an endoscopy is needed to look directly at the stomach lining and take a tissue sample.
Treatment typically involves antibiotics to clear the infection if H. pylori is present, along with acid-reducing medications to help the ulcer heal. If NSAIDs are the cause, stopping them is part of the plan. Most peptic ulcers heal with proper treatment, though recurrence is possible.
Mouth ulcers usually do not require medical care. They tend to heal within a week or two. See a doctor if a mouth ulcer lasts longer than three weeks, keeps coming back, is unusually large, or comes with other symptoms like fever or weight loss. Persistent mouth ulcers can sometimes signal an underlying condition that needs investigation.
Can You Prevent Ulcers?
There is no sure way to prevent a stomach ulcer, but you can lower your risk. Avoiding unnecessary NSAID use helps. If you need these medications regularly, talk to your doctor about protecting your stomach. Good hygiene, including handwashing and drinking clean water, may reduce the spread of H. pylori, though researchers are still studying how much this helps.
For mouth ulcers, prevention depends on the cause. If certain foods trigger them, avoiding those foods can help. Managing stress and correcting nutritional deficiencies may reduce how often they appear. But for many people, canker sores come and go without a clear trigger.
One common myth deserves mention: spicy food does not cause stomach ulcers. It can irritate an existing ulcer and make symptoms worse, but it does not create one. The same goes for stress. Stress can make symptoms feel worse, but it is not the root cause of most ulcers.
What About the Bacteria — Should Family Members Be Tested?
This is a reasonable question, and the answer is not straightforward. H. pylori can spread within households, so if one person is diagnosed, others may also carry it. However, most people who carry H. pylori never develop ulcers or symptoms.
Routine testing of family members is not universally recommended. Some clinicians suggest it in certain cases, especially if multiple family members have ulcers or stomach cancer risk is a concern. But this is an area where medical opinion varies. If you are concerned, discuss it with your doctor.
The key point: carrying the bacteria is not the same as having an ulcer. Many people live with H. pylori without any problems.
Does Kissing Spread Stomach Ulcers?
Kissing can spread H. pylori, but it does not spread the ulcer itself. If your partner has an ulcer and you kiss them, you might be exposed to the bacterium. But that does not mean you will develop an ulcer.
The same logic applies to sharing food or utensils. These actions can potentially transfer bacteria, but the ulcer is not contagious. Only the infection is.
For most healthy adults, the risk of developing an ulcer after exposure to H. pylori is low. The bacterium is common, but ulcers are not. This is an important distinction that often gets lost in the conversation.
Frequently Asked Questions
Can you catch a stomach ulcer from someone else?
No, you cannot catch a stomach ulcer. You can potentially catch H. pylori, the bacterium that causes most ulcers, but most people who carry it never develop an ulcer.
Are mouth ulcers contagious?
Canker sores are not contagious. However, mouth sores caused by viruses like herpes simplex are contagious and can spread through direct contact.
How do you know if a mouth ulcer is contagious?
If the sore is on the lips or outside the mouth and tingles or burns before it appears, it may be a cold sore caused by a virus. Canker sores inside the mouth are not contagious.
Should I get tested for H. pylori if my partner has an ulcer?
Routine testing is not universally recommended for partners of people with ulcers. Talk to your doctor about your individual risk factors and whether testing makes sense for you.

