Skip to main content

Tests for Lung Cancer

Some lung cancers can be found by screening, but most lung cancers are found because they are causing problems. The actual diagnosis of lung cancer is made by looking at a sample of lung cells in the lab. If you have possible signs or symptoms of lung cancer, see your doctor.

Medical history and physical exam

Your doctor will ask about your medical history to learn about your symptoms and possible risk factors. They will also examine you to look for signs of lung cancer or other health problems.

If the results of your history and physical exam suggest you might have lung cancer, more tests will be done. These could include imaging tests and/or biopsies of the lung.

Imaging tests to look for lung cancer

Imaging tests use x-rays, magnetic fields, sound waves, or radioactive substances to create pictures of the inside of your body. Imaging tests might be done for a number of reasons both before and after a diagnosis of lung cancer, including:

  • To look at suspicious areas that might be cancer
  • To learn how far cancer might have spread
  • To help determine if treatment is working
  • To look for possible signs of cancer coming back after treatment

Chest x-ray

A chest x-ray is often the first test your doctor will do to look for any abnormal areas in the lungs. If something suspicious is seen, your doctor may order more tests.

Computed tomography (CT) scan

A CT scan uses x-rays to make detailed cross-sectional images of your body. Instead of taking 1 or 2 pictures, like a regular x-ray, a CT scanner takes many pictures and a computer then combines them to show a slice of the part of your body being studied.

A CT scan is more likely to find lung tumors than routine chest x-rays. It can also show the size, shape, and position of any lung tumors and can help find enlarged lymph nodes that might contain cancer that has spread. This test can also be used to look for masses in other parts of the body that might be due to the lung cancer spread.

CT-guided needle biopsy: If a suspected area of cancer is deep within your body, a CT scan might be used to guide a biopsy needle into this area to get a tissue sample to check for cancer.

Magnetic resonance imaging (MRI) scan

Like CT scans, MRI scans show detailed images of soft tissues in the body. But MRI scans use radio waves and strong magnets instead of x-rays. MRI scans are most often used to look for possible spread of lung cancer to the brain, spinal cord, or liver.

Positron emission tomography (PET) scan

For a PET scan, a slightly radioactive form of sugar (known as fluorodeoxyglucose [FDG]) is injected into the blood and collects mainly in cancer cells. This is because cancer cells tend to take up more sugar (or glucose) than normal cells do.

PET/CT scan: Often a PET scan is combined with a CT scan using a special machine that can do both at the same time. This lets the doctor compare areas of higher radioactivity on the PET scan with a more detailed picture on the CT scan. This is the type of PET scan most often used in patients with cancer. PET/CT scans are used for cancer staging, which is to see if and where the cancer has spread. While they can be used to look at most organs in the body, they are not useful for looking at the brain or spinal cord.

Bone scan

For a bone scan, a small amount of low-level radioactive material is injected into the blood and collects mainly in abnormal areas of bone. It can help show if a cancer has spread to the bones.

Tests to diagnose lung cancer

Symptoms and the results of certain tests may strongly suggest that a person has lung cancer, but the actual diagnosis is made by looking at lung cells in the lab.

The cells can be taken from a suspicious area using a needle or surgery (needle biopsy), fluid removed from the area around the lung (thoracentesis), or lung secretions (mucus you cough up from the lungs), . The choice of which test(s) to use depends on the situation.

Needle biopsy

Doctors often use a hollow needle to get a small sample from a suspicious area (mass). An advantage of needle biopsies is that they don’t require a surgical incision. The drawback is that they remove only a small amount of tissue, and in some cases, the amount of tissue removed might not be enough to both make a diagnosis and to perform more tests on the cancer cells that can help doctors choose anticancer drugs. There are two main types of needle biopsies: fine needle aspiration (FNA) biopsy and core needle biopsy (CNB).

Fine needle aspiration (FNA) biopsy

The doctor uses a syringe with a very thin, hollow needle to withdraw (aspirate) cells and small fragments of tissue. A FNA biopsy may be done to check for cancer in very small masses or in the lymph nodes located around the lungs. Transtracheal FNA or transbronchial FNA is done by passing the needle through the wall of the trachea (windpipe) or bronchi (the large airways leading into the lungs) during a bronchoscopy or endobronchial ultrasound (described below).

