Treatment of Pneumocystis jirovecii Pneumonia Trimethoprim / sulfamethoxazole Corticosteroids if PaO2 < 70 mm Hg Treatment is with trimethoprim / sulfamethoxazole (TMP / SMX) 15 to 20 mg / kg IV or orally 3 times a day for 14 to 21 days.