Medically reviewed by Austin Ulrich, PharmD
Key Takeaways
- Cephalexin is a common antibiotic used to treat bacterial infections, specifically those of the skin, urinary tract, and respiratory system.
- While generally safe, common side effects include digestive issues like nausea and diarrhea.
- It’s crucial to finish the entire prescription even if you feel better – this helps ensure it completely treats your infection.
- Prescription discount programs like the Super+ RX coupon can help you save money on cephalexin and other prescriptions.
One of the most common prescriptions you might encounter for bacterial infections is cephalexin. Whether you have a stubborn skin infection, a painful urinary tract issue, or a respiratory bug, this medication has many different uses. However, knowing what it does, how to take it safely, and how to avoid overpaying for it is essential.
This guide provides a detailed look at cephalexin, including dosage, side effects, and precautions. We will break down how it works, what to watch out for, and how to ensure you aren’t paying more than necessary.
What Is Cephalexin?
Cephalexin is a prescription antibiotic that belongs to a class of drugs known as cephalosporins. If that sounds complicated, think of it as a cousin to penicillin. It works by interfering with the bacteria’s ability to build their cell walls. Without a sturdy wall, the bacteria break open and die, which stops the infection from spreading and allows your body to heal.
You may hear this medication referred to by a brand name like Keflex. However, generic cephalexin is the most common form you’ll encounter. The generic version contains the exact same active ingredients as the brand-name version but comes with a much friendlier price tag.
It is important to note that cephalexin is FDA-approved to treat bacterial infections. It will not work for viral infections like the common cold, the flu, or COVID-19. Taking antibiotics when you don’t need them (like for a virus) doesn’t help you get better and can actually make antibioticsless effective for you in the future.
What Conditions Does Cephalexin Treat?
Healthcare professionals prescribe this medication for a wide variety of bacterial infections. It is particularly effective against gram-positive bacteria (like Staphylococcus and Streptococcus) and some gram-negative bacteria (like E. coli).
Skin and Soft Tissue Infections
One of the most common uses for cephalexin is treating skin infections. If you have cellulitis, infected hair follicles (folliculitis), or an abscess, this drug is often the first line of defense. It is highly effective at clearing up the bacteria that commonly live on the skin but cause trouble when they get into a cut or scrape.
Urinary Tract Infections (UTIs)
For many people, especially those who may be allergic to other common UTI antibiotics like sulfa medications, cephalexin is a go-to solution. It travels through the body and is filtered out by the kidneys, meaning it reaches high concentrations in your urine, right where the infection is located. It is frequently prescribed for UTIs caused by E. coli.
Respiratory Tract Infections
While it isn’t always the first choice for deep lung infections like pneumonia, it is frequently used for upper respiratory issues. This includes streptococcal pharyngitis (strep throat) when penicillin isn’t an option, as well as tonsillitis.
Bone and Joint Infections
Because this medication can penetrate bone tissue effectively, it is sometimes used to treat osteomyelitis (bone infection). These courses of treatment are often longer than the standard 7 days used for other infections.
Otitis Media (Ear Infections)
In children and adults suffering from middle ear infections, this antibiotic can clear the bacteria causing the pain and pressure, specifically when other antibiotics have failed or aren’t suitable.
Dosage and Administration
The most frequently prescribed strength for adults is cephalexin 500 mg. However, dosages can range from 250 mg to higher amounts (up to 4000 mg per day) depending on the severity of the infection.
How to Take It
Typically, a healthcare professional will prescribe this medication to be taken every 6 to 12 hours for a duration of 7 to 14 days. Consistency is key here. To keep the levels of the medication high enough in your body to kill the bacteria, try to take your doses at the same times every day.
- With or Without Food: You can take the capsule or tablet on an empty stomach or with a meal. If you find that it upsets your stomach (a common complaint), taking it with food or a glass of milk can help settle things down without affecting how well it works.
- The Liquid Form: If prescribed the liquid suspension (often for children), always shake the bottle well before use and use a dedicated measuring spoon or cup—not a kitchen teaspoon—to ensure you get the exact right amount.
The Importance of Finishing the Course
It’s common to start feeling completely back to normal after just 2 or 3 days of treatment. You might be tempted to stop taking the pills to “save them for later” or because you think you’re cured. This is a potentially dangerous misconception.
Stopping an antibiotic early can leave somebacteria alive. These survivors can mutate and become resistant to antibiotics, meaning the next time you get sick, antibiotics may not work as well. This is how “superbugs” are created. Always complete the full prescribed course unless a healthcare professional specifically tells you to stop.
Missed Doses
If you forget to take a dose, take it as soon as you remember. But, if it is almost time for your next scheduled dose, skip the missed one and go back to your regular schedule. Never take two doses at the same time to “catch up,” as this increases the risk of side effects.
Potential Side Effects
Like all medications, cephalexin comes with a list of potential side effects. The good news is that most people tolerate it very well, and side effects are usually mild and temporary.
Common Side Effects
These effects usually do not require medical attention unless they become severe or persistent:
- Digestive Issues: Diarrhea, nausea, vomiting, and stomach pain are the most frequent complaints. As mentioned earlier, taking your dose with food can mitigate this.
- Dizziness or Fatigue: Some people report feeling a bit tired or lightheaded.
- Headache: Mild headaches can occur during treatment.
Serious Side Effects
While rare, serious reactions can happen. You should stop taking the medication and seek help immediately if you experience:
- Severe Allergic Reaction: Signs include hives, difficulty breathing, swelling of the face, lips, tongue, or throat.
- Severe Skin Reaction: A red or purple skin rash that spreads and causes blistering and peeling.
- Severe Diarrhea: If you develop watery or bloody diarrhea (which can happen even weeks after you finish the meds), this could be a sign of a serious condition called C. difficile. Do not take anti-diarrhea medicine (like Imodium) without checking with a professional first, as it can make the problem worse.
- Jaundice: Yellowing of the skin or eyes, which suggests liver stress.
The Penicillin Connection
There is a concept known as “cross-sensitivity” when talking about allergies. Because cephalosporins are chemically similar to penicillin, people with a penicillin allergy might also be allergic to cephalexin.
Experts suggest that less than 3% of people with a penicillin allergy will react to cephalosporins. It’s vital that you inform your prescribing healthcare professional about any past reactions to penicillin or other antibiotics so they can determine if this is the safe choice for you.
Interactions and Precautions
Before picking up your prescription, ensure your pharmacist knows about all other medications, vitamins, and herbal supplements you are taking. Drug interactions can change how your meds work or increase the risk of serious side effects.
Key Interactions to Watch
- Blood Thinners: If you take blood thinners like warfarin (Coumadin), cephalexin can increase the blood-thinning effect, leading to a higher risk of bleeding. Your healthcare professional may need to monitor your labs more closely.
- Metformin: Used for diabetes, metformin interacts with this antibiotic in a way that can increase the levels of metformin in your body, potentially causing kidney issues.
- Probenecid: This gout medication can prevent your kidneys from filtering the antibiotic out of your body, leading to dangerously high levels of cephalexinin your system.
Pregnancy and Breastfeeding
Cephalexin is generally considered safe to use during pregnancy and while breastfeeding, as only small amounts pass into breast milk. However, you should always have a conversation with your healthcare professional to weigh the benefits against any potential risks for your specific situation.
Kidney Function
Because your kidneys are responsible for removing this medication from your body, people with reduced kidney function or kidney disease may need a lower dosage. The standard 500 mg dose might stay in their system too long, increasing the risk of side effects.
Frequently Asked Questions (FAQ)
Is cephalexin 500 mg a strong antibiotic? “Strong” is a relative term in medicine. Cephalexin 500mg is a standard adult dose and is considered highly effective for the specific bacteria it targets (like Staphylococcus and Streptococcus). While it may not treat all infections, it does treat specific infections effectively with generally mild side effects.
Can I get cephalexin over the counter? No. In the United States, cephalexin is a prescription-only medication. You must have a prescription from a healthcare professional to purchase it. Using antibiotics without a diagnosis can be risky and contributes to antibiotic resistance.
What should I avoid while taking cephalexin? You should avoid taking the medication at irregular times. Regarding diet, there are no strict food restrictions, but it is generally a good idea to avoid alcohol. While alcohol doesn’t make the drug ineffective, it can worsen side effects like dizziness and nausea, making you feel worse while you recover.
Is cephalexin good for eye infections? Generally, no. Most eye infections (like pink eye) are treated with antibiotic eye drops rather than oral pills. Oral cephalexin doesn’t penetrate the eye tissue well enough to be the primary treatment for surface eye infections.
What is a good substitute for cephalexin if I am allergic? If you are allergic to cephalosporins, a healthcare professional might prescribe an alternative antibiotic such as clindamycin, doxycycline, or a macrolide like azithromycin, depending on the type of infection you have.
Will cephalexin work for a tooth infection? Yes, it is often used for dental infections, especially if the patient is allergic to penicillin (the usual first choice for teeth). It’s typically effective at clearing abscesses in the gum or jaw.
How to Save on Your Cephalexin Prescription
Here are several practical ways you can save money if you need a prescription for cephalexin — whether you have insurance or not:
- Use a prescription discount card or coupon like Super+ RX: The Super+ RX coupon uncovers discounts to help lower out-of-pocket costs for cephalexin. Whether it’s cephalexin or another medication, we want to help you save—because your well-being comes first.
- Check multiple pharmacies — cash prices can vary. Pharmacies in the same area sometimes charge different prices for the same medication. Comparing cash prices among pharmacies can help you find the cheapest option. Search for your prescription on Super.com/rx, compare prices across pharmacies, and find discounts near you.
- Consider asking for the generic form, not the brand-name form. The generic version of cephalexin is often much cheaper than the brand-name version, Keflex, and works the same.
What you can do before you go to the pharmacy:
- Use a discount program like the Super+ RX coupon — print it or bring it on your phone — and ask the pharmacist or cashier to apply it to your prescription.
- Compare at least two or three pharmacies on Super.com/rx to see who offers the lowest price.
- If you are uninsured or if you have a high copay, ask your healthcare team about patient-assistance programs or reduced-cost clinics in your area.
We understand that managing infections often comes with concerns about the cost of treatment. Whether you’re looking for cephalexin 250 mg, cephalexin 500 mg, or another dosage or a brand-name form, a few simple clicks can show you where to get your medication at a more affordable price.
Ready to save on cephalexin? Compare prices for cephalexin at pharmacies near you and start lowering your medication costs.
References
Cephalexin. Prescribing information. Bryant Ranch Prepack, 2025. Accessed January 23, 2026. https://nctr-crs.fda.gov/fdalabel/services/spl/set-ids/8d7f247a-3b42-4823-96fb-5f5c1bd94d49/spl-doc
Cephalexin. Prescribing information. RemedyRepack Inc., 2026. Accessed January 23, 2026. https://nctr-crs.fda.gov/fdalabel/services/spl/set-ids/d3527c0a-94e4-46a2-be77-d936abcd19ec/spl-doc
Habboush Y, Guzman N. Antibiotic resistance. StatPearls. June 20, 2023. Accessed January 23, 2026. https://www.ncbi.nlm.nih.gov/books/NBK513277/
Herman TF, Hashimi MF. Cephalexin. StatPearls. August 17, 2023. Accessed January 23, 2026. https://www.ncbi.nlm.nih.gov/books/NBK549780/
Patterson RA, Stankewicz HA. Penicillin allergy. StatPearls. June 20, 2023. Accessed January 23, 2026. https://www.ncbi.nlm.nih.gov/books/NBK459320/
Disclaimer:
Generative AI was used in the development of this content. All information in this article has been reviewed by our highly-trained clinicians. We do not provide medical advice. Please, consult a physician.