Diagnosis of mastitis is generally based on clinical symptoms and a physical examination. In some cases, a breast ultrasound may be performed to rule out an abscess. If an abscess is suspected, further evaluation with needle aspiration or biopsy may be necessary.