A dry cough can last anywhere from a few days to a few weeks. It usually goes away on its own, but if it lasts longer than two weeks, you should see a doctor.