Understanding insomnia

Coughing All Night and Can't Sleep: What Helps

By Angus Munro, Clinical Psychologist (AHPRA PSY0001626434) · Last clinically reviewed 2026-07-10 · 8 min read

If you're coughing all night and can't sleep, start with the cough, not your sleep. A cough that keeps you awake night after night is a physical symptom, and the most useful first move is to have a doctor work out what's driving it, because the great majority of persistent night-time coughs have a findable, treatable cause. The sleep usually settles once the cough does. Not always, though, and the reason it sometimes lingers is worth understanding. There are really two halves here: the cough, which is a medical question, and the sleeplessness, which can take on a life of its own after the cough has gone.

Start with the cough — it's a symptom, not an insomnia problem

A persistent cough at night is the kind of thing a GP sorts out far more often than not. There is a long list of ordinary, treatable causes they will think through: post-nasal drip from a lingering cold or hay fever, reflux that irritates the throat when you lie down, asthma that tends to flare in the small hours, a chest infection working its way out, or a side effect of a medication you are already taking. You do not need to diagnose yourself. You need someone who can listen to your chest and ask the right questions.

A few things warrant getting seen sooner rather than later: coughing up blood, real breathlessness, chest pain, a high fever, unexplained weight loss, or a cough that has hung around for weeks rather than days. None of that is meant to alarm you. It is the opposite. Knowing what would prompt a quick visit is how you stop your 3am brain from filling the gap with worst-case stories.

One thing I would gently steer you away from while you sort the cause out: the urge to start logging every cough and every wake-up. Watching a problem this closely tends to wind the nervous system up further, and a wired nervous system is the last thing a tired person needs.

When the cough goes but you still can't sleep

Here is the part people do not expect. The cough settles, the chest clears, and the sleep still does not come back. You lie down in a quiet, cough-free room and you are wide awake anyway.

That is not bad luck, and it is not a new illness. It is a learned pattern.

A run of nights spent being jolted awake by coughing teaches the brain something: that bed is a place where bad things happen. So it starts bracing at bedtime. Checking, anticipating, scanning for the first tickle in the throat. That bracing is arousal, and arousal is the thing that keeps you awake. The cough was the original trigger. The bracing is what carries on after the trigger has gone, which is why your 3am brain can treat "am I about to cough?" like a rustle in the grass and stay on watch.

It is the same self-maintaining loop that sits underneath insomnia more broadly. Something disturbs your sleep, you understandably start trying hard to fix it, and the trying itself becomes the disturbance. It is like drinking seawater when you are thirsty. Every effortful sip feels like it should help. Every sip makes it worse.

Broken nights can also nudge your body clock's circadian rhythm off its usual timing, especially if you start sleeping in to catch up or going to bed early to bank some rest. The steady move is the opposite of chasing it: keep your wake-up time roughly anchored, and let sleep pressure rebuild on its own.

What actually helps the sleep side

Once the cough is handled and the problem is the sleeplessness itself, there is a clear evidence-based answer, and it is not a stronger sedative or a longer list of rules. For chronic insomnia, the approach with the strongest evidence is cognitive behavioural therapy for insomnia, or CBT-I. Major guidelines put it first, ahead of medication: the American Academy of Sleep Medicine strongly recommends multicomponent CBT-I for adults with chronic insomnia (Edinger et al., 2021), and the American College of Physicians recommends every adult with chronic insomnia try it as the first-line step (Qaseem et al., 2016).

The effect is real and it holds. Pooling dozens of randomised trials, CBT-I shortens the time it takes to fall asleep by roughly nineteen minutes and cuts time spent awake during the night by roughly twenty-six minutes, with the gains sustained at follow-up (Trauer et al., 2015). A larger review of 87 trials found a large effect on insomnia severity overall (van Straten et al., 2018), though it is fair to note that most of those trials compared CBT-I against waitlists rather than active treatments, which tends to flatter the numbers.

Notice what is not on that list: sleep hygiene as a standalone fix. The same guideline that backs CBT-I recommends against relying on sleep hygiene by itself (Edinger et al., 2021). Not because a dark, cool, quiet room does not matter. Because good conditions are the floor, not the treatment. If hygiene alone was going to fix this, it already would have.

Insomnia Reset is built on that CBT-I foundation and adapts it for the exact problem you are describing: the wired, braced, "will tonight be another write-off" mechanism that a stretch of coughing nights leaves behind. It refines the evidence rather than reciting it. It does not, for instance, ask you to keep a nightly sleep diary, because the constant monitoring feeds the very hypervigilance we are trying to settle. The point is not to try harder at sleeping. Sleep is the one domain of life where effort makes the outcome worse.

And facing a wired, sleepless night does not mean white-knuckling through maximum distress. One of the program's tools, which I call Find-the-Five, keeps the work at a level you can actually stay with, and steps back when it climbs too high. That is as much as I will say here. The how lives inside the program.

A structured, self-guided program like this is not a watered-down version of the real thing, either. In a placebo-controlled randomised trial, a fully automated, media-rich online CBT-I program improved sleep over and above an active placebo, not merely the reassurance of using a website (Espie et al., 2012). The caveats are fair to name: the outcomes were self-reported and some authors were tied to the product. But the signal is there.

