Hernias are often diagnosed through a combination of physical examination and imaging studies. During the physical exam, a healthcare provider may feel for a bulge in the affected area, which can become more pronounced when you cough or strain. Imaging techniques such as ultrasound, CT scans, and MRI may be used to confirm the diagnosis and determine the extent of the hernia.