Doctors Note Logo

Published on: 10/26/2026

Sulfamethoxazole-Trimethoprim Side Effects: Rash, Potassium and Sun

Sulfamethoxazole-trimethoprim (Bactrim, co-trimoxazole) commonly causes nausea, loss of appetite and a mild itchy rash, but it can also trigger serious reactions including blistering or peeling skin, high potassium (hyperkalemia), low sodium, kidney injury and increased sensitivity to sunlight. Rash timing matters: a flat, itchy rash appearing in the first week or two is often mild, while rash with fever, mouth sores, facial swelling, difficulty breathing or skin that blisters or sloughs needs emergency care. Potassium rises because trimethoprim blocks sodium channels in the kidney, and the risk is higher with ACE inhibitors, ARBs, spironolactone, potassium supplements, diabetes, older age or reduced kidney function, sometimes causing weakness, palpitations or irregular heartbeat. Photosensitivity means ordinary sun exposure can produce an exaggerated burn or rash within minutes to hours, so broad-spectrum sunscreen, protective clothing and shade are advised throughout treatment and for several days after. There are several important factors to consider, including drug interactions, dosing adjustments and which symptoms signal danger, so see the complete details below before deciding what to do next.

Because a drug rash, an allergic reaction, an electrolyte problem and a sunburn can look similar at first yet differ enormously in urgency, it helps to sort your specific symptoms quickly rather than guess. A free, instant, online symptom check asks about your rash pattern, timing, medications and other complaints, then suggests possible causes and whether you should stop the antibiotic, call your prescriber or seek urgent evaluation. It takes only a few minutes, requires no insurance or appointment, and gives you clear language to bring to your clinician so nothing important gets missed.

Last reviewed for medical accuracy: 10/22/2026

answer background

Concerned about your symptoms?

Explanation

Sulfamethoxazole-Trimethoprim Side Effects: Rash, Potassium and Sun

Sulfamethoxazole-trimethoprim (often known by brand names like Bactrim® or Septra®) is a widely used antibiotic combination effective against many bacterial infections—from urinary tract infections to certain types of pneumonia. Like all medications, it carries a risk of side effects. Understanding the key concerns—skin reactions (rash), changes in blood potassium (hyperkalemia), and sensitivity to sunlight—can help you use this medicine safely and comfortably.


1. Skin Reactions (Rash)

Many people taking sulfamethoxazole-trimethoprim notice mild itching or a light rash. In most cases, these are self-limited and resolve on their own. However, it’s crucial to recognize warning signs of more serious reactions.

Common, mild rashes

  • Small, red bumps or flat, pink areas on the trunk or limbs
  • Mild itching or tingly sensation
  • Onset usually within the first week or two of therapy

What to do

  • Keep the skin cool and dry
  • Use gentle, fragrance-free moisturizers
  • Avoid hot baths, which can worsen itching

Serious skin reactions (rare)

  • Rapidly spreading, painful red or purplish patches
  • Blistering or peeling skin
  • Mucous membrane involvement (eyes, mouth)
  • Fever, body aches, or swollen lymph nodes

These signs may indicate Stevens-Johnson syndrome or toxic epidermal necrolysis—life-threatening conditions. If you notice any of these symptoms, stop the medicine immediately and seek emergency medical care.


2. Potassium Changes (Hyperkalemia)

Sulfamethoxazole-trimethoprim can raise potassium levels in your blood, especially if you’re on other medications that also affect potassium (e.g., ACE inhibitors, ARBs, potassium-sparing diuretics) or if you have kidney issues.

Why it happens

  • Trimethoprim can act like a mild potassium-sparing diuretic in the kidneys
  • Reduced excretion of potassium leads to buildup

Who’s at higher risk

  • People over 60 years of age
  • Those with chronic kidney disease
  • Patients on certain blood pressure medicines (e.g., lisinopril, spironolactone)
  • Individuals with diabetes

Possible symptoms of high potassium

  • Muscle weakness or heaviness
  • Numbness or tingling in hands and feet
  • Palpitations, skipped heartbeats
  • In severe cases: chest pain, difficulty breathing

Monitoring and prevention

  • Your doctor may check blood potassium before and during treatment
  • Report any muscle weakness or heart-related symptoms promptly
  • Stay hydrated, but avoid potassium supplements or salt substitutes unless approved by your doctor

If hyperkalemia is suspected, your healthcare provider may adjust your dose, change medications, or recommend dietary modifications.


3. Sunlight Sensitivity (Photosensitivity)

Sulfamethoxazole-trimethoprim can make your skin more sensitive to ultraviolet (UV) light. Photosensitivity reactions range from mild sunburn to intense rashes in sun-exposed areas.

Signs of photosensitivity

  • Early redness on exposed skin (face, arms, neck)
  • Burning or stinging sensation in the sun
  • Swollen, blistered skin days after exposure

Protective measures

  • Broad-spectrum sunscreen (SPF 30 or higher) applied 15 minutes before going outside
  • Reapply sunscreen every two hours, or after swimming/sweating
  • Wear protective clothing: long sleeves, wide-brimmed hat, UV-blocking sunglasses
  • Seek shade, especially between 10 a.m. and 4 p.m.

Even on cloudy days, UV radiation can cause a reaction. If you develop blistering or extensive redness despite precautions, talk to your doctor about potential alternatives or dosage adjustments.


4. Other Common Sulfamethoxazole-Trimethoprim Side Effects

While rash, potassium shifts, and photosensitivity are especially noteworthy, you may also experience:

