What to do when you can't sleep at 3 a.m. and feel anxious
Waking at 3 a.m. with a racing mind is common, and it usually passes. What tends to help is lowering the alarm rather than forcing sleep: breathe slowly (about six breaths a minute, in for 4 seconds and out for 6), name things you can see, hear and feel, and if you've been lying awake and frustrated, get up for a while in dim light and come back when you feel sleepy. Write any worry down for the morning. If you feel unsafe or are thinking about ending your life, talk to someone now: 988 in the US and Canada, Samaritans on 116 123 in the UK and Ireland, or findahelpline.com elsewhere.
Right now, in bed
- Don't check the time. Counting the hours left until the alarm makes it harder. Turn the clock away.
- Breathe slower, especially out. In through the nose for 4 seconds, out for 6. That's six breaths a minute. Do it for one to three minutes. Slow breathing has a small, real effect on stress in studies; it won't fix everything, but it takes the edge off.
- Ground yourself with 5-4-3-2-1. Name 5 things you can see (even in the dark: the line of light under the door), 4 you can feel, 3 you can hear, 2 you can smell, 1 you can taste. It moves your attention from the thought to the room.
- Loosen your body. Unclench your jaw, drop your shoulders, let your hands go heavy.
If you're still awake and getting frustrated
- Get up for a while. Sleep specialists suggest leaving bed when you've been awake long enough to feel frustrated (people often say about 20 minutes, but go by the feeling, not the clock). Go to another room, keep the light dim, do something quiet: a paper book, folding laundry, a warm drink without caffeine.
- Come back when you feel sleepy, not just tired. Repeat if you need to. It feels backwards, but it teaches your body that bed is for sleeping, not for worrying.
- Skip the phone scroll. News and social feeds wake you up. If you use your phone, use it for one calm thing (a breathing timer, quiet audio) and put it down.
Park the worry until morning
Write the worry on paper in one line, then tell yourself you'll look at it at a set time tomorrow (say, 6 p.m.). This is called scheduled worry time. Small studies found it helped people worry less and sleep a bit better; at 3 a.m., the simple version is enough: it's written down, it can wait. Problems almost always look smaller in daylight.
Tomorrow, so tonight is easier
- Get up at your usual time, even after a bad night. Don't nap during the day if you can manage it.
- Get outside in daylight in the morning and move your body during the day (not in the 4 hours before bed).
- No coffee, tea or alcohol in the 6 hours before bed, and no big late meal.
- Give yourself an hour to wind down before bed: a bath, a book, dim lights.
When to get help
- Talk to a doctor if changing your habits hasn't helped, if you've been sleeping badly for months, or if it's making daily life hard to cope with. There are well-established, drug-free programs for long-term insomnia that a doctor can point you to.
- Talk to someone tonight if you feel hopeless, unsafe, or have thoughts of ending your life. These lines are free and confidential, and someone answers at 3 a.m.:
If you are in danger now, call your local emergency number (911 in the US and Canada, 999 or 112 in the UK, 112 in the EU).
Nights alone are often the hardest part. If that's you, ways to feel less lonely tonight has a few small things to try.
Nuku has a 3 a.m. mode for this: tap "I feel anxious" and it breathes with you (4 seconds in, 6 out), walks you through 5-4-3-2-1, or helps you text someone. Nothing you type there leaves your phone. Nuku is a tiny AI pet you visit for about thirty seconds a day in your browser. If you stop visiting for two days (you choose 24 to 72 hours), it sends one notification to up to five people you picked. It's free, 18+, and not an emergency service.
Questions
Why do I wake up at 3 a.m. with anxiety?
Waking briefly during the night is normal; most people do it several times without remembering. Anxiety makes those wake-ups sticky: the quiet and the dark leave room for worries, and the worry itself keeps you awake. Stress, alcohol, caffeine and irregular sleep times make it more likely.
Should I get out of bed if I can't sleep?
Usually yes, once you've been awake long enough to feel frustrated (often around 20 minutes, but don't watch the clock). Do something quiet in dim light in another room, and go back to bed when you feel sleepy.
What breathing helps when I can't sleep?
Slow breathing with a longer out-breath: in for about 4 seconds, out for about 6, which is six breaths a minute. One to three minutes is enough to try. Studies show a small effect on stress; it is a way to calm down, not a cure for insomnia.
What is the 5-4-3-2-1 grounding technique?
You name 5 things you can see, 4 you can feel, 3 you can hear, 2 you can smell and 1 you can taste. It pulls your attention out of a spiral of thoughts and back into the room.
Who can I talk to in the middle of the night?
In the US and Canada, call or text 988. In the UK and Ireland, call Samaritans on 116 123. Elsewhere, findahelpline.com lists free lines in more than 175 countries. They answer at any hour, and you don't need to be in crisis to call. If you are in danger now, call your local emergency number.
Sources
- NHS: Insomnia (self-help and when to see a GP)
- Stimulus control and sleep restriction: standard definitions and best practices (PMC)
- Fincham et al. 2023, breathwork meta-analysis, Scientific Reports
- McGowan & Behar 2013, worry postponement, Behavior Modification
- 988 Suicide & Crisis Lifeline
- Samaritans: contact us
- Find A Helpline
Written by the Nuku team at Jestr with AI help, checked against the sources above, last updated 2 October 2026. This is general information, not medical advice. Spotted a mistake? support@jestr.ai