Ideally, a health care provider should screen you during regular checkups for risk factors that can lead to a heart attack.

A heart attack is often diagnosed in an emergency setting. If you've had or are having a heart attack, care providers will take immediate steps to treat your condition. If you're able to answer questions, you may be asked about your symptoms and medical history.

Diagnosis of a heart attack includes checking blood pressure, pulse and temperature. Tests are done to see how the heart is beating and to check overall heart health.


Tests to diagnose a heart attack include:

  • Electrocardiogram (ECG or EKG). This first test done to diagnose a heart attack records electrical signals as they travel through the heart. Sticky patches (electrodes) are attached to the chest and sometimes the arms and legs. Signals are recorded as waves displayed on a monitor or printed on paper. An electrocardiogram (ECG) can show if you are having or have had a heart attack.
  • Blood tests. Certain heart proteins slowly leak into the blood after heart damage from a heart attack. Blood tests can be done to check for these proteins (cardiac markers).
  • Chest X-ray. A chest X-ray shows the condition and size of the heart and lungs.
  • Echocardiogram. Sound waves (ultrasound) create images of the moving heart. This test can show how blood moves through the heart and heart valves. An echocardiogram can help identify whether an area of your heart has been damaged.
  • Coronary catheterization (angiogram). A long, thin tube (catheter) is inserted into an artery, usually in the leg, and guided to the heart. Dye flows through the catheter to help the arteries show up more clearly on images made during the test.
  • Cardiac computed tomography (CT) or Magnetic resonance imaging (MRI). These tests create images of the heart and chest. Cardiac CT scans use X-rays. Cardiac MRI uses a magnetic field and radio waves to create images of your heart. For both tests, you usually lie on a table that slides inside a long tubelike machine. Each test can be used to diagnose heart problems. They can help show the severity of heart damage.


Each minute after a heart attack, more heart tissue is damaged or dies. Urgent treatment is needed to fix blood flow and restore oxygen levels. Oxygen is given immediately. Specific heart attack treatment depends on whether there's a partial or complete blockage of blood flow.


Medications to treat a heart attack might include:

  • Aspirin. Aspirin reduces blood clotting. It helps keep blood moving through a narrowed artery. If you called 911 or your local emergency number, you may be told to chew aspirin. Emergency medical providers may give you aspirin immediately.
  • Clot busters (thrombolytics or fibrinolytics). These drugs help break up any blood clots that are blocking blood flow to the heart. The earlier a thrombolytic drug is given after a heart attack, the less the heart is damaged and the greater the chance of survival.
  • Other blood-thinning medicines. A medicine called heparin may be given by an intravenous (IV) injection. Heparin makes the blood less sticky and less likely to form clots.
  • Nitroglycerin. This medication widens the blood vessels. It helps improve blood flow to the heart. Nitroglycerin is used to treat sudden chest pain (angina). It's given as a pill under the tongue, as a pill to swallow or as an injection.
  • Morphine. This medicine is given to relieve chest pain that doesn't go away with nitroglycerin.
  • Beta blockers. These medications slow the heartbeat and decrease blood pressure. Beta blockers can limit the amount of heart muscle damage and prevent future heart attacks. They are given to most people who are having a heart attack.
  • Blood pressure medicines called angiotensin-converting enzyme (ACE) inhibitors. These drugs lower blood pressure and reduce stress on the heart.
  • Statins. These drugs help lower unhealthy cholesterol levels. Too much bad (low-density lipoprotein, or LDL) cholesterol can clog arteries.

Surgical and other procedures

If you've had a heart attack, a surgery or procedure may be done to open a blocked artery. Surgeries and procedures to treat a heart attack include:

  • Coronary angioplasty and stenting. This procedure is done to open clogged heart arteries. It may also be called percutaneous coronary intervention (PCI). If you've had a heart attack, this procedure is often done during a procedure to find blockages (cardiac catheterization).

    During angioplasty, a heart doctor (cardiologist) guides a thin, flexible tube (catheter) to the narrowed part of the heart artery. A tiny balloon is inflated to help widen the blocked artery and improve blood flow.

    A small wire mesh tube (stent) may be placed in the artery during angioplasty. The stent helps keep the artery open. It lowers the risk of the artery narrowing again. Some stents are coated with a medication that helps keep the arteries open.

  • Coronary artery bypass grafting (CABG). This is open-heart surgery. A surgeon takes a healthy blood vessel from another part of the body to create a new path for blood in the heart. The blood then goes around the blocked or narrowed coronary artery. It may be done as an emergency surgery at the time of a heart attack. Sometimes it's done a few days later, after the heart has recovered a bit.

