Pain relief for a cavity
Short-term cavity pain relief can include avoiding triggers and using an appropriate nonprescription analgesic, but the cavity needs dental treatment.
The short answer
A cavity is a demineralized and damaged area of enamel and possibly dentin caused by acid from bacterial plaque. Pain may be triggered by cold, sweet foods, pressure, or inflammation near the pulp.

What is the direct answer?
What does this question mean?
Pain medicine can reduce symptoms but cannot remove infected or softened tooth structure. Treatment may involve a filling, a crown, or root canal therapy depending on depth and pulp status.
What can you do next?
Rinse gently, keep the area clean, avoid very hot, cold, sweet, or hard foods, and follow the label or a clinician’s advice for any analgesic. Do not place aspirin or caustic substances directly on the gum.
When should you seek dental care?
Arrange a dental appointment promptly, especially when pain lingers after a trigger, occurs spontaneously, or disrupts sleep. Facial swelling, fever, difficulty swallowing, or reduced mouth opening needs urgent care.
What should you ask the dentist?
Ask how deep the lesion is and whether the pulp is inflamed. Ask which restoration is suitable, what to do until treatment, and which medicines fit your health conditions.
