MyDoctorSign in
India United States

Choose your city

Search 61,156 cities in 243 countries.

Another cityOnline care
Sign inSign in to MyDoctorNew to MyDoctor? Create an accountAll sign-in optionsPassword, Face ID or fingerprint, organisation SSO
See how it works
Heart care

ECG Test: What It Is, How to Prepare and What to Expect

An electrocardiogram (ECG) is a quick, painless test that records the heart's rate and rhythm. This article explains the types, how to prepare and what to expect.

3 min readUpdated 3 official sources

Dr. Ambed MishraGroup CEO, Scientist and Chief Medical Officer (CMO)Dr. Ambed Mishra

Educational information only, not medical advice. Always ask a qualified doctor about your own health. In an emergency call 112 (India) or 911 (the United States). Read the full disclaimer.

On this page
  1. What is an ECG?
  2. Why is it done?
  3. Types of ECG
  4. How to prepare
  5. When to see a doctor
  6. Common questions
  7. Sources
  8. About the author

An ECG is one of the most common heart tests. It is usually quick and painless, and it can give doctors useful information about your heart's rhythm. This article explains what the NHS says about what to expect.

What is an ECG?

An ECG, or electrocardiogram, records the electrical activity of the heart, including its rate and rhythm. The NHS describes it as usually quick and painless.

Why is it done?

The NHS says an ECG may be used when doctors want to check for:

  • A suspected heart attack
  • Coronary heart disease
  • Heart rate or rhythm problems (arrhythmias)
  • A known heart condition, or another condition that affects how well the heart works

It can also be used before and during certain medicines. The NHLBI describes an arrhythmia as a problem with the rate or rhythm of your heartbeat.

Types of ECG

The NHS describes three main types:

  • Resting ECG: you lie still for a few minutes while sticky patches called electrodes on your arms, legs and chest record the heart's signals.
  • Portable ECG: electrodes are taped to your chest and connected to a recorder worn on a waist belt. It is usually worn for 24 to 48 hours, and up to 7 days. You cannot bathe or shower while wearing it. MedlinePlus describes a similar test called a Holter monitor, which is covered in another article.
  • Exercise ECG (stress test): done in hospital while you walk on a treadmill or cycle. Exercise gradually increases and stops when symptoms appear or you are too tired. It usually lasts 40 to 60 minutes. If you cannot exercise, you may be given medicine that raises your heart rate.

How to prepare

The NHS suggests:

  • Wear a top that is easy to take off
  • Avoid body lotions, oils and talcum powder on your skin
  • For an exercise ECG, avoid a heavy meal and caffeine beforehand
  • Your chest may need to be shaved and cleaned so the patches stick
  • You can ask for a chaperone to be present

Ask your clinic whether you should take your usual medicines on the day, and do not stop any medicine unless you are told to.

What happens

For a resting ECG, you remove clothing from the waist up behind a screen, and electrodes are attached. The test itself is brief. Removing the patches afterwards may cause slight discomfort, and a mild rash may appear where they were placed, the NHS says. The NHS page does not describe medical risks of the test.

Results

The NHS says results may be available the same day, but can take a few weeks depending on the type of ECG. A follow-up appointment may be needed. If you have not heard anything after a few weeks, contact the doctor who referred you. You can ask a health professional to explain any results you do not understand.

An ECG is one piece of the puzzle. An ECG that looks normal at one moment does not rule out all heart problems, and your doctor may suggest other tests, such as an echocardiogram, depending on your symptoms.

When to see a doctor

See a doctor if you have palpitations, dizziness, breathlessness or chest discomfort, so that they can decide whether you need an ECG. Do not wait for a test if you have emergency symptoms.

Call emergency services at once for chest pain that is tight or squeezing, pain spreading to the arms, neck or jaw, severe breathing difficulty, or if someone collapses and is not responding normally. Do not drive yourself to hospital.

In an emergency, call your local emergency number (112 in India, 911 in the United States).

Common questions

Is an ECG painful?

The NHS describes it as usually quick and painless. Removing the sticky patches afterwards may cause slight discomfort.

How long does an ECG take?

A resting ECG takes a few minutes of lying still, according to the NHS. An exercise ECG usually lasts 40 to 60 minutes.

How should I prepare?

The NHS suggests wearing an easy-to-remove top and avoiding lotions, oils and talcum powder. Before an exercise ECG, avoid a heavy meal and caffeine.

When will I get my results?

The NHS says results may be available the same day, but can take a few weeks depending on the type of ECG.

