Canker sores form when your immune system attacks the thin lining inside your mouth, creating small, painful ulcers. Unlike cold sores, which are caused by a virus and appear on the outside of your lips, canker sores are not contagious and only develop inside the mouth. They affect a significant portion of the population, and while the exact cause isn’t fully understood, the process involves a specific chain of immune events triggered by a combination of genetics, stress, nutritional gaps, and physical irritation.
The Immune Response Behind the Ulcer
Canker sores are fundamentally an immune system problem. Your body’s T cells, which normally target infections, instead turn against the cells lining the inside of your mouth. This misdirected attack begins when something triggers the release of inflammatory signaling molecules, particularly one called TNF-alpha. That molecule acts like a chemical alarm, drawing waves of immune cells to the area and kicking off an intense inflammatory response.
As inflammation builds, additional signaling molecules join in and cause the cells at the base of the mouth’s lining to self-destruct. The tissue breaks down, and what’s left is the characteristic shallow crater: a white or yellowish center (exposed tissue and debris) surrounded by an angry red border of inflamed skin. The exposed nerve endings in that crater are why canker sores hurt so much, especially when they come in contact with acidic or salty foods.
People who get frequent canker sores also tend to have higher-than-normal levels of a specific type of T cell (gamma-delta T cells) during active outbreaks. These cells appear to participate in a more aggressive, antibody-assisted form of tissue destruction. There’s also evidence that the immune system may be reacting to proteins from common mouth bacteria that happen to resemble proteins found in the body’s own cells, essentially a case of mistaken identity that results in the mouth lining becoming collateral damage.
What Triggers an Outbreak
Because canker sores are driven by immune dysregulation rather than a single pathogen, a wide range of factors can set them off. The most common triggers include:
- Physical injury: Biting the inside of your cheek, poking your gum with a chip, aggressive tooth brushing, or irritation from braces or dental work can all damage the mucosal barrier enough to start the inflammatory cascade.
- Stress: Psychological stress directly influences immune signaling. Stress hormones can shift the balance of inflammatory molecules in the mouth, making the lining more vulnerable to immune attack.
- Certain toothpastes: Sodium lauryl sulfate (SLS), the foaming agent in many toothpastes, can irritate the mouth’s lining and may trigger or worsen canker sores in susceptible people. Switching to an SLS-free toothpaste is one of the simplest changes you can make if you get frequent sores.
- Food sensitivities: Acidic fruits, spicy foods, and certain allergens can provoke the immune response in the mouth for some individuals.
- Hormonal changes: Some people notice outbreaks tied to menstrual cycles, suggesting hormonal shifts play a role in modifying the local immune environment.
Nutritional Deficiencies That Contribute
Low levels of certain vitamins and minerals are strongly linked to recurrent canker sores. Vitamin B12 is one of the most important. Your mouth’s lining replaces itself rapidly, and B12 is essential for the DNA production those cells need to regenerate. When B12 is too low, cells in the mucous membrane die off faster than they can be replaced, leaving gaps that become ulcers.
Folate (vitamin B9) plays a similar role. Without enough of it, the mouth’s lining can’t regenerate properly, making it far more susceptible to breakdown. Iron deficiency is the third common nutritional link. If you get canker sores frequently and also feel fatigued or have other signs of anemia, a blood test checking these three nutrients is a reasonable step.
The Role of Genetics
If your parents get canker sores, you’re significantly more likely to get them too. Research has identified specific gene variants in the HLA system (the same group of genes involved in organ transplant compatibility) that are associated with higher susceptibility. People carrying certain HLA variants, including specific forms of the DRB1 and Cw gene groups, have a notably higher rate of recurrent canker sores.
Interestingly, certain HLA variants appear to be protective. Carriers of specific forms of HLA-B and HLA-Cw genes showed significant resistance to developing canker sores. This genetic dimension helps explain why some people get canker sores constantly while others never experience one, even when exposed to the same triggers. Your genetic makeup essentially determines how your immune system’s “friendly fire” threshold is set when it comes to the tissue inside your mouth.
How a Canker Sore Progresses
Canker sores follow a predictable three-stage pattern. The first stage is a tingling or burning sensation inside the mouth, usually a day or two before any visible ulcer appears. This prodromal phase is your earliest warning that the immune process has already begun beneath the surface.
Within a day or two, the ulcerative stage arrives. A small, round sore appears, typically white, gray, or yellow with a distinct red border. This is the most painful phase, and it usually peaks in the first few days. Most canker sores are minor, measuring under a centimeter across.
Pain typically begins improving within a few days, and most sores heal completely within two weeks without any treatment or scarring. Major canker sores, which are larger and deeper, are a different story. These can take months to heal and may leave scars. A third type, called herpetiform canker sores (despite having nothing to do with the herpes virus), appear as clusters of tiny ulcers that merge together but also tend to heal within about two weeks without scarring.
Canker Sores vs. Cold Sores
People often confuse these two, but they are entirely different conditions. Cold sores (fever blisters) are caused by the herpes simplex virus (usually HSV-1), are contagious, and form on the outside of the mouth, typically around the border of the lips. They appear as fluid-filled blisters rather than open craters.
Canker sores have no known single cause, are not contagious, and only form inside the mouth on soft tissue like the inner cheeks, lips, tongue, or soft palate. The easiest way to tell them apart is location: outside the mouth means cold sore, inside the mouth means canker sore. If you’re unsure, the presence of fluid-filled blisters points toward a cold sore, while a shallow, crater-like ulcer with a yellowish center points toward a canker sore.
Reducing Recurrence
Since canker sores are an immune-mediated process, management focuses on calming inflammation and removing triggers. Switching to an SLS-free toothpaste, avoiding foods that seem to provoke outbreaks, and managing stress can all reduce how often sores appear. If you suspect a nutritional deficiency, correcting low B12, folate, or iron levels can make a significant difference for people whose sores are driven by those gaps.
For sores that do appear, topical treatments that reduce inflammation are the primary approach, consistent with the fact that canker sores are fundamentally an inflammatory immune reaction. Most people find that the pain is worst in the first three to four days and then gradually subsides on its own. Avoiding acidic, spicy, or rough-textured foods during that window makes the healing process considerably more bearable.

