Sleep Cycles, Explained
A night of sleep is not one long block. It is a series of cycles, each lasting roughly ninety minutes, though the length varies from person to person and from night to night.
Each cycle moves through stages. Light sleep comes first, when you drift in and out and are easy to wake. Then comes deep sleep, also called slow-wave sleep, when your body does much of its physical repair and waking you is difficult. Finally comes REM sleep, when your eyes move rapidly and most vivid dreaming happens, and your brain is busy in ways that look surprisingly like being awake.
Deep sleep is concentrated in the first half of the night, while REM periods get longer toward morning. This is why cutting your night short by a couple of hours tends to cost you a lot of REM sleep.
That groggy feeling when an alarm goes off at the wrong moment has a name, sleep inertia. It is strongest when you are pulled out of deep sleep, and it can last a while.
A few habits tend to help. Keep a regular wake-up time, even on weekends. Keep the bedroom cool and dark. Limit caffeine in the afternoon and avoid bright screens right before bed.
This is general information and not medical advice. If you struggle with sleep for weeks, talk to a doctor.