An EKG is a simple, painless test that checks for problems with the electrical activity of the heart. It shows how fast the heart is beating and the strength and timing of electrical signals as they pass through parts of the heart.