Health Tips
Amoxicillin vs Cephalexin: How Their Infection Coverage Differs
Medically reviewed by [Reviewer name, credentials] ยท Last updated November 28, 2026
Ask most people what amoxicillin and cephalexin have in common and they will say “they’re both antibiotics”. That is true, and the overlap goes further: both are beta-lactams, both are taken by mouth, both are inexpensive generics, and both are prescribed millions of times a year. Yet doctors rarely treat them as interchangeable. A child with an ear infection almost always gets amoxicillin. An adult with a red, spreading patch on the leg very often gets cephalexin. Why?
The answer is coverage: the particular set of bacteria each drug reliably kills. This article compares amoxicillin vs cephalexin the way a prescriber thinks about them, first germ by germ, then body site by body site, so you can understand why you were given one rather than the other and what questions to ask if something seems off.
Quick orientation
- Amoxicillin is an aminopenicillin. Its strengths are streptococci (including pneumococcus), enterococcus, some Haemophilus, Listeria and the bacteria behind Lyme disease and H. pylori.
- Cephalexin (brand name Keflex) is a first-generation cephalosporin. Its strengths are streptococci and methicillin-sensitive Staphylococcus aureus (MSSA), plus some common urinary germs.
- The single biggest practical difference: cephalexin covers ordinary staph; amoxicillin does not.
- Neither covers MRSA, atypical pneumonia germs, Pseudomonas or viruses.
Where each drug sits in the beta-lactam family
All beta-lactam antibiotics share a ring-shaped core that attacks bacterial cell walls. What makes each one different is the chemistry attached to that ring, which decides which bacteria it can reach, which enzymes can destroy it, and how it behaves in the body.
- Penicillins: penicillin V and G (narrow), aminopenicillins such as amoxicillin and ampicillin (wider), anti-staph penicillins such as dicloxacillin, and extended-spectrum options used in hospitals.
- Cephalosporins: grouped into “generations”. First-generation drugs like cephalexin and cefadroxil focus on gram-positive bacteria such as staph and strep. Later generations reach further into gram-negative bacteria.
Amoxicillin sits one step wider than plain penicillin. Cephalexin sits at the gram-positive-focused end of the cephalosporin family. Each one fills a slightly different gap. If you want to see how amoxicillin compares with its narrower cousin, our guide to amoxicillin vs penicillin V for strep throat covers that pairing.
Amoxicillin vs cephalexin: the germ-by-germ coverage map
The table below shows typical activity. Real-world susceptibility varies by country, region and even hospital, and labs report results for individual infections. Treat this as a general map, not a prescribing tool.
| Bacterium | Common infections | Amoxicillin | Cephalexin |
|---|---|---|---|
| Streptococcus pyogenes (group A strep) | Strep throat, cellulitis, impetigo | Reliable | Reliable |
| Streptococcus pneumoniae (pneumococcus) | Ear infections, sinusitis, pneumonia | Strong, especially at higher doses | Weaker; not a preferred choice |
| Staphylococcus aureus, methicillin-sensitive (MSSA) | Boils, wound infections, impetigo, cellulitis with pus | Usually not; most staph destroy it with penicillinase | Reliable |
| MRSA | Abscesses, resistant skin infections | No | No |
| Enterococcus faecalis | Some urinary infections, wound infections | Usually active | No; enterococci are naturally resistant to cephalosporins |
| Haemophilus influenzae | Ear infections, sinusitis, bronchitis flares | Active if the strain lacks beta-lactamase | Limited; not relied on |
| Moraxella catarrhalis | Ear infections, sinusitis | Most strains resistant | Variable |
| Escherichia coli | Bladder infections | Resistance is common | Often active, though resistance varies |
| Klebsiella pneumoniae | Urinary infections | No; naturally resistant | Often active |
| Proteus mirabilis | Urinary infections | Often active | Often active |
| Listeria monocytogenes | Food-borne infection in pregnancy, older adults | Active | No |
| Mouth anaerobes | Dental infections | Generally good | Less dependable |
| Pasteurella multocida | Dog and cat bites | Active (usually given with clavulanate) | Poor; not suitable for bites |
| Borrelia burgdorferi | Lyme disease | Active | Not used |
| Helicobacter pylori | Stomach ulcers | Used in combination regimens | Not used |
| Pseudomonas aeruginosa | Hospital and complicated infections | No | No |
| Mycoplasma, Chlamydia, Legionella | “Atypical” pneumonia | No (no cell wall target) | No |
Two patterns jump out. Cephalexin is the stronger choice when staph is a likely culprit. Amoxicillin is the stronger choice for pneumococcus and for several respiratory and specialty infections. Both are excellent for group A strep.
Why the gaps exist
Understanding the “why” helps the table make sense and makes it easier to remember.
The staph gap in amoxicillin
Most Staphylococcus aureus strains produce an enzyme called penicillinase, a type of beta-lactamase, that cuts amoxicillin’s ring before it can act. Cephalexin’s structure resists this particular enzyme much better. That is the main reason cephalexin is a go-to oral drug for ordinary staph skin infections. When doctors want amoxicillin to cover staph and other beta-lactamase producers, they add clavulanate, a beta-lactamase blocker, making amoxicillin-clavulanate (Augmentin). Our comparison of amoxicillin vs Augmentin explains that upgrade.
The enterococcus and Listeria gap in cephalexin
Enterococci and Listeria have cell-wall targets that cephalosporins bind poorly. No generation of cephalosporin is reliable against them. Amoxicillin binds these targets well, so it remains useful for enterococcal urinary infections and is part of the reason ampicillin-type drugs are chosen when Listeria is a concern.
The pneumococcus difference
Some pneumococci have altered cell-wall targets that reduce penicillin sensitivity. Amoxicillin at higher doses can still overcome many of these strains, which is why guidelines use high-dose amoxicillin for ear infections in children. First-generation cephalosporins are less potent against pneumococcus and are not preferred for these infections.
The gram-negative difference
Many E. coli strains now produce beta-lactamases that destroy amoxicillin, and Klebsiella is naturally resistant to it. Cephalexin resists some of these enzymes, so it covers more of the common urinary gram-negatives, although resistance to cephalexin is also rising.
A body-site tour: which one usually fits where
Doctors pick antibiotics based on the germs most likely at a given site, local resistance patterns, your allergies and other health factors. Here is how the two drugs usually line up by infection. These are general patterns from major guidelines, not instructions.
Ears
Usually amoxicillin. The American Academy of Pediatrics recommends high-dose amoxicillin as first-line treatment for most acute middle-ear infections in children, because it covers pneumococcus well. Cephalexin is not a usual choice, since its pneumococcus and Haemophilus coverage is weaker. When a stronger option is needed, doctors more often turn to amoxicillin-clavulanate or a later-generation cephalosporin.
Sinuses
Usually amoxicillin or amoxicillin-clavulanate, and only when a bacterial sinus infection is likely. Most sinus infections are viral and improve without antibiotics. Cephalexin is rarely chosen.
Throat
Both work for strep throat. Penicillin or amoxicillin is first-line. Cephalexin is a recommended alternative for people with a penicillin allergy that was not an immediate, severe reaction. Both are typically given for 10 days.
Lungs
Amoxicillin, in specific situations. For otherwise healthy adults with community-acquired pneumonia treated at home, US guidelines list high-dose amoxicillin as an option. It does not cover atypical germs, so a doctor may add or choose another drug. Cephalexin is not used for pneumonia.
Skin
Usually cephalexin. Ordinary cellulitis without pus is usually caused by streptococci; cellulitis with pus, boils and impetigo are often caused by staph. Cephalexin covers both, which is why it is so widely used. Amoxicillin covers strep but misses most staph. If MRSA is suspected, for example with an abscess, neither is enough on its own and a doctor will choose a different drug or add one.
Bladder
Cephalexin is sometimes used; amoxicillin less often. Because E. coli resistance to amoxicillin is common, it is not usually a first choice for bladder infections unless a urine culture shows the germ is sensitive. Cephalexin is an option in some cases, including during pregnancy, though other antibiotics are often first-line. Amoxicillin is useful when enterococcus is the cause.
Bones and joints
Cephalexin may be used to finish treatment for some bone and joint infections caused by sensitive staph or strep, after an initial period of IV antibiotics. This is a specialist decision.
Teeth
Usually amoxicillin when an antibiotic is needed alongside dental treatment, because it covers the mix of mouth bacteria well. Cephalexin is less reliable against mouth anaerobes. Draining the infection is often more important than the antibiotic.
Animal bites
Usually amoxicillin-clavulanate, not cephalexin. Dog and cat bites carry Pasteurella and mouth anaerobes, which cephalexin covers poorly. This is one of the clearest examples where cephalexin, despite being “good for skin”, is the wrong tool.
Specialty uses
Amoxicillin is used in early Lyme disease and in combination regimens for H. pylori. Both have been used for dental-procedure prophylaxis in people at high risk of heart-valve infection, with cephalexin as an alternative for some people with penicillin allergy.
Is cephalexin “stronger” than amoxicillin?
This is one of the most searched questions, and the honest answer is that neither is stronger in general. “Strength” in antibiotics is about matching the drug to the germ. Against staph, cephalexin is far more effective. Against pneumococcus, enterococcus or Listeria, amoxicillin is. Against group A strep, they are roughly equal. Against MRSA or atypical pneumonia, both are equally ineffective.
A broader drug is not automatically better either. Using a wider antibiotic than needed disturbs more of your normal gut and skin bacteria, raises the chance of diarrhea and C. difficile infection, and adds pressure for resistance. Good prescribing aims for the narrowest drug that reliably covers the likely germ.
Allergy questions: can you take one if allergic to the other?
Penicillin allergy labels are very common, and most people who carry one can actually tolerate penicillins when tested. Cross-reactions between penicillins and cephalosporins are also less common than once thought, estimated at roughly 1 to 2 percent overall. Current thinking holds that cross-reactions are driven mainly by similar side chains, the chemical groups attached to the ring, rather than the ring itself.
That detail matters for this particular pair. Cephalexin’s side chain is identical to ampicillin’s and very similar to amoxicillin’s. So among cephalosporins, cephalexin is one of those more likely to cross-react in someone with a true amoxicillin or ampicillin allergy. Allergy guidance suggests:
- Immediate, severe reaction to amoxicillin (hives within an hour, swelling of lips or throat, wheezing, collapse): cephalexin is generally avoided unless an allergist advises otherwise. A cephalosporin with a different side chain, or a non-beta-lactam, may be chosen.
- Mild, delayed rash without blistering, peeling or organ involvement: a cephalosporin may still be used, but the prescriber weighs side-chain similarity.
- Severe skin reactions such as blistering, peeling, mouth sores, or a reaction with fever and organ involvement: avoid both and seek specialist advice.
- Uncertain or childhood “allergy”: ask about formal allergy testing. Removing an incorrect label opens up safer, cheaper options.
The amoxicillin rash that appears in people with glandular fever (mono) is a special case. It is common and usually not a true allergy, but it should be assessed rather than assumed.
Practical differences in day-to-day use
| Feature | Amoxicillin | Cephalexin |
|---|---|---|
| Typical dosing rhythm | Two or three times daily | Often four times daily for skin infections; twice daily in some uses |
| Food | With or without food | With or without food |
| Forms | Capsules, tablets, chewables, liquid | Capsules, tablets, liquid |
| Kidney disease | Dose may need adjusting | Dose may need adjusting |
| Common side effects | Diarrhea, nausea, rash | Diarrhea, nausea, stomach upset |
| Notable interactions | Probenecid raises levels; allopurinol may increase rash; can affect methotrexate and warfarin | Probenecid raises levels; may raise metformin levels; can affect warfarin |
| Pregnancy | Widely used when needed | Widely used when needed |
Four-times-daily dosing is the most common practical complaint with cephalexin. Missing doses can reduce effectiveness, so if a schedule seems unworkable, ask whether a different regimen is appropriate rather than quietly skipping doses. If you take other medicines, such as painkillers after a procedure, our guides on antibiotics with oxycodone and hydrocodone and antibiotics cover common combinations.
How each drug leaves the body, and why it matters
Coverage is not only about which germs a drug can kill in a lab dish. It also depends on where the drug ends up in your body, and in what concentration.
Cephalexin is barely changed by the body. Most of each dose passes out through the kidneys unchanged, so it reaches high concentrations in urine. That is part of why it can work for some bladder infections even when blood levels would be modest. It is also why the dose may need lowering in people with reduced kidney function.
Amoxicillin is also cleared largely by the kidneys, though a smaller share comes out unchanged. It distributes well into the middle ear fluid, sinuses and lung tissue, which supports its use in respiratory infections. Neither drug penetrates well into the brain and spinal fluid at oral doses, so neither is used by mouth for meningitis.
Both drugs work best when levels stay above a certain threshold for as much of the day as possible. That is why spacing doses evenly matters more with these antibiotics than with some others, and why cephalexin, with its short half-life, is often prescribed several times a day.
Amoxicillin vs cephalexin in children
Both antibiotics come as liquid suspensions and are dosed by weight in children. A few child-specific points are worth knowing:
- Ear infections: amoxicillin is the standard first choice, usually at a higher dose than adults might expect, because of pneumococcus.
- Impetigo and skin infections: cephalexin is often used when the infection is widespread enough to need an oral antibiotic, since staph is a common cause.
- Strep throat: amoxicillin is popular for its taste and once- or twice-daily options; cephalexin is an alternative for many children with a mild penicillin allergy.
- Measuring: always use the oral syringe or dosing cup supplied, not a kitchen spoon, and shake the bottle well before each dose.
- Storage: many reconstituted suspensions need refrigeration and have a short shelf life after mixing. Check the label and discard leftovers when the course ends.
- Diaper rash and loose stools are common with both; call the doctor for severe or bloody diarrhea, dehydration or a spreading rash.
Pregnancy and breastfeeding
Both amoxicillin and cephalexin have long histories of use in pregnancy and are among the antibiotics most often chosen when treatment is needed. Small amounts pass into breast milk, and both are generally considered compatible with breastfeeding, though a nursing infant may occasionally develop loose stools or thrush. Always tell your prescriber if you are pregnant or breastfeeding, because the choice also depends on the infection, local resistance and allergy history. Untreated bacterial infections, such as urinary infections, can themselves pose risks in pregnancy.
When neither is enough: the usual next steps
When the likely germ falls outside both maps, prescribers usually move to a related drug rather than a completely different family:
- Amoxicillin-clavulanate adds a beta-lactamase blocker, extending amoxicillin’s reach to many staph strains, Haemophilus and Moraxella that produce beta-lactamase, plus more anaerobes. It is common for bites, complicated sinus infections and some ear infections.
- Later-generation cephalosporins such as cefuroxime, cefpodoxime or cefdinir reach further into gram-negative and respiratory germs than cephalexin, at the cost of a broader effect on normal bacteria.
- Non-beta-lactam options are used for MRSA, atypical pneumonia, serious allergy or specific resistance patterns.
Each step outward trades a narrower, gentler effect for wider coverage, which is why prescribers try to start with the narrowest drug that fits.
What neither drug covers
It is just as important to know where both fall short:
- Viruses: colds, flu, most sore throats, most coughs and most sinus infections. Antibiotics do nothing for these.
- MRSA: needs a different antibiotic.
- Atypical bacteria: Mycoplasma, Chlamydia, Legionella. These lack the cell wall that beta-lactams target.
- Pseudomonas and many hospital-acquired gram-negative bacteria.
- Fungal infections, including thrush and athlete’s foot.
- Abscesses that need draining: pus collections often need a procedure, and antibiotics alone may fail.
When an antibiotic is not working
If you are not starting to improve after two or three days on either drug, or you are getting worse, contact your prescriber. Possible reasons include a germ outside the drug’s coverage (for example MRSA in a skin infection), a collection of pus that needs draining, a viral cause, or a different diagnosis altogether. Do not switch to leftover antibiotics at home or double your dose.
Seek urgent care if, while taking either antibiotic, you notice:
- Swelling of the face, lips, tongue or throat, wheezing or difficulty breathing
- A widespread rash with blisters, peeling skin or mouth sores
- Rapidly spreading redness, severe pain out of proportion to the appearance, or fever with confusion
- Severe or bloody diarrhea, during or after the course
Call 911 or your local emergency number for breathing difficulty or throat swelling.
Questions to ask your prescriber or pharmacist
- Which germ do you think is causing this infection?
- Why is this antibiotic a better fit than the other one for my infection?
- Is there a chance of MRSA, and would this drug cover it?
- Given my allergy history, is there any cross-reaction concern?
- How many times a day should I take it, and what if I miss a dose?
- When should I expect to feel better, and when should I call if I don’t?
- Does this interact with any of my regular medicines?
Frequently asked questions
Is cephalexin stronger than amoxicillin?
Not in general. Cephalexin is more effective against ordinary staph, while amoxicillin is more effective against pneumococcus, enterococcus and some other germs. The better drug is the one that matches the likely bacteria.
Does cephalexin cover the same bacteria as amoxicillin?
Partly. Both cover group A strep well. Cephalexin adds methicillin-sensitive staph and some urinary germs, while amoxicillin adds enterococcus, Listeria, better pneumococcus coverage and some specialty uses such as Lyme disease.
Can I take cephalexin if I am allergic to amoxicillin?
It depends on the reaction. Cephalexin has a side chain similar to amoxicillin’s, so it is generally avoided after a severe immediate reaction. After a mild delayed rash, it may be considered. Ask your prescriber or an allergist.
Which is better for a skin infection?
Cephalexin is commonly preferred for typical skin infections because it covers both strep and methicillin-sensitive staph. Neither covers MRSA, and abscesses may need draining. Animal bites usually need amoxicillin-clavulanate instead.
Is cephalexin good for a tooth infection?
Amoxicillin is more commonly used for dental infections because it covers mouth bacteria better. Cephalexin may be an alternative in some situations. Dental treatment to drain or remove the source is often the most important step.
Does amoxicillin treat a UTI?
Sometimes, but E. coli, the most common cause, is often resistant to amoxicillin. It is usually reserved for infections where a urine culture shows the germ is sensitive, or for enterococcal infections.
The bottom line on amoxicillin vs cephalexin
Comparing amoxicillin vs cephalexin is really comparing two coverage maps that overlap in the middle and diverge at the edges. Both handle group A strep. Cephalexin reaches ordinary staph and some urinary germs, making it a staple for skin infections. Amoxicillin reaches pneumococcus, enterococcus, Listeria and several specialty targets, making it the backbone for ear, sinus and some chest infections. Neither covers MRSA, atypical germs, Pseudomonas or viruses. If you are unsure why you were given one, ask which germ your prescriber is targeting, and always finish the course as directed.
This article is for general education and does not replace advice from your own doctor or pharmacist. Do not start, stop or switch antibiotics without professional guidance.
Sources
- MedlinePlus. Amoxicillin. medlineplus.gov
- MedlinePlus. Cephalexin. medlineplus.gov
- Stevens DL, et al. Practice guidelines for the diagnosis and management of skin and soft tissue infections: 2014 update by the IDSA. idsociety.org
- Shulman ST, et al. Clinical practice guideline for group A streptococcal pharyngitis: 2012 update by the IDSA. idsociety.org
- Lieberthal AS, et al. The diagnosis and management of acute otitis media. Pediatrics. 2013. publications.aap.org
- Metlay JP, et al. Diagnosis and treatment of adults with community-acquired pneumonia: ATS/IDSA guideline. 2019. idsociety.org
- Khan DA, et al. Drug allergy: a 2022 practice parameter update. J Allergy Clin Immunol. 2022. jacionline.org
- Centers for Disease Control and Prevention. Antibiotic prescribing and use. cdc.gov