An ECG (electrocardiogram) is a quick, painless test that records the electrical activity of your heart. Every time your heart beats, a small wave of electricity travels through the muscle to trigger it to contract and pump blood. An ECG picks up those electrical signals through sticky patches placed on your skin and translates them into a pattern of waves on a screen or printout. The whole test takes about 10 minutes.
How an ECG Works
Your heart generates its own electricity. Before each beat, an electrical impulse spreads across the heart muscle, telling it when and how to squeeze. That signal is strong enough to travel through your body to the surface of your skin, which is where the ECG comes in.
Up to 12 sticky patches called electrodes are placed on your chest, and sometimes on your arms and legs. Wires connect those patches to a machine that amplifies the tiny electrical signals and draws them as a series of waves. Each wave corresponds to a specific event in your heartbeat. The first small bump (called the P wave) represents the upper chambers of your heart firing. The tall, sharp spike in the middle (the QRS complex) shows the lower chambers contracting, which is the main pumping action. The rounded wave after that (the T wave) is the heart resetting its electrical charge before the next beat.
Together, these waves give a detailed snapshot of your heart’s rhythm, speed, and the path electricity takes through the muscle. If any part of that path is delayed, blocked, or taking an unusual route, the wave pattern changes in recognizable ways.
What an ECG Can Detect
An ECG is one of the first tests ordered when a heart problem is suspected, and it remains one of the most useful tools in cardiology despite being over a century old. It can reveal a wide range of conditions:
- Irregular heartbeats (arrhythmias). This includes atrial fibrillation (a quivering upper chamber), abnormally fast rhythms like tachycardia, and dangerously slow rhythms like bradycardia. The ECG shows these clearly because the spacing and shape of the waves change.
- Heart attacks and reduced blood flow. When part of the heart muscle isn’t getting enough oxygen, the electrical pattern shifts. Certain changes in the wave shape, particularly in the segment between the main spike and the recovery wave, are hallmarks of a heart attack in progress or one that happened recently.
- Heart block. Sometimes the electrical signal between the upper and lower chambers is delayed or completely interrupted. An ECG reveals this as a disconnect between the P wave and the QRS complex.
- Enlarged heart chambers. When the heart muscle is thicker or stretched, the electrical signals are larger or take longer to travel, producing taller or wider waves on the tracing.
- Effects of medications or electrolyte imbalances. Certain drugs and shifts in minerals like potassium can alter the heart’s electrical behavior. These changes show up as subtle but measurable differences in the wave pattern.
What Happens During the Test
There’s very little preparation involved. You don’t need to fast or stop taking medications beforehand. You’ll be asked to lie still on a table, and a technician will attach the electrode patches to your chest. If you have a lot of chest hair, small areas may be shaved so the patches stick properly. The wires are connected, and the machine records for a few seconds to a few minutes. You won’t feel anything from the recording itself. The patches are removed, and that’s it.
The results are usually available almost immediately. Your doctor reads the wave pattern looking for anything outside the expected range: a heart rate between 60 and 100 beats per minute with evenly spaced, consistently shaped waves is considered normal sinus rhythm. Rates above 100 (tachycardia) or below 60 (bradycardia) stand out right away, as do irregular gaps between beats or unusually shaped waves.
Types of ECG Tests
The standard resting 12-lead ECG, the one described above, captures your heart’s electrical activity while you’re lying still. It’s excellent for spotting problems that are happening at that moment, but some heart issues come and go unpredictably. That’s where other versions of the test come in.
A Holter monitor is a portable ECG device you wear for 24 hours or longer. It continuously records your heart rhythm while you go about your normal day, making it useful for catching irregular beats that happen only occasionally, like a few times a day or only at night. You keep a diary of your activities and symptoms so your doctor can match what you felt with what the monitor recorded.
An exercise ECG, commonly called a stress test, monitors your heart while you walk on a treadmill or pedal a stationary bike. The idea is to see how your heart handles increased demand. It’s particularly useful for detecting reduced blood flow to the heart muscle that might not show up at rest, and it’s often used to determine safe exercise levels after a heart attack or heart surgery.
Who Needs an ECG
If you’re experiencing chest pain, shortness of breath, a racing or fluttering heartbeat, dizziness, or fainting, an ECG is typically one of the first tests you’ll get. It’s also standard before surgeries and as a baseline when you start certain medications that can affect heart rhythm.
For people without symptoms, the picture is less clear-cut. The U.S. Preventive Services Task Force has concluded with moderate certainty that routine ECG screening in adults at low risk for cardiovascular disease doesn’t provide a net benefit. The concern is that abnormal-looking results in otherwise healthy people can lead to unnecessary follow-up tests and procedures without actually preventing heart events. For adults at intermediate or high risk but still without symptoms, the evidence is considered insufficient to make a firm recommendation either way.
In practical terms, this means an ECG is most valuable when there’s a reason to look, whether that’s symptoms, a known heart condition, a family history of sudden cardiac events, or monitoring for medication effects. It’s a low-cost, zero-risk test, but the value of the information depends on the context.
Limitations of an ECG
An ECG captures only a few seconds of your heart’s activity. If an arrhythmia isn’t happening during those seconds, it won’t show up. That’s why intermittent symptoms often require extended monitoring with a Holter device or an even longer-term patch monitor worn for weeks.
An ECG also can’t directly show blockages in your coronary arteries. It detects the consequences of reduced blood flow, like changes in the wave pattern, but a normal resting ECG doesn’t rule out coronary artery disease. Some people with significant blockages have completely normal tracings at rest because the heart only becomes oxygen-starved during exertion. A stress test or imaging study may be needed to investigate further.
Finally, some abnormal ECG patterns are actually normal for certain people. Athletes, for example, often have slower heart rates and certain wave patterns that would look concerning in a sedentary person but are simply a sign of a well-conditioned heart. Context matters as much as the tracing itself.

