An EKG, or electrocardiogram, is a non-invasive, completely painless test, which evaluates the health of your heart. It measures your heart rate and heart’s electrical activity to tell the doctor if you have an irregular or dangerous heartbeat that can’t be detected with a stethoscope.