About sleeping tablets and cough medicines

When you are desperate for one unbroken night, the pharmacy shelf is tempting: a sedating cough syrup, an over-the-counter sleep aid, or a request for something stronger. I am not going to tell you medication is wrong. Sometimes, short-term, it is a reasonable part of the plan. But it is a conversation to have with your prescriber, not a decision to make alone at midnight.

Two things are worth knowing. First, guidelines treat sleep medication as a short-term, shared decision, second to CBT-I rather than a substitute for it (Qaseem et al., 2016). Second, the long game matters: in a trial that followed people for two years, the best durable outcomes came from starting with the behavioural approach and continuing it, not from staying on nightly medication (Morin et al., 2009). Medication can buy you a night. It does not tend to be the thing that shifts the pattern.

If your cough began soon after starting a new prescription, mention it to your prescriber. Some common medicines, including a widely used class of blood-pressure tablet, can cause a persistent dry cough as a side effect. Do not stop a prescribed medication on your own. Just raise it.

One practical safety note. Several nights of cough-broken sleep add up, and heavy daytime drowsiness slows your reactions. If you are running on empty, be cautious about driving or operating anything that could hurt you. That tiredness is real, even on a day when the fog feels invisible.

Common questions

Should I see a doctor about a cough that keeps me awake?

Yes, particularly if it has lasted more than a week or two, is getting worse, or comes with breathlessness, chest pain, fever, or blood. A cough is a symptom, and the fastest route back to sleep is usually to treat what is causing it rather than to push through. Getting it checked is not overreacting. It is the efficient move.

Why does a cough seem worse at night?

Lying flat, post-nasal drainage, cooler bedroom air, and simple quiet can all make a cough more noticeable once you are in bed and nothing else is competing for your attention. The specifics depend on the cause, which is exactly why it is worth having a doctor pin it down rather than guessing.

My cough is gone but I still can't sleep. What's happening?

This is common, and it is not a sign that something is wrong with you. A stretch of disturbed nights can teach your brain to brace at bedtime, and that bracing keeps you awake on its own, long after the original cause has cleared. It is a learned loop, and learned loops can be unlearned. The Sleep Clarity quiz is a good way to see how much of that pattern is in play. It is a starting point for reflection, not a diagnosis.

Can I just take a sleeping tablet until the cough settles?

Possibly, but make it a conversation with your prescriber rather than a default. Short-term medication can have a place, yet the evidence is that it works best alongside a behavioural approach and is not what produces lasting change on its own (Morin et al., 2009). It helps to be clear with yourself about the difference between a treatment plan and a fear-story about not sleeping.

Will better sleep hygiene fix this?

Sleep hygiene helps set the stage, but on its own it is not a treatment for persistent insomnia, and the guidelines say as much (Edinger et al., 2021). A cool, dark, quiet room matters. It is the floor you build on, not the whole house.

Frequently asked questions

Should I see a doctor about a cough that keeps me awake?

Yes, particularly if it has lasted more than a week or two, is getting worse, or comes with breathlessness, chest pain, fever, or blood. A cough is a symptom, and the fastest route back to sleep is usually to treat what is causing it rather than to push through. Getting it checked is not overreacting. It is the efficient move.

Why does a cough seem worse at night?

Lying flat, post-nasal drainage, cooler bedroom air, and simple quiet can all make a cough more noticeable once you are in bed and nothing else is competing for your attention. The specifics depend on the cause, which is exactly why it is worth having a doctor pin it down rather than guessing.

My cough is gone but I still can't sleep. What's happening?

This is common, and it is not a sign that something is wrong with you. A stretch of disturbed nights can teach your brain to brace at bedtime, and that bracing keeps you awake on its own, long after the original cause has cleared. It is a learned loop, and learned loops can be unlearned. The Sleep Clarity quiz is a good way to see how much of that pattern is in play. It is a starting point for reflection, not a diagnosis.

Can I just take a sleeping tablet until the cough settles?

Possibly, but make it a conversation with your prescriber rather than a default. Short-term medication can have a place, yet the evidence is that it works best alongside a behavioural approach and is not what produces lasting change on its own (Morin et al., 2009). It helps to be clear with yourself about the difference between a treatment plan and a fear-story about not sleeping.

Will better sleep hygiene fix this?

Sleep hygiene helps set the stage, but on its own it is not a treatment for persistent insomnia, and the guidelines say as much (Edinger et al., 2021). A cool, dark, quiet room matters. It is the floor you build on, not the whole house.

This article is general information written by a clinical psychologist. It is not a substitute for individual assessment or treatment. If sleep problems are affecting your health or daily life, speak with your GP or a registered psychologist.
If you need support now. If sleep loss comes with thoughts of harming yourself, or you feel you can't keep yourself safe, please reach out now — in Australia, Lifeline 13 11 14 or 13YARN 13 92 76; in the US, 988; in the UK, Samaritans 116 123. If you are in immediate danger, call your local emergency number.

Work on the mechanism, not another tip

Insomnia Reset is a structured, psychologist-designed program for exactly this pattern. If you're ready to work on the mechanism rather than chase another tip, that's what it's for.

Explore Insomnia Reset →