Why Am I Coughing at Night? Causes and Relief

Coughing gets worse at night because of a combination of body position, natural shifts in your immune system, and physical changes in your airways that all converge while you sleep. Your airways are at their narrowest between 2 and 5 AM, your body produces more mucus when lying down, and conditions like acid reflux and postnasal drip are amplified by gravity working against you. Understanding which of these factors is driving your nighttime cough can help you figure out what to do about it.

Your Airways Naturally Narrow at Night

Your lungs follow a 24-hour internal clock, and that clock dictates how open or constricted your airways are at any given time. Airway resistance peaks between 2 and 5 AM, meaning the tubes carrying air in and out of your lungs are at their tightest during those hours. This narrowing happens to everyone, but it’s barely noticeable if your airways are healthy. If you have any degree of inflammation, allergies, or asthma, that narrowing can push you past the threshold into coughing, wheezing, or shortness of breath.

Sleep itself makes this worse. When you’re asleep, your nervous system shifts toward a state that further constricts the airways, likely due to increased activity in the branch of the nervous system responsible for “rest and digest” functions. On top of that, allergens are more potent at night. The dose of an allergen needed to trigger a reaction drops significantly during nighttime hours, so the same amount of dust mite protein or pet dander that your body shrugged off during the day can provoke a coughing fit at 3 AM.

Postnasal Drip and Lying Flat

When you’re upright during the day, mucus from your sinuses drains down the back of your throat without much trouble. When you lie down, that drainage pools instead of flowing, collecting at the back of your throat and tickling the cough reflex. This is one of the most common reasons for nighttime coughing, especially if you also have a cold, seasonal allergies, or chronic sinusitis. You might notice it most in the first 20 to 30 minutes after getting into bed, or whenever you shift positions.

Acid Reflux Works Against You While You Sleep

Acid reflux is responsible for an estimated 10 to 59% of chronic cough cases, and nighttime is when it does the most damage. During the day, gravity helps keep stomach contents where they belong. When you lie flat, acid and other stomach contents can travel up the esophagus more easily. Small amounts can even reach the throat and upper airway, a process called microaspiration. Those tiny droplets of acid, bile, and digestive enzymes directly irritate the lining of your throat and trigger the cough reflex.

Your body’s normal protective reflexes also slow down during sleep. Swallowing becomes less frequent, esophageal movement decreases, and the reflexes that guard your larynx and pharynx become less responsive. All of this makes it easier for refluxed material to reach places it shouldn’t. A reflux-related cough is often dry, may come with a sour taste or mild heartburn, and tends to be worse after eating late or drinking alcohol before bed.

Cough-Variant Asthma

Some people with asthma never wheeze. Their only symptom is a persistent, dry cough, and it often shows up primarily at night. This is called cough-variant asthma, and the nighttime pattern follows the same circadian airway narrowing that affects all people with asthma. Airway inflammation and constriction increase around 4 AM, which is precisely when symptoms tend to flare.

Interestingly, research on cough frequency in asthma has revealed a paradox: actual cough counts are lowest between 2 and 6 AM, even though airway narrowing and inflammation peak during those hours. Sleep appears to raise the threshold for triggering a cough, suppressing the reflex centrally. The coughing then surges right around waking, when that suppressive effect lifts but the airways are still tight. If you find yourself coughing hard every morning or waking up coughing in the early hours, asthma is worth investigating even if you’ve never had a wheeze in your life.

Heart Failure and Fluid Shifts

A less common but more serious cause of nighttime coughing is heart failure. When the heart can’t pump efficiently, fluid accumulates in the body during the day, particularly in the legs and abdomen. At night, lying down causes that fluid to redistribute toward the chest, a phenomenon called rostral fluid shift. The lungs can become congested with excess fluid, leading to coughing, shortness of breath, or the sensation of needing to sit up to breathe (orthopnea).

A cardiac cough tends to feel different from a respiratory one. It often comes with breathlessness, a need to prop yourself up on multiple pillows, and sometimes frothy or pink-tinged sputum. Some people wake up gasping an hour or two after falling asleep, which is called paroxysmal nocturnal dyspnea. If you experience this pattern, especially alongside swollen ankles, unexplained weight gain, or increasing fatigue, it points toward a cardiac evaluation rather than a cough remedy.

Medications That Cause Nighttime Cough

A specific class of blood pressure medications, ACE inhibitors, is well known for causing a persistent, dry cough. The cough can develop weeks or even months after starting the medication, so many people don’t connect the two. It tends to feel worse at night because lying flat and the natural narrowing of airways amplify any existing irritation. If you started a blood pressure medication and developed a cough that won’t go away, this is one of the easiest nighttime cough causes to fix, since switching to a different type of blood pressure drug usually resolves it completely.

Nighttime Cough in Children

Children cough at night for many of the same reasons adults do, but a few causes are unique to kids. Croup, caused most often by a parainfluenza virus, produces a distinctive barking cough that sounds like a seal. The swelling around the voice box and windpipe that causes this sound is consistently worse at night, and breathing in may produce a high-pitched whistling noise called stridor. Croup primarily affects children between 6 months and 3 years old, whose small airways make them especially vulnerable. Symptoms usually last 3 to 5 days.

Viral infections in general can leave children with reactive airways for weeks after the initial illness clears. This post-viral hyperreactivity means cold, dry air, or lying down can trigger coughing fits long after the runny nose has stopped. Asthma is also a common culprit in children and may first present as nothing more than a recurring nighttime cough.

What Actually Helps

Elevating your head is one of the simplest and most effective adjustments. Adding a pillow or raising the head of your bed helps with both postnasal drip (by letting mucus drain rather than pool) and acid reflux (by using gravity to keep stomach contents down). Avoid elevating so much that you strain your neck. A gentle incline is enough.

Keeping your bedroom humidity between 30% and 50% can prevent the dry air that irritates airways without creating the damp conditions that encourage dust mites and mold. A simple hygrometer, available for a few dollars, lets you monitor this. If you use a humidifier, clean it regularly to avoid spraying bacteria and mold spores into the air you breathe.

Beyond environmental adjustments, the right approach depends on the underlying cause. Reflux-related coughs improve when you stop eating two to three hours before bed and avoid trigger foods. Allergy-related coughs respond to reducing bedroom allergens: encasing pillows and mattresses, keeping pets out of the bedroom, and washing bedding in hot water weekly. Asthma-related coughs typically need an inhaler or anti-inflammatory medication to address the underlying airway inflammation.

Signs That Need Attention

Most nighttime coughs are caused by colds, allergies, reflux, or mild asthma and resolve with basic measures or time. A cough that persists beyond eight weeks is considered chronic and warrants investigation. Certain accompanying symptoms raise the urgency: coughing up blood, unexplained weight loss, drenching night sweats, progressive fatigue, or significant shortness of breath. These can point toward conditions including bronchiectasis, tuberculosis, or lung malignancy that require prompt evaluation. A cough producing large volumes of mucus daily, especially if it’s been going on for months, also falls outside the “wait and see” category.