Mouth ulcers arise from a tangle of causes, not a single culprit. Immune dysfunction sits at the center, but what tips the immune system into attacking the lining of your mouth can be anything from a vitamin deficiency to psychological stress to an ingredient in your toothpaste. The medical term for the most common variety is recurrent aphthous stomatitis, and it ranks among the most frequent oral mucosal diseases worldwide, typically showing up as small, painful sores on the inner cheeks, lips, or tongue.1PubMed. Recurrent aphthous stomatitis – Etiology, serum autoantibodies, anemia, hematinic deficiencies, and management Understanding what actually provokes them is more useful than most people expect, because many of the triggers are modifiable.
The Immune Reaction That Creates the Sore
Whatever sets it off, a mouth ulcer is fundamentally an immune event. Your body’s inflammatory machinery turns against a patch of oral tissue, and the result is a raw, painful crater. Research using genetic techniques has found that people who develop mouth ulcers tend to have lower counts of certain protective immune cells (CD4+ T cells) and higher counts of others (CD8+ T cells) that promote inflammation. That imbalance tilts the body toward producing more inflammatory signals and fewer anti-inflammatory ones, creating conditions ripe for tissue breakdown.2PubMed Central. The peripheral immune cell counts and mouth ulcers: A two-sample Mendelian randomization study Studies measuring specific inflammatory markers in people with active ulcers consistently find elevated levels of molecules like IL-6 and TNF-α compared to healthy controls.3PubMed Central. Analysis of the Clinical Application Value of Immune Function Markers and Cytokines in the Recurrent Aphthous Ulcer
This immune-centered understanding is important because it explains why so many different triggers can produce the same kind of sore. Stress, poor nutrition, hormonal shifts, and certain medications all share one thing in common: they can nudge the immune system toward that inflammatory tipping point. The ulcer itself is the endpoint of a chain reaction, and the chain can be started in several different places.
Nutritional Deficiencies
If you get mouth ulcers often and cannot pin them on any obvious cause, a nutritional gap is one of the first things worth investigating. The nutrients most consistently linked to recurrent ulcers are vitamin B12, folate (vitamin B9), and iron. One study found that people with recurrent ulcers had significantly higher rates of deficiency in hemoglobin, iron, vitamin B12, and folic acid compared to healthy controls.4PubMed. Significant association of deficiencies of hemoglobin, iron, vitamin B12, and folic acid and high homocysteine level with recurrent aphthous stomatitis Roughly one in five of the ulcer patients in that study were deficient in hemoglobin or iron.
The question of why these deficiencies develop matters, too. Research comparing the actual dietary intake of ulcer patients to the general population found that patients tended to consume less vitamin B12 and folate in their daily diet. That suggests the problem may begin on the plate rather than in the gut, meaning it could be improved by eating more leafy greens, legumes, eggs, dairy, and fortified cereals.5PubMed Central. Reduced dietary intake of vitamin B12 and folate in patients with recurrent aphthous stomatitis If you suspect a deficiency, a simple blood test can confirm it. Correcting a genuine deficiency does not guarantee your ulcers will stop, but it removes one known contributor.
Stress and the Cortisol Connection
People who get ulcers during exam season or stressful work periods are not imagining the connection. One survey of dental students found that among those with a history of oral ulcers, about 27% reported a direct link between stress and ulcer outbreaks.6PubMed Central. Recurrent Oral Ulcers and Its Association With Stress Among Dental Students in the Northeast Indian Population That number probably understates the real influence, because stress can work indirectly by disrupting sleep, worsening diet, or shifting immune function in ways you would not consciously connect to a sore in your mouth.
The biological plausibility is solid. Researchers have measured cortisol and DHEA, two hormones tied to the stress response, in the saliva of people with recurrent ulcers and found both were elevated compared to healthy controls.7PubMed Central. Salivary cortisol and dehydroepiandrosterone as oral biomarkers to determine stress in patients with recurrent aphthous stomatitis Chronic elevation of stress hormones is well known to suppress some parts of the immune system while overstimulating others, and that sort of dysregulation fits neatly with the inflammatory imbalance described earlier. In a large cross-sectional study from China, over half of people in the ulcer group self-reported stress as a trigger, making it one of the most commonly identified factors alongside unhealthy diet and irregular schedules.8PubMed Central. Relationship between dietary factors and recurrent aphthous stomatitis in China
Hormonal Shifts and the Menstrual Cycle
Some women notice mouth ulcers appearing like clockwork before their period. A scoping review on female hormonal changes and oral health found that about 30% of young women in one study reported aphthous ulcers appearing mainly in the days before menstruation, likely tied to progesterone’s effects on local immunity during the luteal phase.9Journal of Dental Sciences. Impact of female hormonal changes throughout life on oral health: A scoping review Clinical case reports have described patients whose oral erosions followed a strict menstrual pattern, with lip swelling a day or two before their period, painful sores during menstruation, and spontaneous healing once the period ended.10PubMed Central. Ulcerative Stomatitis as the Sole Manifestation of Progesterone Hypersensitivity
Interestingly, a study using genetic methods to test whether estradiol levels directly cause mouth ulcers found no causal link in either men or women.11PubMed Central. Causal associations between estradiol and mouth ulcers: A Mendelian randomization study That suggests the menstrual pattern many women experience may have more to do with progesterone, or with the broader immune fluctuations across the cycle, than with estrogen specifically. If you notice a consistent premenstrual pattern, tracking the timing can help confirm the connection and guide conversations with your doctor.
Your Toothpaste Could Be Making Things Worse
Sodium lauryl sulfate, commonly abbreviated SLS, is the foaming agent in most toothpastes. It is also a known irritant to the oral lining. At the concentrations found in standard toothpaste, SLS can damage the outermost layer of cells in your mouth and trigger irritating reactions even in people with no history of allergies.12PubMed Central. The Yin and Yang of Sodium Lauryl Sulfate Use for Oral and Periodontal Health
A systematic review pooling data from multiple trials found that switching to an SLS-free toothpaste significantly reduced the number of ulcers, the duration of each episode, the total number of episodes, and the pain level.13PubMed. Effect of sodium lauryl sulfate on recurrent aphthous stomatitis: A systematic review This is one of the cheapest and easiest interventions you can try. SLS-free toothpastes are widely available, and the switch costs nothing beyond a slightly different tube at the store. If you get ulcers regularly and have never tried this, it is a reasonable first step before pursuing more involved investigations.
Food Triggers and Celiac Disease
Beyond nutritional deficiencies, specific foods can provoke ulcers through sensitivity reactions. Acidic fruits, spicy foods, chocolate, coffee, and nuts are commonly self-reported triggers, though the evidence for individual foods is largely anecdotal. What is not anecdotal is the connection to celiac disease. A study comparing children with celiac disease to controls found mouth ulcers in about 23% of celiac patients versus 7% of controls, a more than fourfold difference in risk.14PubMed. Coeliac disease: oral ulcer prevalence, assessment of risk and association with gluten-free diet in children
The encouraging finding is that among celiac patients who stuck strictly to a gluten-free diet, about 72% reported significant improvement, with fewer or no ulcer episodes.14PubMed. Coeliac disease: oral ulcer prevalence, assessment of risk and association with gluten-free diet in children Mouth ulcers can sometimes be the earliest or even the only symptom of celiac disease, appearing well before the classic digestive complaints. If your ulcers are persistent and unexplained, celiac screening is worth discussing with a clinician, especially if you also have unexplained iron or folate deficiency.
The same Chinese cross-sectional study that identified stress as a common trigger also found that higher fruit and water intake were associated with lower ulcer risk, even after adjusting for age and sex.8PubMed Central. Relationship between dietary factors and recurrent aphthous stomatitis in China That aligns with the broader nutritional picture: diets low in fresh produce tend to be low in the vitamins most linked to ulcer risk.
Medications and Smoking Cessation
A surprisingly long list of medications can cause mouth ulcers as a side effect. NSAIDs (ibuprofen, naproxen, and similar over-the-counter painkillers) are among the most commonly implicated, but the list also extends to certain blood pressure drugs, immunosuppressants, and newer medications used for diabetes and rheumatoid arthritis.15Japanese Dental Science Review. Oral ulcerations due to drug medications If you started a new medication around the time your ulcers began, that timing is worth mentioning to your prescriber.
Smoking cessation is another trigger that catches people off guard. One study found that roughly 40% of people who quit smoking developed mouth ulcers, mostly within the first two weeks.16PubMed. The relationship between smoking cessation and mouth ulcers A separate study tracking ulcer rates at weekly intervals after quitting confirmed that the frequency of ulcers climbed from about 3% on the day of quitting to roughly 19-21% in the weeks that followed.17PubMed. The recurrent aphthous stomatitis frequency in the smoking cessation people The likely explanation involves nicotine’s effects on the oral mucosa: smoking thickens and toughens the lining of the mouth, and when that protective effect disappears, the tissue becomes temporarily more vulnerable. This is emphatically not a reason to keep smoking, but it helps to know that post-quit ulcers are common and typically temporary.
Physical Trauma and Microbiome Disruption
Biting the inside of your cheek, catching your lip on a sharp tooth, or irritation from braces or dentures can all produce ulcers. These are usually one-off injuries rather than recurrent aphthous ulcers, but in some people, the trauma seems to trigger an aphthous episode at the injury site. The distinction matters for treatment: a traumatic ulcer from a rough dental appliance needs the appliance adjusted, while a recurrent aphthous ulcer at the same spot needs the underlying susceptibility addressed.
The community of bacteria living in your mouth also plays a role. When the balance of oral microbes is disrupted, the mucosal defense weakens and the conditions for ulcer formation improve.18PubMed Central. Oral microbiota dysbiosis accelerates the development and onset of mucositis and oral ulcers Antibiotic use, mouthwashes that kill broad swaths of bacteria, illness, and poor oral hygiene can all shift the microbial balance. Research in this area is still developing, but it adds another dimension to why mouth ulcers seem to cluster during periods of general health disruption.
Genetics and Family Patterns
If your parents or siblings get mouth ulcers frequently, your chances are higher. Studies of families with recurrent ulcers have found that the condition clusters in relatives at rates above what you would expect by chance, pointing to a genetic component.19PubMed Central. Recurrent aphthous stomatitis: genetic aspects of etiology The genetic vulnerability does not come from a single gene. Instead, it involves variations in genes that control the immune response, particularly those encoding inflammatory signaling molecules and parts of the HLA complex, a group of genes central to how your immune system recognizes threats.
Recent work using large genetic datasets has identified specific genes involved in immune regulation, including HLA-DRB1, CCR2, and IL12RB1, as significantly associated with mouth ulcer risk.20PubMed. Causal association of immune-related genes with mouth ulcers: findings from summary-based Mendelian randomization and transcriptome-wide association analysis These are immune-regulatory genes, which reinforces the picture of mouth ulcers as an immune-mediated condition with a heritable predisposition. You cannot change your genes, but knowing you carry a genetic susceptibility makes it more worthwhile to control the triggers you can influence.
When Ulcers Signal a Larger Condition
Most mouth ulcers are benign and self-limiting. But persistent, severe, or unusually frequent ulcers can be a sign of a systemic disease. Behçet’s disease is the classic example: painful recurrent mouth ulcers are often the very first symptom, sometimes appearing two to three years before any other signs of the condition. In 10-20% of Behçet’s cases, oral ulcers are the initial manifestation.21PubMed Central. Behcet’s disease: Diagnosed as isolated recurrent oral aphthae; a case report Behçet’s is uncommon, but the long delay between first ulcers and diagnosis means it can be missed if clinicians write off the ulcers as routine.
Celiac disease, as discussed earlier, is another systemic condition that can present primarily through mouth ulcers. Inflammatory bowel diseases like Crohn’s and ulcerative colitis, certain blood disorders, and immune deficiency states can all produce oral ulceration. Expert consensus guidelines for evaluating difficult ulcers recommend a structured workup that includes detailed medical history, possible biopsy, and screening for associated systemic diseases.22PubMed Central. Difficult and complicated oral ulceration: an expert consensus guideline for diagnosis The general rule of thumb: if an ulcer has not healed within three weeks, if ulcers are unusually large or numerous, or if they come with other unexplained symptoms like joint pain, skin rashes, or chronic diarrhea, a more thorough medical evaluation is warranted.
Mouth Ulcers Versus Cold Sores
People frequently confuse aphthous ulcers with cold sores, but the two are different conditions with different causes. Aphthous ulcers appear on movable, non-keratinized tissue like the inner cheeks, inner lips, and soft palate. Cold sores, caused by herpes simplex virus, typically appear on the outer lip, gums, or hard palate and start as clusters of small fluid-filled blisters that later merge into an ulcer.23The Journal of Contemporary Dental Practice. Differential Diagnosis: Is It Herpes or Aphthous? Aphthous ulcers are not contagious and are not caused by a virus. If your sore started as a blister, appeared on the gums or outer lip border, or came with tingling beforehand, it is more likely a herpes lesion. The location, initial appearance, and prodromal symptoms are the key distinguishing factors.24PubMed. Differential diagnosis of superficial ulcerations of the oral mucosa
Living with Frequent Ulcers
Recurrent mouth ulcers are more than a minor annoyance. The pain during active episodes can interfere with eating, speaking, and swallowing, and studies have consistently found that more severe pain correlates with worse self-reported quality of life.25PubMed Central. Assessing the Impact of Recurrent Aphthous Ulcer on Oral Health-Related Quality of Life People who deal with frequent flares sometimes avoid social meals or certain foods entirely, and the cumulative effect on daily comfort is real.
Management typically starts with addressing identifiable triggers: switching to SLS-free toothpaste, correcting any nutritional deficiency, managing stress, and avoiding known food triggers. Topical treatments like corticosteroid gels or antiseptic rinses can reduce pain and speed healing for individual episodes. Low-level laser therapy has also shown promise in relieving pain and promoting remission of active ulcers.26PubMed Central. Low laser therapy as an effective treatment of recurrent aphtous ulcers: a clinical case reporting two locations For people with severe, frequently recurring ulcers that do not respond to these measures, systemic medications like colchicine or low-dose immunomodulators are sometimes prescribed, though these come with their own side-effect profiles and are reserved for cases where the burden on quality of life justifies the trade-off.