Skip to main content
Drug bottle and Pill

Compare Nitrofurantoin vs. Bactrim

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

Key takeaways

Nitrofurantoin (Macrobid) and sulfamethoxazole/trimethoprim (Bactrim) are both antibiotics used to treat urinary tract infections (UTIs). However, there are some differences between them. Nitrofurantoin is a nitrofuran antibiotic, while sulfamethoxazole/trimethoprim is a combination of a sulfonamide and an antifolate. Nitrofurantoin is taken orally, typically every 12 hours for 5 to 7 days, and is available in both capsule and oral suspension forms. In contrast, sulfamethoxazole/trimethoprim is usually taken twice daily for 3 to 14 days and is available as tablets, a liquid suspension, and an injection. Nitrofurantoin has fewer drug interactions and is safe for those with sulfa allergies, but it can cause side effects like nausea and headache. Sulfamethoxazole/trimethoprim can cause side effects such as nausea, diarrhea, and rash, and it interacts with more medications, including dofetilide. Additionally, sulfamethoxazole/trimethoprim is not recommended during pregnancy, while nitrofurantoin should be avoided in the last weeks of pregnancy. Both medications have generic versions available, making them more affordable options.

Browse medications

View All

Research prescriptions and over-the-counter medications from A to Z, compare drug prices, and start saving.