An EKG is a quick, painless test that records your heart’s electrical activity to assess its rate and rhythm. Small electrodes placed on your chest, arms, and legs capture the heart’s impulses, creating a visual record that helps diagnose heart conditions.