An electrocardiogram is a painless test that records the electrical signals your heart produces with every beat. A technician places small sticky electrodes on your chest, arms, and legs, and a machine translates those signals into wavy lines on paper or a screen. Doctors use it to check heart rhythm, look for signs of a heart attack, and detect many other heart conditions.
The whole test usually takes about 10 minutes. You lie still, breathe normally, and feel nothing except the cool gel under the stickers. Despite that simplicity, the ECG is one of the most useful tools in medicine — and one of the most misunderstood by patients who get one.
What Is an Electrocardiogram and What Does It Actually Measure?
Every heartbeat starts with an electrical signal. That signal begins in a small cluster of cells in your right atrium called the sinus node, spreads through the atria, pauses briefly at the AV node, then travels down specialized fibers to the ventricles. As it moves, it causes heart muscle cells to contract in a coordinated sequence that pumps blood out to your body.
The ECG does not measure blood pressure, heart muscle strength, or blockages directly. It measures the electrical activity that triggers each contraction. Each wave on the tracing has a name and a meaning:
- P wave — the atria contracting
- QRS complex — the ventricles contracting
- T wave — the ventricles resetting for the next beat
By looking at the shape, timing, and spacing of these waves across 12 different views (called leads), a doctor can tell a lot about how your heart is working. A standard resting ECG uses 10 electrodes to produce those 12 views. That is why it is often called a 12-lead ECG.
Why Would a Doctor Order an ECG?
An ECG is ordered for many reasons, and most of them are routine. It is one of the first tests done when someone arrives at an emergency room with chest pain, because it can show signs of a heart attack within minutes.
Common reasons include:
- Chest pain, shortness of breath, or palpitations
- Dizziness, fainting, or near-fainting
- An irregular pulse found during a routine exam
- Before starting certain medications that can affect heart rhythm
- Monitoring a known heart condition or a pacemaker
- Pre-operative clearance before surgery
- Family history of sudden cardiac death or inherited heart conditions
An ECG can also be part of a broader workup when a person has risk factors for heart disease, such as high blood pressure or diabetes. It is not usually used alone to diagnose a heart attack or any other condition — it is one piece of a larger picture.
What Can an ECG Detect — and What Can It Miss?
An ECG is very good at detecting problems with the heart’s electrical system and certain structural issues. It reliably shows:
- Abnormal heart rhythms, including atrial fibrillation
- Signs of a heart attack, both current and past
- Enlargement of the heart chambers
- Problems with the heart’s conduction pathways
- Electrolyte imbalances that affect the heart
- Effects of certain drugs on the heart
What it cannot do is just as important. A resting ECG taken over 10 seconds cannot show a rhythm problem that only happens occasionally. It cannot show whether your coronary arteries are narrowed unless you are actively having a heart attack at that moment. And a normal ECG does not rule out heart disease.
This is a point many patients miss. A clean ECG is reassuring, but it is not a guarantee. If your symptoms keep happening, your doctor may order a longer monitor, a stress test, or imaging such as an echocardiogram.
What Happens During the Test?
The test is quick and requires almost no preparation. You may be asked to avoid lotions or powders on your chest the day of the test, since they can interfere with the electrodes sticking.
Here is what to expect:
- You lie on an exam table, usually on your back
- A technician cleans a few spots on your chest, arms, and legs
- Small sticky patches called electrodes are placed on those spots
- Wires connect the electrodes to the ECG machine
- You lie still and breathe normally while the machine records for a few seconds
- The electrodes are removed and the tracing is sent to a doctor to read
You may be asked to hold your breath briefly during the recording. Some offices shave a small amount of chest hair if needed for the electrodes to stick. There is no electricity going into your body — the machine only reads signals your heart is already producing.
If you are having a stress ECG, the test is done while you walk on a treadmill or pedal a stationary bike. That version takes longer and is used to see how your heart responds to exertion.
Types of ECG Tests
Not every ECG is the same. The type your doctor chooses depends on what they are looking for.
| Type | How long it records | Best for |
|---|---|---|
| Resting ECG | About 10 seconds | Routine screening, chest pain, rhythm at rest |
| Stress ECG | During exercise, typically 15–30 minutes | Exercise-related symptoms, coronary artery disease |
| Holter monitor | 24 to 48 hours | Frequent but unpredictable symptoms |
| Event monitor | Weeks to months | Rare symptoms that are hard to catch |
| Implantable loop recorder | Up to several years | Very rare symptoms, unexplained fainting |
The longer monitors exist for one reason: a 10-second snapshot often misses intermittent problems. If your palpitations happen once a week, a resting ECG is unlikely to catch them. A monitor worn for a month has a much better chance.
How to Read Your ECG Results
You will not usually get results during the test. A doctor trained to interpret ECGs reviews the tracing and sends a report to the doctor who ordered it. In an emergency setting, results can come back within minutes.
When you get your report, you may see terms like these:
- Normal sinus rhythm — the heart’s natural pacemaker is working normally
- Sinus bradycardia — heart rate below 60 beats per minute
- Sinus tachycardia — heart rate above 100 beats per minute
- PR interval — the time from the start of the P wave to the start of the QRS complex
- QT interval — the time from the start of the QRS complex to the end of the T wave
Some of these findings are normal variants. A resting heart rate of 50 beats per minute may be perfectly healthy in a regular runner. A “borderline” finding on an ECG often means the doctor wants more information, not that something is wrong.
If your report mentions a specific abnormality, ask your doctor what it means for you. The tracing is only useful when it is read alongside your symptoms, history, and other tests.
What Are the Risks and Limitations?
There are no known risks from a standard resting ECG. The test does not send electricity into your body, does not use radiation, and does not require needles or contrast dye. Some people have mild skin irritation from the adhesive patches, which usually fades quickly.
The main limitation is accuracy, not safety. A normal ECG does not rule out heart disease. An abnormal ECG does not always mean something is wrong — factors like body position, electrode placement, and even a recent meal can affect the tracing.
ECGs also have lower accuracy in certain groups. Athletes often have tracings that look abnormal but are normal for them. People with pacemakers or certain implanted devices need their tracings read with that context in mind. And a single ECG cannot show how your heart behaves over time.
For these reasons, doctors rarely make a diagnosis from an ECG alone. It is a fast, cheap, and useful first step — not a final answer.
Frequently Asked Questions
Does an ECG hurt?
No, an ECG is painless. You may feel a slight coolness from the gel and a mild pull when the sticky patches are removed.
How long does an electrocardiogram take?
A standard resting ECG takes about 10 minutes from start to finish. The actual recording lasts only a few seconds.
Can an ECG detect a heart attack?
Yes, an ECG can show signs of a heart attack while it is happening or evidence of a past one. However, a normal ECG does not rule out a heart attack, and doctors use it alongside blood tests and symptoms.
Do I need to fast before an ECG?
No fasting is required for a standard resting ECG. If you are having a stress ECG or a test with sedation, your care team will give you specific instructions.

