To diagnose costochondritis, your doctor may conduct a physical examination, such as examining the affected area for swelling or tenderness.