Is It Safe To Take Keflex (Cephalexin) With Birth Control?

The pharmacist discusses whether or not Keflex (cephalexin) interacts with or reduces the effectiveness of birth control.

3 min read Updated Jun 2026 Read by 11,430 people
Is It Safe To Take Keflex (Cephalexin) With Birth Control?
Share
Kenzie asked

My Dr. put me on 500mg of cephalexin 3 times a day and 150mg of fluconazole. I am currently taking Estarylla birth control pills. I'm terrified that the medication my Dr. gave me will interfere with the birth control and I will end up pregnant, especially with all the controversy about antibiotics and birth control pills. My Dr. said I would be fine if I had unprotected sex but I'm not so sure. So is it really ok if I have unprotected sex?

Aug 27, 2022
The quick answer
  • Most studies show that Keflex does not significantly reduce birth control effectiveness, but some individual patients may experience decreased hormone levels from the medication.
  • Using backup contraception like condoms while taking Keflex and for 7 days after finishing it is recommended as a precaution since it's not possible to identify in advance which women might be affected.
  • Keflex is not a rifamycin antibiotic, which are the only antibiotics definitively proven to reduce birth control effectiveness.
A quick summary of Dr. Brian Staiger, PharmD's full answer below, condensed by AI from that answer only (not from any outside source). The pharmacist's answer is the source of record.

Answer

Whether or not antibiotics, like Keflex (cephalexin), reduce the effectiveness of birth control is uncertain to some degree. However, most studies suggest that the vast majority of antibiotics do not significantly reduce birth control effectiveness, with the exception being the rifamycin family of antibiotics.

Nevertheless, as the consequences of unintended pregnancy are significant, and there isn't conclusive data regarding just how Keflex may affect hormone concentrations in birth control in all women, it would be prudent to use backup contraception when taking the antibiotic.

Interaction In Detail

Historically, it was thought that antibiotics could reduce the effectiveness of birth control pills by altering the bacterial flora in our gastrointestinal tract, which was thought to decrease overall estrogen levels. The mechanism behind this interaction is as follows:

  • The estrogen (Ethinyl estradiol) in oral contraceptives is primarily metabolized in the liver to the metabolite 2-hydroxy-ethinylestradiol and other hydroxylated and methylated metabolites.
  • These estrogen metabolites undergo what is known as enterohepatic recirculation. This means that these estrogen metabolites are recirculated into the GI tract after being processed by the liver.
  • The bacteria in our GI tract can change the metabolized estrogen back into the active, parent compound, Ethinyl estradiol, which increases overall absorption and concentrations of estrogen.
  • Antibiotics, like Keflex, theoretically eliminate much of our normal GI flora. Therefore, less of the metabolized estrogen is able to be converted back into the active compound, reducing overall concentrations and protection from pregnancy.

While the above may be the mechanism behind the potential antibiotic-birth control interaction, it doesn't appear to be significant for most people.

What Do The Studies Say?

The vast majority of studies on the matter conclude that most antibiotics do not significantly alter the concentrations of hormones from birth control pills and therefore do not reduce the effectiveness of birth control. Antibiotics that have little evidence of this interaction include:

  • Ampicillin
  • Penicillin (conflicting data)
  • Cephalexin
  • Ciprofloxacin
  • Clarithromycin
  • Doxycycline
  • Metronidazole
  • Tetracycline (conflicting data)

The only antibiotics that have been definitively shown to decrease hormone concentrations are anti-tuberculosis drugs like rifampin, which interact with oral hormones via an entirely different mechanism (by speeding up metabolism of estrogen).

However, and this is an important point, one large study, published in Obstetrics and Gynecology, reported that a small number of individual patients, who are difficult to accurately identify, did experience significant decreases in hormone concentrations from birth control pills when taking antibiotics and these individuals ovulated (which birth control pills are supposed to suppress). 

The study concluded the following:

"Pharmacokinetic studies of other antibiotics have not shown any systematic interaction between antibiotics and OC [oral contraceptive] steroids. However, individual patients do show large decreases in the plasma concentrations of ethinyl estradiol when they take certain other antibiotics, notably tetracycline and penicillin derivatives. Because it is not possible to identify these women in advance, a cautious approach is advised."

Conclusion

So overall, if you aren't taking a rifampin-type antibiotic, which Keflex is not, the effectiveness of your birth control will probably not be significantly affected. However, as there may be some individuals more susceptible to the interaction, and because unplanned pregnancy has life-changing consequences, backup birth control (e.g. condoms) is recommended.

In terms of how long to wait after taking antibiotics to stop backup contraception, the most common recommendation is for 7 days after you finish your antibiotic. This allows time for the bacteria in your gut to "re-grow" and for hormone concentrations from the birth control pills to return to a normal level.

References & sources
  1. Drug interactions between oral contraceptives and antibiotics — PubMed
  2. Keflex Prescribing Information — AccessFDA
  3. Oral contraceptive efficacy and antibiotic interaction: a myth debunked — PubMed
Glossary — Terms in This Answer
Cephalexin
An antibiotic medication commonly used to treat bacterial infections.
Rifamycin
A family of antibiotics that have been shown to significantly reduce birth control effectiveness.
Estrogen
A hormone found in birth control pills that prevents pregnancy.
Metabolized
The process by which the body breaks down and processes a substance, typically in the liver.
Enterohepatic recirculation
A process where substances are reabsorbed from the intestines back into the bloodstream after being processed by the liver.
Bacterial flora
The naturally occurring bacteria that live in the gastrointestinal tract.
Pharmacokinetic
Relating to how the body absorbs, distributes, and eliminates drugs.
Oral contraceptive
Birth control medication taken by mouth to prevent pregnancy.
Did this answer your question?
Dr. Brian Staiger, PharmD
About the pharmacist

Dr. Brian Staiger, PharmD

Clinical Pharmacy

Doctor of Pharmacy, board certified clinical pharmacist (BCPS), American Herbalist Guild, Medication Therapy Management certified

Brian Staiger, PharmD, BCPS, is a licensed pharmacist with more than 13 years of experience across retail pharmacy, clinical pharmacy, medication safety, pharmacy program development, and healthcare administration. He is the founder of HelloPharmacist.com, where he helps patients...

More answers from Brian →
Ask a Pharmacist