A pneumothorax is typically diagnosed through a physical examination and chest X-ray. In some cases, a CT scan may be needed for a more detailed view of the lungs.