An echocardiogram is an exam that provides an ultrasound of the heart. The sound waves from your heartbeat produce an image of your heart that helps your doctor see the action of your heart beating and pumping blood. This test checks for problems for shortness of breath and chest pain, and the overall health of your heart.