Important: please read

  • Educational information only. This article is general health education. It is not medical advice, diagnosis or treatment. Reading it does not create a doctor–patient relationship with MyDoctor or with anyone else.
  • Ask a qualified doctor. Always talk to a qualified, registered doctor about your own health. In India, that means a doctor registered with the National Medical Commission (NMC) or a State Medical Council. In the United States, a licensed physician. Elsewhere, a doctor licensed where you live.
  • Never ignore or delay professional advice because of something you read here. Do not start, stop or change any medicine or treatment without your doctor.
  • Emergencies: call 112 in India, 911 in the United States, or your local emergency number. Do not wait for an online answer.
  • No product is endorsed. MyDoctor does not recommend any brand, product or supplement in this article.
  • About the sources. This article summarizes, in our own words, information from the public health bodies named under Sources. Health knowledge changes, and this summary may not reflect the latest research or your personal situation.
  • Liability. To the extent permitted by law, MyDoctor (MODERN US HEALTH) accepts no liability for any decision made on the basis of this content.

Full disclaimer · Privacy and terms

Sources

  1. NHS. Electrocardiogram (ECG) - NHS www.nhs.uk
  2. NIH MedlinePlus. Holter monitor (24 h) - MedlinePlus medlineplus.gov
  3. NHLBI (NIH). Arrhythmias - NHLBI www.nhlbi.nih.gov

MyDoctor, MODERN US HEALTH. mydoctor.social Contact MyDoctor about queries or partnerships

Dr. Ambed Mishra
Group CEO, Scientist and Chief Medical Officer (CMO)

Dr. Ambed Mishra

  • Healthcare technology
  • AI in healthcare
  • Clinical science
  • Patient care
  • Hospital and clinic operations
  • United States and India healthcare
MyDoctormydoctor.social

MyDoctor and MODERN US HEALTH (MODERN US GROUP) · United States: Austin, Texas

Dr. Ambed Mishra is the Group CEO, Scientist and Chief Medical Officer of MyDoctor and MODERN US HEALTH (MODERN US GROUP). A clinician-scientist with two doctorates, specializing in Community Medicine and Psychiatry with hospital-based research, he brings more than 10 years of patient care in the United States and clinical research in India. He leads MyDoctor's strategy, growth and clinical science across the United States and India, building one Deep Tech platform that connects hospitals, clinics, doctors, pharmacists, nurses and patients.

Read full profile →

The author's office answers questions about articles, research, speaking and collaboration. It cannot give personal medical advice.

Share:WhatsAppLinkedInX

More from Heart care

See all →
Heart care

High blood pressure: how to measure it at home and when to see a doctor

High blood pressure usually has no warning signs. How to measure it at home, what counts as high and when to seek care, with the official source for each statement.

3 min read · 3 Dec 2026
Heart care

Heart-healthy eating: what to eat, what to limit and the DASH plan

What you eat affects blood pressure, cholesterol and heart disease risk. This article explains the DASH eating plan and advice from the WHO and CDC on fruit, vegetables, fats, sal…

5 min read · 20 Oct 2026
Heart care

Coronary artery bypass surgery (CABG): who needs it and recovery

Coronary artery bypass grafting (CABG) is heart surgery that reroutes blood around blocked arteries. This article explains who may need it, how it works, recovery, risks and follo…

5 min read · 20 Oct 2026
Heart care

Congenital heart defects: types, causes, diagnosis and lifelong care

Congenital heart defects are structural heart problems present at birth. This article explains the types, possible causes, how they are found, treatment options and why regular fo…

5 min read · 20 Oct 2026
Heart care

Heart murmur: types, causes, tests and when to see a doctor

A heart murmur is an extra sound heard between heartbeats. Many are harmless, but some point to a valve problem or a heart defect. This article explains types, causes, tests and w…

5 min read · 20 Oct 2026
Heart care

Pericarditis: sharp chest pain, causes, tests and treatment explained

Pericarditis is swelling of the thin sac around the heart that often causes sharp chest pain. This article explains causes, symptoms, tests, treatment, recovery and when to seek u…

5 min read · 20 Oct 2026
Register freeGet the app
One question

Who are you?

Tap one to continue. We show the right plans, prices and wording for you. Change it any time from the top of the page.

For me and my family
Healthcare professionals
Organizations

For invoices (optional now, needed before your first invoice)

Saved on this device only. One tap is enough.

Essential cookies run MyDoctor. With your OK we also count visits (pages, time, source, city) to improve it. We never sell your data. Privacy policy