Most babies start sleeping noticeably more still between 3 and 6 months of age, though temporary surges in nighttime movement happen at predictable points throughout the first two years. The twitching, flailing, and squirming you’re watching on the baby monitor is almost always normal, and it’s driven by biology that changes on a clear timeline.
Why Babies Move So Much in Their Sleep
Newborns spend about 50% of their total sleep time in REM (the dreaming stage), compared to roughly 20-25% for adults. Premature babies spend even more, up to 80%. During REM sleep, the brain is highly active, and in young infants, the neural pathways that keep the body still during this stage haven’t matured yet. The result is all those jerks, twitches, grimaces, and limb movements you see while your baby is technically asleep.
On top of REM-related movement, newborns have the Moro (startle) reflex. A sudden noise, a change in position, or even their own cry can trigger them to throw their head back, fling their arms and legs outward, and then pull them back in. This reflex is present from birth and typically disappears around 5 to 6 months of age. Until it fades, it’s one of the biggest contributors to those dramatic sleep jerks that wake both baby and parent.
The 3-Month Turning Point
Around 3 months, two important things happen at once. First, your baby’s brain begins producing melatonin in a day-night pattern for the first time, with high levels at night and low levels during the day. This is the foundation of a real circadian rhythm, and it helps sleep become more consolidated and predictable.
Second, sleep architecture itself changes. Newborns cycle between just two sleep stages (active and quiet). By about 3 months, babies transition to the same four-stage sleep cycle adults use, including deeper stages of non-REM sleep where the body is genuinely still. As a larger share of each night is spent in these deeper, quieter stages, overall movement drops noticeably. Many parents describe the period between 3 and 4 months as the first time their baby started “sleeping like an actual person.”
Motor Milestones Bring Temporary Setbacks
Just when sleep starts to settle, new physical skills can stir things up again. Between 6 and 10 months, babies are learning to roll, crawl on hands and knees, belly crawl, bear crawl, and scoot. They practice these movements constantly, including in their sleep. It’s common to check the monitor and find your baby up on all fours in the middle of the night, rocking back and forth, or rolled into a corner of the crib. This often lines up with what’s called the 6-month sleep regression.
Walking brings a similar disruption around 12 to 18 months. Early talkers sometimes have restless nights around 12 to 15 months as language development ramps up. And around age 2, growing independence and imagination can lead to another round of disrupted sleep, sometimes called the “two-year-old nap strike.” Each of these phases typically lasts a few weeks before sleep settles again.
What Changes at Each Stage
- 0 to 2 months: Peak movement. Half of all sleep is active REM, the startle reflex is in full force, and sleep cycles are short (about 40 to 50 minutes). Twitching, grunting, and flailing are constant.
- 3 to 4 months: Melatonin production kicks in, sleep stages mature from two to four, and the startle reflex begins weakening. Movement decreases significantly, though sleep regressions are common during this transition.
- 5 to 6 months: The Moro reflex is gone. REM sleep is taking up a smaller percentage of total sleep. Many babies sleep in longer, quieter stretches.
- 6 to 12 months: Baseline movement is lower, but motor milestones like rolling, crawling, and pulling to stand cause temporary surges. You may see your baby physically practicing skills in the crib.
- 12 to 24 months: Sleep architecture continues maturing. Movement during sleep is closer to an older child’s pattern, with occasional disruptions around walking and language milestones.
By about 18 to 24 months, most toddlers have sleep that looks much calmer and more adult-like, though they still cycle through REM more frequently than grown-ups do.
Swaddling and the Transition
Swaddling helps contain all that early movement and reduces startle-reflex wakings, which is why it works so well for newborns. But you need to stop swaddling as soon as your baby shows any signs of trying to roll over. Some babies start working on rolling as early as 2 months. Once you see those signs, switch to a sleep sack or wearable blanket that leaves the arms free. This applies to any product that compresses the arms, chest, or body.
The transition out of the swaddle often coincides with a few rough nights of increased movement, simply because the baby’s arms are now free. This is temporary. Within a week or two, most babies adjust.
Rhythmic Movements Like Head Banging and Body Rocking
Some babies develop repetitive, rhythmic movements during sleep or while falling asleep. Head banging, head rolling, and body rocking are surprisingly common in the first year. These movements stimulate the vestibular system (the inner-ear balance system) and are considered a normal part of motor development in early infancy. Most children outgrow them by age 3 or 4.
These movements look alarming, but they rarely cause injury and don’t indicate a neurological problem on their own. If the movements are very intense, happen frequently throughout the night, persist beyond age 4 or 5, or are accompanied by developmental delays, that’s worth bringing up with your pediatrician. In rare cases, persistent rhythmic movement during sleep is classified as a sleep disorder tied to differences in how the brain regulates motor activity during sleep transitions.
Normal Movement vs. Something More
Nearly all infant sleep movement is normal. The key distinction is between movement that happens in bursts during sleep transitions (falling asleep, shifting between sleep cycles, entering or exiting REM) and movement that is continuous, repetitive, and clearly disrupting your baby’s ability to stay asleep night after night. Occasional twitching, repositioning, brief fussing, and even a few seconds of crying between sleep cycles are all part of healthy sleep.
Signs that something else might be going on include legs that kick or jerk repeatedly in a rhythmic pattern throughout the night, persistent snoring or gasping, or a baby who seems unable to settle despite being clearly exhausted. Iron deficiency, for example, is linked to restless sleep in older infants and toddlers. If your baby’s movement seems qualitatively different from normal restlessness, or if it’s getting worse rather than better over time, that’s a reasonable reason to mention it at your next visit.