In some patients, an FNA biopsy is done during an endoscopic esophageal ultrasound (described below) by passing the needle through the wall of the esophagus.

Core biopsy

A larger needle is used to remove one or more small cores of tissue. Samples from core biopsies are often preferred because they are larger than FNA biopsies.

Core biopsies can be done during many lung procedures and/or surgeries. One example would be during a Transthoracic needle biopsy, where the biopsy needle is put through the skin on the chest wall. The doctor guides the needle into the area while looking at the lungs with either fluoroscopy, which is like an x-ray, or a CT scan. A possible complication of this procedure is that air may leak out of the lung at the biopsy site and into the space between the lung and the chest wall. This is called a pneumothorax. It can cause part of the lung to collapse and sometimes cause trouble breathing. If the air leak is small, it often gets better without any treatment. Large air leaks are treated by inserting a chest tube (a small tube into the chest space), which sucks out the air over a day or two, after which it usually heals on its own.

Thoracentesis

If fluid has collected around the lungs (called a pleural effusion), doctors can remove some of the fluid to find out if it is caused by cancer spreading to the lining of the lungs (pleura). The buildup might also be caused by other conditions, such as heart failure or an infection.

For a thoracentesis, the skin is numbed and a hollow needle is inserted between the ribs to drain the fluid. The fluid is checked in the lab for cancer cells. Other tests of the fluid are also sometimes useful in telling a malignant (cancerous) pleural effusion from one that is not.

If a malignant pleural effusion has been diagnosed and is causing trouble breathing, a thoracentesis may be repeated to remove more fluid which may help a person breathe better.

Sputum cytology

A sample of sputum (mucus you cough up from the lungs) is looked at in the lab to see if it has cancer cells. The best way to do this is to get early-morning samples 3 days in a row. This test is more likely to help find cancers that start in the major airways of the lung, such as squamous cell lung cancers. It might not be as helpful for finding other types of lung cancer. If your doctor suspects lung cancer, further testing will be done even if no cancer cells are found in the sputum. This form of testing is not usually used unless the other methods are felt to be too dangerous for the patient.

Tests to look for lung cancer

If lung cancer has been found, it’s often important to know if it has spread to the lymph nodes in the space between the lungs (mediastinum) or other nearby areas. This is especially important for a person with early-stage lung cancer, and can affect  their treatment options. Several types of tests can be used to look for this cancer spread.

Bronchoscopy

Bronchoscopy can help the doctor find tumors or blockages in the airways of the lungs, which can often be biopsied during the procedure.

Electromagnetic navigation bronchoscopy uses a bronchoscope to biopsy a tumor in the outer part of the lung. First, CT scans are used to create a virtual bronchoscopy. The abnormal area is identified, and a computer helps guide a bronchoscope to the area so that it can be biopsied. The bronchoscope used has some special attachments that allow it to reach farther than a regular bronchoscope. This takes special equipment and training.

Endobronchial ultrasound

An endobronchial ultrasound can be used to see the lymph nodes and other structures in the area between the lungs if biopsies need to be taken in those areas.

Endoscopic esophageal ultrasound

An endoscopic esophageal ultrasound goes down into the esophagus, where it can show the nearby lymph nodes which may contain lung cancer cells. Biopsies of the abnormal lymph nodes can be taken at the same time as the procedure.

Mediastinoscopy and mediastinotomy

These procedures may be done to look more directly at and get samples from the structures in the mediastinum (the area between the lungs). The main difference between the two is in the location and size of the incision.

A mediastinoscopy is a procedure that uses a lighted tube inserted behind the sternum (breast bone) and in front of the windpipe to look at and take tissue samples from the lymph nodes along the windpipe and the major bronchial tube areas. If some lymph nodes can’t be reached by mediastinoscopy, a mediastinotomy may be done so the surgeon can directly remove the biopsy sample. For this procedure, a slightly larger incision (usually about 2 inches long) between the left second and third ribs next to the breastbone is needed.

Thoracoscopy

Thoracoscopy can be done to find out if cancer has spread to the spaces between the lungs and the chest wall, or to the linings of these spaces. It can also be used to sample tumors on the outer parts of the lungs, as well as nearby lymph nodes and fluid, and to assess whether a tumor is growing into nearby tissues or organs. This procedure is not often done just to diagnose lung cancer, unless other tests such as needle biopsies are unable to get enough samples for the diagnosis. Thoracoscopy can also be used as part of the treatment to remove part of a lung in some early-stage lung cancers. This type of operation, known as video-assisted thoracic surgery (VATS), is described in Surgery for Non-Small Cell Lung Cancer.

