Diagnosis typically begins with a thorough medical history and a physical examination. The healthcare provider may inquire about the duration, characteristics, and triggers of the cough. In some cases, additional tests such as a chest X-ray, pulmonary function tests, or a sputum culture may be required to identify the underlying cause.