The armpit holds a group of lymph nodes, small bean-shaped glands that filter fluid draining from the arm, the breast and the upper chest. When they fight an infection or react to something nearby, they swell. This is the most common cause of underarm swelling, and it is usually a healthy response.
Common triggers are an infected hair follicle or boil, often after shaving or waxing. A cut, insect bite or skin infection in the hand, arm or breast can do it too. So can a recent vaccination in the same arm, or a viral illness such as a cold. These nodes are usually tender, soft and movable, and they shrink over a few weeks.
A lump in the armpit is not always a node. Extra breast tissue can sit in the armpit and swell with periods, pregnancy or breastfeeding. A lipoma, which is a soft fatty lump, or a cyst in the skin can also feel like a node. A scan can tell these apart.
Less often, nodes stay enlarged because of a longer-lasting infection such as tuberculosis, a disease of the lymph system or blood, or cancer that has spread from the breast or elsewhere. These are less common than the causes above, and tests are needed to tell them apart.