Cephalexin Side Effects: What to Expect and When to Call Your Doctor

Cephalexin is one of the most commonly prescribed antibiotics for dental infections, skin infections, and a range of other bacterial illnesses — it’s the generic version of Keflex, and many people finish a course without any issues beyond mild stomach upset. Still, it’s worth knowing what’s common, what’s rare, and what to do if something feels off while you’re taking it.
Quick answer: Cephalexin’s most common side effects are diarrhea, nausea, stomach pain, and indigestion. More serious but less common risks include severe allergic reactions (especially important if you have a penicillin allergy, since cross-reactivity is possible), severe or bloody diarrhea from C. diff infection, and rare skin reactions. Most courses are short — typically 7 to 14 days — and side effects usually resolve once you finish the antibiotic.
What Is Cephalexin and When Is It Prescribed?
Cephalexin is a first-generation cephalosporin antibiotic, a drug class chemically related to penicillin. It works by interfering with bacteria’s ability to build their cell walls, which causes the bacteria to die off. Dentists and doctors commonly prescribe it for dental abscesses and other oral infections, skin and soft tissue infections, respiratory infections, bone infections, and urinary tract infections. For dental infections specifically, it’s often reached for when a patient has a penicillin allergy that isn’t severe, or when a dentist wants broader coverage than penicillin alone provides — though your dentist will choose the specific antibiotic based on the type and severity of your infection.
Common Cephalexin Side Effects
Most people who take cephalexin experience mild, self-limited side effects, if any at all:
- Diarrhea: The most frequently reported side effect. Usually mild, but worth monitoring (see the warning about severe diarrhea below).
- Nausea and vomiting: Common, especially if taken on an empty stomach. Taking cephalexin with food can help, and it doesn’t significantly reduce how well the antibiotic works.
- Stomach pain and indigestion (dyspepsia): Reported by a meaningful minority of people.
- Gastritis: Mild stomach lining irritation, usually resolving after the course ends.
- Headache and dizziness: Less common, but reported occasionally.
- Vaginal yeast infection: Like other antibiotics, cephalexin can disrupt the normal balance of bacteria and yeast in the body, leading to a yeast infection in some women.
According to Drugs.com’s clinical data on cephalexin, the most commonly reported side effects in professional labeling are diarrhea, dyspepsia, gastritis, nausea, and vomiting, though specific incidence rates vary across the studies the drug was originally approved on.
Serious Side Effects and Allergic Reactions
The side effects below are uncommon, but they’re the ones that warrant stopping the medication and getting medical attention:
- Severe allergic reactions: Signs include hives or a widespread rash, swelling of the face, lips, tongue, or throat, difficulty breathing or swallowing, and chest tightness. This requires emergency care.
- Penicillin cross-reactivity: Cephalexin is chemically related to penicillin, and a small percentage of people with a penicillin allergy may also react to cephalosporins like cephalexin. If you have a documented penicillin allergy, make sure your dentist or doctor knows before you’re prescribed cephalexin, so they can weigh the risk — for many people with a mild or historical penicillin reaction, cephalexin is still considered reasonably safe, but this is a decision to make with your provider, not on your own.
- Severe or bloody diarrhea (C. diff infection): Antibiotics, including cephalexin, can disrupt normal gut bacteria and allow Clostridioides difficile (C. diff) to overgrow, causing severe, watery or bloody diarrhea, sometimes with fever and stomach cramping. This can occur during treatment or even weeks after finishing the antibiotic, and it needs medical attention — don’t take anti-diarrheal medication without checking with your doctor first, since slowing the gut can make C. diff infection worse.
- Serious skin reactions: Rarely, cephalexin has been associated with severe skin reactions such as Stevens-Johnson syndrome and toxic epidermal necrolysis, which involve blistering or peeling skin and require emergency treatment.
- Kidney effects: Cephalexin is cleared by the kidneys, so people with reduced kidney function may need a lower dose. Your doctor should account for this, especially in older adults, where kidney function naturally declines with age.

