A mammogram is a test that uses x-rays to look at images of the inside of the breast. Mammograms can be used to find cancer that has caused lumps or cancer that cannot be felt in a breast examination.