A small painful swelling beside the anus, occurring after a bout of straining to pass feces or coughing. Perianal hematomas are caused by the rupture of a small vein in the anus. They often heal spontaneously but occasionally rupture. Rarely this is followed by abscess formation. If severe pain continues, surgical removal can be undertaken.