An electrocardiogram (ECG) is a simple test that can be used to check your heart's rhythm and electrical activity.
Sensors attached to the skin are used to detect the electrical signals produced by your heart each time it beats.
These signals are recorded by a machine and are looked at by a doctor to see if they're unusual.
An ECG may be requested by a heart specialist (cardiologist) or any doctor who thinks you might have a problem with your heart, including your doctor.
The test will usually be carried out at a hospital or clinic by a trained specialist called a cardiac physiologist, although it can sometimes be done at your doctors surgery.
Despite having a similar name, an ECG isn't the same as an echocardiogram , which is a scan of the heart.
An ECG is often used alongside other tests to help diagnose and monitor conditions affecting the heart.
An ECG can help detect:
A series of ECGs can also be taken over time to monitor a person already diagnosed with a heart condition or taking medication known to potentially affect the heart.
There are several different ways an ECG can be carried out. Generally, the test involves attaching a number of small, sticky sensors called electrodes to your arms, legs and chest. These are connected by wires to an ECG recording machine.
You don't need to do anything special to prepare for the test. You can eat and drink as normal beforehand.
Before the electrodes are attached, you'll usually need to remove your upper clothing, and sometimes your chest may need to be shaved or cleaned. Once the electrodes are in place, you may be offered a hospital gown to cover yourself.
The test itself will normally only last a few minutes, and you can usually go home soon afterwards or return to the ward if you're already staying in hospital.
There are three main types of ECG:
The type of ECG recommended for you will depend on your symptoms and the heart problem suspected.
For example, an exercise ECG may be recommended if your symptoms are triggered by physical activity, whereas an ambulatory ECG may be more suitable if your symptoms are unpredictable and occur in random, short episodes.
An ECG recording machine will usually show your heart rhythm and electrical activity as a graph displayed electronically or printed on to paper.
For an ambulatory ECG, the ECG machine will store the information about your heart electronically, which can be accessed by a doctor when the test is complete.
It's not always possible for you to be given the results of your ECG immediately, as the recordings will have to be looked at by a specialist doctor to determine whether there are signs of a possible problem. Other tests may also need to be carried out before it's possible to tell you whether there's a problem.
You may need to visit the hospital, clinic or your doctor a few days later to discuss your results with a doctor.
An ECG is a quick, safe and painless test. No electricity is put into your body while it's carried out.
There may be some slight discomfort when the electrodes are removed from your skin – similar to removing a sticking plaster – and some people may develop a mild rash where the electrodes were attached.
There's a possibility the stress placed on your heart during an exercise ECG could cause you to experience problems such as chest pain, an irregular heartbeat, or even a heart attack in some cases, but you'll be monitored carefully during the test and it can be stopped if you start to feel unwell.
Important: Our website provides useful information but is not a substitute for medical advice. You should always seek the advice of your doctor when making decisions about your health.