Cardiac rehabilitation

Cardiac rehabilitation is a personalized exercise and education program that teaches ways to improve heart health after heart surgery. It focuses on exercise, a heart-healthy diet, stress management and a gradual return to usual activities. Most hospitals offer cardiac rehabilitation starting in the hospital. The program typically continues for a few weeks or months after you return home.

People who attend cardiac rehab after a heart attack generally live longer and are less likely to have another heart attack or complications from the heart attack. If cardiac rehab is not recommended during your hospital stay, ask your provider about it.

Clinical trials

Explore Mayo Clinic studies testing new treatments, interventions and tests as a means to prevent, detect, treat or manage this condition.

Self care

To improve heart health, take the following steps:

  • Exercise. Regular exercise helps improve heart health. As a general goal, aim for at least 30 minutes of moderate or vigorous physical activity five or more days a week. If you've had a heart attack or heart surgery, you may have activity restrictions. Ask your health care provider what's best for you.
  • Eat a heart-healthy diet. Avoid or limit foods with a lot of saturated fat, trans fats, salt and sugar. Choose whole grains, fruits, vegetables, and lean proteins, such as fish and beans.
  • Maintain a healthy weight. Too much weight strains the heart. Being overweight increases the risk of high cholesterol, high blood pressure and diabetes.
  • Don't smoke. Quitting smoking is the most important thing you can do to improve heart health. Also, avoid being around secondhand smoke. If you need to quit, ask your provider for help.
  • Limit alcohol. If you choose to drink alcohol, do so in moderation. For healthy adults, that means up to one drink a day for women and up to two drinks a day for men.
  • Get regular health checkups. Some of the major risk factors for a heart attack — high blood cholesterol, high blood pressure and diabetes — don't cause early symptoms.
  • Manage blood pressure, cholesterol and blood sugar. Ask your provider how often you need to have your blood pressure, blood sugar and cholesterol levels checked.
  • Control stress. Find ways to help reduce emotional stress. Getting more exercise, practicing mindfulness and connecting with others in support groups are some ways to ease stress.

Coping and support

Having a heart attack is scary. Talking about your feelings with your care provider, a family member or a friend might help. Or consider talking to a mental health care provider or joining a support group. Support groups let you connect with others who have been through similar events.

If you feel sad, scared or depressed, tell your care provider. Cardiac rehabilitation programs can help prevent or treat depression after a heart attack.

Sex after a heart attack

Some people worry about having sex after a heart attack. Most people can safely return to sexual activity after recovery. But talk to your care provider first. When you can resume sex may depend on your physical comfort, emotional readiness and previous sexual activity.

Some heart medications can affect sexual function. If you're having problems with sexual dysfunction, talk to your care provider.

Preparing for your appointment

A heart attack usually is diagnosed in an emergency setting. However, if you're concerned about your risk of a heart attack, talk to your care provider. A cardiovascular risk assessment can be done to determine your level of risk.

You may be referred to a doctor trained in heart diseases (cardiologist).

Here's some information to help you prepare for your appointment.

What you can do

When you make the appointment, ask if there's anything you need to do in advance, such as restrict your diet. You might need to avoid food or drink for a while before a cholesterol test, for example.

Make a list of:

  • Your symptoms, including any that seem unrelated to heart disease, and when they began
  • Family history of heart problems, including heart disease, stroke, high blood pressure, diabetes or early heart attacks
  • Important personal information, including recent major stresses or recent life changes
  • All medications, vitamins and other supplements you take, including doses
  • Questions to ask your provider

Take a friend or relative along, if possible, to help you remember the information you're given.

Some questions to ask your provider about heart attack prevention include:

  • What tests do I need to determine my current heart health?
  • What foods should I eat or avoid?
  • What's an appropriate level of physical activity?
  • How often should I be screened for heart disease?
  • I have other health conditions. How can I best manage these conditions together?
  • Are there brochures or other printed material that I can have? What websites do you recommend?

Don't hesitate to ask other questions.

What to expect from your doctor

