Your lung function improves within two weeks to three months after the last cigarette. During the first year after quitting, coughing and shortness of breath decrease, and your lungs become better at cleaning themselves to reduce the risk of infection.