Coughing when you lie down is usually caused by gravity, not by a new illness. When you are upright, mucus and fluid drain downward and you swallow them without noticing. When you lie flat, that drainage pools in your throat and triggers a cough. Postnasal drip, acid reflux, and heart failure are the three most common medical causes, and how long it lasts depends on which one you have.
Most people want to know one thing first: is this serious, and how long will it go on? For the common causes, a cough that appears only when you lie down often improves within days to a few weeks once the underlying trigger is addressed. Some causes, like heart failure, need medical care right away. This guide walks through the likely causes, how each one typically behaves over time, and the signs that mean you should not wait.
Why does lying down make you cough?
Gravity changes where fluid goes in your body. This single fact explains most nighttime coughing.
During the day, your nose and sinuses produce mucus continuously. You swallow most of it without thinking. Your stomach also holds acid below a one-way valve called the lower esophageal sphincter. When you stand or sit, both systems stay in their proper places.
Lying flat removes that advantage. Mucus from the back of the nose can pool against the back of the throat, which triggers the cough reflex. Stomach contents sit closer to the esophagus and can move upward more easily. Blood returning to the heart and lungs shifts when you are horizontal, and in a heart that is not pumping well, that shift can cause fluid to back up into the lungs.
There is a fourth factor that gets less attention. The cough reflex itself is less sensitive while you sleep, then rebounds when you lie down and are still awake. Some people notice the cough most in the minutes after getting into bed, before sleep takes over.
The pattern of your cough — when it starts, what it sounds like, what comes up — is the best clue to which of these mechanisms is at work.
What are the most common causes of coughing when lying down?
Three conditions account for the large majority of cases: postnasal drip, acid reflux, and heart failure. Each has a distinct pattern.
Postnasal drip
This is the most common cause of a cough that worsens at night. Mucus from the nose and sinuses runs down the back of the throat and irritates the airway. Common triggers include allergies, colds, sinus infections, and chronic rhinitis.
The cough often starts soon after you lie down or in the early morning hours. It may feel like something is tickling the back of your throat. You might clear your throat often. A sensation of drainage is common, though not everyone feels it.
Acid reflux
Stomach acid moving up into the esophagus can trigger a cough, sometimes without the classic burning sensation. This is called silent reflux, and a cough can be its only symptom.
Reflux-related cough tends to appear after you lie down, especially within a few hours of eating. Lying flat and having a full stomach both make it easier for acid to move upward. Some people also wake with a sour taste or a hoarse voice in the morning.
Heart failure
This is the cause that matters most to identify early. When the heart cannot pump efficiently, fluid can collect in the lungs. Lying flat makes this worse because blood that was pooled in the legs returns to the chest.
The classic sign is shortness of breath that appears when lying flat and improves when you sit up or prop yourself on pillows. A cough may come with it. If you need extra pillows to sleep, or wake up gasping, that warrants prompt medical evaluation.
Other causes
- Asthma, which can worsen at night due to airway changes during sleep
- Chronic obstructive pulmonary disease (COPD)
- Post-viral cough after a respiratory infection
- Certain blood pressure medications, particularly ACE inhibitors, which can cause a persistent dry cough
- An enlarged heart or other structural issues affecting the chest
How long does a cough that happens when lying down last?
Timelines vary widely by cause, and no single number fits everyone. What follows is the typical pattern for each, not a guarantee.
| Cause | Typical timeline | What usually changes it |
|---|---|---|
| Postnasal drip from a cold | Days to a few weeks | Resolves as the infection clears |
| Allergic postnasal drip | Ongoing until the trigger is removed | Improves with allergy control |
| Acid reflux | Weeks to months | Improves with reflux treatment and lifestyle changes |
| Post-viral cough | Usually weeks, sometimes longer | Gradual improvement over time |
| Heart failure | Does not resolve on its own | Requires medical treatment |
A cough from a common cold or minor infection generally settles within a few weeks. A cough that is still present after several weeks, or that is getting worse rather than better, deserves a medical visit. The same is true for any cough that comes with shortness of breath, chest pain, fever, or coughing up blood.
One point worth stating plainly: a cough that reliably appears only when you lie down and disappears when you sit up is a pattern, not a diagnosis. The pattern points you toward a conversation with a clinician, not to a conclusion you should reach alone.
How can you tell which cause is behind your cough?
The details of your cough and your other symptoms usually point toward one cause. A few questions help narrow it down.
Does it come with a runny nose, congestion, or throat clearing? That leans toward postnasal drip. Allergy season or a recent cold makes this more likely.
Does it happen after meals or with a sour taste in your mouth? That leans toward reflux. Heartburn is not always present.
Do you get short of breath when lying flat, or need extra pillows to breathe comfortably? That leans toward a heart or lung issue and should be checked promptly.
Do you take a blood pressure medication? ACE inhibitors are a well-known cause of a dry, persistent cough. Do not stop a medication on your own; talk to your prescriber.
Is the cough dry or productive? A dry cough is more typical of reflux, ACE inhibitors, and post-viral irritation. A cough that brings up mucus is more typical of infection, bronchitis, or postnasal drip.
No single question confirms a cause. The combination of pattern, timing, and other symptoms is what a clinician uses to decide what to check.
When should you see a doctor about a cough when lying down?
Some symptoms mean you should not wait for a cough to resolve on its own. Seek medical care promptly if you have any of the following:
- Shortness of breath when lying flat, or needing extra pillows to sleep
- Waking up gasping for air
- Chest pain or pressure
- Coughing up blood
- Fever with a cough that is worsening
- Swelling in the legs or ankles
- Unexplained weight gain or fatigue alongside the cough
- A cough that has lasted several weeks or is getting worse
These signs can point to heart failure, pneumonia, or another condition that needs treatment. They are not a reason to panic, but they are a reason to be seen. A cough that only appears when lying down and that comes with breathlessness on lying flat is the pattern most worth checking without delay.
What helps a cough that gets worse when lying down?
What helps depends on the cause, and no single fix works for all of them. The most reliable step is to identify the trigger and address it.
For postnasal drip, treating the underlying allergy or infection is the main approach. Some clinicians recommend elevating the head of the bed and using a humidifier, though the evidence for these measures is modest. Saline nasal rinses are widely used and generally low risk when prepared and used correctly.
For reflux, avoiding large meals close to bedtime and elevating the head of the bed are common recommendations. Some clinicians advise avoiding trigger foods. Medications for reflux are available, but whether they help a reflux-related cough specifically is less certain than their effect on heartburn. That distinction matters: a drug that reduces stomach acid does not always quiet a cough.
For heart failure, the treatment is medical and should come from a clinician. No home remedy substitutes for it.
For any cause, sleeping with your head and upper body raised may reduce drainage and reflux. This is a reasonable comfort measure, not a proven treatment. If a cough persists beyond a few weeks or keeps you from sleeping, see a clinician rather than continuing to manage it at home.
Frequently Asked Questions
Why do I only cough when I lie down?
Gravity lets mucus and stomach contents pool in the throat when you are flat, which triggers the cough reflex. Postnasal drip and acid reflux are the most common causes of this pattern.
How long does a nighttime cough usually last?
A cough from a cold or minor infection usually settles within a few weeks, while reflux-related cough can take longer. A cough that lasts several weeks or is getting worse should be checked by a clinician.
Is coughing when lying down a sign of heart failure?
It can be, especially if it comes with shortness of breath when flat or needing extra pillows to sleep. Those symptoms warrant prompt medical evaluation, though postnasal drip and reflux are more common causes.
Should I worry about a cough that stops when I sit up?
A cough that reliably improves when you sit up suggests a positional cause like reflux or drainage. It is not automatically serious, but any cough with breathlessness, chest pain, or blood should be evaluated promptly.

