Canker sores form when your immune system mistakenly attacks the thin lining of your mouth. About 25% of people worldwide get them repeatedly, making them one of the most common oral conditions. The frustrating part is that there’s rarely a single cause. Instead, canker sores typically result from a combination of immune quirks, nutritional gaps, physical triggers, and genetics working together.
Your Immune System Turns on Your Own Tissue
The core problem behind a canker sore is an overreaction by your immune system. In people prone to canker sores, a signaling pathway that normally helps detect harmful bacteria (called the TLR2 pathway) works abnormally. This triggers a type of immune response that’s usually reserved for fighting infections or foreign invaders, but instead targets the soft tissue inside your mouth.
Once that response kicks off, immune cells designed to kill infected cells start destroying healthy oral tissue. The damage is then sustained by a flood of inflammatory signals. People who get recurrent canker sores have measurably higher blood levels of several of these inflammatory molecules compared to people who don’t get them. The result is a shallow, painful crater in your cheek, gum, tongue, or soft palate that takes anywhere from one to three weeks to heal depending on its size.
Common Triggers That Set It Off
Even if you’re immunologically predisposed, canker sores usually need a trigger. The most common ones are physical irritation and stress. Biting your cheek, scraping your gums with a chip, burning your mouth on hot food, or even aggressive brushing can break the surface just enough to set off the immune cascade. Emotional or physical stress is a well-established trigger too, likely because stress hormones alter immune function.
Hormonal shifts also play a role. Some women notice canker sores flare in sync with their menstrual cycle, suggesting that fluctuating estrogen and progesterone levels influence susceptibility. Sleep deprivation and illness, both of which compromise immune regulation, can have a similar effect.
Nutritional Deficiencies You Might Not Notice
Low levels of certain vitamins and minerals are strongly linked to recurrent canker sores, even when those levels aren’t low enough to cause other obvious symptoms. The three most studied deficiencies are vitamin B12, folate, and iron. In clinical research, people with recurring canker sores frequently have B12 levels below 220 pg/mL, folate levels below 280 ng/mL, or low ferritin (the protein that stores iron in your blood).
What makes this tricky is that you can be mildly deficient in one of these nutrients without feeling tired, pale, or otherwise unwell. The lining of your mouth turns over rapidly, replacing itself every one to two weeks, so it’s one of the first tissues to suffer when building-block nutrients run low. If you get canker sores frequently and can’t identify an obvious trigger, a simple blood test checking these three levels is a reasonable step. Correcting a deficiency, when one exists, often reduces how often sores appear.
Zinc and vitamin D deficiencies have also been implicated, though the evidence for B12, folate, and iron is the most consistent.
Your Toothpaste Might Be Making It Worse
Sodium lauryl sulfate (SLS) is a foaming agent found in most commercial toothpastes. It’s harmless for most people, but in those prone to canker sores, it appears to irritate the oral lining enough to trigger or worsen outbreaks. A pooled analysis of clinical trials found that switching to an SLS-free toothpaste reduced the number of ulcers by about one per cycle, shortened healing time by roughly two days, and decreased both the number of episodes and the pain level during each one.
That may sound modest, but for someone who gets several canker sores a month, fewer sores that heal two days faster and hurt less is a meaningful improvement. SLS-free toothpastes are widely available and inexpensive, making this one of the easiest changes to try.
Digestive and Autoimmune Connections
Recurrent canker sores sometimes signal an underlying condition, particularly one involving the gut. Up to 20% of people with Crohn’s disease develop oral ulcers. In a large Canadian study of people with biopsy-confirmed celiac disease, 16% of children and 26% of adults reported recurrent canker sores. In celiac disease, the connection likely involves both nutrient malabsorption (the damaged intestine can’t properly absorb B12, folate, and iron) and the broader autoimmune inflammation that characterizes the condition.
This doesn’t mean everyone with canker sores has an undiagnosed gut disorder. But if you also experience chronic bloating, diarrhea, unexplained weight loss, or abdominal pain alongside frequent mouth ulcers, it’s worth investigating. Other systemic conditions linked to recurrent canker sores include Behçet’s disease (a rare inflammatory disorder that also causes genital ulcers and eye inflammation) and certain immune deficiencies.
The Role of Genetics
If your parents got canker sores, you’re significantly more likely to get them too. Researchers have looked for a specific genetic marker that explains this, focusing on a gene variant called HLA-B*51 that’s involved in immune regulation. Early studies in Israeli populations found this variant in 23% of canker sore patients compared to 9% of controls, which seemed promising. But follow-up studies in Turkish and Korean populations found no meaningful difference between people with and without canker sores.
The takeaway is that canker sore susceptibility is inherited, but it’s not driven by a single gene. It’s more likely a combination of multiple genetic factors that collectively make your immune system more reactive to minor oral injuries and irritants. The family connection is real, but researchers haven’t pinpointed a clean genetic cause.
When a Canker Sore Needs Attention
Most canker sores are minor, measuring under a centimeter across and healing within one to two weeks without scarring. These are annoying but not dangerous. Larger sores, sometimes called major aphthous ulcers, can exceed a centimeter, take weeks or even months to heal, and may leave scars. A third type appears as clusters of tiny pinpoint ulcers that merge together.
Clinical referral guidelines flag any oral ulcer lasting more than two weeks as one that should be evaluated by a healthcare provider. A sore that won’t heal could still be a stubborn canker sore, but persistent oral ulcers can also indicate other conditions that need to be ruled out. Similarly, if you’re getting canker sores so frequently that they overlap (a new one forms before the last one heals), or if they’re accompanied by fever, skin rashes, or eye inflammation, those patterns suggest something beyond ordinary canker sores is going on.
Practical Ways to Reduce Outbreaks
Because canker sores arise from a combination of factors, managing them usually means addressing several fronts at once. Switching to an SLS-free toothpaste is the simplest first step. Paying attention to dietary triggers helps too. Some people notice outbreaks after eating acidic foods like citrus, tomatoes, or pineapple, or after consuming certain spices, chocolate, or coffee. Keeping a brief food diary when sores appear can reveal personal patterns.
Getting tested for B12, folate, and iron deficiencies is worthwhile if sores are frequent. Supplementing when levels are genuinely low can make a noticeable difference, though supplementing without a deficiency generally doesn’t help. Managing stress through sleep, exercise, or other strategies may reduce flares, given how closely stress and immune dysregulation are linked. Using a soft-bristled toothbrush and being careful with hard, sharp foods can minimize the minor oral trauma that often precedes an outbreak.
For sores that have already formed, over-the-counter topical gels or rinses that contain numbing or anti-inflammatory agents can reduce pain and may speed healing slightly. Rinsing with warm salt water several times a day also helps keep the area clean and can ease discomfort.

