How to Use Onion for a Toothache and Why It Works

Raw onion has genuine antibacterial and anti-inflammatory properties that can temporarily ease a toothache, which is why the folk remedy persists across cultures. Sulfur compounds in onion kill several of the bacteria most responsible for dental infections, and other compounds block some of the same inflammatory pathways targeted by over-the-counter painkillers. That said, the relief is modest, the lab evidence far outpaces any clinical proof in humans, and an onion is never a substitute for a dentist. Here is how to actually use it, what the science says about why it helps, and where the limits are.

How to Apply Onion to a Toothache

The method is simple. Cut a small piece of raw onion, place it directly against the painful tooth and the surrounding gum, and bite down gently to release the juice. Hold it there for a few minutes, letting the juice saturate the area. Some people prefer to chew the piece lightly on the affected side, though that can be difficult if the pain is severe. Others crush or mince the onion first, wrap it loosely in a small piece of gauze, and tuck the pouch between the cheek and gum near the sore tooth.

You can repeat this every hour or two as needed. Spit out the onion when the flavor becomes overwhelming or the piece falls apart. Rinse your mouth with warm water afterward. The goal is sustained contact between the raw onion juice and the tissue around the tooth, because that is where the active compounds do their work. Cooking the onion, even briefly, changes the picture, which we will get to below.

What Onion Does to Oral Bacteria

The most concrete evidence for onion as a toothache remedy comes from its ability to kill bacteria that cause dental infections. A study testing onion extracts against four major oral pathogens found bactericidal effects against all of them, including Streptococcus mutans (the primary driver of cavities) and Porphyromonas gingivalis (a key player in gum disease). The extracts killed both actively growing and resting bacterial cells.1PubMed. Anti-bacterial action of onion (Allium cepa L.) extracts against oral pathogenic bacteria

A separate study looking specifically at onion peel extract against P. gingivalis confirmed potent antimicrobial activity at very low concentrations, with complete inhibition of bacterial growth at just 0.2 µL/mL.2PubMed Central. Antimicrobial, anti-inflammatory, and antioxidant effect of onion peel extract (Allium cepa L.) on periodontal pathogen Porphyromonas gingivalis: An in vitro analysis That is an impressive potency threshold, though it is worth stressing that these are lab-dish results. Inside your mouth, saliva dilutes the juice, food debris gets in the way, and biofilm (the sticky bacterial coating on teeth) shields bacteria from direct contact. No one has run a controlled trial in actual patients to measure how much pain relief or infection reduction you get from holding a piece of onion against a bad tooth.

Still, the bactericidal action is real and covers most of the species you would want it to cover during a dental infection. If you are dealing with a toothache caused by bacterial activity in a cavity or an inflamed pocket of gum tissue, onion juice in direct contact with that area is introducing compounds that are genuinely hostile to the microbes involved.

How Onion Fights Pain and Inflammation

Killing bacteria is only part of the story. A toothache hurts because inflamed tissue around the tooth releases chemical signals that activate pain nerves. Onion contains sulfur-based compounds called thiosulfinates and cepaenes that interfere with this process. Specifically, they inhibit the production of arachidonic acid and its downstream products, prostaglandins and leukotrienes, which are the same inflammatory molecules that ibuprofen and aspirin work to suppress.3PubMed Central. A review of anti-inflammatory, antioxidant, and immunomodulatory effects of Allium cepa and its main constituents

Cepaenes also block COX and LOX enzymes, which are the two enzyme families responsible for converting arachidonic acid into those pain-signaling molecules.3PubMed Central. A review of anti-inflammatory, antioxidant, and immunomodulatory effects of Allium cepa and its main constituents COX inhibition is exactly what ibuprofen does. The difference is that ibuprofen delivers a precise, well-studied dose through your bloodstream, while onion juice delivers an uncontrolled amount of these compounds topically through gum tissue. The mechanism is parallel, but the dose and delivery are not comparable. Think of it as applying a mild, natural version of the same class of anti-inflammatory directly to the sore spot.

Beyond the sulfur compounds, onions are one of the richest dietary sources of quercetin, a flavonoid with well-documented antioxidant and anti-inflammatory activity. Certain onion varieties contain very high concentrations, with some reaching over 1,700 mg per 100 grams of dry weight.4PubMed. Quercetin and isorhamnetin glycosides in onion (Allium cepa L.): varietal comparison, physical distribution, coproduct evaluation, and long-term storage stability Quercetin helps mop up free radicals that accumulate in inflamed tissue, which may contribute to reducing swelling and sensitivity around an infected tooth. Again, the concentration that actually reaches the tooth pulp from chewing a raw onion slice is an open question.