Lung function tests

Lung (or pulmonary) function tests (PFTs) are often done after lung cancer is diagnosed to see how well your lungs are working. This is especially important if surgery might be an option in treating the cancer. Surgery to remove lung cancer may mean removing part or most of a lung, so it’s important to know how well your lungs are working beforehand. Some people with poor lung function (like those with lung damage from smoking) don’t have enough healthy lung to withstand removing even part of a lung. These tests can give the surgeon an idea of whether surgery is a good option, and if so, how much lung can safely be removed.

There are different types of PFTs, but they all basically have you breathe in and out through a tube that is connected to a machine that measures airflow.

Sometimes PFTs are coupled with a test called an arterial blood gas. In this test, blood is removed from an artery (instead of from a vein, like most other blood tests) so the amount of oxygen and carbon dioxide can be measured.

Lab tests of biopsy and other samples

Samples that have been collected during biopsies or other tests are sent to a pathology lab. A pathologist will look at the samples and may do other special tests to diagnose and better classify the cancer. (Cancers from other organs also can spread to the lungs. It’s very important to find out where the cancer started, because treatment is different depending on the origin of the cancer.)

The results of these tests are described in a pathology report, which is usually available within a week. If you have any questions about your pathology results or any diagnostic tests, talk to your doctor. If needed, you can get a second opinion of your pathology report by having your tissue samples sent to a pathologist at another lab.

For more information, see Understanding Your Pathology Report.

Molecular testing (genomic testing) of lung tumor

In some cases, especially for non-small cell lung cancer (NSCLC), doctors may test for specific gene changes in the cancer cells, which could mean certain targeted drugs might help treat the cancer. For example:

  • About 20% to 25% of NSCLCs have changes in the KRAS gene that cause them to make an abnormal KRAS protein, which helps the cancer cells grow and spread. NSCLCs with this mutation are often adenocarcinomas, resistant to other drugs such as EGFR inhibitors, and are most often found in people with a smoking history.
  • EGFR is a protein that appears in high amounts on the surface of 10% to 20% of NSCLC cells and helps them grow. Some drugs that target EGFR can be used to treat NSCLC with changes in the EGFR gene, which are more common in certain groups, such as those who don’t smoke, women, and Asians. But these drugs don’t seem to be as helpful in patients whose cancer cells have changes in the KRAS gene.
  • About 5% of NSCLCs have a change in the ALK gene. This change is most often seen in people who don’t smoke (or who smoke lightly) and have the adenocarcinoma subtype of NSCLC. Doctors may test cancers for changes in the ALK gene to see if drugs that target this change may help them.
  • About 1% to 2% of NSCLCs have a rearrangement in the ROS1 gene, which might make the tumor respond to certain targeted drugs.
  • A small percentage of NSCLCs have changes in the RET gene. Certain drugs that target cells with RET gene changes might be options for treating these tumors.
  • About 5% of NSCLCs have changes in the BRAF gene. Certain drugs that target cells with BRAF gene changes might be an option for treating these tumors.
  • A small percentage of NSCLCs have certain changes in the MET gene that make them more likely to respond to some targeted drugs.
  • In a small percentage of NSCLCs, the cancer cells have certain changes in the HER2 gene that make them more likely to respond to a targeted drug.
  • A small number of NSCLCs have changes in one of the NTRK genes that make them more likely to respond to some targeted drugs.

These genetic tests can be done on tissue taken during a biopsy or surgery for lung cancer. If the biopsy sample is too small and all the studies cannot be done, the testing may also be done on blood that is taken from a vein just like a regular blood draw. This blood contains the DNA from dead tumor cells found in the bloodstream of people with advanced lung cancer. Obtaining the tumor DNA through a blood draw is called a liquid biopsy. Liquid biopsies are done in cases where a tissue biopsy is not possible or if a tissue biopsy is felt to be too dangerous for the patient.

PD-L1 testing on tumor cells

