Dental infection guide
Cephalexin can be used for some bacterial infections, but a toothache does not by itself establish that this antibiotic is needed. The dentist first has to identify the source, urgency, allergy history, and treatment required for the tooth.
This focused explanation sits within our broader guide to antibiotic selection for a tooth infection. That parent guide explains why drainage, root canal treatment, extraction, or another procedure may matter more than changing from one antibiotic to another.

When cephalexin enters the discussion
Cephalexin is a cephalosporin antibiotic available only by prescription in the United States. Dental guidance does not present it as a universal first choice. A clinician may consider it in a defined bacterial infection after weighing the diagnosis and the details of any previous reaction to penicillins or cephalosporins.
The phrase “penicillin allergy” can describe very different events. A mild childhood rash, hives, facial swelling, breathing difficulty, and a severe blistering skin reaction are not interchangeable histories. The exact reaction and timing help determine whether cephalexin should be avoided and whether another evaluation is needed.
What cephalexin cannot repair
An antibiotic does not remove decay, seal a crack, treat dead or inflamed pulp, or drain a collection of pus. Symptoms can improve temporarily while the source remains. Our explanation of why dental treatment may still be necessary separates symptom control from source control.
Using leftover capsules, sharing another person’s prescription, or selecting a medicine because it worked for a previous tooth are unsafe shortcuts. They can delay the procedure that addresses the tooth and expose the patient to adverse effects without a clear benefit.
Safety questions before a prescription
The current U.S. label warns about serious allergic reactions, severe skin reactions, and Clostridioides difficile-associated diarrhea. Kidney impairment can increase exposure, so a clinician may need additional context before selecting a regimen. Cephalexin can also interact with metformin and probenecid. This article does not provide a personal dose or replace the product label.
For people with a complicated allergy history, the related guide to dental antibiotic allergy and safety explains which details are most useful to bring to the visit.
Questions a good visit should answer
Before leaving the appointment, the patient should understand which tooth or tissue is responsible, whether a procedure is planned, what worsening signs require a faster response, and how any prescribed medicine fits into that plan. The useful outcome is not simply the name cephalexin. It is a coordinated explanation of diagnosis, source control, safety, and follow-up.
General dental education only. A dentist or other qualified clinician must diagnose the condition and decide whether an antibiotic is appropriate.
Official sources
- American Dental Association guidance on antibiotics for dental pain and swelling.
- DailyMed cephalexin prescribing information, revised March 2026.
- MedlinePlus tooth abscess overview, reviewed February 2026.