Compare Keflex vs. Bactrim

Head-to-head comparisons of medication uses, side effects, ratings, and more.

Keflex
(Cephalexin)

Bactrim
(Sulfamethoxazole / Trimethoprim)

Kills bacteria. Keflex (Cephalexin) is good for treating many bacterial infections and is available as generic. However, if you are on medications to thin your blood, you can be more likely to bleed.Kills bacteria. Bactrim (Sulfamethoxazole / Trimethoprim) is good for treating many bacterial infections and is available as a generic. However, you can be more likely to sunburn. Also, it can cause birth defects, so talk to your doctor if you're pregnant.
Find lowest prices
Powered by GoodRxSave on your next prescription. Be sure you’re getting the lowest price for your medication, even if you have insurance.
Reviews & ratings
Filter group. All currently selected
Filter group. All currently selected
5.08Keflex
Reviews for Keflex (Cephalexin)
64%
of people (All ages) say Keflex (Cephalexin) is worth it
48%
say it works well
14%
say it's a big hassle
686 reviews
Have you used Keflex (Cephalexin)?
Worth itNot sureNot worth it
Reviews for Bactrim (Sulfamethoxazole / Trimethoprim)
59%
-5% worse vs. Keflex (Cephalexin)
49%
+1% better vs. Keflex (Cephalexin)
22%
-8% worse vs. Keflex (Cephalexin)
473 reviews
Have you used Bactrim (Sulfamethoxazole / Trimethoprim)?
Worth itNot sureNot worth it
Side effects
KeflexBactrim

The Keflex FDA package insert doesn’t have numbers about how common side effects are.

More about Keflex side effects »

The Bactrim FDA package insert doesn’t have numbers about how common side effects are.

More about Bactrim side effects »
How it works
KeflexBactrim
Keflex (Cephalexin) is an antibiotic. It kills bacteria by preventing them from making their own protective covering.Bactrim (Sulfamethoxazole / Trimethoprim) is a combination antibiotic that contains sulfamethoxazole and trimethoprim. It kills bacteria by preventing them from making proteins and other chemicals that keep them alive.
Type of medication
KeflexBactrim
Prescription only
Prescription only
Available as
KeflexBactrim
  • Pill
  • Powder for oral suspension
  • Pill
  • Liquid
Used for
KeflexBactrim
Risk factors for serious side effects
KeflexBactrim
    Detailed Keflex (Cephalexin) risks & warnings »
            Detailed Bactrim (Sulfamethoxazole / Trimethoprim) risks & warnings »
            Pregnancy

            Research studies with animals haven’t found a risk to unborn babies, but it hasn’t been properly studied in humans.

            Research studies with real people found harmful effects on unborn babies, but the benefits might outweigh the risks even if you’re pregnant. Talk with your doctor.

            Food
            KeflexBactrim
            • Can be taken with or without food.
            • If you're on blood thinners (anticoagulants), talk to your doctor, it may make you more likely to bleed.
            No food related info.
            Upsides and benefits
            KeflexBactrim
            • Available in generic.
            • Available in different forms: tablet, capsule, and suspension.
            • Used to treat many types of bacterial infections.
            • Less resistance seen in bacteria to this antibiotic. Your doctor may run tests to see which antibiotics will kill the bacteria causing your infection.
            • Can be taken with or without food.
            • Available in generic.
            • Available in different forms: tablet, capsule and suspension.
            • Used to treat many types of bacterial infections.
            • Less resistance seen to this antibiotic. Your doctor may run tests to see if Bactrim responds to your infection.
            Downsides and risks
            KeflexBactrim
            • If you're on blood thinners (anticoagulants), talk to your doctor, it may make you more likely to bleed.
            • If you have to take any live vaccines, talk to your doctor. You may have to postpone it.
            • Can cause diarrhea.
            • Makes your skin more sensitive to the sun.
            • Has to be taken with plenty of liquids.
            • May cause birth defects.
            • Can cause diarrhea.
            Tips from our pharmacists for people taking the medication
            KeflexBactrim
            • Take this medication exactly as your doctor tells you to.
            • Store the suspension in the refrigerator. All other forms can be kept at room temperature.
            • Space out vitamins by a couple hours if you're taking this medication.
            • Take this medication exactly how your doctor tells you to.
            • Can make your skin more sensitive to the sun.
            • Drink plenty of liquids when taking the medication.
            • Can cause diarrhea, nausea or vomiting.
            • Can cause rash.
            Learn more
            More about KeflexSide effectsReviews & ratingsAlternativesFDA package insert
            Have you used Keflex (Cephalexin)?
            Worth itNot sureNot worth it
            More about BactrimSide effectsReviews & ratingsAlternativesFDA package insert
            Have you used Bactrim (Sulfamethoxazole / Trimethoprim)?
            Worth itNot sureNot worth it