Get a Cephalexin prescription online

  • Icon indicating video off

    No video calls necessary

  • Icon of checkmark

    $15 consult—no membership required

  • Icon of clock

    Medical review within 3 hours

Cephalexin is an antibiotic that helps treat bacterial infections like urinary tract infections (UTIs). It’s effective against several different types of bacteria and can help you start feeling better quickly. It only works on bacterial infections—it won’t work for colds, flu or other viral infections. The brand version of this medicine is Keflex.

* Prescription treatment requires a virtual medical consultation with a medical provider to determine if a prescription is appropriate.

See what others are saying about Dr. B

4 and a half stars, indicating a rating between 4.3 and 4.7 on Trustpilot4.7
Based on 312 reviews on Trustpilot
Woman laying in bed, with her legs up, and on the phone

How Dr. B treats UTI

Health assessment

Tell us about your condition with a $15 online consultation—no video call necessary.

Provider review

A medical provider will review your information and prescribe treatment, if appropriate.

Get your medication

Pick up and pay for the medication at the pharmacy of your choice. Or, get it delivered.

About Cephalexin

How does it work?

Cephalexin is a medicine that fights bacterial infections. It works by stopping the growth of harmful bacteria. This helps your immune system get rid of the infection. When used as a UTI treatment, it also relieves symptoms like painful urination, bloody or cloudy urine and frequent urination.

What does it treat?

Cephalexin treats infections caused by bacteria. It’s often used for conditions like skin infections, respiratory infections and urinary tract infections.

What forms does it come in?

This UTI medicine comes as a pill or capsule that you swallow with water. It’s also available as a liquid suspension for people who struggle to swallow pills.

Cephalexin vs. Keflex

Cephalexin and Keflex are the same medicine – Keflex is just the brand version of Cephalexin. Both work in the same way to treat infections like UTIs.

The brand drug Keflex is not currently available on the Dr. B platform.

How much will it cost?

Dr. B offers online consultations for $15—which is less than most copays. If an UTI prescription is appropriate, your out-of-pocket medication cost will depend on your insurance and where you decide to get your prescription filled. With a drug discount card, prices for Cephalexin 500mg (14 capsules) start at $5.23.

* Prices shown with drug discount card applied. Price may differ depending on location.

Dr. B logo
Online visit with Dr. B
Starting at

Cephalexin 500mg (14 capsules)*

More UTI Prescription Treatments

Looking for a different medication? Here are some options.

Common Questions

Cephalexin prescription FAQ

What are the benefits of taking Cephalexin?
  • Treats infections caused by bacteria
  • Stops harmful bacteria from growing
  • Relieves UTI symptoms (like frequent urination or cloudy or bloody urine)
Who should not take this medication?
  • People allergic to Cephalexin or other cephalosporin medicines
  • Patients with kidney problems or certain other conditions
  • People who are pregnant

Make sure to tell your healthcare provider about your health history and any other medicines you take before you start this medicine.

How do you take this medication?

You can take this medicine with or without food. If this medicine bothers your stomach, taking it with food can help. Follow your medical provider's instructions about how many pills to take and how often.

What happens if I miss a dose?

Just take the missed dose as soon as you remember. Almost time for the next dose? Skip the missed dose. Don't take extra medicine if you miss a dose.

What happens if I take too much?

If you take too much Cephalexin, it can lead to side effects like nausea, diarrhea or stomach pain.

If you’ve taken too much of this medicine, call your licensed provider or local poison control center (800-222-1222) immediately.

Can I get Cephalexin online?

Need a convenient, online prescription for UTI medicine like Cephalexin? Dr. B can help. Just fill out a short health questionnaire about your symptoms to connect with a licensed medical provider. If they think a UTI prescription will help, they can send it to the pharmacy of your choice.

Medically reviewed

To help you stay safe

“Our most valuable asset is our health. Whether you're a billionaire CEO or a single mom of multiple children—whatever your situation is—you can't do that without your health.”

Dr. Sudip Bose
Dr. Sudip Bose, M.D.Primary Care advisor

Featured On

The New York Times logo
Axios logo
TIME logo
Bloomberg logo
Fast Company logo
ABC logo

Side Effects

Woman looking out window while holding two hands on her stomach

Some people have side effects when using this medicine. These usually go away when you stop taking Cephalexin. The most common side effects are usually mild, and might include:

  • Upset stomach
  • Diarrhea
  • Nausea
  • Vomiting
  • Headache

Watch for signs of a more serious reaction, like severe diarrhea, hives or a rash. If this happens, stop taking the medicine and let your health provider know right away.

Dr. B articles about UTI