An echocardiogram uses sound waves to produce images of the heart. This commonly used test allows your doctor to see how your heart is beating and pumping blood. Your doctor can use the images of an echocardiogram to identify various alterations in the heart muscle and valves.