A cough is contagious when it is caused by an infection that can spread to other people, such as a cold, flu, COVID-19, or whooping cough. The timing depends on the germ: people can spread some infections before symptoms begin and for days or weeks afterward. A lingering cough alone does not prove someone is still infectious, because noninfectious conditions can also cause coughing.
How Long Is a Cough Contagious?
There is no single timeline for every cough. The period when someone can spread an infection depends on its cause, the person's health, and how the illness progresses. With many respiratory infections, the risk of spreading germs is greatest early in the illness, although transmission can occur before symptoms appear or after someone begins to feel better.
For example, the Centers for Disease Control and Prevention (CDC) explains that people with influenza (flu) may spread the virus starting about one day before symptoms develop and for five to seven days after becoming sick. People with flu are generally most contagious during the first three days. Young children and people with weakened immune systems may remain contagious for longer.
COVID-19 has a different infectious period. According to the CDC's COVID-19 guidance, people may be infectious from one to two days before symptoms begin until eight to ten days afterward. Most transmission occurs around the beginning of the illness and during its early days. Some people can also spread the virus without developing noticeable symptoms.
Whooping cough, also called pertussis, is an important exception to the shorter timelines associated with many respiratory viruses. The CDC's guidance on whooping cough states that people can spread the bacteria from the start of symptoms and for at least two weeks after coughing begins. Early antibiotic treatment may shorten the contagious period. Anyone who may have whooping cough should contact a healthcare professional for advice about treatment and preventing transmission, particularly when infants may be exposed.
Does a Lingering Cough Mean You Are Still Contagious?
Not necessarily. A cough can continue after the infection that caused it has cleared. The airways may remain irritated, so coughing persists even when the person is no longer infectious. However, a cough that continues after other symptoms improve does not, by itself, establish whether an infection has cleared or whether the person can still spread it.
The Mayo Clinic's information on cough causes notes that some infections, including whooping cough, can cause coughing for many weeks or even months after the infection itself has cleared. The length of the cough is therefore not a reliable way to measure contagiousness. The underlying illness and its stage matter more than whether coughing has completely stopped.
Coughing can also occur without a contagious infection. According to MedlinePlus, possible causes include asthma, allergies, chronic lung conditions, acid reflux, smoking, and certain medicines. A cough related to one of these causes is not contagious simply because the person is coughing. However, it is possible for a noninfectious cause and a respiratory infection to occur at the same time.
How Can You Tell Whether a Cough Is Contagious?
The sound of a cough, whether it is dry or produces mucus, and how often it occurs cannot reliably show whether someone is infectious. A new cough accompanied by a runny nose, sore throat, fever, chills, fatigue, or body aches may occur with a respiratory infection, but these symptoms do not identify the cause on their own. Some infections also cause few symptoms or no noticeable symptoms.
Healthcare professionals may consider when the cough began, whether other symptoms are present, how the illness has changed, the person's medical history, and possible exposure to an infection. Depending on the circumstances, they may recommend testing or other evaluation. This can be particularly useful when someone has had close contact with a person known to have an infectious illness or needs specific guidance about returning to work, school, or contact with vulnerable people.
How Can You Reduce the Risk of Spreading a Contagious Cough?
If you have a new cough that may be caused by a respiratory infection, taking precautions can help protect people around you. Stay home and limit close contact with others while your symptoms are not improving. Pay particular attention to protecting infants, older adults, and people whose medical conditions or treatments increase their risk of serious illness.
The CDC's guidance on preventing the spread of respiratory viruses recommends returning to normal activities when symptoms have been improving overall for at least 24 hours and any fever has been absent for at least 24 hours without fever-reducing medicine. These criteria indicate that someone is generally less contagious, not that transmission is impossible. For the following five days, additional precautions can help reduce the remaining risk.
- Wear a well-fitting mask: Consider wearing one when sharing indoor spaces with other people, especially people at higher risk of serious illness.
- Improve ventilation: Open windows when safe and practical, or use other measures that improve the flow of fresh air indoors.
- Cover coughs and sneezes: Use a tissue or your elbow, and wash your hands afterward.
- Wash your hands regularly: Clean your hands after coughing, sneezing, or handling used tissues.
- Avoid close contact: Keep some distance from others while recovering, especially anyone who may be more vulnerable to infection.
- Consider testing when appropriate: Testing for infections such as COVID-19 may help guide precautions, particularly before contact with someone at higher risk.
These precautions reduce the chance of transmission but cannot eliminate it completely. If you have been diagnosed with a specific infection, follow any additional advice from your healthcare professional, since some infections require precautions beyond the usual respiratory-virus guidance.
When Should You Seek Medical Advice About a Cough?
Most short-term coughs associated with common respiratory infections improve with time. However, a cough that persists beyond about three weeks, becomes progressively worse, disrupts sleep, or interferes with everyday activities deserves medical evaluation. A persistent cough may have an ongoing infectious cause or may be related to another condition that needs assessment.
Seek urgent medical care if a cough is accompanied by difficulty breathing or chest pain. Coughing up blood also warrants prompt medical attention. Contact a healthcare professional if you suspect whooping cough, have had close contact with someone who has it, or are concerned about exposing an infant or another vulnerable person to a possible infection.
For a cough in a very young infant, especially a baby younger than three months, seek prompt medical advice rather than relying on the usual timelines for adult coughs. Across all age groups, the key question is not simply how long the cough has lasted, but what is causing it and whether that cause can still be transmitted to others.