The fastest way to relieve cavity pain at home is to combine ibuprofen and acetaminophen, which together outperform even prescription opioids for dental pain. A dose of 400 mg ibuprofen plus 500 mg acetaminophen, taken every six hours, is the combination the American Dental Association recommends for moderate to severe tooth pain. But medication is only one piece of the puzzle. Several other strategies can bring the pain down while you wait for a dental appointment.
Why a Cavity Hurts
Your teeth aren’t solid blocks of mineral. Beneath the hard outer enamel, a layer called dentin is shot through with thousands of microscopic fluid-filled tubes. These tubes run from the outer surface of the tooth inward toward the pulp, where nerves and blood vessels live. When decay eats through enamel and reaches dentin, external triggers like hot coffee, cold air, or sugar cause fluid inside those tubes to shift. That fluid movement stimulates nerve endings that extend about one-third of the way into the tubes from the pulp side, producing a sharp, sudden sting.
As a cavity deepens and gets closer to the pulp, the pain shifts from occasional sensitivity to a persistent, throbbing ache. At that point, the nerve tissue itself is becoming inflamed. This is the difference between a tooth that twinges when you eat ice cream and one that wakes you up at 3 a.m.
The Best Over-the-Counter Pain Relief
Ibuprofen and acetaminophen work through completely different pathways. Ibuprofen reduces inflammation at the tooth itself, while acetaminophen blocks pain signals higher up in the nervous system. Taken together, they attack pain from both ends. A large review of data from over 58,000 dental patients found that 400 mg ibuprofen combined with 1,000 mg acetaminophen was more effective than any opioid-containing regimen, with fewer side effects.
For moderate to severe cavity pain, take 400 to 600 mg of ibuprofen plus 500 mg of acetaminophen every six hours for the first 24 hours. After that, continue the same combination as needed. There is also an FDA-approved fixed-dose product that combines both in a single caplet if you prefer not to juggle two bottles. Do not exceed the labeled daily limits for either drug, and avoid ibuprofen if you have stomach ulcers or kidney problems.
If ibuprofen isn’t an option for you, acetaminophen alone still helps, though it won’t address the inflammation driving much of the pain. Aspirin is another alternative, but never place a crushed aspirin directly on the gum. It’s acidic enough to burn the tissue and make things worse.
Topical Numbing Options
Over-the-counter benzocaine gels (sold as Orajel and similar brands) numb soft tissue to a depth of two to three millimeters. You apply a small amount directly to the gum around the painful tooth, and relief kicks in within a few minutes. In clinical testing, benzocaine gel and clove gel produced equivalent pain reduction, both significantly better than placebo. The FDA has cleared benzocaine oral products for adults and children over age two, but they should not be used on infants or toddlers due to a rare but serious blood oxygen condition called methemoglobinemia.
Clove oil is the natural alternative. Its active ingredient, eugenol, has been used in dentistry for decades as both a pain reliever and antiseptic. To use it, put one or two drops on a small cotton ball and hold it against the painful area for a few minutes. The taste is intense and slightly numbing. Clove oil is widely available at pharmacies and health food stores.
Saltwater Rinse
A warm saltwater rinse won’t numb the tooth, but it pulls fluid from swollen gum tissue and creates an environment that’s hostile to bacteria. Mix one teaspoon of table salt into eight ounces of warm water. Swish it gently around the affected area for 15 to 20 seconds, then spit. You can repeat this several times a day. If your mouth is very tender, start with half a teaspoon of salt and increase after a day or two.
Cold Compress for Swelling
If the area around the tooth is swollen or the pain is throbbing, hold a cold pack or a bag of ice wrapped in a thin towel against the outside of your cheek. Cold constricts blood vessels near the tooth, reducing both swelling and the intensity of the ache. Apply for 15 to 20 minutes at a time with breaks in between. This works especially well alongside oral pain relievers.
Sleeping With a Toothache
Cavity pain often feels worse at night, and there’s a straightforward physical reason. When you lie flat, blood pools in your head, increasing pressure and inflammation around the already irritated tooth. Propping yourself up with an extra pillow or two lets gravity help drain fluid away from the area. Combine this with a dose of ibuprofen and acetaminophen taken right before bed, and you have the best chance of sleeping through the night.
Avoid eating anything very hot, cold, or sugary close to bedtime. These are exactly the stimuli that trigger fluid movement in exposed dentin, and the last thing you need is a fresh wave of pain as you’re trying to fall asleep.
Temporary Filling Kits
Pharmacies sell over-the-counter temporary dental filling kits designed to cover an exposed cavity or replace a lost filling. These use a soft cement you press into the hole, which shields the exposed dentin from air, food, and temperature changes. They can meaningfully reduce sensitivity. However, manufacturers typically rate them for a maximum of about two days. They are not a substitute for professional treatment, and leaving temporary cement in place for weeks risks trapping bacteria inside the tooth and accelerating the decay.
What Happens at the Dentist
The treatment you’ll need depends entirely on how deep the decay has gone. Your dentist will take X-rays to see how close the cavity is to the pulp and may press a cold instrument against the tooth to test the nerve’s response. If you feel the cold briefly and it fades within seconds, the nerve is likely healthy and a standard filling will solve the problem. If the cold triggers lingering, intense pain, or if tapping the tooth produces a sharp jolt, the pulp is probably inflamed or infected, and a root canal becomes necessary to save the tooth.
A filling addresses decay that’s still limited to the enamel and outer dentin. The dentist removes the damaged material and seals the space with a composite or amalgam restoration. A root canal is needed when decay has reached the pulp chamber. The infected nerve tissue is removed, the interior is cleaned and sealed, and the tooth is typically capped with a crown for strength. Neither procedure should be painful with modern anesthesia, though a root canal involves a longer appointment and sometimes a follow-up visit.
Signs You Need Emergency Care
Most cavity pain is manageable for a few days while you arrange a dental visit. But certain symptoms signal that decay has progressed to an abscess, which is an active infection that can spread beyond the tooth. Get to an emergency room or urgent dental clinic if you develop fever along with facial swelling, swelling in your cheek or neck that makes it hard to breathe or swallow, or tender, swollen lymph nodes under your jaw. These signs mean the infection is no longer contained and may require immediate treatment to prevent it from reaching your throat, neck, or bloodstream.

