An electrocardiogram (EKG or ECG) is a test that checks for problems with the electrical activity of your heart. An EKG translates the heart's electrical activity into line tracings on paper.