Identifying an infected hangnail is easy. It is swollen, red, painful, warm, and may have a pus-filled abscess at the edge of the nail. To get rid of it, soak your hands in warm water for 15 minutes, trim the hangnail, and apply medicated creams to speed up recovery. If you still don’t see any improvement or if the condition worsens, consult a doctor.