Bactrim (sulfamethoxazole and trimethoprim) is an effective antibiotic used to treat ear infections, … How to Calculate Bactrim Dose.