Rectal swelling. There really are no pills for rectal swelling. The exception might be when the swelling is due to infection (uncommon) and the treatment is antibiotics. The most common cause of rectal swelling is hemorrhoids, which can be self-treated with hot baths and otc ointments (not particularly effective). Most important is to see a doctor and determine the specific cause of the swelling in your case.