Pulmonary function tests help evaluate the mechanical function of the lungs by comparing an individual's measured lung volumes and capacities to predicted normal values based on their age, sex, height, and ethnicity. There are two main types of abnormal lung function: obstructive lung diseases, which make expiration difficult due to increased airway resistance; and restrictive lung diseases, which make inspiration difficult due to decreased lung compliance. Common pulmonary function tests measure lung volumes, flow rates, and gas transfer ability to identify what type of lung impairment may be present.