The disclosure provides a method of treating chronic cough in a subject having idiopathic pulmonary fibrosis (IPF) comprising administering to the subject a pharmaceutical composition comprising from about 2% by weight to about 6% by weight of cromolyn sodium and an ionic osmotic agent with a nebulizer.