A pulmonary function test (PFT) evaluates lung volume, capacity, and airflow to determine how well your lungs are functioning.