Cephalexin for Dental Infections Specifically
When cephalexin is prescribed for a dental abscess or other oral infection, it’s usually part of a broader treatment plan that also includes the dentist draining the abscess or performing a root canal or extraction — antibiotics alone don’t cure a dental infection, because they can’t reach deep into dead tooth pulp or drain a pocket of pus the way a dental procedure can. The American Dental Association’s clinical guidance generally reserves antibiotics for dental infections that have spread beyond the local area (causing fever, facial swelling, or difficulty swallowing) or for patients who can’t have the dental procedure performed right away. If you’re prescribed cephalexin for a dental infection, it’s worth confirming with your dentist whether a follow-up procedure is still needed — finishing the antibiotic without addressing the underlying tooth problem often means the infection comes back.
Who Should Be Cautious With Cephalexin
People with a history of a severe allergic reaction to any penicillin or cephalosporin antibiotic should avoid cephalexin unless their doctor specifically determines it’s safe. People with significantly reduced kidney function need dose adjustments. Anyone with a history of colitis or other bowel disease should mention it before starting, given the C. diff risk discussed above. Cephalexin is generally considered one of the safer antibiotic options during pregnancy and breastfeeding, but this should still be confirmed with your doctor rather than assumed. Older adults don’t face any cephalexin-specific restrictions beyond the general kidney-function consideration, but as with any new medication, it’s worth reviewing your full medication list with your pharmacist to check for interactions.
Drug Interactions
Cephalexin has relatively few major drug interactions compared to many antibiotics, which is part of why it’s a common first choice. Still, a few are worth knowing: it can increase blood levels of metformin in some people, potentially requiring closer blood sugar monitoring; it may affect the accuracy of certain urine glucose tests (false positives have been reported with older testing methods); and like most antibiotics, it can reduce the effectiveness of hormonal birth control in some cases, so a backup method is often recommended during treatment. As always, give your pharmacist your full medication list when picking up a new prescription.
Cephalexin Compared to Other Dental Antibiotics
If you’ve seen other antibiotics mentioned for dental infections — clindamycin, amoxicillin, azithromycin, metronidazole — you might wonder why your dentist chose cephalexin specifically. Each has its own trade-offs:
- Compared to amoxicillin: Both are considered first-line options for dental infections in patients without a penicillin allergy; cephalexin is often the alternative when a patient has a mild penicillin sensitivity that doesn’t rule out cephalosporins entirely.
- Compared to clindamycin: Clindamycin is typically reserved for patients with a true penicillin allergy or infections that don’t respond to first-line options, partly because it carries a higher risk of C. diff infection than cephalexin.
- Compared to azithromycin: Azithromycin is sometimes chosen for its short course (often 3 to 5 days) and once-daily dosing, but it has more drug interactions and a QT-prolongation (heart rhythm) warning that cephalexin doesn’t carry.
- Compared to metronidazole: Metronidazole is often added alongside another antibiotic for infections involving anaerobic bacteria, and unlike cephalexin, it has a well-known dangerous interaction with alcohol.
Your dentist’s choice depends on the specific bacteria likely involved, your allergy history, and how severe the infection is — there isn’t one “best” antibiotic for every dental infection.
Typical Dosing for Dental Infections
Dosing varies by the specific infection and your dentist’s judgment, but cephalexin for dental infections is commonly prescribed at 500 mg taken two to four times daily for 7 days, sometimes extended depending on how the infection responds. It’s generally taken on an empty stomach for best absorption, though taking it with food is a reasonable trade-off if it causes nausea, since the effect on absorption is modest. Never adjust your own dose or stop early just because symptoms improve — finishing the full course matters for preventing the infection from returning and for reducing the broader problem of antibiotic resistance.
Tips for Taking Cephalexin
- Take it with food if it upsets your stomach — this doesn’t reduce its effectiveness.
- Finish the entire course even if you feel better after a few days; stopping early can let the infection come back and contributes to antibiotic resistance.
- Space doses evenly throughout the day as prescribed, to keep a steady level of the antibiotic in your system.
- Stay hydrated, especially if you develop any diarrhea.
- Don’t share leftover antibiotics or save them for a future infection — the dose and duration are specific to the infection being treated.
When to Call Your Doctor
Call your doctor or dentist promptly if you develop a widespread rash or hives, facial or throat swelling, trouble breathing, severe or bloody diarrhea, a fever that develops or worsens while taking the antibiotic, or signs that your infection is getting worse rather than better (increasing swelling, pain, or fever) despite several days of treatment. These aren’t the typical experience, but they’re the signs that mean the medication or treatment plan needs to be reassessed.
Frequently Asked Questions
Can I drink alcohol while taking cephalexin?
Unlike some antibiotics (such as metronidazole), cephalexin doesn’t have a dangerous interaction with alcohol. That said, alcohol can worsen some of the GI side effects like nausea and stomach upset, and it’s generally sensible to limit it while your body is fighting an infection.
How long does it take for cephalexin to start working?
Many people notice some improvement in infection symptoms within 48 to 72 hours of starting cephalexin, though this varies by the type and severity of infection. It’s important to keep taking it for the full prescribed course even after you start feeling better.
Is cephalexin the same as amoxicillin?
No — cephalexin is a cephalosporin and amoxicillin is a penicillin, two related but distinct antibiotic classes. They’re sometimes used for similar infections, and a small percentage of people allergic to one may also react to the other, but they’re not interchangeable without a doctor’s guidance.
Can cephalexin cause a yeast infection?
Yes, this is a recognized possibility with cephalexin and most antibiotics, since they can disrupt the normal balance of bacteria that keeps yeast in check. If you notice symptoms of a yeast infection during or shortly after your course, over-the-counter treatments are usually effective, but check with your doctor if symptoms are severe or don’t improve.
What should I do if I miss a dose of cephalexin?
Take the missed dose as soon as you remember, unless it’s almost time for your next dose — in that case, skip the missed one and continue your regular schedule. Don’t double up doses to make up for a missed one, since this increases the risk of side effects without added benefit.
Can children and older adults take cephalexin safely?
Cephalexin is commonly prescribed across a wide age range, from young children to older adults, with the dose adjusted by weight (in children) or kidney function (which can decline with age). There’s no upper age limit on its use, though as noted above, your doctor should confirm your kidney function supports the standard dose if you’re an older adult, particularly if you have any history of kidney disease.
This article is for general educational purposes and isn’t a substitute for personalized medical advice. Always follow your doctor’s or dentist’s specific guidance about diagnosis, treatment, and any symptoms that concern you.
Cephalexin has one of the more favorable side-effect profiles among common antibiotics — most people get through a course with nothing worse than mild stomach upset, and taking it with food solves a lot of that. The things worth watching for are the uncommon but serious reactions: a widespread rash, facial swelling, severe diarrhea, or an infection that isn’t improving despite several days of treatment. If you’re taking it for a dental infection, remember that the antibiotic is usually only half the treatment — the underlying dental problem still needs to be addressed for the infection to fully resolve.
Related Reading
Comparing dental antibiotics? See azithromycin side effects.
Prescribed metronidazole alongside it? See metronidazole side effects.
Have a penicillin allergy? See clindamycin side effects for the common alternative.
Noticing early warning signs? See early gum disease.
Dealing with bleeding gums too? See why are my gums bleeding when I brush.
Penicillin Side Effects: What to Expect and When to Call Your Doctor
On doxycycline instead? See Doxycycline Side Effects.