
A recording of the heart's electrical activity, used to detect rhythm abnormalities.An electrocardiogram (ECG or EKG) is a recording of the electrical activity of the heart over time, obtained by placing electrodes on the skin. Each heartbeat generates a characteristic waveform — the P wave, QRS complex, and T wave — corresponding to the depolarization and repolarization of the atria and ventricles. Clinicians use ECGs to diagnose arrhythmias, heart attacks, electrolyte imbalances, and other cardiac conditions, making it one of the most widely used medical tests worldwide.
The first human electrocardiogram was recorded by Augustus Waller in 1887, but the modern clinical ECG was developed by Willem Einthoven in the early 1900s, who also introduced the standard limb leads and the PQRST nomenclature.
The heart's electrical activity originates in the sinoatrial node, a natural pacemaker that sends a wave of depolarization through the cardiac muscle. This electrical signal spreads through body tissues and reaches the skin, where electrodes detect tiny voltage differences (on the order of millivolts). The ECG machine amplifies and filters these signals, displaying them as a voltage-versus-time trace. Abnormalities in the timing or shape of the waveform reveal underlying issues — for example, a prolonged QT interval indicates a risk of dangerous arrhythmias.
ECGs are used in hospitals, ambulances, and wearable devices (smartwatches) to monitor heart rhythm, detect silent heart attacks, and guide treatment of conditions like atrial fibrillation.
A single ECG recording contains about 1,000 data points per second, yet a trained cardiologist can spot a life-threatening arrhythmia in under 10 seconds.








