Mayo Clinic Health Manager
Get free personalized health guidance for you and your family.
Get StartedWhy it's done
By Mayo Clinic staffAn electrocardiogram is a painless, noninvasive way to diagnose many common types of heart problems. Your doctor may use an electrocardiogram to detect irregularities in your heart rhythm, heart defects, or problems with the supply of blood and oxygen to your heart. An electrocardiogram can also confirm if you're having a heart attack or if you've had a heart attack in the past.