Why Does My Baby Shake His Head Back and Forth?

Most babies who shake their heads back and forth are doing something completely normal. Rhythmic head movements are one of the most common self-soothing behaviors in infancy, with about 66% of babies doing it by 9 months of age. In most cases, your baby is experimenting with movement, settling themselves to sleep, or simply discovering what their body can do. That said, there are a few situations where head shaking signals something worth checking out.

Self-Soothing and Sleep

The most common reason babies shake their heads back and forth is to calm themselves down, especially around sleep. You’ll often notice it when your baby is drowsy, falling asleep, or waking up. The rhythmic, repetitive motion has a soothing effect, similar to how rocking in a chair relaxes adults. Babies may also do it during the night between sleep cycles without fully waking up.

This behavior typically starts in the first year and naturally fades over time. By age 5, only about 5% of children still do it. Some babies rock their whole body, others bang their heads gently against the mattress, and many simply roll their head side to side. As long as your baby seems comfortable, is developing normally, and stops on their own, this is a phase they’ll grow out of.

Exploring Movement and Motor Skills

Babies between about 3 and 8 months are rapidly learning to control their bodies. Shaking the head side to side is one of the first voluntary movements they master, and many babies repeat it simply because it’s new and interesting. You might notice your baby shaking their head and then laughing or looking at you for a reaction. This playful, intentional head shaking is pure motor exploration and nothing to worry about.

Around the same age, babies also start learning to shake their head “no” by imitating the adults around them, even before they understand what it means. If the head shaking seems social (happening during interaction, accompanied by eye contact or smiling), your baby is likely practicing communication.

Ear Pain or Infection

When a baby has fluid buildup or infection in the middle ear, they can’t tell you their ear hurts. Instead, they often shake or tilt their head, tug at their ears, or rub the side of their face. Head shaking from ear discomfort looks different from self-soothing: your baby will seem irritated or distressed rather than calm and rhythmic.

Other signs that point toward an ear issue include:

  • Increased fussiness or crying, especially when lying down
  • Trouble sleeping or frequent waking
  • Pulling or tugging at one or both ears
  • Fever
  • Fluid draining from the ear
  • Reduced response to sounds
  • Loss of appetite

If head shaking comes with several of these symptoms, an ear infection is a likely culprit. These are very treatable and extremely common in babies.

Reflux and Sandifer Syndrome

Some babies with significant acid reflux develop unusual head and neck movements as a pain response. This is called Sandifer syndrome, and it happens because the baby instinctively jerks their body in reaction to stomach acid moving up the esophagus. Think of it like pulling your hand away from something hot: the movement is sudden and reflexive, not rhythmic or soothing.

Babies with Sandifer syndrome typically arch their back, twist their neck, or tilt their head to one side, often during or shortly after feeding. You’ll usually also notice frequent spitting up, discomfort during feeds, or reluctance to eat. The head movements stop once the reflux is treated, and the condition doesn’t cause any lasting neurological problems.

When Head Shaking Looks Different

In rare cases, repetitive movements in infancy can signal a neurological condition. The key distinction is what the rest of your baby’s development looks like. Benign head shaking happens in a baby who is otherwise hitting milestones, making eye contact, smiling, babbling, and engaging with you normally.

Infantile spasms are a serious but uncommon seizure type that can sometimes be confused with normal head movements. These spasms tend to happen in clusters, often involving a sudden forward flexion of the body (like a brief jackknife motion), and they frequently occur just after waking. The single biggest red flag is developmental regression: your baby losing skills they previously had, such as stopping babbling, making less eye contact, or no longer reaching for objects. If you notice the movements paired with any loss of previously gained abilities, that combination warrants prompt evaluation.

There’s also a benign condition sometimes called Fejerman syndrome, where babies have brief jerks of the head and arms that can look alarming but are completely harmless. These episodes tend to be triggered by excitement, frustration, or the urge to have a bowel movement. They don’t affect consciousness, and babies remain alert and responsive throughout. The movements resolve on their own as the baby gets older.

How to Tell What’s Normal

A few simple observations can help you sort out harmless head shaking from something that needs attention. Normal, self-soothing head shaking is rhythmic and repetitive, happens mostly around sleep or during calm moments, and your baby looks relaxed or even enjoys it. Your baby stops when something interesting catches their attention, and their development is on track.

Head shaking that deserves a closer look tends to come with other symptoms: pain cues like crying or ear pulling, feeding difficulties, sudden jerking movements that look involuntary, or any sign that your baby is losing developmental ground. The movements themselves matter less than the full picture of how your baby is doing overall. A happy, engaged baby who shakes their head before falling asleep is almost certainly fine. A baby whose head movements come with new irritability, stiffness, or a change in how they interact with you is worth having checked.