Waking Up at 3 a.m. With a Racing Heart: What to Do Next
Short answer: waking up at 3 a.m. with your heart pounding feels awful, and everyday things can set it off: a drink wearing off, late coffee, stress, a hot room, noise, or a full bladder. Tonight’s plan is simple. Don’t look at the clock. Breathe out slower than you breathe in. Keep the light low. If you’re still wide awake after a while, get up and do something dull in dim light until you feel sleepy, then go back to bed. If it happens most nights for weeks, or comes with chest pain, fainting, or trouble breathing, get checked.
If you buy through our Amazon links, we may earn a small commission at no extra cost to you.
This is habit help for a rough night. It is not treatment and it is not medical advice. If you have chest pain or trouble breathing right now, stop reading and call 911.
The 3 a.m. loop
Here’s how a lot of people describe it. You wake up with a jolt. You notice your heart thumping. Then you start worrying about your heart, and about tomorrow, and about how little sleep you’re going to get. Now you’re wide awake, and the worry keeps the thumping going.
You can’t always stop the first jolt. You can stop feeding the loop. That’s what the script below is for.
The 3 a.m. script
- Don’t check the clock. Knowing it’s 3:12 tells you nothing useful. It just starts the math: “If I fall asleep right now, I get three hours.” The National Heart, Lung, and Blood Institute (part of NIH) says worrying about getting enough sleep and watching the clock can make sleep problems worse. Before bed, turn the clock face to the wall and put your phone across the room.
- Breathe out longer than you breathe in. In through your nose for a slow count of 4. Out through loose lips for a count of 6, like you’re fogging a window very slowly. Do 10 rounds. That’s under two minutes. Keep the breaths small and easy. Big, gulping “deep breaths” aren’t the goal. The long, slow out-breath is.
- Unclench three things. Jaw, shoulders, hands. Let your tongue drop off the roof of your mouth. You’ll probably find at least one of them tight.
- Keep the light low and warm. No overhead light, and no phone screen. If you need to see, use a dim night light or a lamp with a low, warm bulb.
- Park the worry on paper. Keep a notebook and pen on the nightstand. Write the worry in one line, then write the very next step and when you’ll take it: “Call the bank, 9 a.m.” Close the notebook. The worry hasn’t gone anywhere, but now it’s waiting on paper and not in your head.
- If you’re still wide awake, get up. More on this rule below.
The get-up rule
Lying in bed fighting to sleep usually turns into lying in bed worrying. MedlinePlus, the National Library of Medicine’s health site, says that if you can’t fall asleep within 30 minutes, get up, go to another room, and do something quiet until you feel sleepy.
You don’t need to be exact, and you won’t be, since you aren’t checking the clock. Go by feel. When lying there starts to feel like a fight, that’s your cue. A rough guess is fine.
Good “dull” things to do:
- Sit in a chair under a blanket with one low lamp on.
- Read a paper book you’ve already read. Nothing with a cliffhanger.
- Fold a basket of laundry slowly.
- Do the 4-and-6 breathing again, sitting up.
Skip these: your phone, email, the news, TV, a big snack, or cleaning the kitchen under bright lights. They give your brain a reason to stay up.
When your eyes get heavy, go back to bed. If you’re wide awake again, get up again. The catch: the first few nights you may get up more than once, and that’s annoying. Give the habit a week or two before you decide whether it helps you.
Set up your get-up spot before bed so you don’t have to think at 3 a.m.: one chair, one blanket, one lamp, one boring book.
Common everyday reasons it happens
This isn’t a diagnosis. It’s a list of ordinary things worth ruling out first. NIH’s sleep pages list noise, light, rooms that are too hot or too cold, caffeine, nicotine, alcohol, and stress as things that can disturb sleep.
- Alcohol. If your 3 a.m. wake-ups line up with nights you had a few drinks, that’s a clue. MedlinePlus suggests avoiding alcohol in the evening.
- Late caffeine. Afternoon coffee, iced tea, soda, energy drinks. Try moving your last one earlier for two weeks and see if anything changes.
- Stress. NIH names worry about work, money, relationships, or losing a loved one. If your brain does its planning at 3 a.m., give it a daytime slot instead. Our 15-minute worry window walks you through it.
- A hot room. A heavy comforter in a warm room can wake you up sweaty with your heart going. Try lighter layers you can kick off.
- Noise. A furnace kicking on, a garbage truck, a partner’s snoring. A steady sound can cover the sudden ones. A fan works, or a machine like the Yogasleep Dohm Classic white noise machine. We compare the two in white noise machine vs box fan.
- Needing the bathroom. A big glass of water or tea right before bed can do it. Try drinking more earlier in the evening and less in the last hour.
- Hormone changes. NIH notes that pregnancy and menopause can cause sleep problems. If that’s your stage of life, mention the wake-ups to your doctor.
Track it for two weeks
At 3 a.m. every night feels like the worst night. Your notes will be more honest. Each morning, write one line:
- Woke up in the night? Yes or no. (Don’t check the time on purpose. “Middle of the night” is enough.)
- Drinks last night? Last coffee or tea at what time?
- Room felt hot, cold, or fine? Any noise?
- Stress level yesterday, low, medium, or high?
After 14 days, look for a pattern. Use the same bedside notebook you park worries in. Any notebook works. A sturdy one like the Moleskine Classic large ruled notebook holds up on a nightstand, but a plain spiral one is fine. If you do end up seeing a doctor, bring the notes.
When to get checked
Habits help with a lot of ordinary wake-ups. They’re not the answer to everything. See a doctor if:
- It happens most nights for weeks, even after you’ve tried the habit changes.
- You snore loudly, or you or a partner notice gasping or choking in your sleep.
- The racing heart comes with chest pain, shortness of breath, fainting, or feeling like you might faint.
- Pain or discomfort keeps you awake, or you’re feeling sad or depressed. MedlinePlus lists both as reasons to call your provider.
- You take any medicine that might be keeping you up. Ask your doctor or pharmacist before changing anything.
Chest pain or trouble breathing right now? Call 911. Don’t wait to see if it passes.
If you’re in crisis or thinking about hurting yourself, call or text 988 (Suicide & Crisis Lifeline, US). If you’re in immediate physical danger, call 911. More options are on our Get help page.
Set it up before bed tonight
Five minutes now saves you from deciding things at 3 a.m.:
- Clock turned to the wall. Phone charging across the room.
- Notebook and pen on the nightstand.
- Get-up spot ready: chair, blanket, low lamp, dull book.
- Room quiet, dark, and not too warm. Lighter bedding if you wake up sweaty.
If you want a few simple things to make the room calmer, our calm tools page and sleep tools page cover what’s worth buying and when you don’t need anything at all.
And if you wake up tonight: no clock, slow breath out, low light, paper for the worry. If it turns into a fight, get up, do something dull, and come back when you’re sleepy. That’s the whole script.
Sources: NHLBI (NIH), “Insomnia: Causes and Risk Factors“; MedlinePlus (National Library of Medicine), “Changing your sleep habits.” Checked October 2026. This post is about everyday habits. It is not medical advice and is not therapy.