An echocardiogram is typically performed by a trained technician (sonographer) in a hospital or clinic setting. The patient lies on an examination table while the sonographer applies a gel to the chest and moves a transducer over the area. The transducer emits ultrasound waves that create images of the heart on a computer screen. The procedure usually takes about 30 to 60 minutes and is painless.