An ECG is a test to check the electrical activity of your heart. It can show changes to your heart rate or rhythm and tell your doctor how well your heart is working. ECG stands for electrocardiogram.