Red, Yellow, or White Onion

If you are raiding the kitchen for toothache relief, reach for a red onion if you have one. A study comparing onion types found that red onion extract had significantly stronger antibacterial activity against Streptococcus mutans than yellow or green onions, and green onion had the weakest effect.5Advances in Natural and Applied Sciences. Assessment of antimicrobial activity of onion extract (Allium cepa) on Streptococcus mutans and Streptococcus sanguinis; in vitro study The same study found that higher concentrations increased the effect, meaning the more juice you release, the more bacterial killing you get.

Red onions tend to have higher levels of flavonoids and anthocyanins compared with milder varieties, which likely explains the difference. White onions sit somewhere in the middle. If all you have is a yellow or white onion, it still has antimicrobial activity; you are just starting with somewhat lower concentrations of the active compounds. Green onions (scallions) are the weakest option and probably not worth the effort for this purpose.

Raw Matters More Than You Think

The sulfur compounds responsible for most of onion’s antimicrobial and anti-inflammatory punch are volatile and heat-sensitive. Cutting or crushing an onion triggers an enzymatic reaction that produces the thiosulfinates and related molecules, but heat breaks these compounds down. A review of how preparation and cooking affect bioactive molecules in allium vegetables concluded that every cooking method reduces the concentration of these active compounds, with the degree of loss depending on temperature, time, and method.6PubMed Central. Effects of different preparation and cooking processes on the bioactive molecules of Allium vegetables

This means a sautéed onion or one boiled in soup has lost much of the antimicrobial firepower that makes this remedy potentially useful. Use raw onion, freshly cut. The sharper and more pungent the onion smells, the more sulfur compounds are being released, which is a good sign if you are using it medicinally and a less welcome sign if you care about your breath. Letting a cut onion sit out for a long time before using it also allows the volatile compounds to dissipate into the air rather than into your gum tissue.

For maximum effect, cut the piece just before placing it in your mouth. Crushing or mincing releases more juice faster than a clean slice, which can be helpful if biting down is too painful.

Risks of Putting Raw Onion on Your Gums

Onion is generally safe to hold against your gums for short periods, but there are a few things to watch for. The same sulfur compounds that fight bacteria can irritate soft tissue, especially if the gum is already raw or ulcerated from infection. Prolonged or repeated contact could cause a mild chemical burn. This is well-documented with garlic, onion’s close botanical relative: a case report described localized tissue death in the mouth after a patient held crushed raw garlic against their gum to treat dental pain.7PubMed. Garlic burn of the oral mucosa: A case report and review of self-treatment chemical burns Onion is milder than garlic, but the mechanism is similar, and leaving raw onion pressed against the same spot for hours could irritate or damage the tissue.

Keep applications to a few minutes at a time. If you notice a white patch, increased burning, or the gum tissue starting to look raw, stop. Other risks are minor but worth mentioning:

  • Allergic reactions: Onion allergies exist. If your lips or tongue swell, or you notice hives, remove the onion and rinse thoroughly.
  • Stomach upset: Swallowing a lot of raw onion juice on an empty stomach can cause nausea or heartburn in some people.
  • Masking a worsening infection: If the onion dulls the pain enough that you put off seeing a dentist, a treatable cavity or abscess can progress to something far more dangerous.

The last point is the most important practical risk, and it deserves its own discussion.

When a Toothache Needs a Dentist, Not an Onion

A toothache is almost always a symptom of something that will get worse without treatment. Cavities do not heal. Abscesses do not resolve on their own. Onion can take the edge off while you arrange a dental visit, but it cannot fix the underlying problem. Treating it as a long-term solution is genuinely dangerous.

During the early stages of the COVID-19 pandemic, when dental offices were closed or hard to access, researchers documented cases of patients who managed dental pain at home until complications became severe. A case series described three patients who delayed dental care and developed life-threatening complications, including Ludwig’s angina (a deep neck infection that can obstruct the airway), necrotizing fasciitis, and a peritonsillar abscess. All required emergency intervention, and all had increased mortality risk from the delay.8BMJ Case Reports. Complications of dental infections due to diagnostic delay during COVID-19 pandemic

These are extreme outcomes, but they illustrate the trajectory of an untreated dental infection. The bacteria causing your toothache can spread into the jawbone, into the spaces around the throat, or into the bloodstream. Signs that you need to stop managing at home and see a professional urgently include fever, swelling that spreads to the jaw, neck, or under the eye, difficulty swallowing or opening the mouth, and a foul taste from a draining abscess.

