All medications

Cephalexin

Infections

Also known as Keflex

International (WHO) name: cefalexin · Traveling?

Tablets, capsules, and films · Liquids and suspensions

Cephalexin is a cephalosporin antibiotic often used for skin infections, urinary tract infections, strep throat, and bone infections. It's a close cousin of penicillin, so if you've ever reacted to penicillin, your doctor needs to know — a small number of people react to both. It only kills bacteria, so it won't help with viruses.

Used forUrinary tract infection (UTI)Strep throat

How to take it

When

Space doses evenly through the day, exactly as prescribed.

Food

Works with or without food. A meal can settle your stomach if it bothers you.

Avoid

Tell your doctor about any penicillin allergy before starting — some people react to both.

Finish it

Take the full course, even when you feel better. Stopping early can bring the infection back.

Missed a dose?

Take it as soon as you remember. If your next dose is coming up soon, skip the missed one and stay on schedule. Never double up.

Cephalexin side effects

  • Diarrhea
  • Nausea or upset stomach
  • Headache
  • Yeast infections

Call a doctor if

No FDA recalls or shortages found for cephalexin in the past 12 months, as of November 18, 2026. How we track recalls and shortages

Traveling with Cephalexin

Traveling with medicines: what to check and pack →

What it costs

Generic available$ Low cost

What U.S. pharmacies pay per pill, on average:

  • Generic cephalexinfrom about 9¢ a pill

Some versions or strengths cost more. Costs shown are for pills; liquids are priced differently.

That's the pharmacy's cost, not your price. Paying cash, you'll pay more — the pharmacy adds its markup and fees. With insurance, you pay your plan's copay. Prices for the same prescription vary a lot between pharmacies, so compare before you fill it.

Source: NADAC, a weekly survey of pharmacy costs by the Centers for Medicare & Medicaid Services, updated November 25, 2026. How we show costs

Compare prices on GoodRx →

Sources

Last updated October 20, 2026. Not yet reviewed by a pharmacist or physician — how our guides are made.

Educational only. This summary is drawn from public FDA labeling, MedlinePlus, and major clinical guidelines, and simplified for readability. Your prescription label and your pharmacist always come first — doses and instructions vary from person to person.