Your health care provider is likely to ask you questions, including:

  • How severe are your symptoms?
  • Are they constant or do they come and go?
  • What, if anything, seems to improve your symptoms?
  • If you have chest pain, does it improve with rest?
  • What, if anything, worsens your symptoms?
  • If you have chest pain, does strenuous activity make it worse?
  • Have you been diagnosed with high blood pressure, diabetes or high cholesterol?

What you can do in the meantime

It's never too early to make healthy lifestyle changes, such as quitting smoking, eating healthy foods and becoming more active. These are important steps in preventing heart attacks and improving overall health.

Oct 09, 2023

  1. Heart attack. National Heart, Lung, and Blood Institute. https://www.nhlbi.nih.gov/health/heart-attack/causes. Accessed March 29, 2022.
  2. Reeder GS, et al. Diagnosis of acute myocardial infarction. https://www.uptodate.com/contents/search. Accessed March 29, 2022.
  3. What is a heart attack? American Heart Association. https://www.heart.org/en/health-topics/heart-attack/about-heart-attacks. Accessed March 29, 2022.
  4. AskMayoExpert. Cardiac rehabilitation: Indications (adult). Mayo Clinic; 2022.
  5. Physical Activity Guidelines for Americans. 2nd ed. U.S. Department of Health and Human Services. https://health.gov/our-work/physical-activity/current-guidelines. Accessed March 29, 2022.
  6. Heart treatments. National Heart, Lung, and Blood Institute. https://www.nhlbi.nih.gov/health/heart-treatments-procedures. Accessed March 28, 2022.
  7. Libby P, et al., eds. Cardiac arrest and sudden cardiac death. In: Braunwald's Heart Disease: A Textbook of Cardiovascular Medicine. 12th ed. Elsevier; 2022. https://www.clinicalkey.com. Accessed March 29, 2022.
  8. Ferri FF. Myocardial infarction. In: Ferri's Clinical Advisor 2022. Elsevier; 2022. https://www.clinicalkey.com. Accessed March 29, 2022.
  9. Wilson PW, et al. Prognosis after myocardial infarction. https://www.uptodate.com/contents/search. Accessed March 29, 2022.
  10. Cardiopulmonary resuscitation (CPR): First aid. Mayo Clinic. https://www.mayoclinic.org/first-aid/first-aid-cpr/basics/art-20056600. Accessed March 29, 2022.
  11. Rethinking drinking: Alcohol and your health. National Institute on Alcohol Abuse and Alcoholism. https://www.niaaa.nih.gov/niaaa-publications-order-form#pub-1. Accessed March 29, 2022.
  12. 2020-2025 Dietary Guidelines for Americans. U.S. Department of Health and Human Services and U.S. Department of Agriculture. https://www.dietaryguidelines.gov. Accessed March 29, 2022.
  13. Mankad R (expert opinion). Mayo Clinic. May 1, 2020.
  14. AskMayoExpert. COVID-19: Acute cardiovascular syndrome (adult). Mayo Clinic; 2021.
  15. Lavonas EJ, et al. Highlights of the 2020 AHA guidelines update for CPR and ECC. https://cpr.heart.org/en/resuscitation-science/cpr-and-ecc-guidelines. Accessed March 29, 2022.
  16. Gulati M, et al. 2021 AHA/ACC/ASE/CHEST/SAEM/SCCT/SCMR guideline for the evaluation and diagnosis of chest pain: A report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines. Journal of the American College of Cardiology. 2021; doi:10.1016/j.jacc.2021.07.053.
  17. Health Education & Content Services (Patient Education). Sex and heart disease. Mayo Clinic; 2011.
  18. Cutlip D, et al. Revascularization in patients with stable coronary artery disease: Coronary artery bypass graft surgery versus percutaneous coronary intervention. https://www.uptodate.com/contents/search. Accessed March 24, 2022.
  19. Coronary artery disease. Mayo Clinic. https://www.mayoclinic.org/diseases-conditions/coronary-artery-disease/symptoms-causes/syc-20350613. Accessed March 29, 2022.
  20. Pericarditis. Mayo Clinic. https://www.mayoclinic.org/diseases-conditions/pericarditis/symptoms-causes/syc-20352510. Accessed March 29, 2022.
  21. Lopez-Jimenez F (expert opinion). Mayo Clinic. April 7, 2022.


Your gift holds great power – donate today!

Make your tax-deductible gift and be part of the cutting-edge research and care that's changing medicine.