Use onion (or any home remedy) as a bridge, not a destination.

How Onion Stacks Up Against Other Kitchen Remedies

Onion is one of many folk remedies that people reach for during a toothache, and it has more lab evidence behind it than most. Clove oil is probably the most studied home remedy for dental pain, largely because it contains eugenol, a compound that has been used in dentistry for over a century as a topical anesthetic and antiseptic. If you have clove oil or whole cloves available, the evidence for pain-numbing effect is stronger and more direct than for onion.

Salt water rinses are the simplest option and help by osmotically drawing fluid out of swollen tissue and loosely inhibiting some bacteria. A review of home remedies for dental pain during the pandemic noted that traditional methods like salt water, garlic juice, and oil pulling have significant empirical use across cultures but weak scientific evidence overall.9International Journal of Dentistry. Supportive Home Remedies for Orofacial Pain during the Coronavirus Disease 2019 Pandemic: Their Value and Limitations Onion falls into this same category: widely used, plausible mechanism, but no rigorous clinical trials proving it works better than placebo in real patients.

Garlic is the closest relative to onion both botanically and in terms of active compounds. It contains allicin, which has strong antimicrobial properties, arguably even stronger than onion’s thiosulfinates. But as noted above, garlic is more irritating to gum tissue and carries a higher risk of chemical burns. Onion is the gentler option if you are choosing between the two alliums in your kitchen.

For raw pain management while waiting for a dental appointment, an over-the-counter painkiller like ibuprofen remains more effective and more predictable than any food-based remedy. If you are combining approaches, there is no harm in using onion alongside a standard painkiller; the mechanisms are complementary rather than redundant.

The Gap Between Lab Results and Your Mouth

The research on onion and oral pathogens is genuinely encouraging, but almost all of it comes from in vitro experiments, meaning bacteria in a dish exposed to onion extract under controlled conditions. The antibacterial and anti-inflammatory findings are consistent across multiple studies and multiple bacterial species, which builds a reasonable case that the compounds are biologically active. But the mouth is a far messier environment than a petri dish.

Saliva constantly dilutes whatever you put in your mouth. Bacterial biofilm on teeth is a structured community that resists penetration by antimicrobial agents far more effectively than individual bacteria floating in a test tube. The concentration of thiosulfinates and quercetin that reaches the actual site of infection inside a tooth or deep in a periodontal pocket is almost certainly a fraction of what researchers use in lab experiments. And the contact time is limited; you are not going to hold a chunk of onion in your mouth for two hours.

None of this means the remedy is useless. It means the effect in practice is probably smaller than the lab results suggest, and it means onion is best understood as a mild, temporary, topical treatment rather than a potent antimicrobial intervention. People have been using onion for toothaches for centuries, and the biological rationale holds up. The clinical evidence just has not caught up with the tradition yet, and in a field where randomized controlled trials of onion-on-tooth are unlikely to attract funding anytime soon, it may never fully catch up.

Onion Biofilm Reduction

One piece of evidence that bridges the gap between lab dish and real mouth a bit more than usual involves biofilm. Dental plaque is a biofilm, and bacteria living inside it are far harder to kill than free-floating ones. A study on a related allium species (Batak onion) found that the ethanol extract reduced established S. mutans biofilm by about 85% and E. faecalis biofilm by a similar amount, starting at relatively low concentrations.10Biomedical and Pharmacology Journal. Antibacterial and Antibiofilm Activity of Ethanol Extract of Batak Onion Bulbs (Allium chinense G.Don.) against Streptococcus mutans and Enterococcus faecalis

This is relevant because one of the biggest objections to topical antimicrobials in the mouth is that biofilm protects the bacteria. If onion compounds can partially disrupt that biofilm, the antimicrobial effect becomes more meaningful in practice. This was still a lab study, not a clinical trial, and the extract was concentrated beyond what you would get from chewing a raw slice. But it does suggest the compounds are not completely blocked by the protective structures bacteria build around themselves in the oral environment, which is a meaningful step beyond simple antibacterial activity against exposed cells.

E. faecalis is worth a specific mention here because it is notorious for colonizing root canals after dental work and resisting standard treatment. Any compound that shows activity against it, even in a lab dish, draws interest from researchers looking for adjunct treatments in endodontics. Whether raw onion delivers enough of these compounds to matter during a root canal infection is another question entirely, but the biological activity exists.