• Gastrointestinal upset: nausea, vomiting, diarrhea
• Headache or dizziness
• Loss of appetite
• Changes in taste (metallic or bitter)
• Mild liver enzyme elevations (usually reversible)

Most of these resolve without intervention. If they persist or significantly affect your daily life, discuss them with your healthcare provider.


Tips for Safe Use

  1. Take with plenty of water.
    Staying well-hydrated helps your kidneys process and eliminate the drug.

  2. Follow dosing instructions.
    Taking doses at evenly spaced intervals maintains effective levels and reduces side-effect risks.

  3. Review your medication list.
    Inform your doctor about all prescription and over-the-counter drugs, supplements, or herbal products you use.

  4. Report any odd symptoms.
    Don’t dismiss new or worsening symptoms—early recognition helps prevent complications.

  5. Consider a quick online symptom check.
    If you’re unsure whether your rash, muscle weakness, or sunburn-like reaction warrants medical attention, try a free, online symptom check, using the doctor approved Ubie Symptom Checker.


When to Call the Doctor

Contact your healthcare provider right away if you experience:

• Rapidly spreading rash, blistering, or peeling skin
• Signs of severe infection: fever, chills, sore throat
• Heart palpitations, chest discomfort, or severe muscle weakness
• Severe sunburn-like reactions after minimal sun exposure
• Persistent vomiting or diarrhea leading to dehydration

These could be indications of serious adverse effects that require prompt medical evaluation.


Final Thoughts

Sulfamethoxazole-trimethoprim is a highly effective antibiotic when used appropriately. Being aware of key sulfamethoxazole-trimethoprim side effects—particularly rash, hyperkalemia, and photosensitivity—helps you stay informed and proactive. Most side effects are mild and manageable, but never hesitate to seek medical attention for anything severe or life threatening.

If you have any doubts about your symptoms or need personalized advice, speak to your doctor. They can tailor your treatment plan, suggest monitoring strategies, or switch you to a different antibiotic if necessary. Your health and peace of mind are worth the extra caution.

(References)

  • * Adiga KM. Conjunctival photosensitivity to co-trimoxazole. Med J Aust. 1982 Jul 24;2(2):67. doi: 10.5694/j.1326-5377.1982.tb124249.x. PMID: 6981752.

  • * Cook DE, Kossey JL. Successful desensitization to dapsone for Pneumocystis carinii prophylaxis in an HIV-positive patient. Ann Pharmacother. 1998 Dec;32(12):1302-5. doi: 10.1345/aph.17441. PMID: 9876811.

  • * Meyers B, Borrego F, Papanicolaou G. Pneumocystis carinii pneumonia prophylaxis with atovaquone in trimethoprim-sulfamethoxazole-intolerant orthotopic liver transplant patients: a preliminary study. Liver Transpl. 2001 Aug;7(8):750-1. doi: 10.1053/jlts.2001.26433. PMID: 11510024.

  • * Abouraya M, Sacco JC, Kahl BS, Trepanier LA. Evaluation of sulfonamide detoxification pathways in haematologic malignancy patients prior to intermittent trimethoprim-sulfamethoxazole prophylaxis. Br J Clin Pharmacol. 2011 Apr;71(4):566-74. doi: 10.1111/j.1365-2125.2010.03889.x. PMID: 21204907; PMCID: PMC3080645.

  • * Aizire J, Fowler MG, Wang J, Shetty AK, Stranix-Chibanda L, Kamateeka M, Brown ER, Bolton SG, Musoke PM, Coovadia H. Extended prophylaxis with nevirapine and cotrimoxazole among HIV-exposed uninfected infants is well tolerated. AIDS. 2012 Jan 28;26(3):325-33. doi: 10.1097/QAD.0b013e32834e892c. PMID: 22112598; PMCID: PMC3356697.

  • * Schmidt TW, Garfinkle M, Battafarano DF. Rash and elevated creatine kinase in a deployed soldier. Mil Med. 2014 Feb;179(2):e245-8. doi: 10.7205/MILMED-D-13-00357. PMID: 24491625; PMCID: PMC7107609.

  • * Antia C, Persad L, Alikhan A. Trimethoprim-Sulfamethoxazole-Induced Drug Eruption With Eosinophilia and Systemic Symptoms (DRESS). J Drugs Dermatol. 2017 Oct 1;16(10):1043-1046. PMID: 29036260.

  • * Nie Y, Wang H, Dong X, Pan S, Zhang T, Ran J, Zhang Y, Fan J, Zhang L, Wang J. Case report: Drug rash with eosinophilia and systemic symptoms syndrome in a patient with anti-interferon-γ autoantibody-associated immunodeficiency. Front Immunol. 2022;13:969912. doi: 10.3389/fimmu.2022.969912. 2022 Aug 22. PMID: 36072590; PMCID: PMC9441898.

  • * Yiu D, Aguilar-Duran S, Edwards C, Chauhan D, Furness A, Turajlic S, Larkin J, Fearfield L, Heelan K. Increased incidence of co-trimoxazole-induced rash in patients on systemic corticosteroid treatment for toxicity associated with immune checkpoint inhibitors. Br J Dermatol. 2024 Aug 14;191(3):465-467. doi: 10.1093/bjd/ljae202. PMID: 38753744.

  • * Taniguchi J, Aso S, Yasunaga H. Safety of Short-Term Trimethoprim-Sulfamethoxazole Use for Uncomplicated Cystitis: A Nationwide Retrospective Cohort Study. Pharmacoepidemiol Drug Saf. 2026 Mar;35(3):e70342. doi: 10.1002/pds.70342. PMID: 41772923; PMCID: PMC12954357.

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.