Patients diagnosed with non-small cell lung carcinoma (NSCLC) will have the lung tumor cells tested for PD-L1. PD-L1 is a a protein (program death ligand 1) on cancer cells. A score is calculated depending on “if” and “how much” PD-L1 protein the tumor is making. This score will guide decisions about whether the patient would benefit from certain immunotherapy drugs.

The American Cancer Society medical and editorial content team

Our team is made up of doctors and oncology certified nurses with deep knowledge of cancer care as well as journalists, editors, and translators with extensive experience in medical writing.

Araujo LH, Horn L, Merritt RE, Shilo K, Xu-Welliver M, Carbone DP. Ch. 69 - Cancer of the Lung: Non-small cell lung cancer and small cell lung cancer. In: Niederhuber JE, Armitage JO, Doroshow JH, Kastan MB, Tepper JE, eds. Abeloff’s Clinical Oncology. 6th ed. Philadelphia, Pa: Elsevier; 2020.

Chiang A, Detterbeck FC, Stewart T, Decker RH, Tanoue L. Chapter 48: Non-small cell lung cancer. In: DeVita VT, Lawrence TS, Rosenberg SA, eds. DeVita, Hellman, and Rosenberg’s Cancer: Principles and Practice of Oncology. 11th ed. Philadelphia, Pa: Lippincott Williams & Wilkins; 2019.

Hann CL, Wu A, Rekhtman N, Rudin CM. Chapter 49: Small cell and Neuroendocrine Tumors of the Lung. In: DeVita VT, Lawrence TS, Rosenberg SA, eds. DeVita, Hellman, and Rosenberg’s Cancer: Principles and Practice of Oncology. 11th ed. Philadelphia, Pa: Lippincott Williams & Wilkins; 2019.

Hirsch FR, Scagliotti GV, Mulshine JL, Kwon R, Curran WJ Jr, Wu YL, Paz-Ares L. Lung cancer: current therapies and new targeted treatments. Lancet. 2017 Jan 21;389(10066):299-311.

Imyanitov EN, Iyevleva AG, Levchenko EV. Molecular testing and targeted therapy for non-small cell lung cancer: Current status and perspectives. Crit Rev Oncol Hematol. 2021 Jan;157:103194. doi: 10.1016/j.critrevonc.2020.103194. Epub 2020 Dec 11. PMID: 33316418.

Malapelle U, Pisapia P, Pepe F, Russo G, Buono M, Russo A, Gomez J, Khorshid O, Mack PC, Rolfo C, Troncone G. The evolving role of liquid biopsy in lung cancer. Lung Cancer. 2022 Oct;172:53-64. doi: 10.1016/j.lungcan.2022.08.004. Epub 2022 Aug 10. PMID: 35998482.

National Cancer Institute. Physician Data Query (PDQ). Patient Version. Non-Small Cell Lung Cancer Treatment. 2023. Accessed at https://www.cancer.gov/types/lung/patient/non-small-cell-lung-treatment-pdq on Jan 23, 2024.

National Cancer Institute. Physician Data Query (PDQ). Patient Version. Small Cell Lung Cancer Treatment. 2023. Accessed at https://www.cancer.gov/types/lung/patient/small-cell-lung-treatment-pdq on Jan 23, 2024.

National Comprehensive Cancer Network. NCCN Clinical Practice Guidelines in Oncology: Non-Small Cell Lung Cancer. V.1.2024. Accessed at https://www.nccn.org/professionals/physician_gls/pdf/nscl.pdf on Jan 23, 2024.

National Comprehensive Cancer Network. NCCN Clinical Practice Guidelines in Oncology: Small Cell Lung Cancer. V.2.2024. Accessed at https://www.nccn.org/professionals/physician_gls/pdf/sclc.pdf on Jan 23, 2024.

Roy-Chowdhuri S. Molecular Pathology of Lung Cancer. Surg Pathol Clin. 2021 Sep;14(3):369-377. doi: 10.1016/j.path.2021.05.002. Epub 2021 Jul 8. PMID: 34373089.

Thompson JC, Yee SS, Troxel AB, et al. Detection of Therapeutically Targetable Driver and Resistance Mutations in Lung Cancer Patients by Next-Generation Sequencing of Cell-Free Circulating Tumor DNA. Clin Cancer Res. 2016;22(23):5772–5782.

Last Revised: January 29, 2024

American Cancer Society Emails

Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.