What Should You Do When You Wake Up at 3 AM and Can't Stop Worrying?
If you wake up at 3 AM and can't stop worrying, try a simple counting practice without getting out of bed. Close your eyes, count "one" in your head, then breathe in and out once. Count "two," and take another breath — one breath for every number. If you catch yourself worrying again, don't start over at one. Pick up with the next number and take a breath. That's what I did, and those hours awake became much easier to get through.
Video: a true story from a developer who meditates, recreated with AI.
What makes being awake at 3 AM so hard?
When you wake up at 3 AM and can't get back to sleep, tomorrow's to-do list and things that haven't been going well can keep coming to mind. For me, replaying those worries was harder than not being able to sleep.
For me, it often started with the clock.
You check the time. "Four more hours. I need to get back to sleep."
Then you close your eyes, and your mind starts running through tomorrow — what you have to deal with, everything that seems to be going wrong. You end up living through things that haven't even happened yet.

I used to have nights like that all the time when I was under a lot of stress. I'd wake up anxious for no clear reason, and everything felt hopeless.
For me, not being able to sleep wasn't the worst part. Going over the same worries again and again was.
I couldn't make myself fall asleep. But I could practice taking my mind off those worries for a moment.
What can you do in bed when you wake up at 3 AM?
When you wake up at 3 AM, you can stay in bed, close your eyes and count a number before each breath: count "one" in your head, breathe in and out once, then count "two" and take another breath. One breath for every number. You don't need to get up or prepare anything.
I couldn't simply stop worrying. So I focused on counting and breathing instead.
Here's how it works:
- Lie in bed and close your eyes.
- Count "one" in your head, then breathe in and out once.
- Count "two," then breathe in and out once more.

The number comes first, then the breath.
What if you start worrying again while counting?
If you catch yourself worrying again while counting, don't start over at one. Pick up with the next number, then take a breath. The goal isn't to reach a high number. It's to notice that you got caught up in a worry and come back to your breath.
Here's an example. Say I'd counted to four, then breathed in and out.
Before I knew it, I was worrying about tomorrow again. I'd completely forgotten that I was counting.
Eventually I'd realize what I'd been doing.
If you stopped counting at four and then caught yourself worrying, you don't go back to one. You count five.

The moment you notice is what matters. While you're counting five and breathing, you're no longer caught up in tomorrow's worries, at least for that moment.
Noticing you've been lost in thought and coming back to your breath, over and over, is mindfulness meditation. It's not about emptying your mind. It's about noticing and coming back.
What if you still can't fall back asleep right away?
Even if you count and breathe in bed at 3 AM, you may not fall asleep right away. You can keep practicing a little longer rather than trying to force yourself to sleep. On nights when even lying in bed felt like too much, I'd get up, count and breathe while sitting, then go back to bed when I felt sleepy.
Whenever I caught myself worrying, I'd return to my breath. As my mind gradually settled, I'd often fall back asleep. I'd spend anywhere from half an hour to an hour meditating. On the nights I couldn't stay in bed, I'd sit on the living room floor in the dark.
I didn't fall asleep right away, but those nights became much more bearable.
The point of this practice isn't to force sleep. It's to come back to your breath when you catch yourself worrying.
How can you practice noticing when you're lost in worry?
If it's hard to notice when you're caught up in worry, you can practice sitting up during the day, too. Count a number in your head, then breathe in and out once. When you realize you've been so caught up in worrying that you forgot you were counting, pick up with the next number and take a breath.
Even so, the hardest part for me was how long it sometimes took me to notice I'd stopped counting. I wanted a cue to help me notice those moments. So I built True Meditation, a meditation app based on this exercise. As you count each number, you tap the screen twice in a row. If the gap between double-taps gets longer, the app can give you a gentle vibration. That's a cue to check whether you've been lost in thought and return to your breath.
When I meditate sitting up, it goes like this:
- Count "one" in your head while tapping the phone screen twice in a row. That's a double-tap.
- Then breathe in and out once.
- Count "two," double-tap again, and take another breath.
As you keep counting, your double-taps stay fairly evenly spaced. But if your mind wanders and you forget to count, you might forget to tap too. That leaves a longer gap than usual, and the app picks up that change and gives you a gentle vibration.

The large number near the top of the screen is how many breaths you've counted so far. The app doesn't read your thoughts. It only notices that your tapping rhythm changed. Noticing and returning to your breath are still up to you.
At bedtime, a vibration could wake you up, so there's a sleep mode with no vibrations. You still count each number as you double-tap, then take a breath. If you fall asleep, the meditation session ends on its own.
In short
If you wake up at 3 AM and can't stop worrying, you can try a simple counting practice in bed instead of forcing yourself to sleep: count one number in your head, then breathe in and out once, and move on to the next number. If you catch yourself worrying again, you don't start over at one — you count the next number and take a breath. Noticing you've been lost in thought and coming back to your breath, again and again, is mindfulness meditation. I didn't fall asleep right away when I did this, but those nights became much more bearable.
True Meditation isn't an app you listen to. It's an app for doing mindfulness meditation yourself — practice in noticing your own thoughts, built into an app. It's free on the App Store and Google Play.
Related questions
What if you keep calculating how many hours of sleep you have left? If calculating the hours left leads to more worrying, you can try this in bed: count one number in your head, then breathe in and out once, and repeat. If you catch yourself worrying, pick up with the next number and take a breath. For me, those nights were especially hard because I kept worrying after checking the time.
How is this different from counting sheep? Counting sheep usually involves imagining sheep and counting them as you try to fall asleep. With this practice, the point isn't to keep counting without a slip. It's one breath per number, and if you catch yourself worrying, you count the next number and return to your breath.
What if I'm too restless to stay in bed? On nights when even lying in bed felt like too much, I'd get up and sit on the living room floor in the dark. I'd count a number in my head, breathe in and out once, and repeat. When I felt sleepy, I'd go back to bed.
What if I keep waking up at 3 AM every night? If sleep problems go on for a long time and make daily life hard, talk to a doctor or other healthcare professional. This post shares my personal experience and is not medical advice.