Cephalexin is a first-generation cephalosporin antibiotic used to treat a range of susceptible bacterial infections. It is often prescribed for skin and soft tissue infections (such as cellulitis and impetigo), uncomplicated urinary tract infections (UTIs), streptococcal pharyngitis (strep throat), otitis media (ear infections), certain dental infections, and some bone infections when caused by organisms sensitive to cephalexin. Cephalexin works best against many Gram-positive bacteria, including Streptococcus species and methicillin-susceptible Staphylococcus aureus (MSSA), and select Gram-negative organisms such as Escherichia coli, Proteus mirabilis, and Klebsiella pneumoniae. It does not cover atypical pathogens, Pseudomonas, Enterococcus, most anaerobes, or methicillin-resistant Staphylococcus aureus (MRSA) in most settings.
As with all antibiotics, cephalexin should be used only for confirmed or strongly suspected bacterial infections. It does not treat viral illnesses such as the common cold, influenza, or most sore throats caused by viruses. Using antibiotics appropriately helps prevent antimicrobial resistance and reduces the risk of side effects, including Clostridioides difficile infection.
Cephalexin is a bactericidal agent that inhibits bacterial cell wall synthesis. It binds to penicillin-binding proteins (PBPs), blocking the final transpeptidation step required to cross-link peptidoglycan layers. The result is a weakened bacterial cell wall that ruptures under osmotic stress, killing the organism. Cephalexin’s activity is time-dependent, meaning its effectiveness is related to the duration that drug concentrations stay above the minimum inhibitory concentration (MIC) for the pathogen. Consistent dosing, taken as prescribed, helps maintain therapeutic levels for optimal bacterial eradication.
Use cephalexin as directed by your healthcare professional and the product labeling. General guidance includes:
If you have questions about how to use cephalexin, ask your doctor, pharmacist, or another qualified healthcare provider.
Cephalexin is available as capsules, tablets, and an oral suspension. Strengths vary by manufacturer. Dosing is individualized based on infection type and severity, patient age, kidney function, and other clinical factors. The following ranges reflect commonly referenced product-label guidance and are not a substitute for professional advice:
Always follow your prescriber’s directions. Patients with kidney impairment require dose adjustments to reduce the risk of drug accumulation and adverse effects.
Store cephalexin capsules and tablets at 68–77°F (20–25°C); brief excursions between 59–86°F (15–30°C) are generally permitted. Keep the medication in a dry place, away from heat, moisture, and direct light. Do not store in the bathroom. Keep out of the reach of children and pets.
For reconstituted oral suspensions, follow the product label or pharmacist’s instructions; many formulations should be refrigerated and discarded after 14 days. Do not freeze the suspension. If your pharmacist provides different storage instructions based on a specific product, follow those instructions.
Do not use cephalexin if you are allergic to cephalexin, other cephalosporins, or any component of the formulation. Inform your clinician if you have a history of severe hypersensitivity reactions to beta-lactams (for example, anaphylaxis to penicillins or carbapenems), as cross-reactivity can occur. While the overall cross-reactivity rate is low, caution is warranted, especially in those with prior severe reactions.
Before starting cephalexin, tell your doctor or pharmacist if any of the following apply:
Cephalexin may interact with certain medications or affect lab test results. Notable interactions include:
This list is not complete. Always share a full medication list with your healthcare provider and pharmacist to screen for interactions before starting cephalexin.
Most people tolerate cephalexin well. When side effects do occur, they are often mild and transient. Common reactions include:
Seek medical attention right away if you experience any signs of a severe reaction, including:
This is not a complete list of side effects. Contact your healthcare provider if you notice anything concerning while taking cephalexin.
Responsible antibiotic use preserves effectiveness for everyone. Key principles include:
Many mild respiratory infections are viral and resolve without antibiotics. If you are unsure, seek medical evaluation rather than self-medicating.
In many uncomplicated infections, symptom improvement begins within 48–72 hours of starting cephalexin. Pain, fever, and local signs of infection typically subside gradually. If symptoms are unchanged or worsening after 2–3 days, or if new symptoms develop, contact your healthcare provider. Immediate care is warranted for severe allergic symptoms; high fever with rash; severe, persistent diarrhea; signs of dehydration; confusion; or significant shortness of breath.
Discuss with your clinician before use if you are pregnant or breastfeeding; have kidney, liver, or GI disease; have bleeding disorders; are malnourished; or take other medicines or supplements.
Not all interactions are listed. Confirm with your healthcare provider and pharmacist before starting, stopping, or changing any medicine.
Common side effects may include diarrhea, dizziness, headache, indigestion, joint pain, stomach pain, or tiredness. Many people experience no or only minor side effects.
Seek medical attention promptly for: severe allergic reactions (rash, hives, itching, trouble breathing, tight chest, swelling of mouth/face/lips/tongue), agitation, confusion, dark urine, reduced urination, fever, hallucinations, red/swollen or blistered skin, seizures, severe or bloody diarrhea, severe stomach cramps, extreme fatigue, unusual bruising or bleeding, unusual vaginal symptoms, or yellowing of the eyes or skin.
If you have concerns about side effects, contact your healthcare provider.
In the United States, cephalexin is a prescription-only medication. Federal and state laws require a valid prescription from a licensed healthcare professional to dispense cephalexin. This applies to brick-and-mortar pharmacies and legitimate online pharmacies. Offers to sell cephalexin “without a prescription” are not compliant with U.S. regulations and may expose you to unsafe, counterfeit, or subpotent products. For your safety:
Health systems and rehabilitation hospitals may offer structured, compliant avenues for evaluation and treatment, including onsite or affiliated outpatient clinics and telehealth services. For example, organizations such as HealthSouth Rehabilitation Hospital of Fort Worth can connect patients with licensed clinicians for proper assessment and, when indicated, issuance of a valid prescription that can be filled at a licensed pharmacy. These pathways are designed to be legal, patient-centered, and consistent with antibiotic stewardship principles. They do not dispense antibiotics without a clinician’s prescription.
If you suspect you have a bacterial infection that might require cephalexin, the safest next step is to seek timely medical evaluation—either in person or via telehealth—so you can receive an accurate diagnosis and, if appropriate, a prescription that adheres to U.S. pharmacy law and best clinical practices.
Cephalexin is a first-generation cephalosporin antibiotic that kills susceptible bacteria by blocking cell wall synthesis. It binds penicillin-binding proteins, causing bacterial cell lysis. It is bactericidal and used for common community infections.
Clinicians commonly prescribe cephalexin for skin and soft tissue infections (like cellulitis and impetigo), uncomplicated urinary tract infections, streptococcal throat infections, some ear infections, and certain bone infections when organisms are susceptible. It does not treat viral illnesses like colds or flu.
Many people begin to feel better within 48–72 hours, with reduced fever, pain, and redness. If symptoms worsen or don’t improve by day 3, contact your clinician to reassess diagnosis, dosing, or bacterial resistance.
You can take cephalexin with or without food; taking it with a small meal or snack can reduce stomach upset. Take doses at evenly spaced intervals and finish the full course, even if you feel better, to prevent relapse and resistance.
Typical adult doses are 250 mg every 6 hours or 500 mg every 12 hours; some infections require 500 mg every 6–8 hours. The maximum daily dose is usually 4 grams. Your exact dose and duration depend on the infection type, severity, and kidney function.
Duration varies: often 5–7 days for uncomplicated UTIs and 7–14 days for skin infections or strep throat. Follow your prescription directions; don’t stop early unless your prescriber advises.
Nausea, diarrhea, stomach upset, headache, rash, and vaginal yeast infections are most common. Most are mild and self-limited. Taking with food and staying hydrated may help GI symptoms.
Seek urgent care for hives, swelling of lips/tongue, trouble breathing (allergic reaction), severe or bloody diarrhea (possible C. difficile), persistent fever, jaundice, easy bruising/bleeding, or severe skin rash.
Avoid if you’ve had a serious immediate hypersensitivity reaction to cephalexin or other cephalosporins. Use extreme caution if you’ve had anaphylaxis to penicillins, especially amoxicillin/ampicillin, due to side-chain cross-reactivity; discuss alternatives with your clinician.
Most community-acquired MRSA strains are resistant to cephalexin. It can treat methicillin-susceptible Staphylococcus aureus (MSSA) and many Streptococcus species but is not reliable for MRSA unless culture results confirm susceptibility.
Dentists sometimes use cephalexin for odontogenic infections when bacteria are susceptible or when first-line agents aren’t suitable. Dental infections vary; always follow your dentist’s antibiotic choice and complete any recommended procedures like drainage.
Yes. Cephalexin is an effective option for confirmed Group A Streptococcus pharyngitis, especially for patients who cannot take penicillins, provided they don’t have a history of anaphylaxis to amoxicillin or ampicillin.
Like other antibiotics, cephalexin can disrupt gut flora and rarely trigger Clostridioides difficile–associated diarrhea. Report watery diarrhea, abdominal cramps, or fever during treatment or within weeks after finishing.
Take it as soon as you remember unless it’s close to the next dose. If so, skip the missed dose and resume your schedule. Do not double up. Consistency helps maintain effective antibiotic levels.
Store capsules at room temperature, away from moisture and heat. Keep reconstituted oral suspension in the refrigerator and discard after the time on the label (often 14 days). Shake the suspension well before each dose.
Cephalexin does not have a known disulfiram-like reaction with alcohol. Light to moderate alcohol typically doesn’t interfere, but alcohol can worsen dehydration and GI upset. If you’re unwell, avoiding alcohol can help recovery.
Cephalexin has extensive use in pregnancy and is generally considered safe when clinically indicated. Your prescriber will weigh benefits and risks based on infection severity and timing in pregnancy.
Yes, small amounts pass into breast milk and it’s usually compatible with breastfeeding. Watch the infant for mild diarrhea, diaper rash, or thrush; these effects are uncommon and typically mild.
Cephalexin does not meaningfully reduce the effectiveness of combined hormonal contraceptives. Only rifampin-like antibiotics reliably lower pill efficacy. If you have vomiting or severe diarrhea, backup contraception is prudent.
Cephalexin is not typically used for surgical prophylaxis; cefazolin is the usual perioperative cephalosporin. If you’re already taking cephalexin for an infection, inform your surgical team—they’ll advise whether to continue or adjust.
Yes. Pediatric dosing is weight-based, commonly 25–50 mg/kg/day divided every 6–12 hours (up to 100 mg/kg/day for severe infections), not exceeding 4 g/day. Use an accurate oral syringe or dosing device.
Yes. Cephalexin is cleared by the kidneys; reduced kidney function requires dose or interval adjustments to prevent accumulation and side effects. Your clinician will check creatinine-based kidney function.
It depends on the allergy. If you had a mild, non-urticarial rash years ago, cephalexin may be acceptable. If you had immediate anaphylaxis, especially to amoxicillin/ampicillin, avoid cephalexin and discuss alternatives due to higher cross-reactivity risk.
Both are first-generation oral cephalosporins with similar spectra against MSSA and streptococci. Cefadroxil has a longer half-life and is often dosed once or twice daily, which can improve adherence; cephalexin typically requires dosing every 6–12 hours.
For hospitalized or perioperative settings, IV cefazolin is preferred and is slightly more potent against MSSA. Cephalexin is the go-to oral step-down option for uncomplicated outpatient skin infections caused by susceptible organisms.
Cefuroxime (a second-generation cephalosporin) offers broader Gram-negative and Haemophilus influenzae coverage and is used in sinusitis and some lower respiratory infections. Cephalexin is stronger against MSSA and many streptococci but has narrower Gram-negative activity.
Cefdinir (an oral third-generation cephalosporin) has better activity against common respiratory Gram-negatives and is often chosen for sinusitis or bronchitis when an oral cephalosporin is indicated. Cephalexin is usually preferred for skin infections and some UTIs.
Both can treat UTIs if the organism is susceptible. Cefpodoxime has stronger activity against certain Enterobacterales and may retain efficacy against some beta-lactamase–producing strains, while cephalexin is effective for uncomplicated cystitis where local resistance is low.
Both are generally well tolerated. Cefaclor has been associated with serum sickness–like reactions, especially in children, more often than cephalexin. Cephalexin is widely used first-line for many mild infections due to efficacy and tolerability.
Cefprozil (second-generation) offers enhanced activity against H. influenzae and Moraxella catarrhalis and may be preferred in sinusitis or otitis media. Cephalexin is favored for MSSA skin infections and streptococcal pharyngitis.
Cephalexin is generally more reliable against Group A Streptococcus than cefixime. Cefixime, a third-generation agent, has weaker Gram-positive activity and is more often used for certain UTIs and gonorrhea.
Ceftriaxone is a potent parenteral third-generation cephalosporin for serious or resistant infections. When patients improve, clinicians may “step down” to oral cephalexin if culture and susceptibility results support it; the choice depends on bug, site, and severity.
Ceftibuten has better coverage for common Gram-negative ear pathogens and is sometimes used for otitis media. Cephalexin can help when the likely pathogen is streptococcal or MSSA, but it’s not a first choice for typical pediatric otitis media.
Cephalothin is an older first-generation cephalosporin that is largely obsolete in many regions. Cephalexin remains widely available orally, with a favorable safety profile and established dosing for outpatient infections.
Within first-generation cephalosporins, cephalexin and cefadroxil are oral mainstays; cefazolin is the IV workhorse. Cephalexin’s advantages are broad availability, low cost, strong MSSA/strep activity, and extensive clinical experience; its main limitation is frequent dosing.
Written on 2 March, 2023: Laura Jenkins
Re-written on 8 October, 2025: Cristina Matera, MD