a mastectomy is surgery to remove a whole breast. it is used to treat breast cancer. a total (or simple) mastectomy removes only the breast. other types of mastectomy may involve removing the breast plus nearby tissues, such as lymph nodes under the arm. this may be needed if cancer has spread to these areas. in some cases, it may be possible to leave most of the skin that was over the breast (skin-sparing mastectomy) or the skin plus the nipple and areola (nipple-sparing mastectomy).
if a person has a very high risk of getting breast cancer, the breasts may be removed before cancer is diagnosed. this is called a prophylactic mastectomy. it can help prevent breast cancer.