Headache is a common side effect with Bactrim (sulfamethoxazole / trimethoprim) and may occur in up to 10% of patients. Low blood sugar, low sodium blood levels and rarely, aseptic meningitis are other side effects of Bactrim that may lead to a headache.